2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print -rn --'
47 elif (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 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
147 *v*x* | *x*v* ) as_opts=-vx ;;
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213 test -z "$as_dir" && as_dir=.
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
238 if test "x$CONFIG_SHELL" != x; then :
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
248 *v*x* | *x*v* ) as_opts=-vx ;;
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
276 SHELL=${CONFIG_SHELL-/bin/sh}
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
287 # Portably unset VAR.
290 { eval $1=; unset $1;}
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
314 # Create "$as_dir" as a directory, including parents if necessary.
319 -*) as_dir=./$as_dir;;
321 test -d "$as_dir" || eval $as_mkdir_p || {
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
352 test -d "$as_dir" && break
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
398 as_val=`expr "$@" || test $? -eq 1`
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
410 as_status=$1; test $as_status -eq 0 && as_status=1
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
496 # Exit status is that of the last command.
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
518 mkdir conf$$.dir 2>/dev/null
520 if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
529 elif ln conf$$.file conf$$ 2>/dev/null; then
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
540 if mkdir -p . 2>/dev/null; then
541 as_mkdir_p='mkdir -p "$as_dir"'
543 test -d ./-p && rmdir ./-p
548 as_executable_p=as_fn_executable_p
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 test -n "$DJDIR" || exec 7<&0 </dev/null
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
568 ac_default_prefix=/usr/local
570 ac_config_libobj_dir=.
577 # Identity of this package.
585 ac_unique_file="export_vars.sh.in"
586 # Factoring default headers for most tests.
587 ac_includes_default="\
589 #ifdef HAVE_SYS_TYPES_H
590 # include <sys/types.h>
592 #ifdef HAVE_SYS_STAT_H
593 # include <sys/stat.h>
599 # ifdef HAVE_STDLIB_H
604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
609 #ifdef HAVE_STRINGS_H
610 # include <strings.h>
612 #ifdef HAVE_INTTYPES_H
613 # include <inttypes.h>
622 ac_subst_vars='LTLIBOBJS
629 APRUTIL_PRIV_INCLUDES
677 apu_has_ldap_netscape
678 apu_has_ldap_microsoft
681 apu_has_ldap_openldap
683 apu_has_ldapssl_install_routines
686 apu_has_ldap_start_tls_s
687 apu_has_ldapssl_add_trusted_cert
688 apu_has_ldapssl_client_deinit
689 apu_has_ldapssl_client_init
715 APRUTIL_MAJOR_VERSION
716 APRUTIL_DOTTED_VERSION
764 program_transform_name
777 enable_option_checking
804 ac_precious_vars='build_alias
815 # Initialize some variables set by options.
817 ac_init_version=false
818 ac_unrecognized_opts=
820 # The variables have the same names as the options, with
821 # dashes changed to underlines.
829 program_transform_name=s,x,x,
837 # Installation directory options.
838 # These are left unexpanded so users can "make install exec_prefix=/foo"
839 # and all the variables that are supposed to be based on exec_prefix
840 # by default will actually change.
841 # Use braces instead of parens because sh, perl, etc. also accept them.
842 # (The list follows the same order as the GNU Coding Standards.)
843 bindir='${exec_prefix}/bin'
844 sbindir='${exec_prefix}/sbin'
845 libexecdir='${exec_prefix}/libexec'
846 datarootdir='${prefix}/share'
847 datadir='${datarootdir}'
848 sysconfdir='${prefix}/etc'
849 sharedstatedir='${prefix}/com'
850 localstatedir='${prefix}/var'
851 includedir='${prefix}/include'
852 oldincludedir='/usr/include'
853 docdir='${datarootdir}/doc/${PACKAGE}'
854 infodir='${datarootdir}/info'
859 libdir='${exec_prefix}/lib'
860 localedir='${datarootdir}/locale'
861 mandir='${datarootdir}/man'
867 # If the previous option needs an argument, assign it.
868 if test -n "$ac_prev"; then
869 eval $ac_prev=\$ac_option
875 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
880 # Accept the important Cygnus configure options, so we can diagnose typos.
882 case $ac_dashdash$ac_option in
886 -bindir | --bindir | --bindi | --bind | --bin | --bi)
888 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
891 -build | --build | --buil | --bui | --bu)
892 ac_prev=build_alias ;;
893 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
894 build_alias=$ac_optarg ;;
896 -cache-file | --cache-file | --cache-fil | --cache-fi \
897 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
898 ac_prev=cache_file ;;
899 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
900 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
901 cache_file=$ac_optarg ;;
904 cache_file=config.cache ;;
906 -datadir | --datadir | --datadi | --datad)
908 -datadir=* | --datadir=* | --datadi=* | --datad=*)
909 datadir=$ac_optarg ;;
911 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
912 | --dataroo | --dataro | --datar)
913 ac_prev=datarootdir ;;
914 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
915 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
916 datarootdir=$ac_optarg ;;
918 -disable-* | --disable-*)
919 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
920 # Reject names that are not valid shell variable names.
921 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
922 as_fn_error $? "invalid feature name: $ac_useropt"
923 ac_useropt_orig=$ac_useropt
924 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
925 case $ac_user_opts in
929 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
930 ac_unrecognized_sep=', ';;
932 eval enable_$ac_useropt=no ;;
934 -docdir | --docdir | --docdi | --doc | --do)
936 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
939 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
941 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
944 -enable-* | --enable-*)
945 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
946 # Reject names that are not valid shell variable names.
947 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
948 as_fn_error $? "invalid feature name: $ac_useropt"
949 ac_useropt_orig=$ac_useropt
950 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
951 case $ac_user_opts in
955 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
956 ac_unrecognized_sep=', ';;
958 eval enable_$ac_useropt=\$ac_optarg ;;
960 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
961 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
962 | --exec | --exe | --ex)
963 ac_prev=exec_prefix ;;
964 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
965 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
966 | --exec=* | --exe=* | --ex=*)
967 exec_prefix=$ac_optarg ;;
969 -gas | --gas | --ga | --g)
970 # Obsolete; use --with-gas.
973 -help | --help | --hel | --he | -h)
975 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
976 ac_init_help=recursive ;;
977 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
978 ac_init_help=short ;;
980 -host | --host | --hos | --ho)
981 ac_prev=host_alias ;;
982 -host=* | --host=* | --hos=* | --ho=*)
983 host_alias=$ac_optarg ;;
985 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
987 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
989 htmldir=$ac_optarg ;;
991 -includedir | --includedir | --includedi | --included | --include \
992 | --includ | --inclu | --incl | --inc)
993 ac_prev=includedir ;;
994 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
995 | --includ=* | --inclu=* | --incl=* | --inc=*)
996 includedir=$ac_optarg ;;
998 -infodir | --infodir | --infodi | --infod | --info | --inf)
1000 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1001 infodir=$ac_optarg ;;
1003 -libdir | --libdir | --libdi | --libd)
1005 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1006 libdir=$ac_optarg ;;
1008 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1009 | --libexe | --libex | --libe)
1010 ac_prev=libexecdir ;;
1011 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1012 | --libexe=* | --libex=* | --libe=*)
1013 libexecdir=$ac_optarg ;;
1015 -localedir | --localedir | --localedi | --localed | --locale)
1016 ac_prev=localedir ;;
1017 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1018 localedir=$ac_optarg ;;
1020 -localstatedir | --localstatedir | --localstatedi | --localstated \
1021 | --localstate | --localstat | --localsta | --localst | --locals)
1022 ac_prev=localstatedir ;;
1023 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1024 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1025 localstatedir=$ac_optarg ;;
1027 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1029 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1030 mandir=$ac_optarg ;;
1032 -nfp | --nfp | --nf)
1033 # Obsolete; use --without-fp.
1036 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1037 | --no-cr | --no-c | -n)
1040 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1041 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1044 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1045 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1046 | --oldin | --oldi | --old | --ol | --o)
1047 ac_prev=oldincludedir ;;
1048 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1049 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1050 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1051 oldincludedir=$ac_optarg ;;
1053 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1055 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1056 prefix=$ac_optarg ;;
1058 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1059 | --program-pre | --program-pr | --program-p)
1060 ac_prev=program_prefix ;;
1061 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1062 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1063 program_prefix=$ac_optarg ;;
1065 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1066 | --program-suf | --program-su | --program-s)
1067 ac_prev=program_suffix ;;
1068 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1069 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1070 program_suffix=$ac_optarg ;;
1072 -program-transform-name | --program-transform-name \
1073 | --program-transform-nam | --program-transform-na \
1074 | --program-transform-n | --program-transform- \
1075 | --program-transform | --program-transfor \
1076 | --program-transfo | --program-transf \
1077 | --program-trans | --program-tran \
1078 | --progr-tra | --program-tr | --program-t)
1079 ac_prev=program_transform_name ;;
1080 -program-transform-name=* | --program-transform-name=* \
1081 | --program-transform-nam=* | --program-transform-na=* \
1082 | --program-transform-n=* | --program-transform-=* \
1083 | --program-transform=* | --program-transfor=* \
1084 | --program-transfo=* | --program-transf=* \
1085 | --program-trans=* | --program-tran=* \
1086 | --progr-tra=* | --program-tr=* | --program-t=*)
1087 program_transform_name=$ac_optarg ;;
1089 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1091 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1092 pdfdir=$ac_optarg ;;
1094 -psdir | --psdir | --psdi | --psd | --ps)
1096 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1099 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1100 | -silent | --silent | --silen | --sile | --sil)
1103 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1105 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1107 sbindir=$ac_optarg ;;
1109 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1110 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1111 | --sharedst | --shareds | --shared | --share | --shar \
1113 ac_prev=sharedstatedir ;;
1114 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1115 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1116 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1118 sharedstatedir=$ac_optarg ;;
1120 -site | --site | --sit)
1122 -site=* | --site=* | --sit=*)
1125 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1127 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1128 srcdir=$ac_optarg ;;
1130 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1131 | --syscon | --sysco | --sysc | --sys | --sy)
1132 ac_prev=sysconfdir ;;
1133 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1134 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1135 sysconfdir=$ac_optarg ;;
1137 -target | --target | --targe | --targ | --tar | --ta | --t)
1138 ac_prev=target_alias ;;
1139 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1140 target_alias=$ac_optarg ;;
1142 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1145 -version | --version | --versio | --versi | --vers | -V)
1146 ac_init_version=: ;;
1149 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1150 # Reject names that are not valid shell variable names.
1151 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1152 as_fn_error $? "invalid package name: $ac_useropt"
1153 ac_useropt_orig=$ac_useropt
1154 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1155 case $ac_user_opts in
1159 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1160 ac_unrecognized_sep=', ';;
1162 eval with_$ac_useropt=\$ac_optarg ;;
1164 -without-* | --without-*)
1165 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1166 # Reject names that are not valid shell variable names.
1167 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1168 as_fn_error $? "invalid package name: $ac_useropt"
1169 ac_useropt_orig=$ac_useropt
1170 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1171 case $ac_user_opts in
1175 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1176 ac_unrecognized_sep=', ';;
1178 eval with_$ac_useropt=no ;;
1181 # Obsolete; use --with-x.
1184 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1185 | --x-incl | --x-inc | --x-in | --x-i)
1186 ac_prev=x_includes ;;
1187 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1188 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1189 x_includes=$ac_optarg ;;
1191 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1192 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1193 ac_prev=x_libraries ;;
1194 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1195 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1196 x_libraries=$ac_optarg ;;
1198 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1199 Try \`$0 --help' for more information"
1203 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1204 # Reject names that are not valid shell variable names.
1205 case $ac_envvar in #(
1206 '' | [0-9]* | *[!_$as_cr_alnum]* )
1207 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1209 eval $ac_envvar=\$ac_optarg
1210 export $ac_envvar ;;
1213 # FIXME: should be removed in autoconf 3.0.
1214 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1215 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1216 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1217 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1223 if test -n "$ac_prev"; then
1224 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1225 as_fn_error $? "missing argument to $ac_option"
1228 if test -n "$ac_unrecognized_opts"; then
1229 case $enable_option_checking in
1231 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1232 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1236 # Check all directory arguments for consistency.
1237 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1238 datadir sysconfdir sharedstatedir localstatedir includedir \
1239 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1240 libdir localedir mandir
1242 eval ac_val=\$$ac_var
1243 # Remove trailing slashes.
1246 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1247 eval $ac_var=\$ac_val;;
1249 # Be sure to have absolute directory names.
1251 [\\/$]* | ?:[\\/]* ) continue;;
1252 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1254 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1257 # There might be people who depend on the old broken behavior: `$host'
1258 # used to hold the argument of --host etc.
1259 # FIXME: To remove some day.
1262 target=$target_alias
1264 # FIXME: To remove some day.
1265 if test "x$host_alias" != x; then
1266 if test "x$build_alias" = x; then
1267 cross_compiling=maybe
1268 elif test "x$build_alias" != "x$host_alias"; then
1274 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1276 test "$silent" = yes && exec 6>/dev/null
1279 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1280 ac_ls_di=`ls -di .` &&
1281 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1282 as_fn_error $? "working directory cannot be determined"
1283 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1284 as_fn_error $? "pwd does not report name of working directory"
1287 # Find the source files, if location was not specified.
1288 if test -z "$srcdir"; then
1289 ac_srcdir_defaulted=yes
1290 # Try the directory containing this script, then the parent directory.
1291 ac_confdir=`$as_dirname -- "$as_myself" ||
1292 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1293 X"$as_myself" : 'X\(//\)[^/]' \| \
1294 X"$as_myself" : 'X\(//\)$' \| \
1295 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1296 $as_echo X"$as_myself" |
1297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1315 if test ! -r "$srcdir/$ac_unique_file"; then
1319 ac_srcdir_defaulted=no
1321 if test ! -r "$srcdir/$ac_unique_file"; then
1322 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1323 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1325 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1327 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1329 # When building in place, set srcdir=.
1330 if test "$ac_abs_confdir" = "$ac_pwd"; then
1333 # Remove unnecessary trailing slashes from srcdir.
1334 # Double slashes in file names in object file debugging info
1335 # mess up M-x gdb in Emacs.
1337 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1339 for ac_var in $ac_precious_vars; do
1340 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1341 eval ac_env_${ac_var}_value=\$${ac_var}
1342 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1343 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1347 # Report the --help message.
1349 if test "$ac_init_help" = "long"; then
1350 # Omit some internal or obsolete options to make the list less imposing.
1351 # This message is too long to be a string in the A/UX 3.1 sh.
1353 \`configure' configures this package to adapt to many kinds of systems.
1355 Usage: $0 [OPTION]... [VAR=VALUE]...
1357 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1358 VAR=VALUE. See below for descriptions of some of the useful variables.
1360 Defaults for the options are specified in brackets.
1363 -h, --help display this help and exit
1364 --help=short display options specific to this package
1365 --help=recursive display the short help of all the included packages
1366 -V, --version display version information and exit
1367 -q, --quiet, --silent do not print \`checking ...' messages
1368 --cache-file=FILE cache test results in FILE [disabled]
1369 -C, --config-cache alias for \`--cache-file=config.cache'
1370 -n, --no-create do not create output files
1371 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1373 Installation directories:
1374 --prefix=PREFIX install architecture-independent files in PREFIX
1375 [$ac_default_prefix]
1376 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1379 By default, \`make install' will install all the files in
1380 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1381 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1382 for instance \`--prefix=\$HOME'.
1384 For better control, use the options below.
1386 Fine tuning of the installation directories:
1387 --bindir=DIR user executables [EPREFIX/bin]
1388 --sbindir=DIR system admin executables [EPREFIX/sbin]
1389 --libexecdir=DIR program executables [EPREFIX/libexec]
1390 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1391 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1392 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1393 --libdir=DIR object code libraries [EPREFIX/lib]
1394 --includedir=DIR C header files [PREFIX/include]
1395 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1396 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1397 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1398 --infodir=DIR info documentation [DATAROOTDIR/info]
1399 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1400 --mandir=DIR man documentation [DATAROOTDIR/man]
1401 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1402 --htmldir=DIR html documentation [DOCDIR]
1403 --dvidir=DIR dvi documentation [DOCDIR]
1404 --pdfdir=DIR pdf documentation [DOCDIR]
1405 --psdir=DIR ps documentation [DOCDIR]
1411 --build=BUILD configure for building on BUILD [guessed]
1412 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1413 --target=TARGET configure for building compilers for TARGET [HOST]
1417 if test -n "$ac_init_help"; then
1422 --disable-option-checking ignore unrecognized --enable/--with options
1423 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1424 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1425 --enable-layout=LAYOUT
1426 --disable-util-dso disable DSO build of modular components (crypto,
1430 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1431 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1432 --with-apr=PATH prefix for installed APR or the full path to
1434 --with-apr-iconv=DIR relative path to apr-iconv source
1435 --with-crypto enable crypto support
1436 --with-openssl=DIR specify location of OpenSSL
1437 --with-nss=DIR specify location of NSS
1438 --with-lber=library lber library to use
1439 --with-ldap-include=path path to ldap include files with trailing slash
1440 --with-ldap-lib=path path to ldap lib file
1441 --with-ldap=library ldap library to use
1442 --with-dbm=DBM choose the DBM type to use.
1443 DBM={sdbm,gdbm,ndbm,db,db1,db185,db2,db3,db4,db4X,db5X,db6X}
1445 --with-gdbm=DIR enable GDBM support
1446 --with-ndbm=PATH Find the NDBM header and library in `PATH/include'
1447 and `PATH/lib'. If PATH is of the form `HEADER:LIB',
1448 then search for header files in HEADER, and the
1449 library in LIB. If you omit the `=PATH' part
1450 completely, the configure script will search for
1451 NDBM in a number of standard places.
1452 --with-berkeley-db=PATH Find the Berkeley DB header and library in
1453 `PATH/include' and `PATH/lib'. If PATH is of the
1454 form `HEADER:LIB', then search for header files in
1455 HEADER, and the library in LIB. If you omit the
1456 `=PATH' part completely, the configure script will
1457 search for Berkeley DB in a number of standard
1459 --with-pgsql=DIR specify PostgreSQL location
1460 --with-mysql=DIR enable MySQL DBD driver
1461 --with-sqlite3=DIR enable sqlite3 DBD driver
1462 --with-sqlite2=DIR enable sqlite2 DBD driver
1463 --with-oracle-include=DIR
1464 path to Oracle include files
1465 --with-oracle=DIR enable Oracle DBD driver; giving ORACLE_HOME as DIR
1466 --with-freetds=DIR specify FreeTDS location
1467 --with-odbc=DIR specify ODBC location
1468 --with-expat=DIR specify Expat location, or 'builtin'
1469 --with-iconv=DIR path to iconv installation
1471 Some influential environment variables:
1472 CC C compiler command
1473 CFLAGS C compiler flags
1474 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1475 nonstandard directory <lib dir>
1476 LIBS libraries to pass to the linker, e.g. -l<library>
1477 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1478 you have headers in a nonstandard directory <include dir>
1481 Use these variables to override the choices made by `configure' or to help
1482 it to find libraries and programs with nonstandard names/locations.
1484 Report bugs to the package provider.
1489 if test "$ac_init_help" = "recursive"; then
1490 # If there are subdirs, report their specific --help.
1491 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1492 test -d "$ac_dir" ||
1493 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1498 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1500 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1501 # A ".." for each directory in $ac_dir_suffix.
1502 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1503 case $ac_top_builddir_sub in
1504 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1505 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1508 ac_abs_top_builddir=$ac_pwd
1509 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1510 # for backward compatibility:
1511 ac_top_builddir=$ac_top_build_prefix
1514 .) # We are building in place.
1516 ac_top_srcdir=$ac_top_builddir_sub
1517 ac_abs_top_srcdir=$ac_pwd ;;
1518 [\\/]* | ?:[\\/]* ) # Absolute name.
1519 ac_srcdir=$srcdir$ac_dir_suffix;
1520 ac_top_srcdir=$srcdir
1521 ac_abs_top_srcdir=$srcdir ;;
1523 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1524 ac_top_srcdir=$ac_top_build_prefix$srcdir
1525 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1527 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1529 cd "$ac_dir" || { ac_status=$?; continue; }
1530 # Check for guested configure.
1531 if test -f "$ac_srcdir/configure.gnu"; then
1533 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1534 elif test -f "$ac_srcdir/configure"; then
1536 $SHELL "$ac_srcdir/configure" --help=recursive
1538 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1540 cd "$ac_pwd" || { ac_status=$?; break; }
1544 test -n "$ac_init_help" && exit $ac_status
1545 if $ac_init_version; then
1548 generated by GNU Autoconf 2.69
1550 Copyright (C) 2012 Free Software Foundation, Inc.
1551 This configure script is free software; the Free Software Foundation
1552 gives unlimited permission to copy, distribute and modify it.
1557 ## ------------------------ ##
1558 ## Autoconf initialization. ##
1559 ## ------------------------ ##
1561 # ac_fn_c_try_compile LINENO
1562 # --------------------------
1563 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1564 ac_fn_c_try_compile ()
1566 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1567 rm -f conftest.$ac_objext
1568 if { { ac_try="$ac_compile"
1570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1571 *) ac_try_echo=$ac_try;;
1573 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1574 $as_echo "$ac_try_echo"; } >&5
1575 (eval "$ac_compile") 2>conftest.err
1577 if test -s conftest.err; then
1578 grep -v '^ *+' conftest.err >conftest.er1
1579 cat conftest.er1 >&5
1580 mv -f conftest.er1 conftest.err
1582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1583 test $ac_status = 0; } && {
1584 test -z "$ac_c_werror_flag" ||
1585 test ! -s conftest.err
1586 } && test -s conftest.$ac_objext; then :
1589 $as_echo "$as_me: failed program was:" >&5
1590 sed 's/^/| /' conftest.$ac_ext >&5
1594 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1595 as_fn_set_status $ac_retval
1597 } # ac_fn_c_try_compile
1599 # ac_fn_c_try_link LINENO
1600 # -----------------------
1601 # Try to link conftest.$ac_ext, and return whether this succeeded.
1604 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1605 rm -f conftest.$ac_objext conftest$ac_exeext
1606 if { { ac_try="$ac_link"
1608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1609 *) ac_try_echo=$ac_try;;
1611 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1612 $as_echo "$ac_try_echo"; } >&5
1613 (eval "$ac_link") 2>conftest.err
1615 if test -s conftest.err; then
1616 grep -v '^ *+' conftest.err >conftest.er1
1617 cat conftest.er1 >&5
1618 mv -f conftest.er1 conftest.err
1620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1621 test $ac_status = 0; } && {
1622 test -z "$ac_c_werror_flag" ||
1623 test ! -s conftest.err
1624 } && test -s conftest$ac_exeext && {
1625 test "$cross_compiling" = yes ||
1626 test -x conftest$ac_exeext
1630 $as_echo "$as_me: failed program was:" >&5
1631 sed 's/^/| /' conftest.$ac_ext >&5
1635 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1636 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1637 # interfere with the next link command; also delete a directory that is
1638 # left behind by Apple's compiler. We do this before executing the actions.
1639 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1640 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1641 as_fn_set_status $ac_retval
1643 } # ac_fn_c_try_link
1645 # ac_fn_c_try_cpp LINENO
1646 # ----------------------
1647 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1650 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1651 if { { ac_try="$ac_cpp conftest.$ac_ext"
1653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1654 *) ac_try_echo=$ac_try;;
1656 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1657 $as_echo "$ac_try_echo"; } >&5
1658 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1660 if test -s conftest.err; then
1661 grep -v '^ *+' conftest.err >conftest.er1
1662 cat conftest.er1 >&5
1663 mv -f conftest.er1 conftest.err
1665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1666 test $ac_status = 0; } > conftest.i && {
1667 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1668 test ! -s conftest.err
1672 $as_echo "$as_me: failed program was:" >&5
1673 sed 's/^/| /' conftest.$ac_ext >&5
1677 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1678 as_fn_set_status $ac_retval
1682 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1683 # -------------------------------------------------------
1684 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1685 # the include files in INCLUDES and setting the cache variable VAR
1687 ac_fn_c_check_header_mongrel ()
1689 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1690 if eval \${$3+:} false; then :
1691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1692 $as_echo_n "checking for $2... " >&6; }
1693 if eval \${$3+:} false; then :
1694 $as_echo_n "(cached) " >&6
1697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1698 $as_echo "$ac_res" >&6; }
1700 # Is the header compilable?
1701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1702 $as_echo_n "checking $2 usability... " >&6; }
1703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1704 /* end confdefs.h. */
1708 if ac_fn_c_try_compile "$LINENO"; then :
1709 ac_header_compiler=yes
1711 ac_header_compiler=no
1713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1715 $as_echo "$ac_header_compiler" >&6; }
1717 # Is the header present?
1718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1719 $as_echo_n "checking $2 presence... " >&6; }
1720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1721 /* end confdefs.h. */
1724 if ac_fn_c_try_cpp "$LINENO"; then :
1725 ac_header_preproc=yes
1727 ac_header_preproc=no
1729 rm -f conftest.err conftest.i conftest.$ac_ext
1730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1731 $as_echo "$ac_header_preproc" >&6; }
1733 # So? What about this header?
1734 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1737 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1738 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1739 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1743 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1744 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1745 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1746 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1747 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1748 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1749 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1750 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1751 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1755 $as_echo_n "checking for $2... " >&6; }
1756 if eval \${$3+:} false; then :
1757 $as_echo_n "(cached) " >&6
1759 eval "$3=\$ac_header_compiler"
1762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1763 $as_echo "$ac_res" >&6; }
1765 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1767 } # ac_fn_c_check_header_mongrel
1769 # ac_fn_c_try_run LINENO
1770 # ----------------------
1771 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1772 # that executables *can* be run.
1775 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1776 if { { ac_try="$ac_link"
1778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1779 *) ac_try_echo=$ac_try;;
1781 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1782 $as_echo "$ac_try_echo"; } >&5
1783 (eval "$ac_link") 2>&5
1785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1786 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1787 { { case "(($ac_try" in
1788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1789 *) ac_try_echo=$ac_try;;
1791 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1792 $as_echo "$ac_try_echo"; } >&5
1793 (eval "$ac_try") 2>&5
1795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1796 test $ac_status = 0; }; }; then :
1799 $as_echo "$as_me: program exited with status $ac_status" >&5
1800 $as_echo "$as_me: failed program was:" >&5
1801 sed 's/^/| /' conftest.$ac_ext >&5
1803 ac_retval=$ac_status
1805 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1806 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1807 as_fn_set_status $ac_retval
1811 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1812 # -------------------------------------------------------
1813 # Tests whether HEADER exists and can be compiled using the include files in
1814 # INCLUDES, setting the cache variable VAR accordingly.
1815 ac_fn_c_check_header_compile ()
1817 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1819 $as_echo_n "checking for $2... " >&6; }
1820 if eval \${$3+:} false; then :
1821 $as_echo_n "(cached) " >&6
1823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1824 /* end confdefs.h. */
1828 if ac_fn_c_try_compile "$LINENO"; then :
1833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1837 $as_echo "$ac_res" >&6; }
1838 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1840 } # ac_fn_c_check_header_compile
1842 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1843 # ---------------------------------------------
1844 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1846 ac_fn_c_check_decl ()
1848 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1849 as_decl_name=`echo $2|sed 's/ *(.*//'`
1850 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1852 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1853 if eval \${$3+:} false; then :
1854 $as_echo_n "(cached) " >&6
1856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1857 /* end confdefs.h. */
1862 #ifndef $as_decl_name
1864 (void) $as_decl_use;
1866 (void) $as_decl_name;
1874 if ac_fn_c_try_compile "$LINENO"; then :
1879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1883 $as_echo "$ac_res" >&6; }
1884 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1886 } # ac_fn_c_check_decl
1888 # ac_fn_c_check_func LINENO FUNC VAR
1889 # ----------------------------------
1890 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1891 ac_fn_c_check_func ()
1893 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1895 $as_echo_n "checking for $2... " >&6; }
1896 if eval \${$3+:} false; then :
1897 $as_echo_n "(cached) " >&6
1899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1900 /* end confdefs.h. */
1901 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1902 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1903 #define $2 innocuous_$2
1905 /* System header to define __stub macros and hopefully few prototypes,
1906 which can conflict with char $2 (); below.
1907 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1908 <limits.h> exists even on freestanding compilers. */
1911 # include <limits.h>
1913 # include <assert.h>
1918 /* Override any GCC internal prototype to avoid an error.
1919 Use char because int might match the return type of a GCC
1920 builtin and then its argument prototype would still apply. */
1925 /* The GNU C library defines this for functions which it implements
1926 to always fail with ENOSYS. Some functions are actually named
1927 something starting with __ and the normal name is an alias. */
1928 #if defined __stub_$2 || defined __stub___$2
1940 if ac_fn_c_try_link "$LINENO"; then :
1945 rm -f core conftest.err conftest.$ac_objext \
1946 conftest$ac_exeext conftest.$ac_ext
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1950 $as_echo "$ac_res" >&6; }
1951 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1953 } # ac_fn_c_check_func
1954 cat >config.log <<_ACEOF
1955 This file contains any messages produced by compilers while
1956 running configure, to aid debugging if configure makes a mistake.
1958 It was created by $as_me, which was
1959 generated by GNU Autoconf 2.69. Invocation command line was
1971 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1972 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1973 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1974 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1975 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1977 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1978 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1980 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1981 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1982 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1983 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1984 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1985 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1986 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1994 test -z "$as_dir" && as_dir=.
1995 $as_echo "PATH: $as_dir"
2011 # Keep a trace of the command line.
2012 # Strip out --no-create and --no-recursion so they do not pile up.
2013 # Strip out --silent because we don't want to record it for future runs.
2014 # Also quote any args containing shell meta-characters.
2015 # Make two passes to allow for proper duplicate-argument suppression.
2019 ac_must_keep_next=false
2025 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2026 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2027 | -silent | --silent | --silen | --sile | --sil)
2030 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2033 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2035 as_fn_append ac_configure_args1 " '$ac_arg'"
2036 if test $ac_must_keep_next = true; then
2037 ac_must_keep_next=false # Got value, back to normal.
2040 *=* | --config-cache | -C | -disable-* | --disable-* \
2041 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2042 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2043 | -with-* | --with-* | -without-* | --without-* | --x)
2044 case "$ac_configure_args0 " in
2045 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2048 -* ) ac_must_keep_next=true ;;
2051 as_fn_append ac_configure_args " '$ac_arg'"
2056 { ac_configure_args0=; unset ac_configure_args0;}
2057 { ac_configure_args1=; unset ac_configure_args1;}
2059 # When interrupted or exit'd, cleanup temporary files, and complete
2060 # config.log. We remove comments because anyway the quotes in there
2061 # would cause problems or look ugly.
2062 # WARNING: Use '\'' to represent an apostrophe within the trap.
2063 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2064 trap 'exit_status=$?
2065 # Save into config.log some information that might help in debugging.
2069 $as_echo "## ---------------- ##
2070 ## Cache variables. ##
2071 ## ---------------- ##"
2073 # The following way of writing the cache mishandles newlines in values,
2075 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2076 eval ac_val=\$$ac_var
2080 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2081 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2084 _ | IFS | as_nl) ;; #(
2085 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2086 *) { eval $ac_var=; unset $ac_var;} ;;
2091 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2092 *${as_nl}ac_space=\ *)
2094 "s/'\''/'\''\\\\'\'''\''/g;
2095 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2098 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2105 $as_echo "## ----------------- ##
2106 ## Output variables. ##
2107 ## ----------------- ##"
2109 for ac_var in $ac_subst_vars
2111 eval ac_val=\$$ac_var
2113 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2115 $as_echo "$ac_var='\''$ac_val'\''"
2119 if test -n "$ac_subst_files"; then
2120 $as_echo "## ------------------- ##
2121 ## File substitutions. ##
2122 ## ------------------- ##"
2124 for ac_var in $ac_subst_files
2126 eval ac_val=\$$ac_var
2128 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2130 $as_echo "$ac_var='\''$ac_val'\''"
2135 if test -s confdefs.h; then
2136 $as_echo "## ----------- ##
2143 test "$ac_signal" != 0 &&
2144 $as_echo "$as_me: caught signal $ac_signal"
2145 $as_echo "$as_me: exit $exit_status"
2147 rm -f core *.core core.conftest.* &&
2148 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2151 for ac_signal in 1 2 13 15; do
2152 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2156 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2157 rm -f -r conftest* confdefs.h
2159 $as_echo "/* confdefs.h */" > confdefs.h
2161 # Predefined preprocessor variables.
2163 cat >>confdefs.h <<_ACEOF
2164 #define PACKAGE_NAME "$PACKAGE_NAME"
2167 cat >>confdefs.h <<_ACEOF
2168 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2171 cat >>confdefs.h <<_ACEOF
2172 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2175 cat >>confdefs.h <<_ACEOF
2176 #define PACKAGE_STRING "$PACKAGE_STRING"
2179 cat >>confdefs.h <<_ACEOF
2180 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2183 cat >>confdefs.h <<_ACEOF
2184 #define PACKAGE_URL "$PACKAGE_URL"
2188 # Let the site file select an alternate cache file if it wants to.
2189 # Prefer an explicitly selected file to automatically selected ones.
2192 if test -n "$CONFIG_SITE"; then
2193 # We do not want a PATH search for config.site.
2194 case $CONFIG_SITE in #((
2195 -*) ac_site_file1=./$CONFIG_SITE;;
2196 */*) ac_site_file1=$CONFIG_SITE;;
2197 *) ac_site_file1=./$CONFIG_SITE;;
2199 elif test "x$prefix" != xNONE; then
2200 ac_site_file1=$prefix/share/config.site
2201 ac_site_file2=$prefix/etc/config.site
2203 ac_site_file1=$ac_default_prefix/share/config.site
2204 ac_site_file2=$ac_default_prefix/etc/config.site
2206 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2208 test "x$ac_site_file" = xNONE && continue
2209 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2210 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2211 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2212 sed 's/^/| /' "$ac_site_file" >&5
2214 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2215 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2216 as_fn_error $? "failed to load site script $ac_site_file
2217 See \`config.log' for more details" "$LINENO" 5; }
2221 if test -r "$cache_file"; then
2222 # Some versions of bash will fail to source /dev/null (special files
2223 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2224 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2225 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2226 $as_echo "$as_me: loading cache $cache_file" >&6;}
2228 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2229 *) . "./$cache_file";;
2233 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2234 $as_echo "$as_me: creating cache $cache_file" >&6;}
2238 # Check that the precious variables saved in the cache have kept the same
2240 ac_cache_corrupted=false
2241 for ac_var in $ac_precious_vars; do
2242 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2243 eval ac_new_set=\$ac_env_${ac_var}_set
2244 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2245 eval ac_new_val=\$ac_env_${ac_var}_value
2246 case $ac_old_set,$ac_new_set in
2248 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2249 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2250 ac_cache_corrupted=: ;;
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2253 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2254 ac_cache_corrupted=: ;;
2257 if test "x$ac_old_val" != "x$ac_new_val"; then
2258 # differences in whitespace do not lead to failure.
2259 ac_old_val_w=`echo x $ac_old_val`
2260 ac_new_val_w=`echo x $ac_new_val`
2261 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2262 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2263 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2264 ac_cache_corrupted=:
2266 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2267 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2268 eval $ac_var=\$ac_old_val
2270 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2271 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2273 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2276 # Pass precious variables to config.status.
2277 if test "$ac_new_set" = set; then
2279 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2280 *) ac_arg=$ac_var=$ac_new_val ;;
2282 case " $ac_configure_args " in
2283 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2284 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2288 if $ac_cache_corrupted; then
2289 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2290 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2291 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2292 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2293 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2295 ## -------------------- ##
2296 ## Main body of script. ##
2297 ## -------------------- ##
2300 ac_cpp='$CPP $CPPFLAGS'
2301 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2302 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2303 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2307 ac_config_headers="$ac_config_headers include/private/apu_config.h"
2310 for ac_dir in build "$srcdir"/build; do
2311 if test -f "$ac_dir/install-sh"; then
2313 ac_install_sh="$ac_aux_dir/install-sh -c"
2315 elif test -f "$ac_dir/install.sh"; then
2317 ac_install_sh="$ac_aux_dir/install.sh -c"
2319 elif test -f "$ac_dir/shtool"; then
2321 ac_install_sh="$ac_aux_dir/shtool install -c"
2325 if test -z "$ac_aux_dir"; then
2326 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build \"$srcdir\"/build" "$LINENO" 5
2329 # These three variables are undocumented and unsupported,
2330 # and are intended to be withdrawn in a future Autoconf release.
2331 # They can cause serious problems if a builder's source tree is in a directory
2332 # whose full name contains unusual characters.
2333 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2334 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2335 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2514 cat >config.nice<<EOF
2517 # Created by configure
2520 if test -n "$CC"; then
2521 echo "CC=\"$CC\"; export CC" >> config.nice
2523 if test -n "$CFLAGS"; then
2524 echo "CFLAGS=\"$CFLAGS\"; export CFLAGS" >> config.nice
2526 if test -n "$CPPFLAGS"; then
2527 echo "CPPFLAGS=\"$CPPFLAGS\"; export CPPFLAGS" >> config.nice
2529 if test -n "$LDFLAGS"; then
2530 echo "LDFLAGS=\"$LDFLAGS\"; export LDFLAGS" >> config.nice
2532 if test -n "$LTFLAGS"; then
2533 echo "LTFLAGS=\"$LTFLAGS\"; export LTFLAGS" >> config.nice
2535 if test -n "$LIBS"; then
2536 echo "LIBS=\"$LIBS\"; export LIBS" >> config.nice
2538 if test -n "$INCLUDES"; then
2539 echo "INCLUDES=\"$INCLUDES\"; export INCLUDES" >> config.nice
2541 if test -n "$NOTEST_CFLAGS"; then
2542 echo "NOTEST_CFLAGS=\"$NOTEST_CFLAGS\"; export NOTEST_CFLAGS" >> config.nice
2544 if test -n "$NOTEST_CPPFLAGS"; then
2545 echo "NOTEST_CPPFLAGS=\"$NOTEST_CPPFLAGS\"; export NOTEST_CPPFLAGS" >> config.nice
2547 if test -n "$NOTEST_LDFLAGS"; then
2548 echo "NOTEST_LDFLAGS=\"$NOTEST_LDFLAGS\"; export NOTEST_LDFLAGS" >> config.nice
2550 if test -n "$NOTEST_LIBS"; then
2551 echo "NOTEST_LIBS=\"$NOTEST_LIBS\"; export NOTEST_LIBS" >> config.nice
2554 # Retrieve command-line arguments.
2555 eval "set x $0 $ac_configure_args"
2563 while test "x${ap_cur}" != "x${ap_last}";
2566 ap_cur=`eval "echo ${ap_cur}"`
2570 echo "\"$arg\" \\" >> config.nice
2572 echo '"$@"' >> config.nice
2573 chmod +x config.nice
2577 abs_srcdir=`(cd $srcdir && pwd)`
2580 if test "$abs_builddir" != "$abs_srcdir"; then
2582 APU_CONFIG_LOCATION=build
2584 APU_CONFIG_LOCATION=source
2589 # Make sure we can run config.sub.
2590 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2591 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2594 $as_echo_n "checking build system type... " >&6; }
2595 if ${ac_cv_build+:} false; then :
2596 $as_echo_n "(cached) " >&6
2598 ac_build_alias=$build_alias
2599 test "x$ac_build_alias" = x &&
2600 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2601 test "x$ac_build_alias" = x &&
2602 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2603 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2604 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2608 $as_echo "$ac_cv_build" >&6; }
2609 case $ac_cv_build in
2611 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2614 ac_save_IFS=$IFS; IFS='-'
2620 # Remember, the first character of IFS is used to create $*,
2621 # except with old shells:
2624 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2628 $as_echo_n "checking host system type... " >&6; }
2629 if ${ac_cv_host+:} false; then :
2630 $as_echo_n "(cached) " >&6
2632 if test "x$host_alias" = x; then
2633 ac_cv_host=$ac_cv_build
2635 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2636 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2641 $as_echo "$ac_cv_host" >&6; }
2644 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2647 ac_save_IFS=$IFS; IFS='-'
2653 # Remember, the first character of IFS is used to create $*,
2654 # except with old shells:
2657 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2661 $as_echo_n "checking target system type... " >&6; }
2662 if ${ac_cv_target+:} false; then :
2663 $as_echo_n "(cached) " >&6
2665 if test "x$target_alias" = x; then
2666 ac_cv_target=$ac_cv_host
2668 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2669 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2674 $as_echo "$ac_cv_target" >&6; }
2675 case $ac_cv_target in
2677 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2679 target=$ac_cv_target
2680 ac_save_IFS=$IFS; IFS='-'
2686 # Remember, the first character of IFS is used to create $*,
2687 # except with old shells:
2690 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2693 # The aliases save the names the user supplied, while $host etc.
2694 # will get canonicalized.
2695 test -n "$target_alias" &&
2696 test "$program_prefix$program_suffix$program_transform_name" = \
2698 program_prefix=${target_alias}-
2701 # Find a good install program. We prefer a C program (faster),
2702 # so one script is as good as another. But avoid the broken or
2703 # incompatible versions:
2704 # SysV /etc/install, /usr/sbin/install
2705 # SunOS /usr/etc/install
2706 # IRIX /sbin/install
2708 # AmigaOS /C/install, which installs bootblocks on floppy discs
2709 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2710 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2711 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2712 # OS/2's system install, which has a completely different semantic
2713 # ./install, which can be erroneously created by make from ./install.sh.
2714 # Reject install programs that cannot install multiple files.
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2716 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2717 if test -z "$INSTALL"; then
2718 if ${ac_cv_path_install+:} false; then :
2719 $as_echo_n "(cached) " >&6
2721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2725 test -z "$as_dir" && as_dir=.
2726 # Account for people who put trailing slashes in PATH elements.
2727 case $as_dir/ in #((
2728 ./ | .// | /[cC]/* | \
2729 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2730 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2733 # OSF1 and SCO ODT 3.0 have their own names for install.
2734 # Don't use installbsd from OSF since it installs stuff as root
2736 for ac_prog in ginstall scoinst install; do
2737 for ac_exec_ext in '' $ac_executable_extensions; do
2738 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2739 if test $ac_prog = install &&
2740 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2741 # AIX install. It has an incompatible calling convention.
2743 elif test $ac_prog = install &&
2744 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2745 # program-specific install script used by HP pwplus--don't use.
2748 rm -rf conftest.one conftest.two conftest.dir
2749 echo one > conftest.one
2750 echo two > conftest.two
2752 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2753 test -s conftest.one && test -s conftest.two &&
2754 test -s conftest.dir/conftest.one &&
2755 test -s conftest.dir/conftest.two
2757 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2770 rm -rf conftest.one conftest.two conftest.dir
2773 if test "${ac_cv_path_install+set}" = set; then
2774 INSTALL=$ac_cv_path_install
2776 # As a last resort, use the slow shell script. Don't cache a
2777 # value for INSTALL within a source directory, because that will
2778 # break other packages using the cache if that directory is
2779 # removed, or if the value is a relative name.
2780 INSTALL=$ac_install_sh
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2784 $as_echo "$INSTALL" >&6; }
2786 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2787 # It thinks the first close brace ends the variable substitution.
2788 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2790 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2792 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2795 # Use -no-install or -no-fast-install to link the test
2796 # programs on all platforms but Darwin, where it would cause
2797 # the programs to be linked against installed versions of
2798 # libapr instead of those just built.
2804 LT_NO_INSTALL="-no-fast-install"
2807 LT_NO_INSTALL="-no-install"
2812 top_builddir="$abs_builddir"
2818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mkdir -p" >&5
2819 $as_echo_n "checking for working mkdir -p... " >&6; }
2820 if ${ac_cv_mkdir_p+:} false; then :
2821 $as_echo_n "(cached) " >&6
2824 test -d conftestdir && rm -rf conftestdir
2825 mkdir -p conftestdir/somedir >/dev/null 2>&1
2826 if test -d conftestdir/somedir; then
2834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mkdir_p" >&5
2835 $as_echo "$ac_cv_mkdir_p" >&6; }
2836 if test "$ac_cv_mkdir_p" = "yes"; then
2839 mkdir_p="$abs_srcdir/build/mkdir.sh"
2843 get_version="$abs_srcdir/build/get-version.sh"
2844 version_hdr="$abs_srcdir/include/apu_version.h"
2845 APRUTIL_MAJOR_VERSION="`$get_version major $version_hdr APU`"
2846 APRUTIL_DOTTED_VERSION="`$get_version all $version_hdr APU`"
2848 APU_LTVERSION="-version-info `$get_version libtool $version_hdr APU`"
2854 echo "APR-util Version: ${APRUTIL_DOTTED_VERSION}"
2857 # Check whether --enable-layout was given.
2858 if test "${enable_layout+set}" = set; then :
2859 enableval=$enable_layout;
2865 if test -z "$LAYOUT"; then
2869 if test ! -f $srcdir/config.layout; then
2870 echo "** Error: Layout file $srcdir/config.layout not found"
2871 echo "** Error: Cannot use undefined layout '$LAYOUT'"
2874 # Catch layout names including a slash which will otherwise
2875 # confuse the heck out of the sed script.
2878 echo "** Error: $LAYOUT is not a valid layout name"
2881 pldconf=./config.pld
2883 sed -e "1s/[ ]*<[lL]ayout[ ]*$LAYOUT[ ]*>[ ]*//;1t" \
2884 -e "1,/[ ]*<[lL]ayout[ ]*$LAYOUT[ ]*>[ ]*/d" \
2885 -e '/[ ]*<\/Layout>[ ]*/,$d' \
2887 -e "s/:[ ]*/=\'/g" \
2889 $srcdir/config.layout > $pldconf
2891 if test ! -s $pldconf; then
2892 echo "** Error: unable to find layout $layout_name"
2897 for var in prefix exec_prefix bindir sbindir libexecdir mandir \
2898 sysconfdir datadir includedir localstatedir runtimedir \
2899 logfiledir libdir installbuilddir libsuffix ; do
2900 eval "val=\"\$$var\""
2903 val=`echo $val | sed -e 's;\+$;;'`
2904 eval "$var=\"\$val\""
2911 val=`echo $val | sed -e 's:\(.\)/*$:\1:'`
2912 val=`echo $val | sed -e 's:[\$]\([a-z_]*\):$\1:g'`
2913 if test "$autosuffix" = "yes"; then
2914 if echo $val | grep apache >/dev/null; then
2919 if test "$addtarget" = "yes"; then
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for chosen layout" >&5
2929 $as_echo_n "checking for chosen layout... " >&6; }
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $layout_name" >&5
2931 $as_echo "$layout_name" >&6; }
2935 # Retrieve the command-line arguments. The eval is needed because
2936 # the arguments are quoted to preserve accuracy.
2937 eval "set x $ac_configure_args"
2941 # If the previous option needs an argument, assign it.
2942 if test -n "$ac_prev"; then
2943 eval "$ac_prev=\$ac_option"
2948 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
2952 -bindir | --bindir | --bindi | --bind | --bin | --bi)
2954 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
2955 bindir="$ac_optarg" ;;
2957 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
2959 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
2961 datadir="$ac_optarg" ;;
2963 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
2964 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
2965 | --exec | --exe | --ex)
2966 ac_prev=exec_prefix ;;
2967 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
2968 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
2969 | --exec=* | --exe=* | --ex=*)
2970 exec_prefix="$ac_optarg" ;;
2972 -includedir | --includedir | --includedi | --included | --include \
2973 | --includ | --inclu | --incl | --inc)
2974 ac_prev=includedir ;;
2975 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
2976 | --includ=* | --inclu=* | --incl=* | --inc=*)
2977 includedir="$ac_optarg" ;;
2979 -infodir | --infodir | --infodi | --infod | --info | --inf)
2981 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
2982 infodir="$ac_optarg" ;;
2984 -libdir | --libdir | --libdi | --libd)
2986 -libdir=* | --libdir=* | --libdi=* | --libd=*)
2987 libdir="$ac_optarg" ;;
2989 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
2990 | --libexe | --libex | --libe)
2991 ac_prev=libexecdir ;;
2992 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
2993 | --libexe=* | --libex=* | --libe=*)
2994 libexecdir="$ac_optarg" ;;
2996 -localstatedir | --localstatedir | --localstatedi | --localstated \
2997 | --localstate | --localstat | --localsta | --localst \
2998 | --locals | --local | --loca | --loc | --lo)
2999 ac_prev=localstatedir ;;
3000 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
3001 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
3002 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
3003 localstatedir="$ac_optarg" ;;
3005 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
3007 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
3008 mandir="$ac_optarg" ;;
3010 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
3012 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
3013 prefix="$ac_optarg" ;;
3015 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
3017 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
3019 sbindir="$ac_optarg" ;;
3021 -sharedstatedir | --sharedstatedir | --sharedstatedi \
3022 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
3023 | --sharedst | --shareds | --shared | --share | --shar \
3025 ac_prev=sharedstatedir ;;
3026 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
3027 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
3028 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
3030 sharedstatedir="$ac_optarg" ;;
3032 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
3033 | --syscon | --sysco | --sysc | --sys | --sy)
3034 ac_prev=sysconfdir ;;
3035 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
3036 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
3037 sysconfdir="$ac_optarg" ;;
3042 # Be sure to have absolute paths.
3043 for ac_var in exec_prefix prefix
3045 eval ac_val=$`echo $ac_var`
3047 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
3048 *) as_fn_error $? "expected an absolute path for --$ac_var: $ac_val" "$LINENO" 5;;
3055 ac_cpp='$CPP $CPPFLAGS'
3056 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3057 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3058 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3059 if test -n "$ac_tool_prefix"; then
3060 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3061 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3063 $as_echo_n "checking for $ac_word... " >&6; }
3064 if ${ac_cv_prog_CC+:} false; then :
3065 $as_echo_n "(cached) " >&6
3067 if test -n "$CC"; then
3068 ac_cv_prog_CC="$CC" # Let the user override the test.
3070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3074 test -z "$as_dir" && as_dir=.
3075 for ac_exec_ext in '' $ac_executable_extensions; do
3076 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3077 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3088 if test -n "$CC"; then
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3090 $as_echo "$CC" >&6; }
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3093 $as_echo "no" >&6; }
3098 if test -z "$ac_cv_prog_CC"; then
3100 # Extract the first word of "gcc", so it can be a program name with args.
3101 set dummy gcc; ac_word=$2
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3103 $as_echo_n "checking for $ac_word... " >&6; }
3104 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3105 $as_echo_n "(cached) " >&6
3107 if test -n "$ac_ct_CC"; then
3108 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3114 test -z "$as_dir" && as_dir=.
3115 for ac_exec_ext in '' $ac_executable_extensions; do
3116 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3117 ac_cv_prog_ac_ct_CC="gcc"
3118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3127 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3128 if test -n "$ac_ct_CC"; then
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3130 $as_echo "$ac_ct_CC" >&6; }
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3133 $as_echo "no" >&6; }
3136 if test "x$ac_ct_CC" = x; then
3139 case $cross_compiling:$ac_tool_warned in
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3142 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3143 ac_tool_warned=yes ;;
3151 if test -z "$CC"; then
3152 if test -n "$ac_tool_prefix"; then
3153 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3154 set dummy ${ac_tool_prefix}cc; ac_word=$2
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3156 $as_echo_n "checking for $ac_word... " >&6; }
3157 if ${ac_cv_prog_CC+:} false; then :
3158 $as_echo_n "(cached) " >&6
3160 if test -n "$CC"; then
3161 ac_cv_prog_CC="$CC" # Let the user override the test.
3163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3167 test -z "$as_dir" && as_dir=.
3168 for ac_exec_ext in '' $ac_executable_extensions; do
3169 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3170 ac_cv_prog_CC="${ac_tool_prefix}cc"
3171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3181 if test -n "$CC"; then
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3183 $as_echo "$CC" >&6; }
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3186 $as_echo "no" >&6; }
3192 if test -z "$CC"; then
3193 # Extract the first word of "cc", so it can be a program name with args.
3194 set dummy cc; ac_word=$2
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3196 $as_echo_n "checking for $ac_word... " >&6; }
3197 if ${ac_cv_prog_CC+:} false; then :
3198 $as_echo_n "(cached) " >&6
3200 if test -n "$CC"; then
3201 ac_cv_prog_CC="$CC" # Let the user override the test.
3204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3208 test -z "$as_dir" && as_dir=.
3209 for ac_exec_ext in '' $ac_executable_extensions; do
3210 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3211 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3212 ac_prog_rejected=yes
3216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3223 if test $ac_prog_rejected = yes; then
3224 # We found a bogon in the path, so make sure we never use it.
3225 set dummy $ac_cv_prog_CC
3227 if test $# != 0; then
3228 # We chose a different compiler from the bogus one.
3229 # However, it has the same basename, so the bogon will be chosen
3230 # first if we set CC to just the basename; use the full file name.
3232 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3238 if test -n "$CC"; then
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3240 $as_echo "$CC" >&6; }
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3243 $as_echo "no" >&6; }
3248 if test -z "$CC"; then
3249 if test -n "$ac_tool_prefix"; then
3250 for ac_prog in cl.exe
3252 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3253 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3255 $as_echo_n "checking for $ac_word... " >&6; }
3256 if ${ac_cv_prog_CC+:} false; then :
3257 $as_echo_n "(cached) " >&6
3259 if test -n "$CC"; then
3260 ac_cv_prog_CC="$CC" # Let the user override the test.
3262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3266 test -z "$as_dir" && as_dir=.
3267 for ac_exec_ext in '' $ac_executable_extensions; do
3268 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3269 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3280 if test -n "$CC"; then
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3282 $as_echo "$CC" >&6; }
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3285 $as_echo "no" >&6; }
3289 test -n "$CC" && break
3292 if test -z "$CC"; then
3294 for ac_prog in cl.exe
3296 # Extract the first word of "$ac_prog", so it can be a program name with args.
3297 set dummy $ac_prog; ac_word=$2
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3299 $as_echo_n "checking for $ac_word... " >&6; }
3300 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3301 $as_echo_n "(cached) " >&6
3303 if test -n "$ac_ct_CC"; then
3304 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3310 test -z "$as_dir" && as_dir=.
3311 for ac_exec_ext in '' $ac_executable_extensions; do
3312 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3313 ac_cv_prog_ac_ct_CC="$ac_prog"
3314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3323 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3324 if test -n "$ac_ct_CC"; then
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3326 $as_echo "$ac_ct_CC" >&6; }
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3329 $as_echo "no" >&6; }
3333 test -n "$ac_ct_CC" && break
3336 if test "x$ac_ct_CC" = x; then
3339 case $cross_compiling:$ac_tool_warned in
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3342 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3343 ac_tool_warned=yes ;;
3352 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3353 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3354 as_fn_error $? "no acceptable C compiler found in \$PATH
3355 See \`config.log' for more details" "$LINENO" 5; }
3357 # Provide some information about the compiler.
3358 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3361 for ac_option in --version -v -V -qversion; do
3362 { { ac_try="$ac_compiler $ac_option >&5"
3364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3365 *) ac_try_echo=$ac_try;;
3367 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3368 $as_echo "$ac_try_echo"; } >&5
3369 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3371 if test -s conftest.err; then
3373 ... rest of stderr output deleted ...
3374 10q' conftest.err >conftest.er1
3375 cat conftest.er1 >&5
3377 rm -f conftest.er1 conftest.err
3378 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3379 test $ac_status = 0; }
3382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3383 /* end confdefs.h. */
3393 ac_clean_files_save=$ac_clean_files
3394 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3395 # Try to create an executable without -o first, disregard a.out.
3396 # It will help us diagnose broken compilers, and finding out an intuition
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3399 $as_echo_n "checking whether the C compiler works... " >&6; }
3400 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3402 # The possible output files:
3403 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3406 for ac_file in $ac_files
3409 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3410 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3415 if { { ac_try="$ac_link_default"
3417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3418 *) ac_try_echo=$ac_try;;
3420 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3421 $as_echo "$ac_try_echo"; } >&5
3422 (eval "$ac_link_default") 2>&5
3424 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3425 test $ac_status = 0; }; then :
3426 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3427 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3428 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3429 # so that the user can short-circuit this test for compilers unknown to
3431 for ac_file in $ac_files ''
3433 test -f "$ac_file" || continue
3435 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3438 # We found the default executable, but exeext='' is most
3442 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3444 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3446 # We set ac_cv_exeext here because the later test for it is not
3447 # safe: cross compilers may not add the suffix if given an `-o'
3448 # argument, so we may need to know it at that point already.
3449 # Even if this section looks crufty: it has the advantage of
3456 test "$ac_cv_exeext" = no && ac_cv_exeext=
3461 if test -z "$ac_file"; then :
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3463 $as_echo "no" >&6; }
3464 $as_echo "$as_me: failed program was:" >&5
3465 sed 's/^/| /' conftest.$ac_ext >&5
3467 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3468 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3469 as_fn_error 77 "C compiler cannot create executables
3470 See \`config.log' for more details" "$LINENO" 5; }
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3473 $as_echo "yes" >&6; }
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3476 $as_echo_n "checking for C compiler default output file name... " >&6; }
3477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3478 $as_echo "$ac_file" >&6; }
3479 ac_exeext=$ac_cv_exeext
3481 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3482 ac_clean_files=$ac_clean_files_save
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3484 $as_echo_n "checking for suffix of executables... " >&6; }
3485 if { { ac_try="$ac_link"
3487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3488 *) ac_try_echo=$ac_try;;
3490 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3491 $as_echo "$ac_try_echo"; } >&5
3492 (eval "$ac_link") 2>&5
3494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3495 test $ac_status = 0; }; then :
3496 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3497 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3498 # work properly (i.e., refer to `conftest.exe'), while it won't with
3500 for ac_file in conftest.exe conftest conftest.*; do
3501 test -f "$ac_file" || continue
3503 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3504 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3510 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3511 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3512 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3513 See \`config.log' for more details" "$LINENO" 5; }
3515 rm -f conftest conftest$ac_cv_exeext
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3517 $as_echo "$ac_cv_exeext" >&6; }
3519 rm -f conftest.$ac_ext
3520 EXEEXT=$ac_cv_exeext
3522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3523 /* end confdefs.h. */
3528 FILE *f = fopen ("conftest.out", "w");
3529 return ferror (f) || fclose (f) != 0;
3535 ac_clean_files="$ac_clean_files conftest.out"
3536 # Check that the compiler produces executables we can run. If not, either
3537 # the compiler is broken, or we cross compile.
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3539 $as_echo_n "checking whether we are cross compiling... " >&6; }
3540 if test "$cross_compiling" != yes; then
3541 { { ac_try="$ac_link"
3543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3544 *) ac_try_echo=$ac_try;;
3546 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3547 $as_echo "$ac_try_echo"; } >&5
3548 (eval "$ac_link") 2>&5
3550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3551 test $ac_status = 0; }
3552 if { ac_try='./conftest$ac_cv_exeext'
3553 { { case "(($ac_try" in
3554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3555 *) ac_try_echo=$ac_try;;
3557 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3558 $as_echo "$ac_try_echo"; } >&5
3559 (eval "$ac_try") 2>&5
3561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3562 test $ac_status = 0; }; }; then
3565 if test "$cross_compiling" = maybe; then
3568 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3569 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3570 as_fn_error $? "cannot run C compiled programs.
3571 If you meant to cross compile, use \`--host'.
3572 See \`config.log' for more details" "$LINENO" 5; }
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3577 $as_echo "$cross_compiling" >&6; }
3579 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3580 ac_clean_files=$ac_clean_files_save
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3582 $as_echo_n "checking for suffix of object files... " >&6; }
3583 if ${ac_cv_objext+:} false; then :
3584 $as_echo_n "(cached) " >&6
3586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3587 /* end confdefs.h. */
3597 rm -f conftest.o conftest.obj
3598 if { { ac_try="$ac_compile"
3600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3601 *) ac_try_echo=$ac_try;;
3603 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3604 $as_echo "$ac_try_echo"; } >&5
3605 (eval "$ac_compile") 2>&5
3607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3608 test $ac_status = 0; }; then :
3609 for ac_file in conftest.o conftest.obj conftest.*; do
3610 test -f "$ac_file" || continue;
3612 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3613 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3618 $as_echo "$as_me: failed program was:" >&5
3619 sed 's/^/| /' conftest.$ac_ext >&5
3621 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3622 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3623 as_fn_error $? "cannot compute suffix of object files: cannot compile
3624 See \`config.log' for more details" "$LINENO" 5; }
3626 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3629 $as_echo "$ac_cv_objext" >&6; }
3630 OBJEXT=$ac_cv_objext
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3633 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3634 if ${ac_cv_c_compiler_gnu+:} false; then :
3635 $as_echo_n "(cached) " >&6
3637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3638 /* end confdefs.h. */
3651 if ac_fn_c_try_compile "$LINENO"; then :
3656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3657 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3661 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3662 if test $ac_compiler_gnu = yes; then
3667 ac_test_CFLAGS=${CFLAGS+set}
3668 ac_save_CFLAGS=$CFLAGS
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3670 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3671 if ${ac_cv_prog_cc_g+:} false; then :
3672 $as_echo_n "(cached) " >&6
3674 ac_save_c_werror_flag=$ac_c_werror_flag
3675 ac_c_werror_flag=yes
3678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3679 /* end confdefs.h. */
3689 if ac_fn_c_try_compile "$LINENO"; then :
3693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3694 /* end confdefs.h. */
3704 if ac_fn_c_try_compile "$LINENO"; then :
3707 ac_c_werror_flag=$ac_save_c_werror_flag
3709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3710 /* end confdefs.h. */
3720 if ac_fn_c_try_compile "$LINENO"; then :
3723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3728 ac_c_werror_flag=$ac_save_c_werror_flag
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3731 $as_echo "$ac_cv_prog_cc_g" >&6; }
3732 if test "$ac_test_CFLAGS" = set; then
3733 CFLAGS=$ac_save_CFLAGS
3734 elif test $ac_cv_prog_cc_g = yes; then
3735 if test "$GCC" = yes; then
3741 if test "$GCC" = yes; then
3747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3748 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3749 if ${ac_cv_prog_cc_c89+:} false; then :
3750 $as_echo_n "(cached) " >&6
3752 ac_cv_prog_cc_c89=no
3754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3755 /* end confdefs.h. */
3759 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3760 struct buf { int x; };
3761 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3762 static char *e (p, i)
3768 static char *f (char * (*g) (char **, int), char **p, ...)
3773 s = g (p, va_arg (v,int));
3778 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3779 function prototypes and stuff, but not '\xHH' hex character constants.
3780 These don't provoke an error unfortunately, instead are silently treated
3781 as 'x'. The following induces an error, until -std is added to get
3782 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3783 array size at least. It's necessary to write '\x00'==0 to get something
3784 that's true only with -std. */
3785 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3787 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3788 inside strings and character constants. */
3790 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3792 int test (int i, double x);
3793 struct s1 {int (*f) (int a);};
3794 struct s2 {int (*f) (double a);};
3795 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3801 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3806 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3807 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3809 CC="$ac_save_CC $ac_arg"
3810 if ac_fn_c_try_compile "$LINENO"; then :
3811 ac_cv_prog_cc_c89=$ac_arg
3813 rm -f core conftest.err conftest.$ac_objext
3814 test "x$ac_cv_prog_cc_c89" != "xno" && break
3816 rm -f conftest.$ac_ext
3821 case "x$ac_cv_prog_cc_c89" in
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3824 $as_echo "none needed" >&6; } ;;
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3827 $as_echo "unsupported" >&6; } ;;
3829 CC="$CC $ac_cv_prog_cc_c89"
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3831 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3833 if test "x$ac_cv_prog_cc_c89" != xno; then :
3838 ac_cpp='$CPP $CPPFLAGS'
3839 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3840 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3841 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3845 if test "x$apu_preload_done" != "xyes" ; then
3846 apu_preload_done="yes"
3848 echo "Applying apr-util hints file rules for $host"
3853 if test -z "$apu_crypt_threadsafe"; then
3854 test "x$silent" != "xyes" && echo " setting apu_crypt_threadsafe to \"1\""
3855 apu_crypt_threadsafe="1"
3861 if test -z "$apu_crypt_threadsafe"; then
3862 test "x$silent" != "xyes" && echo " setting apu_crypt_threadsafe to \"1\""
3863 apu_crypt_threadsafe="1"
3867 *-ibm-aix4*|*-ibm-aix5.1*)
3869 if test -z "$apu_iconv_inbuf_const"; then
3870 test "x$silent" != "xyes" && echo " setting apu_iconv_inbuf_const to \"1\""
3871 apu_iconv_inbuf_const="1"
3877 if test -z "$apu_crypt_threadsafe"; then
3878 test "x$silent" != "xyes" && echo " setting apu_crypt_threadsafe to \"1\""
3879 apu_crypt_threadsafe="1"
3885 if test -z "$apu_iconv_inbuf_const"; then
3886 test "x$silent" != "xyes" && echo " setting apu_iconv_inbuf_const to \"1\""
3887 apu_iconv_inbuf_const="1"
3891 if test -z "$apu_crypt_threadsafe"; then
3892 test "x$silent" != "xyes" && echo " setting apu_crypt_threadsafe to \"1\""
3893 apu_crypt_threadsafe="1"
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fdatasync" >&5
3897 $as_echo_n "checking for library containing fdatasync... " >&6; }
3898 if ${ac_cv_search_fdatasync+:} false; then :
3899 $as_echo_n "(cached) " >&6
3901 ac_func_search_save_LIBS=$LIBS
3902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3903 /* end confdefs.h. */
3905 /* Override any GCC internal prototype to avoid an error.
3906 Use char because int might match the return type of a GCC
3907 builtin and then its argument prototype would still apply. */
3915 return fdatasync ();
3920 for ac_lib in '' rt posix4; do
3921 if test -z "$ac_lib"; then
3922 ac_res="none required"
3925 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3927 if ac_fn_c_try_link "$LINENO"; then :
3928 ac_cv_search_fdatasync=$ac_res
3930 rm -f core conftest.err conftest.$ac_objext \
3932 if ${ac_cv_search_fdatasync+:} false; then :
3936 if ${ac_cv_search_fdatasync+:} false; then :
3939 ac_cv_search_fdatasync=no
3942 LIBS=$ac_func_search_save_LIBS
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fdatasync" >&5
3945 $as_echo "$ac_cv_search_fdatasync" >&6; }
3946 ac_res=$ac_cv_search_fdatasync
3947 if test "$ac_res" != no; then :
3948 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3955 if test -z "$apu_db_xtra_libs"; then
3956 test "x$silent" != "xyes" && echo " setting apu_db_xtra_libs to \"-lsocket\""
3957 apu_db_xtra_libs="-lsocket"
3968 APRUTIL_PRIV_INCLUDES="-I$top_builddir/include -I$top_builddir/include/private"
3969 if test -n "$USE_VPATH"; then
3970 APRUTIL_PRIV_INCLUDES="$APRUTIL_PRIV_INCLUDES -I$abs_srcdir/include/private -I$abs_srcdir/include"
3978 if test "$target_os" = "os2-emx"; then
3979 # Scripts don't pass test -x on OS/2
3985 acceptable_majors="1"
3987 apr_temp_acceptable_apr_config=""
3988 for apr_temp_major in $acceptable_majors
3990 case $apr_temp_major in
3992 apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-config"
3995 apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-$apr_temp_major-config"
4000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APR" >&5
4001 $as_echo_n "checking for APR... " >&6; }
4003 # Check whether --with-apr was given.
4004 if test "${with_apr+set}" = set; then :
4006 if test "$withval" = "no" || test "$withval" = "yes"; then
4007 as_fn_error $? "--with-apr requires a directory or file to be provided" "$LINENO" 5
4010 for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config
4012 for lookdir in "$withval/bin" "$withval"
4014 if $TEST_X "$lookdir/$apr_temp_apr_config_file"; then
4015 apr_config="$lookdir/$apr_temp_apr_config_file"
4023 if test "$apr_found" != "yes" && $TEST_X "$withval" && $withval --help > /dev/null 2>&1 ; then
4024 apr_config="$withval"
4028 if test "$apr_found" != "yes"; then
4029 as_fn_error $? "the --with-apr parameter is incorrect. It must specify an install prefix, a build directory, or an apr-config file." "$LINENO" 5
4034 if test -n "" && test "" = "1"; then
4035 for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config
4037 if $apr_temp_apr_config_file --help > /dev/null 2>&1 ; then
4038 apr_config="$apr_temp_apr_config_file"
4043 for lookdir in /usr /usr/local /usr/local/apr /opt/apr; do
4044 if $TEST_X "$lookdir/bin/$apr_temp_apr_config_file"; then
4045 apr_config="$lookdir/bin/$apr_temp_apr_config_file"
4054 if test "$apr_found" = "no" && test -d ""; then
4055 apr_temp_abs_srcdir="`cd \"\" && pwd`"
4056 apr_found="reconfig"
4057 apr_bundled_major="`sed -n '/#define.*APR_MAJOR_VERSION/s/^[^0-9]*\([0-9]*\).*$/\1/p' \"/include/apr_version.h\"`"
4058 case $apr_bundled_major in
4060 as_fn_error $? "failed to find major version of bundled APR" "$LINENO" 5
4063 apr_temp_apr_config_file="apr-config"
4066 apr_temp_apr_config_file="apr-$apr_bundled_major-config"
4070 apr_config="/$apr_temp_apr_config_file"
4072 apr_config="/$apr_temp_apr_config_file"
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_found" >&5
4080 $as_echo "$apr_found" >&6; }
4082 if test "$apr_found" = "no"; then
4083 as_fn_error $? "APR could not be located. Please use the --with-apr option." "$LINENO" 5
4086 APR_BUILD_DIR="`$apr_config --installbuilddir`"
4088 APR_BUILD_DIR="`cd $APR_BUILD_DIR && pwd`"
4090 APR_INCLUDES="`$apr_config --includes`"
4091 APR_LIBS="`$apr_config --link-libtool --libs`"
4092 APR_SO_EXT="`$apr_config --apr-so-ext`"
4093 APR_LIB_TARGET="`$apr_config --apr-lib-target`"
4101 if test -z "$CC"; then
4102 test "x$silent" != "xyes" && echo " setting CC to \"`$apr_config --cc`\""
4103 CC="`$apr_config --cc`"
4107 if test -z "$CPP"; then
4108 test "x$silent" != "xyes" && echo " setting CPP to \"`$apr_config --cpp`\""
4109 CPP="`$apr_config --cpp`"
4113 if test "x$CFLAGS" = "x"; then
4114 test "x$silent" != "xyes" && echo " setting CFLAGS to \"`$apr_config --cflags`\""
4115 CFLAGS="`$apr_config --cflags`"
4117 apr_addto_bugger="`$apr_config --cflags`"
4118 for i in $apr_addto_bugger; do
4119 apr_addto_duplicate="0"
4120 for j in $CFLAGS; do
4121 if test "x$i" = "x$j"; then
4122 apr_addto_duplicate="1"
4126 if test $apr_addto_duplicate = "0"; then
4127 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
4134 if test "x$CPPFLAGS" = "x"; then
4135 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"`$apr_config --cppflags`\""
4136 CPPFLAGS="`$apr_config --cppflags`"
4138 apr_addto_bugger="`$apr_config --cppflags`"
4139 for i in $apr_addto_bugger; do
4140 apr_addto_duplicate="0"
4141 for j in $CPPFLAGS; do
4142 if test "x$i" = "x$j"; then
4143 apr_addto_duplicate="1"
4147 if test $apr_addto_duplicate = "0"; then
4148 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
4149 CPPFLAGS="$CPPFLAGS $i"
4154 apr_shlibpath_var=`$apr_config --shlib-path-var`
4158 # Check whether --with-apr-iconv was given.
4159 if test "${with_apr_iconv+set}" = set; then :
4160 withval=$with_apr_iconv; apu_apriconv_dir="$withval"
4161 if test "$apu_apriconv_dir" != "no"; then
4162 if test -d "$apu_apriconv_dir"; then
4164 # save our work to this point; this allows the sub-package to use it
4165 cat >confcache <<\_ACEOF
4166 # This file is a shell script that caches the results of configure
4167 # tests run on this system so they can be shared between configure
4168 # scripts and configure runs, see configure's option --config-cache.
4169 # It is not useful on other systems. If it contains results you don't
4170 # want to keep, you may remove or edit it.
4172 # config.status only pays attention to the cache file if you give it
4173 # the --recheck option to rerun configure.
4175 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4176 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4181 # The following way of writing the cache mishandles newlines in values,
4182 # but we know of no workaround that is simple, portable, and efficient.
4183 # So, we kill variables containing newlines.
4184 # Ultrix sh set writes to stderr and can't be redirected directly,
4185 # and sets the high bit in the cache file unless we assign to the vars.
4187 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4188 eval ac_val=\$$ac_var
4192 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
4193 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4196 _ | IFS | as_nl) ;; #(
4197 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
4198 *) { eval $ac_var=; unset $ac_var;} ;;
4204 case $as_nl`(ac_space=' '; set) 2>&1` in #(
4205 *${as_nl}ac_space=\ *)
4206 # `set' does not quote correctly, so add quotes: double-quote
4207 # substitution turns \\\\ into \\, and sed turns \\ into \.
4210 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4213 # `set' quotes correctly as required by POSIX, so do not add quotes.
4214 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4223 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4225 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4227 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
4228 if test -w "$cache_file"; then
4229 if test "x$cache_file" != "x/dev/null"; then
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
4231 $as_echo "$as_me: updating cache $cache_file" >&6;}
4232 if test ! -f "$cache_file" || test -h "$cache_file"; then
4233 cat confcache >"$cache_file"
4235 case $cache_file in #(
4237 mv -f confcache "$cache_file"$$ &&
4238 mv -f "$cache_file"$$ "$cache_file" ;; #(
4240 mv -f confcache "$cache_file" ;;
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
4246 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4251 echo "configuring package in "$apu_apriconv_dir" now"
4253 apr_config_subdirs=""$apu_apriconv_dir""
4254 test -d "$apu_apriconv_dir" || $mkdir_p "$apu_apriconv_dir"
4255 ac_abs_srcdir=`(cd $srcdir/"$apu_apriconv_dir" && pwd)`
4256 cd "$apu_apriconv_dir"
4258 # A "../" for each directory in /$config_subdirs.
4259 ac_dots=`echo $apr_config_subdirs|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
4261 # Make the cache file pathname absolute for the subdirs
4262 # required to correctly handle subdirs that might actually
4264 case "$cache_file" in
4265 /*) # already absolute
4266 ac_sub_cache_file=$cache_file ;;
4267 *) # Was relative path.
4268 ac_sub_cache_file="$ac_popdir/$cache_file" ;;
4274 for apr_configure_arg in $ac_configure_args
4276 case "$apr_configure_arg" in
4277 --enable-layout=*|\'--enable-layout=*)
4280 apr_configure_args="$apr_configure_args$apr_sep'$apr_configure_arg'"
4285 test "x$silent" = "xyes" && apr_configure_args="$apr_configure_args --silent"
4287 apr_configure_args="--disable-option-checking $apr_configure_args"
4289 if eval $SHELL $ac_abs_srcdir/configure $apr_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_abs_srcdir $apache_apr_flags \
4291 --exec-prefix=$exec_prefix \
4293 --includedir=$includedir \
4295 --datadir=$datadir \
4296 --with-installbuilddir=$installbuilddir
4298 echo ""$apu_apriconv_dir" configured properly"
4300 echo "configure failed for "$apu_apriconv_dir""
4306 # grab any updates from the sub-package
4307 if test -r "$cache_file"; then
4308 # Some versions of bash will fail to source /dev/null (special files
4309 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
4310 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
4312 $as_echo "$as_me: loading cache $cache_file" >&6;}
4314 [\\/]* | ?:[\\/]* ) . "$cache_file";;
4315 *) . "./$cache_file";;
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
4320 $as_echo "$as_me: creating cache $cache_file" >&6;}
4325 APRUTIL_EXPORT_LIBS="$abs_srcdir/$apu_apriconv_dir/lib/libapriconv.la \
4326 $APRUTIL_EXPORT_LIBS"
4327 APRUTIL_INCLUDES="-I$abs_srcdir/$apu_apriconv_dir/include \
4329 APR_ICONV_DIR="$apu_apriconv_dir"
4342 ac_cpp='$CPP $CPPFLAGS'
4343 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4344 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4345 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4347 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4348 # On Suns, sometimes $CPP names a directory.
4349 if test -n "$CPP" && test -d "$CPP"; then
4352 if test -z "$CPP"; then
4353 if ${ac_cv_prog_CPP+:} false; then :
4354 $as_echo_n "(cached) " >&6
4356 # Double quotes because CPP needs to be expanded
4357 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4360 for ac_c_preproc_warn_flag in '' yes
4362 # Use a header file that comes with gcc, so configuring glibc
4363 # with a fresh cross-compiler works.
4364 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4365 # <limits.h> exists even on freestanding compilers.
4366 # On the NeXT, cc -E runs the code through the compiler's parser,
4367 # not just through cpp. "Syntax error" is here to catch this case.
4368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4369 /* end confdefs.h. */
4371 # include <limits.h>
4373 # include <assert.h>
4377 if ac_fn_c_try_cpp "$LINENO"; then :
4380 # Broken: fails on valid input.
4383 rm -f conftest.err conftest.i conftest.$ac_ext
4385 # OK, works on sane cases. Now check whether nonexistent headers
4386 # can be detected and how.
4387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4388 /* end confdefs.h. */
4389 #include <ac_nonexistent.h>
4391 if ac_fn_c_try_cpp "$LINENO"; then :
4392 # Broken: success on invalid input.
4395 # Passes both tests.
4399 rm -f conftest.err conftest.i conftest.$ac_ext
4402 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4403 rm -f conftest.i conftest.err conftest.$ac_ext
4404 if $ac_preproc_ok; then :
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4417 $as_echo "$CPP" >&6; }
4419 for ac_c_preproc_warn_flag in '' yes
4421 # Use a header file that comes with gcc, so configuring glibc
4422 # with a fresh cross-compiler works.
4423 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4424 # <limits.h> exists even on freestanding compilers.
4425 # On the NeXT, cc -E runs the code through the compiler's parser,
4426 # not just through cpp. "Syntax error" is here to catch this case.
4427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4428 /* end confdefs.h. */
4430 # include <limits.h>
4432 # include <assert.h>
4436 if ac_fn_c_try_cpp "$LINENO"; then :
4439 # Broken: fails on valid input.
4442 rm -f conftest.err conftest.i conftest.$ac_ext
4444 # OK, works on sane cases. Now check whether nonexistent headers
4445 # can be detected and how.
4446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4447 /* end confdefs.h. */
4448 #include <ac_nonexistent.h>
4450 if ac_fn_c_try_cpp "$LINENO"; then :
4451 # Broken: success on invalid input.
4454 # Passes both tests.
4458 rm -f conftest.err conftest.i conftest.$ac_ext
4461 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4462 rm -f conftest.i conftest.err conftest.$ac_ext
4463 if $ac_preproc_ok; then :
4466 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4467 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4468 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4469 See \`config.log' for more details" "$LINENO" 5; }
4473 ac_cpp='$CPP $CPPFLAGS'
4474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4476 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4480 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4481 if ${ac_cv_path_GREP+:} false; then :
4482 $as_echo_n "(cached) " >&6
4484 if test -z "$GREP"; then
4485 ac_path_GREP_found=false
4486 # Loop through the user's path and test for each of PROGNAME-LIST
4487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4488 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4491 test -z "$as_dir" && as_dir=.
4492 for ac_prog in grep ggrep; do
4493 for ac_exec_ext in '' $ac_executable_extensions; do
4494 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4495 as_fn_executable_p "$ac_path_GREP" || continue
4496 # Check for GNU ac_path_GREP and select it if it is found.
4497 # Check for GNU $ac_path_GREP
4498 case `"$ac_path_GREP" --version 2>&1` in
4500 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4503 $as_echo_n 0123456789 >"conftest.in"
4506 cat "conftest.in" "conftest.in" >"conftest.tmp"
4507 mv "conftest.tmp" "conftest.in"
4508 cp "conftest.in" "conftest.nl"
4509 $as_echo 'GREP' >> "conftest.nl"
4510 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4511 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4512 as_fn_arith $ac_count + 1 && ac_count=$as_val
4513 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4514 # Best one so far, save it but keep looking for a better one
4515 ac_cv_path_GREP="$ac_path_GREP"
4516 ac_path_GREP_max=$ac_count
4518 # 10*(2^10) chars as input seems more than enough
4519 test $ac_count -gt 10 && break
4521 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4524 $ac_path_GREP_found && break 3
4529 if test -z "$ac_cv_path_GREP"; then
4530 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4533 ac_cv_path_GREP=$GREP
4537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4538 $as_echo "$ac_cv_path_GREP" >&6; }
4539 GREP="$ac_cv_path_GREP"
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4543 $as_echo_n "checking for egrep... " >&6; }
4544 if ${ac_cv_path_EGREP+:} false; then :
4545 $as_echo_n "(cached) " >&6
4547 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4548 then ac_cv_path_EGREP="$GREP -E"
4550 if test -z "$EGREP"; then
4551 ac_path_EGREP_found=false
4552 # Loop through the user's path and test for each of PROGNAME-LIST
4553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4554 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4557 test -z "$as_dir" && as_dir=.
4558 for ac_prog in egrep; do
4559 for ac_exec_ext in '' $ac_executable_extensions; do
4560 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4561 as_fn_executable_p "$ac_path_EGREP" || continue
4562 # Check for GNU ac_path_EGREP and select it if it is found.
4563 # Check for GNU $ac_path_EGREP
4564 case `"$ac_path_EGREP" --version 2>&1` in
4566 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4569 $as_echo_n 0123456789 >"conftest.in"
4572 cat "conftest.in" "conftest.in" >"conftest.tmp"
4573 mv "conftest.tmp" "conftest.in"
4574 cp "conftest.in" "conftest.nl"
4575 $as_echo 'EGREP' >> "conftest.nl"
4576 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4577 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4578 as_fn_arith $ac_count + 1 && ac_count=$as_val
4579 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4580 # Best one so far, save it but keep looking for a better one
4581 ac_cv_path_EGREP="$ac_path_EGREP"
4582 ac_path_EGREP_max=$ac_count
4584 # 10*(2^10) chars as input seems more than enough
4585 test $ac_count -gt 10 && break
4587 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4590 $ac_path_EGREP_found && break 3
4595 if test -z "$ac_cv_path_EGREP"; then
4596 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4599 ac_cv_path_EGREP=$EGREP
4604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4605 $as_echo "$ac_cv_path_EGREP" >&6; }
4606 EGREP="$ac_cv_path_EGREP"
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4610 $as_echo_n "checking for ANSI C header files... " >&6; }
4611 if ${ac_cv_header_stdc+:} false; then :
4612 $as_echo_n "(cached) " >&6
4614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4615 /* end confdefs.h. */
4629 if ac_fn_c_try_compile "$LINENO"; then :
4630 ac_cv_header_stdc=yes
4632 ac_cv_header_stdc=no
4634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4636 if test $ac_cv_header_stdc = yes; then
4637 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4639 /* end confdefs.h. */
4643 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4644 $EGREP "memchr" >/dev/null 2>&1; then :
4647 ac_cv_header_stdc=no
4653 if test $ac_cv_header_stdc = yes; then
4654 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4656 /* end confdefs.h. */
4660 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4661 $EGREP "free" >/dev/null 2>&1; then :
4664 ac_cv_header_stdc=no
4670 if test $ac_cv_header_stdc = yes; then
4671 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4672 if test "$cross_compiling" = yes; then :
4675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4676 /* end confdefs.h. */
4679 #if ((' ' & 0x0FF) == 0x020)
4680 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4681 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4683 # define ISLOWER(c) \
4684 (('a' <= (c) && (c) <= 'i') \
4685 || ('j' <= (c) && (c) <= 'r') \
4686 || ('s' <= (c) && (c) <= 'z'))
4687 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4690 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4695 for (i = 0; i < 256; i++)
4696 if (XOR (islower (i), ISLOWER (i))
4697 || toupper (i) != TOUPPER (i))
4702 if ac_fn_c_try_run "$LINENO"; then :
4705 ac_cv_header_stdc=no
4707 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4708 conftest.$ac_objext conftest.beam conftest.$ac_ext
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4714 $as_echo "$ac_cv_header_stdc" >&6; }
4715 if test $ac_cv_header_stdc = yes; then
4717 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4721 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4722 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4723 inttypes.h stdint.h unistd.h
4725 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4726 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4728 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4729 cat >>confdefs.h <<_ACEOF
4730 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4744 old_cppflags="$CPPFLAGS"
4745 old_ldflags="$LDFLAGS"
4748 # Check whether --with-crypto was given.
4749 if test "${with_crypto+set}" = set; then :
4750 withval=$with_crypto;
4751 cryptolibs="openssl nss"
4753 if test "$withval" = "yes"; then
4755 crypto_library_enabled=0
4756 for cryptolib in $cryptolibs; do
4757 eval v=\$with_$cryptolib
4758 if test "$v" != "" -a "$v" != "no"; then
4759 crypto_library_enabled=1
4763 if test "$crypto_library_enabled" = "0"; then
4764 for cryptolib in $cryptolibs; do
4765 eval v=\$with_$cryptolib
4766 if test "$v" != "no"; then
4767 eval with_$cryptolib=yes
4768 crypto_library_enabled=1
4771 if test "$crypto_library_enabled" = "1"; then
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: Crypto was requested but no crypto library was found; autodetecting possible libraries" >&5
4773 $as_echo "$as_me: Crypto was requested but no crypto library was found; autodetecting possible libraries" >&6;}
4775 as_fn_error $? "Crypto was requested but all possible crypto libraries were disabled." "$LINENO" 5
4780 openssl_have_headers=0
4784 old_cppflags="$CPPFLAGS"
4785 old_ldflags="$LDFLAGS"
4788 # Check whether --with-openssl was given.
4789 if test "${with_openssl+set}" = set; then :
4790 withval=$with_openssl;
4791 if test "$withval" = "yes"; then
4792 for ac_header in openssl/x509.h
4794 ac_fn_c_check_header_mongrel "$LINENO" "openssl/x509.h" "ac_cv_header_openssl_x509_h" "$ac_includes_default"
4795 if test "x$ac_cv_header_openssl_x509_h" = xyes; then :
4796 cat >>confdefs.h <<_ACEOF
4797 #define HAVE_OPENSSL_X509_H 1
4799 openssl_have_headers=1
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BN_init in -lcrypto" >&5
4805 $as_echo_n "checking for BN_init in -lcrypto... " >&6; }
4806 if ${ac_cv_lib_crypto_BN_init+:} false; then :
4807 $as_echo_n "(cached) " >&6
4809 ac_check_lib_save_LIBS=$LIBS
4810 LIBS="-lcrypto $LIBS"
4811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4812 /* end confdefs.h. */
4814 /* Override any GCC internal prototype to avoid an error.
4815 Use char because int might match the return type of a GCC
4816 builtin and then its argument prototype would still apply. */
4829 if ac_fn_c_try_link "$LINENO"; then :
4830 ac_cv_lib_crypto_BN_init=yes
4832 ac_cv_lib_crypto_BN_init=no
4834 rm -f core conftest.err conftest.$ac_objext \
4835 conftest$ac_exeext conftest.$ac_ext
4836 LIBS=$ac_check_lib_save_LIBS
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_BN_init" >&5
4839 $as_echo "$ac_cv_lib_crypto_BN_init" >&6; }
4840 if test "x$ac_cv_lib_crypto_BN_init" = xyes; then :
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_accept in -lssl" >&5
4842 $as_echo_n "checking for SSL_accept in -lssl... " >&6; }
4843 if ${ac_cv_lib_ssl_SSL_accept+:} false; then :
4844 $as_echo_n "(cached) " >&6
4846 ac_check_lib_save_LIBS=$LIBS
4847 LIBS="-lssl -lcrypto $LIBS"
4848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4849 /* end confdefs.h. */
4851 /* Override any GCC internal prototype to avoid an error.
4852 Use char because int might match the return type of a GCC
4853 builtin and then its argument prototype would still apply. */
4861 return SSL_accept ();
4866 if ac_fn_c_try_link "$LINENO"; then :
4867 ac_cv_lib_ssl_SSL_accept=yes
4869 ac_cv_lib_ssl_SSL_accept=no
4871 rm -f core conftest.err conftest.$ac_objext \
4872 conftest$ac_exeext conftest.$ac_ext
4873 LIBS=$ac_check_lib_save_LIBS
4875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_accept" >&5
4876 $as_echo "$ac_cv_lib_ssl_SSL_accept" >&6; }
4877 if test "x$ac_cv_lib_ssl_SSL_accept" = xyes; then :
4883 if test "$openssl_have_headers" != "0" && test "$openssl_have_libs" != "0"; then
4886 elif test "$withval" = "no"; then
4890 openssl_CPPFLAGS="-I$withval/include"
4891 openssl_LDFLAGS="-L$withval/lib "
4894 if test "x$CPPFLAGS" = "x"; then
4895 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"$openssl_CPPFLAGS\""
4896 CPPFLAGS="$openssl_CPPFLAGS"
4898 apr_addto_bugger="$openssl_CPPFLAGS"
4899 for i in $apr_addto_bugger; do
4900 apr_addto_duplicate="0"
4901 for j in $CPPFLAGS; do
4902 if test "x$i" = "x$j"; then
4903 apr_addto_duplicate="1"
4907 if test $apr_addto_duplicate = "0"; then
4908 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
4909 CPPFLAGS="$CPPFLAGS $i"
4915 if test "x$LDFLAGS" = "x"; then
4916 test "x$silent" != "xyes" && echo " setting LDFLAGS to \"$openssl_LDFLAGS\""
4917 LDFLAGS="$openssl_LDFLAGS"
4919 apr_addto_bugger="$openssl_LDFLAGS"
4920 for i in $apr_addto_bugger; do
4921 apr_addto_duplicate="0"
4922 for j in $LDFLAGS; do
4923 if test "x$i" = "x$j"; then
4924 apr_addto_duplicate="1"
4928 if test $apr_addto_duplicate = "0"; then
4929 test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS"
4930 LDFLAGS="$LDFLAGS $i"
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl in $withval" >&5
4937 $as_echo "$as_me: checking for openssl in $withval" >&6;}
4938 for ac_header in openssl/x509.h
4940 ac_fn_c_check_header_mongrel "$LINENO" "openssl/x509.h" "ac_cv_header_openssl_x509_h" "$ac_includes_default"
4941 if test "x$ac_cv_header_openssl_x509_h" = xyes; then :
4942 cat >>confdefs.h <<_ACEOF
4943 #define HAVE_OPENSSL_X509_H 1
4945 openssl_have_headers=1
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BN_init in -lcrypto" >&5
4951 $as_echo_n "checking for BN_init in -lcrypto... " >&6; }
4952 if ${ac_cv_lib_crypto_BN_init+:} false; then :
4953 $as_echo_n "(cached) " >&6
4955 ac_check_lib_save_LIBS=$LIBS
4956 LIBS="-lcrypto $LIBS"
4957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4958 /* end confdefs.h. */
4960 /* Override any GCC internal prototype to avoid an error.
4961 Use char because int might match the return type of a GCC
4962 builtin and then its argument prototype would still apply. */
4975 if ac_fn_c_try_link "$LINENO"; then :
4976 ac_cv_lib_crypto_BN_init=yes
4978 ac_cv_lib_crypto_BN_init=no
4980 rm -f core conftest.err conftest.$ac_objext \
4981 conftest$ac_exeext conftest.$ac_ext
4982 LIBS=$ac_check_lib_save_LIBS
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_BN_init" >&5
4985 $as_echo "$ac_cv_lib_crypto_BN_init" >&6; }
4986 if test "x$ac_cv_lib_crypto_BN_init" = xyes; then :
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_accept in -lssl" >&5
4988 $as_echo_n "checking for SSL_accept in -lssl... " >&6; }
4989 if ${ac_cv_lib_ssl_SSL_accept+:} false; then :
4990 $as_echo_n "(cached) " >&6
4992 ac_check_lib_save_LIBS=$LIBS
4993 LIBS="-lssl -lcrypto $LIBS"
4994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4995 /* end confdefs.h. */
4997 /* Override any GCC internal prototype to avoid an error.
4998 Use char because int might match the return type of a GCC
4999 builtin and then its argument prototype would still apply. */
5007 return SSL_accept ();
5012 if ac_fn_c_try_link "$LINENO"; then :
5013 ac_cv_lib_ssl_SSL_accept=yes
5015 ac_cv_lib_ssl_SSL_accept=no
5017 rm -f core conftest.err conftest.$ac_objext \
5018 conftest$ac_exeext conftest.$ac_ext
5019 LIBS=$ac_check_lib_save_LIBS
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_accept" >&5
5022 $as_echo "$ac_cv_lib_ssl_SSL_accept" >&6; }
5023 if test "x$ac_cv_lib_ssl_SSL_accept" = xyes; then :
5029 if test "$openssl_have_headers" != "0" && test "$openssl_have_libs" != "0"; then
5032 if test "x$APRUTIL_LDFLAGS" = "x"; then
5033 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$withval/lib\""
5034 APRUTIL_LDFLAGS="-L$withval/lib"
5036 apr_addto_bugger="-L$withval/lib"
5037 for i in $apr_addto_bugger; do
5038 apr_addto_duplicate="0"
5039 for j in $APRUTIL_LDFLAGS; do
5040 if test "x$i" = "x$j"; then
5041 apr_addto_duplicate="1"
5045 if test $apr_addto_duplicate = "0"; then
5046 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS"
5047 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
5053 if test "x$APRUTIL_INCLUDES" = "x"; then
5054 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$withval/include\""
5055 APRUTIL_INCLUDES="-I$withval/include"
5057 apr_addto_bugger="-I$withval/include"
5058 for i in $apr_addto_bugger; do
5059 apr_addto_duplicate="0"
5060 for j in $APRUTIL_INCLUDES; do
5061 if test "x$i" = "x$j"; then
5062 apr_addto_duplicate="1"
5066 if test $apr_addto_duplicate = "0"; then
5067 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES"
5068 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
5075 if test "$apu_have_openssl" != "1"; then
5076 for ac_header in openssl/x509.h
5078 ac_fn_c_check_header_mongrel "$LINENO" "openssl/x509.h" "ac_cv_header_openssl_x509_h" "$ac_includes_default"
5079 if test "x$ac_cv_header_openssl_x509_h" = xyes; then :
5080 cat >>confdefs.h <<_ACEOF
5081 #define HAVE_OPENSSL_X509_H 1
5083 openssl_have_headers=1
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BN_init in -lcrypto" >&5
5089 $as_echo_n "checking for BN_init in -lcrypto... " >&6; }
5090 if ${ac_cv_lib_crypto_BN_init+:} false; then :
5091 $as_echo_n "(cached) " >&6
5093 ac_check_lib_save_LIBS=$LIBS
5094 LIBS="-lcrypto $LIBS"
5095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5096 /* end confdefs.h. */
5098 /* Override any GCC internal prototype to avoid an error.
5099 Use char because int might match the return type of a GCC
5100 builtin and then its argument prototype would still apply. */
5113 if ac_fn_c_try_link "$LINENO"; then :
5114 ac_cv_lib_crypto_BN_init=yes
5116 ac_cv_lib_crypto_BN_init=no
5118 rm -f core conftest.err conftest.$ac_objext \
5119 conftest$ac_exeext conftest.$ac_ext
5120 LIBS=$ac_check_lib_save_LIBS
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_BN_init" >&5
5123 $as_echo "$ac_cv_lib_crypto_BN_init" >&6; }
5124 if test "x$ac_cv_lib_crypto_BN_init" = xyes; then :
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_accept in -lssl" >&5
5126 $as_echo_n "checking for SSL_accept in -lssl... " >&6; }
5127 if ${ac_cv_lib_ssl_SSL_accept+:} false; then :
5128 $as_echo_n "(cached) " >&6
5130 ac_check_lib_save_LIBS=$LIBS
5131 LIBS="-lssl -lcrypto $LIBS"
5132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5133 /* end confdefs.h. */
5135 /* Override any GCC internal prototype to avoid an error.
5136 Use char because int might match the return type of a GCC
5137 builtin and then its argument prototype would still apply. */
5145 return SSL_accept ();
5150 if ac_fn_c_try_link "$LINENO"; then :
5151 ac_cv_lib_ssl_SSL_accept=yes
5153 ac_cv_lib_ssl_SSL_accept=no
5155 rm -f core conftest.err conftest.$ac_objext \
5156 conftest$ac_exeext conftest.$ac_ext
5157 LIBS=$ac_check_lib_save_LIBS
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_accept" >&5
5160 $as_echo "$ac_cv_lib_ssl_SSL_accept" >&6; }
5161 if test "x$ac_cv_lib_ssl_SSL_accept" = xyes; then :
5167 if test "$openssl_have_headers" != "0" && test "$openssl_have_libs" != "0"; then
5170 if test "x$APRUTIL_LDFLAGS" = "x"; then
5171 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$withval/lib\""
5172 APRUTIL_LDFLAGS="-L$withval/lib"
5174 apr_addto_bugger="-L$withval/lib"
5175 for i in $apr_addto_bugger; do
5176 apr_addto_duplicate="0"
5177 for j in $APRUTIL_LDFLAGS; do
5178 if test "x$i" = "x$j"; then
5179 apr_addto_duplicate="1"
5183 if test $apr_addto_duplicate = "0"; then
5184 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS"
5185 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
5191 if test "x$APRUTIL_INCLUDES" = "x"; then
5192 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$withval/include\""
5193 APRUTIL_INCLUDES="-I$withval/include"
5195 apr_addto_bugger="-I$withval/include"
5196 for i in $apr_addto_bugger; do
5197 apr_addto_duplicate="0"
5198 for j in $APRUTIL_INCLUDES; do
5199 if test "x$i" = "x$j"; then
5200 apr_addto_duplicate="1"
5204 if test $apr_addto_duplicate = "0"; then
5205 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES"
5206 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
5214 ac_fn_c_check_decl "$LINENO" "EVP_PKEY_CTX_new" "ac_cv_have_decl_EVP_PKEY_CTX_new" "#include <openssl/evp.h>
5216 if test "x$ac_cv_have_decl_EVP_PKEY_CTX_new" = xyes; then :
5222 cat >>confdefs.h <<_ACEOF
5223 #define HAVE_DECL_EVP_PKEY_CTX_NEW $ac_have_decl
5238 if test "$apu_have_openssl" = "1"; then
5240 if test "x$LDADD_crypto_openssl" = "x"; then
5241 test "x$silent" != "xyes" && echo " setting LDADD_crypto_openssl to \"$openssl_LDFLAGS -lssl -lcrypto\""
5242 LDADD_crypto_openssl="$openssl_LDFLAGS -lssl -lcrypto"
5244 apr_addto_bugger="$openssl_LDFLAGS -lssl -lcrypto"
5245 for i in $apr_addto_bugger; do
5246 apr_addto_duplicate="0"
5247 for j in $LDADD_crypto_openssl; do
5248 if test "x$i" = "x$j"; then
5249 apr_addto_duplicate="1"
5253 if test $apr_addto_duplicate = "0"; then
5254 test "x$silent" != "xyes" && echo " adding \"$i\" to LDADD_crypto_openssl"
5255 LDADD_crypto_openssl="$LDADD_crypto_openssl $i"
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for const input buffers in OpenSSL" >&5
5263 $as_echo_n "checking for const input buffers in OpenSSL... " >&6; }
5264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5265 /* end confdefs.h. */
5266 #include <openssl/rsa.h>
5270 const unsigned char * buf;
5271 unsigned char * outbuf;
5274 RSA_private_decrypt(1,
5285 if ac_fn_c_try_compile "$LINENO"; then :
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5287 $as_echo "yes" >&6; }
5289 $as_echo "#define CRYPTO_OPENSSL_CONST_BUFFERS 1" >>confdefs.h
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5293 $as_echo "no" >&6; }
5295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5302 CPPFLAGS="$old_cppflags"
5303 LDFLAGS="$old_ldflags"
5309 old_cppflags="$CPPFLAGS"
5310 old_ldflags="$LDFLAGS"
5313 # Check whether --with-nss was given.
5314 if test "${with_nss+set}" = set; then :
5316 if test "$withval" = "yes"; then
5317 if test -n "$ac_tool_prefix"; then
5318 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5319 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5321 $as_echo_n "checking for $ac_word... " >&6; }
5322 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5323 $as_echo_n "(cached) " >&6
5327 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5334 test -z "$as_dir" && as_dir=.
5335 for ac_exec_ext in '' $ac_executable_extensions; do
5336 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5337 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5348 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5349 if test -n "$PKG_CONFIG"; then
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5351 $as_echo "$PKG_CONFIG" >&6; }
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5354 $as_echo "no" >&6; }
5359 if test -z "$ac_cv_path_PKG_CONFIG"; then
5360 ac_pt_PKG_CONFIG=$PKG_CONFIG
5361 # Extract the first word of "pkg-config", so it can be a program name with args.
5362 set dummy pkg-config; ac_word=$2
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5364 $as_echo_n "checking for $ac_word... " >&6; }
5365 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5366 $as_echo_n "(cached) " >&6
5368 case $ac_pt_PKG_CONFIG in
5370 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5377 test -z "$as_dir" && as_dir=.
5378 for ac_exec_ext in '' $ac_executable_extensions; do
5379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5380 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5391 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5392 if test -n "$ac_pt_PKG_CONFIG"; then
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5394 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5397 $as_echo "no" >&6; }
5400 if test "x$ac_pt_PKG_CONFIG" = x; then
5403 case $cross_compiling:$ac_tool_warned in
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5406 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5407 ac_tool_warned=yes ;;
5409 PKG_CONFIG=$ac_pt_PKG_CONFIG
5412 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5415 if test -n "$PKG_CONFIG"; then
5416 nss_CPPFLAGS=`$PKG_CONFIG --cflags-only-I nss`
5417 nss_LDFLAGS=`$PKG_CONFIG --libs nss`
5419 if test "x$CPPFLAGS" = "x"; then
5420 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"$nss_CPPFLAGS\""
5421 CPPFLAGS="$nss_CPPFLAGS"
5423 apr_addto_bugger="$nss_CPPFLAGS"
5424 for i in $apr_addto_bugger; do
5425 apr_addto_duplicate="0"
5426 for j in $CPPFLAGS; do
5427 if test "x$i" = "x$j"; then
5428 apr_addto_duplicate="1"
5432 if test $apr_addto_duplicate = "0"; then
5433 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
5434 CPPFLAGS="$CPPFLAGS $i"
5440 if test "x$LDFLAGS" = "x"; then
5441 test "x$silent" != "xyes" && echo " setting LDFLAGS to \"$nss_LDFLAGS\""
5442 LDFLAGS="$nss_LDFLAGS"
5444 apr_addto_bugger="$nss_LDFLAGS"
5445 for i in $apr_addto_bugger; do
5446 apr_addto_duplicate="0"
5447 for j in $LDFLAGS; do
5448 if test "x$i" = "x$j"; then
5449 apr_addto_duplicate="1"
5453 if test $apr_addto_duplicate = "0"; then
5454 test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS"
5455 LDFLAGS="$LDFLAGS $i"
5464 for ac_header in prerror.h
5466 ac_fn_c_check_header_mongrel "$LINENO" "prerror.h" "ac_cv_header_prerror_h" "$ac_includes_default"
5467 if test "x$ac_cv_header_prerror_h" = xyes; then :
5468 cat >>confdefs.h <<_ACEOF
5469 #define HAVE_PRERROR_H 1
5476 for ac_header in nss/nss.h nss.h
5478 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5479 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5480 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5481 cat >>confdefs.h <<_ACEOF
5482 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5489 for ac_header in nss/pk11pub.h pk11pub.h
5491 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5492 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5493 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5494 cat >>confdefs.h <<_ACEOF
5495 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5502 nss_have_headers=${nss_have_prerrorh}${nss_have_nssh}${nss_have_pk11pubh}
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PR_Initialize in -lnspr4" >&5
5504 $as_echo_n "checking for PR_Initialize in -lnspr4... " >&6; }
5505 if ${ac_cv_lib_nspr4_PR_Initialize+:} false; then :
5506 $as_echo_n "(cached) " >&6
5508 ac_check_lib_save_LIBS=$LIBS
5509 LIBS="-lnspr4 $LIBS"
5510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5511 /* end confdefs.h. */
5513 /* Override any GCC internal prototype to avoid an error.
5514 Use char because int might match the return type of a GCC
5515 builtin and then its argument prototype would still apply. */
5519 char PR_Initialize ();
5523 return PR_Initialize ();
5528 if ac_fn_c_try_link "$LINENO"; then :
5529 ac_cv_lib_nspr4_PR_Initialize=yes
5531 ac_cv_lib_nspr4_PR_Initialize=no
5533 rm -f core conftest.err conftest.$ac_objext \
5534 conftest$ac_exeext conftest.$ac_ext
5535 LIBS=$ac_check_lib_save_LIBS
5537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nspr4_PR_Initialize" >&5
5538 $as_echo "$ac_cv_lib_nspr4_PR_Initialize" >&6; }
5539 if test "x$ac_cv_lib_nspr4_PR_Initialize" = xyes; then :
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PK11_CreatePBEV2AlgorithmID in -lnss3" >&5
5541 $as_echo_n "checking for PK11_CreatePBEV2AlgorithmID in -lnss3... " >&6; }
5542 if ${ac_cv_lib_nss3_PK11_CreatePBEV2AlgorithmID+:} false; then :
5543 $as_echo_n "(cached) " >&6
5545 ac_check_lib_save_LIBS=$LIBS
5546 LIBS="-lnss3 -lnspr4 $LIBS"
5547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5548 /* end confdefs.h. */
5550 /* Override any GCC internal prototype to avoid an error.
5551 Use char because int might match the return type of a GCC
5552 builtin and then its argument prototype would still apply. */
5556 char PK11_CreatePBEV2AlgorithmID ();
5560 return PK11_CreatePBEV2AlgorithmID ();
5565 if ac_fn_c_try_link "$LINENO"; then :
5566 ac_cv_lib_nss3_PK11_CreatePBEV2AlgorithmID=yes
5568 ac_cv_lib_nss3_PK11_CreatePBEV2AlgorithmID=no
5570 rm -f core conftest.err conftest.$ac_objext \
5571 conftest$ac_exeext conftest.$ac_ext
5572 LIBS=$ac_check_lib_save_LIBS
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nss3_PK11_CreatePBEV2AlgorithmID" >&5
5575 $as_echo "$ac_cv_lib_nss3_PK11_CreatePBEV2AlgorithmID" >&6; }
5576 if test "x$ac_cv_lib_nss3_PK11_CreatePBEV2AlgorithmID" = xyes; then :
5582 if test "$nss_have_headers" = "111" && test "$nss_have_libs" != "0"; then
5585 elif test "$withval" = "no"; then
5587 elif test "x$withval" != "x"; then
5589 nss_CPPFLAGS="-I$withval/include/nss -I$withval/include/nss3 -I$withval/include/nspr -I$withval/include/nspr4 -I$withval/include -I$withval/../public"
5590 nss_LDFLAGS="-L$withval/lib "
5593 if test "x$CPPFLAGS" = "x"; then
5594 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"$nss_CPPFLAGS\""
5595 CPPFLAGS="$nss_CPPFLAGS"
5597 apr_addto_bugger="$nss_CPPFLAGS"
5598 for i in $apr_addto_bugger; do
5599 apr_addto_duplicate="0"
5600 for j in $CPPFLAGS; do
5601 if test "x$i" = "x$j"; then
5602 apr_addto_duplicate="1"
5606 if test $apr_addto_duplicate = "0"; then
5607 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
5608 CPPFLAGS="$CPPFLAGS $i"
5614 if test "x$LDFLAGS" = "x"; then
5615 test "x$silent" != "xyes" && echo " setting LDFLAGS to \"$nss_LDFLAGS\""
5616 LDFLAGS="$nss_LDFLAGS"
5618 apr_addto_bugger="$nss_LDFLAGS"
5619 for i in $apr_addto_bugger; do
5620 apr_addto_duplicate="0"
5621 for j in $LDFLAGS; do
5622 if test "x$i" = "x$j"; then
5623 apr_addto_duplicate="1"
5627 if test $apr_addto_duplicate = "0"; then
5628 test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS"
5629 LDFLAGS="$LDFLAGS $i"
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nss in $withval" >&5
5636 $as_echo "$as_me: checking for nss in $withval" >&6;}
5640 for ac_header in prerror.h
5642 ac_fn_c_check_header_mongrel "$LINENO" "prerror.h" "ac_cv_header_prerror_h" "$ac_includes_default"
5643 if test "x$ac_cv_header_prerror_h" = xyes; then :
5644 cat >>confdefs.h <<_ACEOF
5645 #define HAVE_PRERROR_H 1
5652 for ac_header in nss/nss.h nss.h
5654 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5655 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5656 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5657 cat >>confdefs.h <<_ACEOF
5658 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5665 for ac_header in nss/pk11pub.h pk11pub.h
5667 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5668 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5669 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5670 cat >>confdefs.h <<_ACEOF
5671 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5678 nss_have_headers=${nss_have_prerrorh}${nss_have_nssh}${nss_have_pk11pubh}
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PR_Initialize in -lnspr4" >&5
5680 $as_echo_n "checking for PR_Initialize in -lnspr4... " >&6; }
5681 if ${ac_cv_lib_nspr4_PR_Initialize+:} false; then :
5682 $as_echo_n "(cached) " >&6
5684 ac_check_lib_save_LIBS=$LIBS
5685 LIBS="-lnspr4 $LIBS"
5686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5687 /* end confdefs.h. */
5689 /* Override any GCC internal prototype to avoid an error.
5690 Use char because int might match the return type of a GCC
5691 builtin and then its argument prototype would still apply. */
5695 char PR_Initialize ();
5699 return PR_Initialize ();
5704 if ac_fn_c_try_link "$LINENO"; then :
5705 ac_cv_lib_nspr4_PR_Initialize=yes
5707 ac_cv_lib_nspr4_PR_Initialize=no
5709 rm -f core conftest.err conftest.$ac_objext \
5710 conftest$ac_exeext conftest.$ac_ext
5711 LIBS=$ac_check_lib_save_LIBS
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nspr4_PR_Initialize" >&5
5714 $as_echo "$ac_cv_lib_nspr4_PR_Initialize" >&6; }
5715 if test "x$ac_cv_lib_nspr4_PR_Initialize" = xyes; then :
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PK11_CreatePBEV2AlgorithmID in -lnss3" >&5
5717 $as_echo_n "checking for PK11_CreatePBEV2AlgorithmID in -lnss3... " >&6; }
5718 if ${ac_cv_lib_nss3_PK11_CreatePBEV2AlgorithmID+:} false; then :
5719 $as_echo_n "(cached) " >&6
5721 ac_check_lib_save_LIBS=$LIBS
5722 LIBS="-lnss3 -lnspr4 $LIBS"
5723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5724 /* end confdefs.h. */
5726 /* Override any GCC internal prototype to avoid an error.
5727 Use char because int might match the return type of a GCC
5728 builtin and then its argument prototype would still apply. */
5732 char PK11_CreatePBEV2AlgorithmID ();
5736 return PK11_CreatePBEV2AlgorithmID ();
5741 if ac_fn_c_try_link "$LINENO"; then :
5742 ac_cv_lib_nss3_PK11_CreatePBEV2AlgorithmID=yes
5744 ac_cv_lib_nss3_PK11_CreatePBEV2AlgorithmID=no
5746 rm -f core conftest.err conftest.$ac_objext \
5747 conftest$ac_exeext conftest.$ac_ext
5748 LIBS=$ac_check_lib_save_LIBS
5750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nss3_PK11_CreatePBEV2AlgorithmID" >&5
5751 $as_echo "$ac_cv_lib_nss3_PK11_CreatePBEV2AlgorithmID" >&6; }
5752 if test "x$ac_cv_lib_nss3_PK11_CreatePBEV2AlgorithmID" = xyes; then :
5758 if test "$nss_have_headers" = "111" && test "$nss_have_libs" != "0"; then
5763 if test "$apu_have_nss" != "0"; then
5765 if test "x$APRUTIL_PRIV_INCLUDES" = "x"; then
5766 test "x$silent" != "xyes" && echo " setting APRUTIL_PRIV_INCLUDES to \"$nss_CPPFLAGS\""
5767 APRUTIL_PRIV_INCLUDES="$nss_CPPFLAGS"
5769 apr_addto_bugger="$nss_CPPFLAGS"
5770 for i in $apr_addto_bugger; do
5771 apr_addto_duplicate="0"
5772 for j in $APRUTIL_PRIV_INCLUDES; do
5773 if test "x$i" = "x$j"; then
5774 apr_addto_duplicate="1"
5778 if test $apr_addto_duplicate = "0"; then
5779 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_PRIV_INCLUDES"
5780 APRUTIL_PRIV_INCLUDES="$APRUTIL_PRIV_INCLUDES $i"
5796 if test "$apu_have_nss" = "1"; then
5798 if test "x$LDADD_crypto_nss" = "x"; then
5799 test "x$silent" != "xyes" && echo " setting LDADD_crypto_nss to \"$nss_LDFLAGS -lnspr4 -lnss3\""
5800 LDADD_crypto_nss="$nss_LDFLAGS -lnspr4 -lnss3"
5802 apr_addto_bugger="$nss_LDFLAGS -lnspr4 -lnss3"
5803 for i in $apr_addto_bugger; do
5804 apr_addto_duplicate="0"
5805 for j in $LDADD_crypto_nss; do
5806 if test "x$i" = "x$j"; then
5807 apr_addto_duplicate="1"
5811 if test $apr_addto_duplicate = "0"; then
5812 test "x$silent" != "xyes" && echo " adding \"$i\" to LDADD_crypto_nss"
5813 LDADD_crypto_nss="$LDADD_crypto_nss $i"
5824 CPPFLAGS="$old_cppflags"
5825 LDFLAGS="$old_ldflags"
5827 if test "$apu_have_crypto" = "0"; then
5828 as_fn_error $? "Crypto was requested but no crypto library could be enabled; specify the location of a crypto library using --with-openssl, --with-nss, etc." "$LINENO" 5
5844 echo $ac_n "${nl}checking for ldap support..."
5847 apu_has_ldapssl_client_init="0"
5848 apu_has_ldapssl_client_deinit="0"
5849 apu_has_ldapssl_add_trusted_cert="0"
5850 apu_has_ldap_start_tls_s="0"
5851 apu_has_ldapssl_init="0"
5852 apu_has_ldap_sslinit="0"
5853 apu_has_ldapssl_install_routines="0"
5854 apu_has_ldap_openldap="0"
5855 apu_has_ldap_solaris="0"
5856 apu_has_ldap_novell="0"
5857 apu_has_ldap_microsoft="0"
5858 apu_has_ldap_netscape="0"
5859 apu_has_ldap_mozilla="0"
5860 apu_has_ldap_tivoli="0"
5861 apu_has_ldap_zos="0"
5862 apu_has_ldap_other="0"
5866 # Check whether --with-lber was given.
5867 if test "${with_lber+set}" = set; then :
5869 if test "$withval" = "yes"; then
5870 apu_liblber_name="lber"
5872 apu_liblber_name="$withval"
5877 apu_liblber_name="lber"
5883 # Check whether --with-ldap-include was given.
5884 if test "${with_ldap_include+set}" = set; then :
5885 withval=$with_ldap_include;
5889 # Check whether --with-ldap-lib was given.
5890 if test "${with_ldap_lib+set}" = set; then :
5891 withval=$with_ldap_lib;
5895 # Check whether --with-ldap was given.
5896 if test "${with_ldap+set}" = set; then :
5898 if test "$with_ldap" != "no"; then
5899 save_cppflags="$CPPFLAGS"
5900 save_ldflags="$LDFLAGS"
5902 if test -n "$with_ldap_include"; then
5903 CPPFLAGS="$CPPFLAGS -I$with_ldap_include"
5905 if test "x$APRUTIL_INCLUDES" = "x"; then
5906 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$with_ldap_include\""
5907 APRUTIL_INCLUDES="-I$with_ldap_include"
5909 apr_addto_bugger="-I$with_ldap_include"
5910 for i in $apr_addto_bugger; do
5911 apr_addto_duplicate="0"
5912 for j in $APRUTIL_INCLUDES; do
5913 if test "x$i" = "x$j"; then
5914 apr_addto_duplicate="1"
5918 if test $apr_addto_duplicate = "0"; then
5919 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES"
5920 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
5926 if test -n "$with_ldap_lib"; then
5927 LDFLAGS="$LDFLAGS -L$with_ldap_lib"
5929 if test "x$APRUTIL_LDFLAGS" = "x"; then
5930 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$with_ldap_lib\""
5931 APRUTIL_LDFLAGS="-L$with_ldap_lib"
5933 apr_addto_bugger="-L$with_ldap_lib"
5934 for i in $apr_addto_bugger; do
5935 apr_addto_duplicate="0"
5936 for j in $APRUTIL_LDFLAGS; do
5937 if test "x$i" = "x$j"; then
5938 apr_addto_duplicate="1"
5942 if test $apr_addto_duplicate = "0"; then
5943 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS"
5944 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
5952 if test "$LIBLDAP" = "yes"; then
5954 if test ${apu_has_ldap} != "1"; then
5956 extralib="-lnspr4 -lplc4 -lplds4 -liutil50 -llber50 -lldif50 -lnss3 -lprldap50 -lssl3 -lssldap50"
5957 # Clear the cache entry for subsequent APU_FIND_LDAPLIB invocations.
5959 ldaplib_cache_id="`echo $ldaplib | sed -e 's/[^a-zA-Z0-9_]/_/g'`"
5961 unset ac_cv_lib_${ldaplib_cache_id}_ldap_init
5962 unset ac_cv_lib_${ldaplib_cache_id}___ldap_init
5963 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_init" | $as_tr_sh`
5964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_init in -l${ldaplib}" >&5
5965 $as_echo_n "checking for ldap_init in -l${ldaplib}... " >&6; }
5966 if eval \${$as_ac_Lib+:} false; then :
5967 $as_echo_n "(cached) " >&6
5969 ac_check_lib_save_LIBS=$LIBS
5970 LIBS="-l${ldaplib} ${extralib} $LIBS"
5971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5972 /* end confdefs.h. */
5974 /* Override any GCC internal prototype to avoid an error.
5975 Use char because int might match the return type of a GCC
5976 builtin and then its argument prototype would still apply. */
5984 return ldap_init ();
5989 if ac_fn_c_try_link "$LINENO"; then :
5990 eval "$as_ac_Lib=yes"
5992 eval "$as_ac_Lib=no"
5994 rm -f core conftest.err conftest.$ac_objext \
5995 conftest$ac_exeext conftest.$ac_ext
5996 LIBS=$ac_check_lib_save_LIBS
5998 eval ac_res=\$$as_ac_Lib
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6000 $as_echo "$ac_res" >&6; }
6001 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
6003 LDADD_ldap_found="-l${ldaplib} ${extralib}"
6004 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_client_init" | $as_tr_sh`
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_client_init in -l${ldaplib}" >&5
6006 $as_echo_n "checking for ldapssl_client_init in -l${ldaplib}... " >&6; }
6007 if eval \${$as_ac_Lib+:} false; then :
6008 $as_echo_n "(cached) " >&6
6010 ac_check_lib_save_LIBS=$LIBS
6011 LIBS="-l${ldaplib} ${extralib} $LIBS"
6012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
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. */
6021 char ldapssl_client_init ();
6025 return ldapssl_client_init ();
6030 if ac_fn_c_try_link "$LINENO"; then :
6031 eval "$as_ac_Lib=yes"
6033 eval "$as_ac_Lib=no"
6035 rm -f core conftest.err conftest.$ac_objext \
6036 conftest$ac_exeext conftest.$ac_ext
6037 LIBS=$ac_check_lib_save_LIBS
6039 eval ac_res=\$$as_ac_Lib
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6041 $as_echo "$ac_res" >&6; }
6042 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
6043 apu_has_ldapssl_client_init="1"
6046 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_client_deinit" | $as_tr_sh`
6047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_client_deinit in -l${ldaplib}" >&5
6048 $as_echo_n "checking for ldapssl_client_deinit in -l${ldaplib}... " >&6; }
6049 if eval \${$as_ac_Lib+:} false; then :
6050 $as_echo_n "(cached) " >&6
6052 ac_check_lib_save_LIBS=$LIBS
6053 LIBS="-l${ldaplib} ${extralib} $LIBS"
6054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6055 /* end confdefs.h. */
6057 /* Override any GCC internal prototype to avoid an error.
6058 Use char because int might match the return type of a GCC
6059 builtin and then its argument prototype would still apply. */
6063 char ldapssl_client_deinit ();
6067 return ldapssl_client_deinit ();
6072 if ac_fn_c_try_link "$LINENO"; then :
6073 eval "$as_ac_Lib=yes"
6075 eval "$as_ac_Lib=no"
6077 rm -f core conftest.err conftest.$ac_objext \
6078 conftest$ac_exeext conftest.$ac_ext
6079 LIBS=$ac_check_lib_save_LIBS
6081 eval ac_res=\$$as_ac_Lib
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6083 $as_echo "$ac_res" >&6; }
6084 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
6085 apu_has_ldapssl_client_deinit="1"
6088 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_add_trusted_cert" | $as_tr_sh`
6089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_add_trusted_cert in -l${ldaplib}" >&5
6090 $as_echo_n "checking for ldapssl_add_trusted_cert in -l${ldaplib}... " >&6; }
6091 if eval \${$as_ac_Lib+:} false; then :
6092 $as_echo_n "(cached) " >&6
6094 ac_check_lib_save_LIBS=$LIBS
6095 LIBS="-l${ldaplib} ${extralib} $LIBS"
6096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6097 /* end confdefs.h. */
6099 /* Override any GCC internal prototype to avoid an error.
6100 Use char because int might match the return type of a GCC
6101 builtin and then its argument prototype would still apply. */
6105 char ldapssl_add_trusted_cert ();
6109 return ldapssl_add_trusted_cert ();
6114 if ac_fn_c_try_link "$LINENO"; then :
6115 eval "$as_ac_Lib=yes"
6117 eval "$as_ac_Lib=no"
6119 rm -f core conftest.err conftest.$ac_objext \
6120 conftest$ac_exeext conftest.$ac_ext
6121 LIBS=$ac_check_lib_save_LIBS
6123 eval ac_res=\$$as_ac_Lib
6124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6125 $as_echo "$ac_res" >&6; }
6126 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
6127 apu_has_ldapssl_add_trusted_cert="1"
6130 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_start_tls_s" | $as_tr_sh`
6131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_start_tls_s in -l${ldaplib}" >&5
6132 $as_echo_n "checking for ldap_start_tls_s in -l${ldaplib}... " >&6; }
6133 if eval \${$as_ac_Lib+:} false; then :
6134 $as_echo_n "(cached) " >&6
6136 ac_check_lib_save_LIBS=$LIBS
6137 LIBS="-l${ldaplib} ${extralib} $LIBS"
6138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6139 /* end confdefs.h. */
6141 /* Override any GCC internal prototype to avoid an error.
6142 Use char because int might match the return type of a GCC
6143 builtin and then its argument prototype would still apply. */
6147 char ldap_start_tls_s ();
6151 return ldap_start_tls_s ();
6156 if ac_fn_c_try_link "$LINENO"; then :
6157 eval "$as_ac_Lib=yes"
6159 eval "$as_ac_Lib=no"
6161 rm -f core conftest.err conftest.$ac_objext \
6162 conftest$ac_exeext conftest.$ac_ext
6163 LIBS=$ac_check_lib_save_LIBS
6165 eval ac_res=\$$as_ac_Lib
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6167 $as_echo "$ac_res" >&6; }
6168 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
6169 apu_has_ldap_start_tls_s="1"
6172 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_sslinit" | $as_tr_sh`
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_sslinit in -l${ldaplib}" >&5
6174 $as_echo_n "checking for ldap_sslinit in -l${ldaplib}... " >&6; }
6175 if eval \${$as_ac_Lib+:} false; then :
6176 $as_echo_n "(cached) " >&6
6178 ac_check_lib_save_LIBS=$LIBS
6179 LIBS="-l${ldaplib} ${extralib} $LIBS"
6180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6181 /* end confdefs.h. */
6183 /* Override any GCC internal prototype to avoid an error.
6184 Use char because int might match the return type of a GCC
6185 builtin and then its argument prototype would still apply. */
6189 char ldap_sslinit ();
6193 return ldap_sslinit ();
6198 if ac_fn_c_try_link "$LINENO"; then :
6199 eval "$as_ac_Lib=yes"
6201 eval "$as_ac_Lib=no"
6203 rm -f core conftest.err conftest.$ac_objext \
6204 conftest$ac_exeext conftest.$ac_ext
6205 LIBS=$ac_check_lib_save_LIBS
6207 eval ac_res=\$$as_ac_Lib
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6209 $as_echo "$ac_res" >&6; }
6210 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
6211 apu_has_ldap_sslinit="1"
6214 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_init" | $as_tr_sh`
6215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_init in -l${ldaplib}" >&5
6216 $as_echo_n "checking for ldapssl_init in -l${ldaplib}... " >&6; }
6217 if eval \${$as_ac_Lib+:} false; then :
6218 $as_echo_n "(cached) " >&6
6220 ac_check_lib_save_LIBS=$LIBS
6221 LIBS="-l${ldaplib} ${extralib} $LIBS"
6222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6223 /* end confdefs.h. */
6225 /* Override any GCC internal prototype to avoid an error.
6226 Use char because int might match the return type of a GCC
6227 builtin and then its argument prototype would still apply. */
6231 char ldapssl_init ();
6235 return ldapssl_init ();
6240 if ac_fn_c_try_link "$LINENO"; then :
6241 eval "$as_ac_Lib=yes"
6243 eval "$as_ac_Lib=no"
6245 rm -f core conftest.err conftest.$ac_objext \
6246 conftest$ac_exeext conftest.$ac_ext
6247 LIBS=$ac_check_lib_save_LIBS
6249 eval ac_res=\$$as_ac_Lib
6250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6251 $as_echo "$ac_res" >&6; }
6252 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
6253 apu_has_ldapssl_init="1"
6256 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_install_routines" | $as_tr_sh`
6257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_install_routines in -l${ldaplib}" >&5
6258 $as_echo_n "checking for ldapssl_install_routines in -l${ldaplib}... " >&6; }
6259 if eval \${$as_ac_Lib+:} false; then :
6260 $as_echo_n "(cached) " >&6
6262 ac_check_lib_save_LIBS=$LIBS
6263 LIBS="-l${ldaplib} ${extralib} $LIBS"
6264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6265 /* end confdefs.h. */
6267 /* Override any GCC internal prototype to avoid an error.
6268 Use char because int might match the return type of a GCC
6269 builtin and then its argument prototype would still apply. */
6273 char ldapssl_install_routines ();
6277 return ldapssl_install_routines ();
6282 if ac_fn_c_try_link "$LINENO"; then :
6283 eval "$as_ac_Lib=yes"
6285 eval "$as_ac_Lib=no"
6287 rm -f core conftest.err conftest.$ac_objext \
6288 conftest$ac_exeext conftest.$ac_ext
6289 LIBS=$ac_check_lib_save_LIBS
6291 eval ac_res=\$$as_ac_Lib
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6293 $as_echo "$ac_res" >&6; }
6294 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
6295 apu_has_ldapssl_install_routines="1"
6305 if test ${apu_has_ldap} != "1"; then
6307 extralib="-lnspr3 -lplc3 -lplds3"
6308 # Clear the cache entry for subsequent APU_FIND_LDAPLIB invocations.
6310 ldaplib_cache_id="`echo $ldaplib | sed -e 's/[^a-zA-Z0-9_]/_/g'`"
6312 unset ac_cv_lib_${ldaplib_cache_id}_ldap_init
6313 unset ac_cv_lib_${ldaplib_cache_id}___ldap_init
6314 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_init" | $as_tr_sh`
6315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_init in -l${ldaplib}" >&5
6316 $as_echo_n "checking for ldap_init in -l${ldaplib}... " >&6; }
6317 if eval \${$as_ac_Lib+:} false; then :
6318 $as_echo_n "(cached) " >&6
6320 ac_check_lib_save_LIBS=$LIBS
6321 LIBS="-l${ldaplib} ${extralib} $LIBS"
6322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6323 /* end confdefs.h. */
6325 /* Override any GCC internal prototype to avoid an error.
6326 Use char because int might match the return type of a GCC
6327 builtin and then its argument prototype would still apply. */
6335 return ldap_init ();
6340 if ac_fn_c_try_link "$LINENO"; then :
6341 eval "$as_ac_Lib=yes"
6343 eval "$as_ac_Lib=no"
6345 rm -f core conftest.err conftest.$ac_objext \
6346 conftest$ac_exeext conftest.$ac_ext
6347 LIBS=$ac_check_lib_save_LIBS
6349 eval ac_res=\$$as_ac_Lib
6350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6351 $as_echo "$ac_res" >&6; }
6352 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
6354 LDADD_ldap_found="-l${ldaplib} ${extralib}"
6355 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_client_init" | $as_tr_sh`
6356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_client_init in -l${ldaplib}" >&5
6357 $as_echo_n "checking for ldapssl_client_init in -l${ldaplib}... " >&6; }
6358 if eval \${$as_ac_Lib+:} false; then :
6359 $as_echo_n "(cached) " >&6
6361 ac_check_lib_save_LIBS=$LIBS
6362 LIBS="-l${ldaplib} ${extralib} $LIBS"
6363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6364 /* end confdefs.h. */
6366 /* Override any GCC internal prototype to avoid an error.
6367 Use char because int might match the return type of a GCC
6368 builtin and then its argument prototype would still apply. */
6372 char ldapssl_client_init ();
6376 return ldapssl_client_init ();
6381 if ac_fn_c_try_link "$LINENO"; then :
6382 eval "$as_ac_Lib=yes"
6384 eval "$as_ac_Lib=no"
6386 rm -f core conftest.err conftest.$ac_objext \
6387 conftest$ac_exeext conftest.$ac_ext
6388 LIBS=$ac_check_lib_save_LIBS
6390 eval ac_res=\$$as_ac_Lib
6391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6392 $as_echo "$ac_res" >&6; }
6393 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
6394 apu_has_ldapssl_client_init="1"
6397 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_client_deinit" | $as_tr_sh`
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_client_deinit in -l${ldaplib}" >&5
6399 $as_echo_n "checking for ldapssl_client_deinit in -l${ldaplib}... " >&6; }
6400 if eval \${$as_ac_Lib+:} false; then :
6401 $as_echo_n "(cached) " >&6
6403 ac_check_lib_save_LIBS=$LIBS
6404 LIBS="-l${ldaplib} ${extralib} $LIBS"
6405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6406 /* end confdefs.h. */
6408 /* Override any GCC internal prototype to avoid an error.
6409 Use char because int might match the return type of a GCC
6410 builtin and then its argument prototype would still apply. */
6414 char ldapssl_client_deinit ();
6418 return ldapssl_client_deinit ();
6423 if ac_fn_c_try_link "$LINENO"; then :
6424 eval "$as_ac_Lib=yes"
6426 eval "$as_ac_Lib=no"
6428 rm -f core conftest.err conftest.$ac_objext \
6429 conftest$ac_exeext conftest.$ac_ext
6430 LIBS=$ac_check_lib_save_LIBS
6432 eval ac_res=\$$as_ac_Lib
6433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6434 $as_echo "$ac_res" >&6; }
6435 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
6436 apu_has_ldapssl_client_deinit="1"
6439 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_add_trusted_cert" | $as_tr_sh`
6440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_add_trusted_cert in -l${ldaplib}" >&5
6441 $as_echo_n "checking for ldapssl_add_trusted_cert in -l${ldaplib}... " >&6; }
6442 if eval \${$as_ac_Lib+:} false; then :
6443 $as_echo_n "(cached) " >&6
6445 ac_check_lib_save_LIBS=$LIBS
6446 LIBS="-l${ldaplib} ${extralib} $LIBS"
6447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6448 /* end confdefs.h. */
6450 /* Override any GCC internal prototype to avoid an error.
6451 Use char because int might match the return type of a GCC
6452 builtin and then its argument prototype would still apply. */
6456 char ldapssl_add_trusted_cert ();
6460 return ldapssl_add_trusted_cert ();
6465 if ac_fn_c_try_link "$LINENO"; then :
6466 eval "$as_ac_Lib=yes"
6468 eval "$as_ac_Lib=no"
6470 rm -f core conftest.err conftest.$ac_objext \
6471 conftest$ac_exeext conftest.$ac_ext
6472 LIBS=$ac_check_lib_save_LIBS
6474 eval ac_res=\$$as_ac_Lib
6475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6476 $as_echo "$ac_res" >&6; }
6477 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
6478 apu_has_ldapssl_add_trusted_cert="1"
6481 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_start_tls_s" | $as_tr_sh`
6482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_start_tls_s in -l${ldaplib}" >&5
6483 $as_echo_n "checking for ldap_start_tls_s in -l${ldaplib}... " >&6; }
6484 if eval \${$as_ac_Lib+:} false; then :
6485 $as_echo_n "(cached) " >&6
6487 ac_check_lib_save_LIBS=$LIBS
6488 LIBS="-l${ldaplib} ${extralib} $LIBS"
6489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6490 /* end confdefs.h. */
6492 /* Override any GCC internal prototype to avoid an error.
6493 Use char because int might match the return type of a GCC
6494 builtin and then its argument prototype would still apply. */
6498 char ldap_start_tls_s ();
6502 return ldap_start_tls_s ();
6507 if ac_fn_c_try_link "$LINENO"; then :
6508 eval "$as_ac_Lib=yes"
6510 eval "$as_ac_Lib=no"
6512 rm -f core conftest.err conftest.$ac_objext \
6513 conftest$ac_exeext conftest.$ac_ext
6514 LIBS=$ac_check_lib_save_LIBS
6516 eval ac_res=\$$as_ac_Lib
6517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6518 $as_echo "$ac_res" >&6; }
6519 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
6520 apu_has_ldap_start_tls_s="1"
6523 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_sslinit" | $as_tr_sh`
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_sslinit in -l${ldaplib}" >&5
6525 $as_echo_n "checking for ldap_sslinit in -l${ldaplib}... " >&6; }
6526 if eval \${$as_ac_Lib+:} false; then :
6527 $as_echo_n "(cached) " >&6
6529 ac_check_lib_save_LIBS=$LIBS
6530 LIBS="-l${ldaplib} ${extralib} $LIBS"
6531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6532 /* end confdefs.h. */
6534 /* Override any GCC internal prototype to avoid an error.
6535 Use char because int might match the return type of a GCC
6536 builtin and then its argument prototype would still apply. */
6540 char ldap_sslinit ();
6544 return ldap_sslinit ();
6549 if ac_fn_c_try_link "$LINENO"; then :
6550 eval "$as_ac_Lib=yes"
6552 eval "$as_ac_Lib=no"
6554 rm -f core conftest.err conftest.$ac_objext \
6555 conftest$ac_exeext conftest.$ac_ext
6556 LIBS=$ac_check_lib_save_LIBS
6558 eval ac_res=\$$as_ac_Lib
6559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6560 $as_echo "$ac_res" >&6; }
6561 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
6562 apu_has_ldap_sslinit="1"
6565 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_init" | $as_tr_sh`
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_init in -l${ldaplib}" >&5
6567 $as_echo_n "checking for ldapssl_init in -l${ldaplib}... " >&6; }
6568 if eval \${$as_ac_Lib+:} false; then :
6569 $as_echo_n "(cached) " >&6
6571 ac_check_lib_save_LIBS=$LIBS
6572 LIBS="-l${ldaplib} ${extralib} $LIBS"
6573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6574 /* end confdefs.h. */
6576 /* Override any GCC internal prototype to avoid an error.
6577 Use char because int might match the return type of a GCC
6578 builtin and then its argument prototype would still apply. */
6582 char ldapssl_init ();
6586 return ldapssl_init ();
6591 if ac_fn_c_try_link "$LINENO"; then :
6592 eval "$as_ac_Lib=yes"
6594 eval "$as_ac_Lib=no"
6596 rm -f core conftest.err conftest.$ac_objext \
6597 conftest$ac_exeext conftest.$ac_ext
6598 LIBS=$ac_check_lib_save_LIBS
6600 eval ac_res=\$$as_ac_Lib
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6602 $as_echo "$ac_res" >&6; }
6603 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
6604 apu_has_ldapssl_init="1"
6607 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_install_routines" | $as_tr_sh`
6608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_install_routines in -l${ldaplib}" >&5
6609 $as_echo_n "checking for ldapssl_install_routines in -l${ldaplib}... " >&6; }
6610 if eval \${$as_ac_Lib+:} false; then :
6611 $as_echo_n "(cached) " >&6
6613 ac_check_lib_save_LIBS=$LIBS
6614 LIBS="-l${ldaplib} ${extralib} $LIBS"
6615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6616 /* end confdefs.h. */
6618 /* Override any GCC internal prototype to avoid an error.
6619 Use char because int might match the return type of a GCC
6620 builtin and then its argument prototype would still apply. */
6624 char ldapssl_install_routines ();
6628 return ldapssl_install_routines ();
6633 if ac_fn_c_try_link "$LINENO"; then :
6634 eval "$as_ac_Lib=yes"
6636 eval "$as_ac_Lib=no"
6638 rm -f core conftest.err conftest.$ac_objext \
6639 conftest$ac_exeext conftest.$ac_ext
6640 LIBS=$ac_check_lib_save_LIBS
6642 eval ac_res=\$$as_ac_Lib
6643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6644 $as_echo "$ac_res" >&6; }
6645 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
6646 apu_has_ldapssl_install_routines="1"
6656 if test ${apu_has_ldap} != "1"; then
6659 # Clear the cache entry for subsequent APU_FIND_LDAPLIB invocations.
6661 ldaplib_cache_id="`echo $ldaplib | sed -e 's/[^a-zA-Z0-9_]/_/g'`"
6663 unset ac_cv_lib_${ldaplib_cache_id}_ldap_init
6664 unset ac_cv_lib_${ldaplib_cache_id}___ldap_init
6665 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_init" | $as_tr_sh`
6666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_init in -l${ldaplib}" >&5
6667 $as_echo_n "checking for ldap_init in -l${ldaplib}... " >&6; }
6668 if eval \${$as_ac_Lib+:} false; then :
6669 $as_echo_n "(cached) " >&6
6671 ac_check_lib_save_LIBS=$LIBS
6672 LIBS="-l${ldaplib} ${extralib} $LIBS"
6673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6674 /* end confdefs.h. */
6676 /* Override any GCC internal prototype to avoid an error.
6677 Use char because int might match the return type of a GCC
6678 builtin and then its argument prototype would still apply. */
6686 return ldap_init ();
6691 if ac_fn_c_try_link "$LINENO"; then :
6692 eval "$as_ac_Lib=yes"
6694 eval "$as_ac_Lib=no"
6696 rm -f core conftest.err conftest.$ac_objext \
6697 conftest$ac_exeext conftest.$ac_ext
6698 LIBS=$ac_check_lib_save_LIBS
6700 eval ac_res=\$$as_ac_Lib
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6702 $as_echo "$ac_res" >&6; }
6703 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
6705 LDADD_ldap_found="-l${ldaplib} ${extralib}"
6706 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_client_init" | $as_tr_sh`
6707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_client_init in -l${ldaplib}" >&5
6708 $as_echo_n "checking for ldapssl_client_init in -l${ldaplib}... " >&6; }
6709 if eval \${$as_ac_Lib+:} false; then :
6710 $as_echo_n "(cached) " >&6
6712 ac_check_lib_save_LIBS=$LIBS
6713 LIBS="-l${ldaplib} ${extralib} $LIBS"
6714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6715 /* end confdefs.h. */
6717 /* Override any GCC internal prototype to avoid an error.
6718 Use char because int might match the return type of a GCC
6719 builtin and then its argument prototype would still apply. */
6723 char ldapssl_client_init ();
6727 return ldapssl_client_init ();
6732 if ac_fn_c_try_link "$LINENO"; then :
6733 eval "$as_ac_Lib=yes"
6735 eval "$as_ac_Lib=no"
6737 rm -f core conftest.err conftest.$ac_objext \
6738 conftest$ac_exeext conftest.$ac_ext
6739 LIBS=$ac_check_lib_save_LIBS
6741 eval ac_res=\$$as_ac_Lib
6742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6743 $as_echo "$ac_res" >&6; }
6744 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
6745 apu_has_ldapssl_client_init="1"
6748 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_client_deinit" | $as_tr_sh`
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_client_deinit in -l${ldaplib}" >&5
6750 $as_echo_n "checking for ldapssl_client_deinit in -l${ldaplib}... " >&6; }
6751 if eval \${$as_ac_Lib+:} false; then :
6752 $as_echo_n "(cached) " >&6
6754 ac_check_lib_save_LIBS=$LIBS
6755 LIBS="-l${ldaplib} ${extralib} $LIBS"
6756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6757 /* end confdefs.h. */
6759 /* Override any GCC internal prototype to avoid an error.
6760 Use char because int might match the return type of a GCC
6761 builtin and then its argument prototype would still apply. */
6765 char ldapssl_client_deinit ();
6769 return ldapssl_client_deinit ();
6774 if ac_fn_c_try_link "$LINENO"; then :
6775 eval "$as_ac_Lib=yes"
6777 eval "$as_ac_Lib=no"
6779 rm -f core conftest.err conftest.$ac_objext \
6780 conftest$ac_exeext conftest.$ac_ext
6781 LIBS=$ac_check_lib_save_LIBS
6783 eval ac_res=\$$as_ac_Lib
6784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6785 $as_echo "$ac_res" >&6; }
6786 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
6787 apu_has_ldapssl_client_deinit="1"
6790 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_add_trusted_cert" | $as_tr_sh`
6791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_add_trusted_cert in -l${ldaplib}" >&5
6792 $as_echo_n "checking for ldapssl_add_trusted_cert in -l${ldaplib}... " >&6; }
6793 if eval \${$as_ac_Lib+:} false; then :
6794 $as_echo_n "(cached) " >&6
6796 ac_check_lib_save_LIBS=$LIBS
6797 LIBS="-l${ldaplib} ${extralib} $LIBS"
6798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6799 /* end confdefs.h. */
6801 /* Override any GCC internal prototype to avoid an error.
6802 Use char because int might match the return type of a GCC
6803 builtin and then its argument prototype would still apply. */
6807 char ldapssl_add_trusted_cert ();
6811 return ldapssl_add_trusted_cert ();
6816 if ac_fn_c_try_link "$LINENO"; then :
6817 eval "$as_ac_Lib=yes"
6819 eval "$as_ac_Lib=no"
6821 rm -f core conftest.err conftest.$ac_objext \
6822 conftest$ac_exeext conftest.$ac_ext
6823 LIBS=$ac_check_lib_save_LIBS
6825 eval ac_res=\$$as_ac_Lib
6826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6827 $as_echo "$ac_res" >&6; }
6828 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
6829 apu_has_ldapssl_add_trusted_cert="1"
6832 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_start_tls_s" | $as_tr_sh`
6833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_start_tls_s in -l${ldaplib}" >&5
6834 $as_echo_n "checking for ldap_start_tls_s in -l${ldaplib}... " >&6; }
6835 if eval \${$as_ac_Lib+:} false; then :
6836 $as_echo_n "(cached) " >&6
6838 ac_check_lib_save_LIBS=$LIBS
6839 LIBS="-l${ldaplib} ${extralib} $LIBS"
6840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6841 /* end confdefs.h. */
6843 /* Override any GCC internal prototype to avoid an error.
6844 Use char because int might match the return type of a GCC
6845 builtin and then its argument prototype would still apply. */
6849 char ldap_start_tls_s ();
6853 return ldap_start_tls_s ();
6858 if ac_fn_c_try_link "$LINENO"; then :
6859 eval "$as_ac_Lib=yes"
6861 eval "$as_ac_Lib=no"
6863 rm -f core conftest.err conftest.$ac_objext \
6864 conftest$ac_exeext conftest.$ac_ext
6865 LIBS=$ac_check_lib_save_LIBS
6867 eval ac_res=\$$as_ac_Lib
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6869 $as_echo "$ac_res" >&6; }
6870 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
6871 apu_has_ldap_start_tls_s="1"
6874 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_sslinit" | $as_tr_sh`
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_sslinit in -l${ldaplib}" >&5
6876 $as_echo_n "checking for ldap_sslinit in -l${ldaplib}... " >&6; }
6877 if eval \${$as_ac_Lib+:} false; then :
6878 $as_echo_n "(cached) " >&6
6880 ac_check_lib_save_LIBS=$LIBS
6881 LIBS="-l${ldaplib} ${extralib} $LIBS"
6882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6883 /* end confdefs.h. */
6885 /* Override any GCC internal prototype to avoid an error.
6886 Use char because int might match the return type of a GCC
6887 builtin and then its argument prototype would still apply. */
6891 char ldap_sslinit ();
6895 return ldap_sslinit ();
6900 if ac_fn_c_try_link "$LINENO"; then :
6901 eval "$as_ac_Lib=yes"
6903 eval "$as_ac_Lib=no"
6905 rm -f core conftest.err conftest.$ac_objext \
6906 conftest$ac_exeext conftest.$ac_ext
6907 LIBS=$ac_check_lib_save_LIBS
6909 eval ac_res=\$$as_ac_Lib
6910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6911 $as_echo "$ac_res" >&6; }
6912 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
6913 apu_has_ldap_sslinit="1"
6916 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_init" | $as_tr_sh`
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_init in -l${ldaplib}" >&5
6918 $as_echo_n "checking for ldapssl_init in -l${ldaplib}... " >&6; }
6919 if eval \${$as_ac_Lib+:} false; then :
6920 $as_echo_n "(cached) " >&6
6922 ac_check_lib_save_LIBS=$LIBS
6923 LIBS="-l${ldaplib} ${extralib} $LIBS"
6924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6925 /* end confdefs.h. */
6927 /* Override any GCC internal prototype to avoid an error.
6928 Use char because int might match the return type of a GCC
6929 builtin and then its argument prototype would still apply. */
6933 char ldapssl_init ();
6937 return ldapssl_init ();
6942 if ac_fn_c_try_link "$LINENO"; then :
6943 eval "$as_ac_Lib=yes"
6945 eval "$as_ac_Lib=no"
6947 rm -f core conftest.err conftest.$ac_objext \
6948 conftest$ac_exeext conftest.$ac_ext
6949 LIBS=$ac_check_lib_save_LIBS
6951 eval ac_res=\$$as_ac_Lib
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6953 $as_echo "$ac_res" >&6; }
6954 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
6955 apu_has_ldapssl_init="1"
6958 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_install_routines" | $as_tr_sh`
6959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_install_routines in -l${ldaplib}" >&5
6960 $as_echo_n "checking for ldapssl_install_routines in -l${ldaplib}... " >&6; }
6961 if eval \${$as_ac_Lib+:} false; then :
6962 $as_echo_n "(cached) " >&6
6964 ac_check_lib_save_LIBS=$LIBS
6965 LIBS="-l${ldaplib} ${extralib} $LIBS"
6966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6967 /* end confdefs.h. */
6969 /* Override any GCC internal prototype to avoid an error.
6970 Use char because int might match the return type of a GCC
6971 builtin and then its argument prototype would still apply. */
6975 char ldapssl_install_routines ();
6979 return ldapssl_install_routines ();
6984 if ac_fn_c_try_link "$LINENO"; then :
6985 eval "$as_ac_Lib=yes"
6987 eval "$as_ac_Lib=no"
6989 rm -f core conftest.err conftest.$ac_objext \
6990 conftest$ac_exeext conftest.$ac_ext
6991 LIBS=$ac_check_lib_save_LIBS
6993 eval ac_res=\$$as_ac_Lib
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6995 $as_echo "$ac_res" >&6; }
6996 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
6997 apu_has_ldapssl_install_routines="1"
7007 if test ${apu_has_ldap} != "1"; then
7010 # Clear the cache entry for subsequent APU_FIND_LDAPLIB invocations.
7012 ldaplib_cache_id="`echo $ldaplib | sed -e 's/[^a-zA-Z0-9_]/_/g'`"
7014 unset ac_cv_lib_${ldaplib_cache_id}_ldap_init
7015 unset ac_cv_lib_${ldaplib_cache_id}___ldap_init
7016 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_init" | $as_tr_sh`
7017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_init in -l${ldaplib}" >&5
7018 $as_echo_n "checking for ldap_init in -l${ldaplib}... " >&6; }
7019 if eval \${$as_ac_Lib+:} false; then :
7020 $as_echo_n "(cached) " >&6
7022 ac_check_lib_save_LIBS=$LIBS
7023 LIBS="-l${ldaplib} ${extralib} $LIBS"
7024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7025 /* end confdefs.h. */
7027 /* Override any GCC internal prototype to avoid an error.
7028 Use char because int might match the return type of a GCC
7029 builtin and then its argument prototype would still apply. */
7037 return ldap_init ();
7042 if ac_fn_c_try_link "$LINENO"; then :
7043 eval "$as_ac_Lib=yes"
7045 eval "$as_ac_Lib=no"
7047 rm -f core conftest.err conftest.$ac_objext \
7048 conftest$ac_exeext conftest.$ac_ext
7049 LIBS=$ac_check_lib_save_LIBS
7051 eval ac_res=\$$as_ac_Lib
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7053 $as_echo "$ac_res" >&6; }
7054 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
7056 LDADD_ldap_found="-l${ldaplib} ${extralib}"
7057 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_client_init" | $as_tr_sh`
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_client_init in -l${ldaplib}" >&5
7059 $as_echo_n "checking for ldapssl_client_init in -l${ldaplib}... " >&6; }
7060 if eval \${$as_ac_Lib+:} false; then :
7061 $as_echo_n "(cached) " >&6
7063 ac_check_lib_save_LIBS=$LIBS
7064 LIBS="-l${ldaplib} ${extralib} $LIBS"
7065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7066 /* end confdefs.h. */
7068 /* Override any GCC internal prototype to avoid an error.
7069 Use char because int might match the return type of a GCC
7070 builtin and then its argument prototype would still apply. */
7074 char ldapssl_client_init ();
7078 return ldapssl_client_init ();
7083 if ac_fn_c_try_link "$LINENO"; then :
7084 eval "$as_ac_Lib=yes"
7086 eval "$as_ac_Lib=no"
7088 rm -f core conftest.err conftest.$ac_objext \
7089 conftest$ac_exeext conftest.$ac_ext
7090 LIBS=$ac_check_lib_save_LIBS
7092 eval ac_res=\$$as_ac_Lib
7093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7094 $as_echo "$ac_res" >&6; }
7095 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
7096 apu_has_ldapssl_client_init="1"
7099 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_client_deinit" | $as_tr_sh`
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_client_deinit in -l${ldaplib}" >&5
7101 $as_echo_n "checking for ldapssl_client_deinit in -l${ldaplib}... " >&6; }
7102 if eval \${$as_ac_Lib+:} false; then :
7103 $as_echo_n "(cached) " >&6
7105 ac_check_lib_save_LIBS=$LIBS
7106 LIBS="-l${ldaplib} ${extralib} $LIBS"
7107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7108 /* end confdefs.h. */
7110 /* Override any GCC internal prototype to avoid an error.
7111 Use char because int might match the return type of a GCC
7112 builtin and then its argument prototype would still apply. */
7116 char ldapssl_client_deinit ();
7120 return ldapssl_client_deinit ();
7125 if ac_fn_c_try_link "$LINENO"; then :
7126 eval "$as_ac_Lib=yes"
7128 eval "$as_ac_Lib=no"
7130 rm -f core conftest.err conftest.$ac_objext \
7131 conftest$ac_exeext conftest.$ac_ext
7132 LIBS=$ac_check_lib_save_LIBS
7134 eval ac_res=\$$as_ac_Lib
7135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7136 $as_echo "$ac_res" >&6; }
7137 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
7138 apu_has_ldapssl_client_deinit="1"
7141 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_add_trusted_cert" | $as_tr_sh`
7142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_add_trusted_cert in -l${ldaplib}" >&5
7143 $as_echo_n "checking for ldapssl_add_trusted_cert in -l${ldaplib}... " >&6; }
7144 if eval \${$as_ac_Lib+:} false; then :
7145 $as_echo_n "(cached) " >&6
7147 ac_check_lib_save_LIBS=$LIBS
7148 LIBS="-l${ldaplib} ${extralib} $LIBS"
7149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7150 /* end confdefs.h. */
7152 /* Override any GCC internal prototype to avoid an error.
7153 Use char because int might match the return type of a GCC
7154 builtin and then its argument prototype would still apply. */
7158 char ldapssl_add_trusted_cert ();
7162 return ldapssl_add_trusted_cert ();
7167 if ac_fn_c_try_link "$LINENO"; then :
7168 eval "$as_ac_Lib=yes"
7170 eval "$as_ac_Lib=no"
7172 rm -f core conftest.err conftest.$ac_objext \
7173 conftest$ac_exeext conftest.$ac_ext
7174 LIBS=$ac_check_lib_save_LIBS
7176 eval ac_res=\$$as_ac_Lib
7177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7178 $as_echo "$ac_res" >&6; }
7179 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
7180 apu_has_ldapssl_add_trusted_cert="1"
7183 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_start_tls_s" | $as_tr_sh`
7184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_start_tls_s in -l${ldaplib}" >&5
7185 $as_echo_n "checking for ldap_start_tls_s in -l${ldaplib}... " >&6; }
7186 if eval \${$as_ac_Lib+:} false; then :
7187 $as_echo_n "(cached) " >&6
7189 ac_check_lib_save_LIBS=$LIBS
7190 LIBS="-l${ldaplib} ${extralib} $LIBS"
7191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7192 /* end confdefs.h. */
7194 /* Override any GCC internal prototype to avoid an error.
7195 Use char because int might match the return type of a GCC
7196 builtin and then its argument prototype would still apply. */
7200 char ldap_start_tls_s ();
7204 return ldap_start_tls_s ();
7209 if ac_fn_c_try_link "$LINENO"; then :
7210 eval "$as_ac_Lib=yes"
7212 eval "$as_ac_Lib=no"
7214 rm -f core conftest.err conftest.$ac_objext \
7215 conftest$ac_exeext conftest.$ac_ext
7216 LIBS=$ac_check_lib_save_LIBS
7218 eval ac_res=\$$as_ac_Lib
7219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7220 $as_echo "$ac_res" >&6; }
7221 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
7222 apu_has_ldap_start_tls_s="1"
7225 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_sslinit" | $as_tr_sh`
7226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_sslinit in -l${ldaplib}" >&5
7227 $as_echo_n "checking for ldap_sslinit in -l${ldaplib}... " >&6; }
7228 if eval \${$as_ac_Lib+:} false; then :
7229 $as_echo_n "(cached) " >&6
7231 ac_check_lib_save_LIBS=$LIBS
7232 LIBS="-l${ldaplib} ${extralib} $LIBS"
7233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7234 /* end confdefs.h. */
7236 /* Override any GCC internal prototype to avoid an error.
7237 Use char because int might match the return type of a GCC
7238 builtin and then its argument prototype would still apply. */
7242 char ldap_sslinit ();
7246 return ldap_sslinit ();
7251 if ac_fn_c_try_link "$LINENO"; then :
7252 eval "$as_ac_Lib=yes"
7254 eval "$as_ac_Lib=no"
7256 rm -f core conftest.err conftest.$ac_objext \
7257 conftest$ac_exeext conftest.$ac_ext
7258 LIBS=$ac_check_lib_save_LIBS
7260 eval ac_res=\$$as_ac_Lib
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7262 $as_echo "$ac_res" >&6; }
7263 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
7264 apu_has_ldap_sslinit="1"
7267 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_init" | $as_tr_sh`
7268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_init in -l${ldaplib}" >&5
7269 $as_echo_n "checking for ldapssl_init in -l${ldaplib}... " >&6; }
7270 if eval \${$as_ac_Lib+:} false; then :
7271 $as_echo_n "(cached) " >&6
7273 ac_check_lib_save_LIBS=$LIBS
7274 LIBS="-l${ldaplib} ${extralib} $LIBS"
7275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7276 /* end confdefs.h. */
7278 /* Override any GCC internal prototype to avoid an error.
7279 Use char because int might match the return type of a GCC
7280 builtin and then its argument prototype would still apply. */
7284 char ldapssl_init ();
7288 return ldapssl_init ();
7293 if ac_fn_c_try_link "$LINENO"; then :
7294 eval "$as_ac_Lib=yes"
7296 eval "$as_ac_Lib=no"
7298 rm -f core conftest.err conftest.$ac_objext \
7299 conftest$ac_exeext conftest.$ac_ext
7300 LIBS=$ac_check_lib_save_LIBS
7302 eval ac_res=\$$as_ac_Lib
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7304 $as_echo "$ac_res" >&6; }
7305 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
7306 apu_has_ldapssl_init="1"
7309 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_install_routines" | $as_tr_sh`
7310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_install_routines in -l${ldaplib}" >&5
7311 $as_echo_n "checking for ldapssl_install_routines in -l${ldaplib}... " >&6; }
7312 if eval \${$as_ac_Lib+:} false; then :
7313 $as_echo_n "(cached) " >&6
7315 ac_check_lib_save_LIBS=$LIBS
7316 LIBS="-l${ldaplib} ${extralib} $LIBS"
7317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7318 /* end confdefs.h. */
7320 /* Override any GCC internal prototype to avoid an error.
7321 Use char because int might match the return type of a GCC
7322 builtin and then its argument prototype would still apply. */
7326 char ldapssl_install_routines ();
7330 return ldapssl_install_routines ();
7335 if ac_fn_c_try_link "$LINENO"; then :
7336 eval "$as_ac_Lib=yes"
7338 eval "$as_ac_Lib=no"
7340 rm -f core conftest.err conftest.$ac_objext \
7341 conftest$ac_exeext conftest.$ac_ext
7342 LIBS=$ac_check_lib_save_LIBS
7344 eval ac_res=\$$as_ac_Lib
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7346 $as_echo "$ac_res" >&6; }
7347 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
7348 apu_has_ldapssl_install_routines="1"
7358 if test ${apu_has_ldap} != "1"; then
7361 # Clear the cache entry for subsequent APU_FIND_LDAPLIB invocations.
7363 ldaplib_cache_id="`echo $ldaplib | sed -e 's/[^a-zA-Z0-9_]/_/g'`"
7365 unset ac_cv_lib_${ldaplib_cache_id}_ldap_init
7366 unset ac_cv_lib_${ldaplib_cache_id}___ldap_init
7367 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_init" | $as_tr_sh`
7368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_init in -l${ldaplib}" >&5
7369 $as_echo_n "checking for ldap_init in -l${ldaplib}... " >&6; }
7370 if eval \${$as_ac_Lib+:} false; then :
7371 $as_echo_n "(cached) " >&6
7373 ac_check_lib_save_LIBS=$LIBS
7374 LIBS="-l${ldaplib} ${extralib} $LIBS"
7375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7376 /* end confdefs.h. */
7378 /* Override any GCC internal prototype to avoid an error.
7379 Use char because int might match the return type of a GCC
7380 builtin and then its argument prototype would still apply. */
7388 return ldap_init ();
7393 if ac_fn_c_try_link "$LINENO"; then :
7394 eval "$as_ac_Lib=yes"
7396 eval "$as_ac_Lib=no"
7398 rm -f core conftest.err conftest.$ac_objext \
7399 conftest$ac_exeext conftest.$ac_ext
7400 LIBS=$ac_check_lib_save_LIBS
7402 eval ac_res=\$$as_ac_Lib
7403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7404 $as_echo "$ac_res" >&6; }
7405 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
7407 LDADD_ldap_found="-l${ldaplib} ${extralib}"
7408 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_client_init" | $as_tr_sh`
7409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_client_init in -l${ldaplib}" >&5
7410 $as_echo_n "checking for ldapssl_client_init in -l${ldaplib}... " >&6; }
7411 if eval \${$as_ac_Lib+:} false; then :
7412 $as_echo_n "(cached) " >&6
7414 ac_check_lib_save_LIBS=$LIBS
7415 LIBS="-l${ldaplib} ${extralib} $LIBS"
7416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7417 /* end confdefs.h. */
7419 /* Override any GCC internal prototype to avoid an error.
7420 Use char because int might match the return type of a GCC
7421 builtin and then its argument prototype would still apply. */
7425 char ldapssl_client_init ();
7429 return ldapssl_client_init ();
7434 if ac_fn_c_try_link "$LINENO"; then :
7435 eval "$as_ac_Lib=yes"
7437 eval "$as_ac_Lib=no"
7439 rm -f core conftest.err conftest.$ac_objext \
7440 conftest$ac_exeext conftest.$ac_ext
7441 LIBS=$ac_check_lib_save_LIBS
7443 eval ac_res=\$$as_ac_Lib
7444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7445 $as_echo "$ac_res" >&6; }
7446 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
7447 apu_has_ldapssl_client_init="1"
7450 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_client_deinit" | $as_tr_sh`
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_client_deinit in -l${ldaplib}" >&5
7452 $as_echo_n "checking for ldapssl_client_deinit in -l${ldaplib}... " >&6; }
7453 if eval \${$as_ac_Lib+:} false; then :
7454 $as_echo_n "(cached) " >&6
7456 ac_check_lib_save_LIBS=$LIBS
7457 LIBS="-l${ldaplib} ${extralib} $LIBS"
7458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7459 /* end confdefs.h. */
7461 /* Override any GCC internal prototype to avoid an error.
7462 Use char because int might match the return type of a GCC
7463 builtin and then its argument prototype would still apply. */
7467 char ldapssl_client_deinit ();
7471 return ldapssl_client_deinit ();
7476 if ac_fn_c_try_link "$LINENO"; then :
7477 eval "$as_ac_Lib=yes"
7479 eval "$as_ac_Lib=no"
7481 rm -f core conftest.err conftest.$ac_objext \
7482 conftest$ac_exeext conftest.$ac_ext
7483 LIBS=$ac_check_lib_save_LIBS
7485 eval ac_res=\$$as_ac_Lib
7486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7487 $as_echo "$ac_res" >&6; }
7488 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
7489 apu_has_ldapssl_client_deinit="1"
7492 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_add_trusted_cert" | $as_tr_sh`
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_add_trusted_cert in -l${ldaplib}" >&5
7494 $as_echo_n "checking for ldapssl_add_trusted_cert in -l${ldaplib}... " >&6; }
7495 if eval \${$as_ac_Lib+:} false; then :
7496 $as_echo_n "(cached) " >&6
7498 ac_check_lib_save_LIBS=$LIBS
7499 LIBS="-l${ldaplib} ${extralib} $LIBS"
7500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7501 /* end confdefs.h. */
7503 /* Override any GCC internal prototype to avoid an error.
7504 Use char because int might match the return type of a GCC
7505 builtin and then its argument prototype would still apply. */
7509 char ldapssl_add_trusted_cert ();
7513 return ldapssl_add_trusted_cert ();
7518 if ac_fn_c_try_link "$LINENO"; then :
7519 eval "$as_ac_Lib=yes"
7521 eval "$as_ac_Lib=no"
7523 rm -f core conftest.err conftest.$ac_objext \
7524 conftest$ac_exeext conftest.$ac_ext
7525 LIBS=$ac_check_lib_save_LIBS
7527 eval ac_res=\$$as_ac_Lib
7528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7529 $as_echo "$ac_res" >&6; }
7530 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
7531 apu_has_ldapssl_add_trusted_cert="1"
7534 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_start_tls_s" | $as_tr_sh`
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_start_tls_s in -l${ldaplib}" >&5
7536 $as_echo_n "checking for ldap_start_tls_s in -l${ldaplib}... " >&6; }
7537 if eval \${$as_ac_Lib+:} false; then :
7538 $as_echo_n "(cached) " >&6
7540 ac_check_lib_save_LIBS=$LIBS
7541 LIBS="-l${ldaplib} ${extralib} $LIBS"
7542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7543 /* end confdefs.h. */
7545 /* Override any GCC internal prototype to avoid an error.
7546 Use char because int might match the return type of a GCC
7547 builtin and then its argument prototype would still apply. */
7551 char ldap_start_tls_s ();
7555 return ldap_start_tls_s ();
7560 if ac_fn_c_try_link "$LINENO"; then :
7561 eval "$as_ac_Lib=yes"
7563 eval "$as_ac_Lib=no"
7565 rm -f core conftest.err conftest.$ac_objext \
7566 conftest$ac_exeext conftest.$ac_ext
7567 LIBS=$ac_check_lib_save_LIBS
7569 eval ac_res=\$$as_ac_Lib
7570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7571 $as_echo "$ac_res" >&6; }
7572 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
7573 apu_has_ldap_start_tls_s="1"
7576 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_sslinit" | $as_tr_sh`
7577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_sslinit in -l${ldaplib}" >&5
7578 $as_echo_n "checking for ldap_sslinit in -l${ldaplib}... " >&6; }
7579 if eval \${$as_ac_Lib+:} false; then :
7580 $as_echo_n "(cached) " >&6
7582 ac_check_lib_save_LIBS=$LIBS
7583 LIBS="-l${ldaplib} ${extralib} $LIBS"
7584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7585 /* end confdefs.h. */
7587 /* Override any GCC internal prototype to avoid an error.
7588 Use char because int might match the return type of a GCC
7589 builtin and then its argument prototype would still apply. */
7593 char ldap_sslinit ();
7597 return ldap_sslinit ();
7602 if ac_fn_c_try_link "$LINENO"; then :
7603 eval "$as_ac_Lib=yes"
7605 eval "$as_ac_Lib=no"
7607 rm -f core conftest.err conftest.$ac_objext \
7608 conftest$ac_exeext conftest.$ac_ext
7609 LIBS=$ac_check_lib_save_LIBS
7611 eval ac_res=\$$as_ac_Lib
7612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7613 $as_echo "$ac_res" >&6; }
7614 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
7615 apu_has_ldap_sslinit="1"
7618 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_init" | $as_tr_sh`
7619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_init in -l${ldaplib}" >&5
7620 $as_echo_n "checking for ldapssl_init in -l${ldaplib}... " >&6; }
7621 if eval \${$as_ac_Lib+:} false; then :
7622 $as_echo_n "(cached) " >&6
7624 ac_check_lib_save_LIBS=$LIBS
7625 LIBS="-l${ldaplib} ${extralib} $LIBS"
7626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7627 /* end confdefs.h. */
7629 /* Override any GCC internal prototype to avoid an error.
7630 Use char because int might match the return type of a GCC
7631 builtin and then its argument prototype would still apply. */
7635 char ldapssl_init ();
7639 return ldapssl_init ();
7644 if ac_fn_c_try_link "$LINENO"; then :
7645 eval "$as_ac_Lib=yes"
7647 eval "$as_ac_Lib=no"
7649 rm -f core conftest.err conftest.$ac_objext \
7650 conftest$ac_exeext conftest.$ac_ext
7651 LIBS=$ac_check_lib_save_LIBS
7653 eval ac_res=\$$as_ac_Lib
7654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7655 $as_echo "$ac_res" >&6; }
7656 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
7657 apu_has_ldapssl_init="1"
7660 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_install_routines" | $as_tr_sh`
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_install_routines in -l${ldaplib}" >&5
7662 $as_echo_n "checking for ldapssl_install_routines in -l${ldaplib}... " >&6; }
7663 if eval \${$as_ac_Lib+:} false; then :
7664 $as_echo_n "(cached) " >&6
7666 ac_check_lib_save_LIBS=$LIBS
7667 LIBS="-l${ldaplib} ${extralib} $LIBS"
7668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7669 /* end confdefs.h. */
7671 /* Override any GCC internal prototype to avoid an error.
7672 Use char because int might match the return type of a GCC
7673 builtin and then its argument prototype would still apply. */
7677 char ldapssl_install_routines ();
7681 return ldapssl_install_routines ();
7686 if ac_fn_c_try_link "$LINENO"; then :
7687 eval "$as_ac_Lib=yes"
7689 eval "$as_ac_Lib=no"
7691 rm -f core conftest.err conftest.$ac_objext \
7692 conftest$ac_exeext conftest.$ac_ext
7693 LIBS=$ac_check_lib_save_LIBS
7695 eval ac_res=\$$as_ac_Lib
7696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7697 $as_echo "$ac_res" >&6; }
7698 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
7699 apu_has_ldapssl_install_routines="1"
7709 if test ${apu_has_ldap} != "1"; then
7711 extralib="-lldapx -lldapssl -lldapgss -lgssapi_krb5"
7712 # Clear the cache entry for subsequent APU_FIND_LDAPLIB invocations.
7714 ldaplib_cache_id="`echo $ldaplib | sed -e 's/[^a-zA-Z0-9_]/_/g'`"
7716 unset ac_cv_lib_${ldaplib_cache_id}_ldap_init
7717 unset ac_cv_lib_${ldaplib_cache_id}___ldap_init
7718 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_init" | $as_tr_sh`
7719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_init in -l${ldaplib}" >&5
7720 $as_echo_n "checking for ldap_init in -l${ldaplib}... " >&6; }
7721 if eval \${$as_ac_Lib+:} false; then :
7722 $as_echo_n "(cached) " >&6
7724 ac_check_lib_save_LIBS=$LIBS
7725 LIBS="-l${ldaplib} ${extralib} $LIBS"
7726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7727 /* end confdefs.h. */
7729 /* Override any GCC internal prototype to avoid an error.
7730 Use char because int might match the return type of a GCC
7731 builtin and then its argument prototype would still apply. */
7739 return ldap_init ();
7744 if ac_fn_c_try_link "$LINENO"; then :
7745 eval "$as_ac_Lib=yes"
7747 eval "$as_ac_Lib=no"
7749 rm -f core conftest.err conftest.$ac_objext \
7750 conftest$ac_exeext conftest.$ac_ext
7751 LIBS=$ac_check_lib_save_LIBS
7753 eval ac_res=\$$as_ac_Lib
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7755 $as_echo "$ac_res" >&6; }
7756 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
7758 LDADD_ldap_found="-l${ldaplib} ${extralib}"
7759 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_client_init" | $as_tr_sh`
7760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_client_init in -l${ldaplib}" >&5
7761 $as_echo_n "checking for ldapssl_client_init in -l${ldaplib}... " >&6; }
7762 if eval \${$as_ac_Lib+:} false; then :
7763 $as_echo_n "(cached) " >&6
7765 ac_check_lib_save_LIBS=$LIBS
7766 LIBS="-l${ldaplib} ${extralib} $LIBS"
7767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7768 /* end confdefs.h. */
7770 /* Override any GCC internal prototype to avoid an error.
7771 Use char because int might match the return type of a GCC
7772 builtin and then its argument prototype would still apply. */
7776 char ldapssl_client_init ();
7780 return ldapssl_client_init ();
7785 if ac_fn_c_try_link "$LINENO"; then :
7786 eval "$as_ac_Lib=yes"
7788 eval "$as_ac_Lib=no"
7790 rm -f core conftest.err conftest.$ac_objext \
7791 conftest$ac_exeext conftest.$ac_ext
7792 LIBS=$ac_check_lib_save_LIBS
7794 eval ac_res=\$$as_ac_Lib
7795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7796 $as_echo "$ac_res" >&6; }
7797 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
7798 apu_has_ldapssl_client_init="1"
7801 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_client_deinit" | $as_tr_sh`
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_client_deinit in -l${ldaplib}" >&5
7803 $as_echo_n "checking for ldapssl_client_deinit in -l${ldaplib}... " >&6; }
7804 if eval \${$as_ac_Lib+:} false; then :
7805 $as_echo_n "(cached) " >&6
7807 ac_check_lib_save_LIBS=$LIBS
7808 LIBS="-l${ldaplib} ${extralib} $LIBS"
7809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7810 /* end confdefs.h. */
7812 /* Override any GCC internal prototype to avoid an error.
7813 Use char because int might match the return type of a GCC
7814 builtin and then its argument prototype would still apply. */
7818 char ldapssl_client_deinit ();
7822 return ldapssl_client_deinit ();
7827 if ac_fn_c_try_link "$LINENO"; then :
7828 eval "$as_ac_Lib=yes"
7830 eval "$as_ac_Lib=no"
7832 rm -f core conftest.err conftest.$ac_objext \
7833 conftest$ac_exeext conftest.$ac_ext
7834 LIBS=$ac_check_lib_save_LIBS
7836 eval ac_res=\$$as_ac_Lib
7837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7838 $as_echo "$ac_res" >&6; }
7839 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
7840 apu_has_ldapssl_client_deinit="1"
7843 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_add_trusted_cert" | $as_tr_sh`
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_add_trusted_cert in -l${ldaplib}" >&5
7845 $as_echo_n "checking for ldapssl_add_trusted_cert in -l${ldaplib}... " >&6; }
7846 if eval \${$as_ac_Lib+:} false; then :
7847 $as_echo_n "(cached) " >&6
7849 ac_check_lib_save_LIBS=$LIBS
7850 LIBS="-l${ldaplib} ${extralib} $LIBS"
7851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7852 /* end confdefs.h. */
7854 /* Override any GCC internal prototype to avoid an error.
7855 Use char because int might match the return type of a GCC
7856 builtin and then its argument prototype would still apply. */
7860 char ldapssl_add_trusted_cert ();
7864 return ldapssl_add_trusted_cert ();
7869 if ac_fn_c_try_link "$LINENO"; then :
7870 eval "$as_ac_Lib=yes"
7872 eval "$as_ac_Lib=no"
7874 rm -f core conftest.err conftest.$ac_objext \
7875 conftest$ac_exeext conftest.$ac_ext
7876 LIBS=$ac_check_lib_save_LIBS
7878 eval ac_res=\$$as_ac_Lib
7879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7880 $as_echo "$ac_res" >&6; }
7881 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
7882 apu_has_ldapssl_add_trusted_cert="1"
7885 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_start_tls_s" | $as_tr_sh`
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_start_tls_s in -l${ldaplib}" >&5
7887 $as_echo_n "checking for ldap_start_tls_s in -l${ldaplib}... " >&6; }
7888 if eval \${$as_ac_Lib+:} false; then :
7889 $as_echo_n "(cached) " >&6
7891 ac_check_lib_save_LIBS=$LIBS
7892 LIBS="-l${ldaplib} ${extralib} $LIBS"
7893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7894 /* end confdefs.h. */
7896 /* Override any GCC internal prototype to avoid an error.
7897 Use char because int might match the return type of a GCC
7898 builtin and then its argument prototype would still apply. */
7902 char ldap_start_tls_s ();
7906 return ldap_start_tls_s ();
7911 if ac_fn_c_try_link "$LINENO"; then :
7912 eval "$as_ac_Lib=yes"
7914 eval "$as_ac_Lib=no"
7916 rm -f core conftest.err conftest.$ac_objext \
7917 conftest$ac_exeext conftest.$ac_ext
7918 LIBS=$ac_check_lib_save_LIBS
7920 eval ac_res=\$$as_ac_Lib
7921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7922 $as_echo "$ac_res" >&6; }
7923 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
7924 apu_has_ldap_start_tls_s="1"
7927 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_sslinit" | $as_tr_sh`
7928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_sslinit in -l${ldaplib}" >&5
7929 $as_echo_n "checking for ldap_sslinit in -l${ldaplib}... " >&6; }
7930 if eval \${$as_ac_Lib+:} false; then :
7931 $as_echo_n "(cached) " >&6
7933 ac_check_lib_save_LIBS=$LIBS
7934 LIBS="-l${ldaplib} ${extralib} $LIBS"
7935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7936 /* end confdefs.h. */
7938 /* Override any GCC internal prototype to avoid an error.
7939 Use char because int might match the return type of a GCC
7940 builtin and then its argument prototype would still apply. */
7944 char ldap_sslinit ();
7948 return ldap_sslinit ();
7953 if ac_fn_c_try_link "$LINENO"; then :
7954 eval "$as_ac_Lib=yes"
7956 eval "$as_ac_Lib=no"
7958 rm -f core conftest.err conftest.$ac_objext \
7959 conftest$ac_exeext conftest.$ac_ext
7960 LIBS=$ac_check_lib_save_LIBS
7962 eval ac_res=\$$as_ac_Lib
7963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7964 $as_echo "$ac_res" >&6; }
7965 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
7966 apu_has_ldap_sslinit="1"
7969 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_init" | $as_tr_sh`
7970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_init in -l${ldaplib}" >&5
7971 $as_echo_n "checking for ldapssl_init in -l${ldaplib}... " >&6; }
7972 if eval \${$as_ac_Lib+:} false; then :
7973 $as_echo_n "(cached) " >&6
7975 ac_check_lib_save_LIBS=$LIBS
7976 LIBS="-l${ldaplib} ${extralib} $LIBS"
7977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7978 /* end confdefs.h. */
7980 /* Override any GCC internal prototype to avoid an error.
7981 Use char because int might match the return type of a GCC
7982 builtin and then its argument prototype would still apply. */
7986 char ldapssl_init ();
7990 return ldapssl_init ();
7995 if ac_fn_c_try_link "$LINENO"; then :
7996 eval "$as_ac_Lib=yes"
7998 eval "$as_ac_Lib=no"
8000 rm -f core conftest.err conftest.$ac_objext \
8001 conftest$ac_exeext conftest.$ac_ext
8002 LIBS=$ac_check_lib_save_LIBS
8004 eval ac_res=\$$as_ac_Lib
8005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8006 $as_echo "$ac_res" >&6; }
8007 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
8008 apu_has_ldapssl_init="1"
8011 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_install_routines" | $as_tr_sh`
8012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_install_routines in -l${ldaplib}" >&5
8013 $as_echo_n "checking for ldapssl_install_routines in -l${ldaplib}... " >&6; }
8014 if eval \${$as_ac_Lib+:} false; then :
8015 $as_echo_n "(cached) " >&6
8017 ac_check_lib_save_LIBS=$LIBS
8018 LIBS="-l${ldaplib} ${extralib} $LIBS"
8019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8020 /* end confdefs.h. */
8022 /* Override any GCC internal prototype to avoid an error.
8023 Use char because int might match the return type of a GCC
8024 builtin and then its argument prototype would still apply. */
8028 char ldapssl_install_routines ();
8032 return ldapssl_install_routines ();
8037 if ac_fn_c_try_link "$LINENO"; then :
8038 eval "$as_ac_Lib=yes"
8040 eval "$as_ac_Lib=no"
8042 rm -f core conftest.err conftest.$ac_objext \
8043 conftest$ac_exeext conftest.$ac_ext
8044 LIBS=$ac_check_lib_save_LIBS
8046 eval ac_res=\$$as_ac_Lib
8047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8048 $as_echo "$ac_res" >&6; }
8049 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
8050 apu_has_ldapssl_install_routines="1"
8060 if test ${apu_has_ldap} != "1"; then
8062 extralib="-lldapx -lldapssl -lldapgss -lgss -lresolv -lsocket"
8063 # Clear the cache entry for subsequent APU_FIND_LDAPLIB invocations.
8065 ldaplib_cache_id="`echo $ldaplib | sed -e 's/[^a-zA-Z0-9_]/_/g'`"
8067 unset ac_cv_lib_${ldaplib_cache_id}_ldap_init
8068 unset ac_cv_lib_${ldaplib_cache_id}___ldap_init
8069 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_init" | $as_tr_sh`
8070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_init in -l${ldaplib}" >&5
8071 $as_echo_n "checking for ldap_init in -l${ldaplib}... " >&6; }
8072 if eval \${$as_ac_Lib+:} false; then :
8073 $as_echo_n "(cached) " >&6
8075 ac_check_lib_save_LIBS=$LIBS
8076 LIBS="-l${ldaplib} ${extralib} $LIBS"
8077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8078 /* end confdefs.h. */
8080 /* Override any GCC internal prototype to avoid an error.
8081 Use char because int might match the return type of a GCC
8082 builtin and then its argument prototype would still apply. */
8090 return ldap_init ();
8095 if ac_fn_c_try_link "$LINENO"; then :
8096 eval "$as_ac_Lib=yes"
8098 eval "$as_ac_Lib=no"
8100 rm -f core conftest.err conftest.$ac_objext \
8101 conftest$ac_exeext conftest.$ac_ext
8102 LIBS=$ac_check_lib_save_LIBS
8104 eval ac_res=\$$as_ac_Lib
8105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8106 $as_echo "$ac_res" >&6; }
8107 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
8109 LDADD_ldap_found="-l${ldaplib} ${extralib}"
8110 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_client_init" | $as_tr_sh`
8111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_client_init in -l${ldaplib}" >&5
8112 $as_echo_n "checking for ldapssl_client_init in -l${ldaplib}... " >&6; }
8113 if eval \${$as_ac_Lib+:} false; then :
8114 $as_echo_n "(cached) " >&6
8116 ac_check_lib_save_LIBS=$LIBS
8117 LIBS="-l${ldaplib} ${extralib} $LIBS"
8118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8119 /* end confdefs.h. */
8121 /* Override any GCC internal prototype to avoid an error.
8122 Use char because int might match the return type of a GCC
8123 builtin and then its argument prototype would still apply. */
8127 char ldapssl_client_init ();
8131 return ldapssl_client_init ();
8136 if ac_fn_c_try_link "$LINENO"; then :
8137 eval "$as_ac_Lib=yes"
8139 eval "$as_ac_Lib=no"
8141 rm -f core conftest.err conftest.$ac_objext \
8142 conftest$ac_exeext conftest.$ac_ext
8143 LIBS=$ac_check_lib_save_LIBS
8145 eval ac_res=\$$as_ac_Lib
8146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8147 $as_echo "$ac_res" >&6; }
8148 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
8149 apu_has_ldapssl_client_init="1"
8152 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_client_deinit" | $as_tr_sh`
8153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_client_deinit in -l${ldaplib}" >&5
8154 $as_echo_n "checking for ldapssl_client_deinit in -l${ldaplib}... " >&6; }
8155 if eval \${$as_ac_Lib+:} false; then :
8156 $as_echo_n "(cached) " >&6
8158 ac_check_lib_save_LIBS=$LIBS
8159 LIBS="-l${ldaplib} ${extralib} $LIBS"
8160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8161 /* end confdefs.h. */
8163 /* Override any GCC internal prototype to avoid an error.
8164 Use char because int might match the return type of a GCC
8165 builtin and then its argument prototype would still apply. */
8169 char ldapssl_client_deinit ();
8173 return ldapssl_client_deinit ();
8178 if ac_fn_c_try_link "$LINENO"; then :
8179 eval "$as_ac_Lib=yes"
8181 eval "$as_ac_Lib=no"
8183 rm -f core conftest.err conftest.$ac_objext \
8184 conftest$ac_exeext conftest.$ac_ext
8185 LIBS=$ac_check_lib_save_LIBS
8187 eval ac_res=\$$as_ac_Lib
8188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8189 $as_echo "$ac_res" >&6; }
8190 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
8191 apu_has_ldapssl_client_deinit="1"
8194 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_add_trusted_cert" | $as_tr_sh`
8195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_add_trusted_cert in -l${ldaplib}" >&5
8196 $as_echo_n "checking for ldapssl_add_trusted_cert in -l${ldaplib}... " >&6; }
8197 if eval \${$as_ac_Lib+:} false; then :
8198 $as_echo_n "(cached) " >&6
8200 ac_check_lib_save_LIBS=$LIBS
8201 LIBS="-l${ldaplib} ${extralib} $LIBS"
8202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8203 /* end confdefs.h. */
8205 /* Override any GCC internal prototype to avoid an error.
8206 Use char because int might match the return type of a GCC
8207 builtin and then its argument prototype would still apply. */
8211 char ldapssl_add_trusted_cert ();
8215 return ldapssl_add_trusted_cert ();
8220 if ac_fn_c_try_link "$LINENO"; then :
8221 eval "$as_ac_Lib=yes"
8223 eval "$as_ac_Lib=no"
8225 rm -f core conftest.err conftest.$ac_objext \
8226 conftest$ac_exeext conftest.$ac_ext
8227 LIBS=$ac_check_lib_save_LIBS
8229 eval ac_res=\$$as_ac_Lib
8230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8231 $as_echo "$ac_res" >&6; }
8232 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
8233 apu_has_ldapssl_add_trusted_cert="1"
8236 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_start_tls_s" | $as_tr_sh`
8237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_start_tls_s in -l${ldaplib}" >&5
8238 $as_echo_n "checking for ldap_start_tls_s in -l${ldaplib}... " >&6; }
8239 if eval \${$as_ac_Lib+:} false; then :
8240 $as_echo_n "(cached) " >&6
8242 ac_check_lib_save_LIBS=$LIBS
8243 LIBS="-l${ldaplib} ${extralib} $LIBS"
8244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8245 /* end confdefs.h. */
8247 /* Override any GCC internal prototype to avoid an error.
8248 Use char because int might match the return type of a GCC
8249 builtin and then its argument prototype would still apply. */
8253 char ldap_start_tls_s ();
8257 return ldap_start_tls_s ();
8262 if ac_fn_c_try_link "$LINENO"; then :
8263 eval "$as_ac_Lib=yes"
8265 eval "$as_ac_Lib=no"
8267 rm -f core conftest.err conftest.$ac_objext \
8268 conftest$ac_exeext conftest.$ac_ext
8269 LIBS=$ac_check_lib_save_LIBS
8271 eval ac_res=\$$as_ac_Lib
8272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8273 $as_echo "$ac_res" >&6; }
8274 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
8275 apu_has_ldap_start_tls_s="1"
8278 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_sslinit" | $as_tr_sh`
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_sslinit in -l${ldaplib}" >&5
8280 $as_echo_n "checking for ldap_sslinit in -l${ldaplib}... " >&6; }
8281 if eval \${$as_ac_Lib+:} false; then :
8282 $as_echo_n "(cached) " >&6
8284 ac_check_lib_save_LIBS=$LIBS
8285 LIBS="-l${ldaplib} ${extralib} $LIBS"
8286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8287 /* end confdefs.h. */
8289 /* Override any GCC internal prototype to avoid an error.
8290 Use char because int might match the return type of a GCC
8291 builtin and then its argument prototype would still apply. */
8295 char ldap_sslinit ();
8299 return ldap_sslinit ();
8304 if ac_fn_c_try_link "$LINENO"; then :
8305 eval "$as_ac_Lib=yes"
8307 eval "$as_ac_Lib=no"
8309 rm -f core conftest.err conftest.$ac_objext \
8310 conftest$ac_exeext conftest.$ac_ext
8311 LIBS=$ac_check_lib_save_LIBS
8313 eval ac_res=\$$as_ac_Lib
8314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8315 $as_echo "$ac_res" >&6; }
8316 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
8317 apu_has_ldap_sslinit="1"
8320 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_init" | $as_tr_sh`
8321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_init in -l${ldaplib}" >&5
8322 $as_echo_n "checking for ldapssl_init in -l${ldaplib}... " >&6; }
8323 if eval \${$as_ac_Lib+:} false; then :
8324 $as_echo_n "(cached) " >&6
8326 ac_check_lib_save_LIBS=$LIBS
8327 LIBS="-l${ldaplib} ${extralib} $LIBS"
8328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8329 /* end confdefs.h. */
8331 /* Override any GCC internal prototype to avoid an error.
8332 Use char because int might match the return type of a GCC
8333 builtin and then its argument prototype would still apply. */
8337 char ldapssl_init ();
8341 return ldapssl_init ();
8346 if ac_fn_c_try_link "$LINENO"; then :
8347 eval "$as_ac_Lib=yes"
8349 eval "$as_ac_Lib=no"
8351 rm -f core conftest.err conftest.$ac_objext \
8352 conftest$ac_exeext conftest.$ac_ext
8353 LIBS=$ac_check_lib_save_LIBS
8355 eval ac_res=\$$as_ac_Lib
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8357 $as_echo "$ac_res" >&6; }
8358 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
8359 apu_has_ldapssl_init="1"
8362 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_install_routines" | $as_tr_sh`
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_install_routines in -l${ldaplib}" >&5
8364 $as_echo_n "checking for ldapssl_install_routines in -l${ldaplib}... " >&6; }
8365 if eval \${$as_ac_Lib+:} false; then :
8366 $as_echo_n "(cached) " >&6
8368 ac_check_lib_save_LIBS=$LIBS
8369 LIBS="-l${ldaplib} ${extralib} $LIBS"
8370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8371 /* end confdefs.h. */
8373 /* Override any GCC internal prototype to avoid an error.
8374 Use char because int might match the return type of a GCC
8375 builtin and then its argument prototype would still apply. */
8379 char ldapssl_install_routines ();
8383 return ldapssl_install_routines ();
8388 if ac_fn_c_try_link "$LINENO"; then :
8389 eval "$as_ac_Lib=yes"
8391 eval "$as_ac_Lib=no"
8393 rm -f core conftest.err conftest.$ac_objext \
8394 conftest$ac_exeext conftest.$ac_ext
8395 LIBS=$ac_check_lib_save_LIBS
8397 eval ac_res=\$$as_ac_Lib
8398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8399 $as_echo "$ac_res" >&6; }
8400 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
8401 apu_has_ldapssl_install_routines="1"
8411 if test ${apu_has_ldap} != "1"; then
8414 # Clear the cache entry for subsequent APU_FIND_LDAPLIB invocations.
8416 ldaplib_cache_id="`echo $ldaplib | sed -e 's/[^a-zA-Z0-9_]/_/g'`"
8418 unset ac_cv_lib_${ldaplib_cache_id}_ldap_init
8419 unset ac_cv_lib_${ldaplib_cache_id}___ldap_init
8420 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_init" | $as_tr_sh`
8421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_init in -l${ldaplib}" >&5
8422 $as_echo_n "checking for ldap_init in -l${ldaplib}... " >&6; }
8423 if eval \${$as_ac_Lib+:} false; then :
8424 $as_echo_n "(cached) " >&6
8426 ac_check_lib_save_LIBS=$LIBS
8427 LIBS="-l${ldaplib} ${extralib} $LIBS"
8428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8429 /* end confdefs.h. */
8431 /* Override any GCC internal prototype to avoid an error.
8432 Use char because int might match the return type of a GCC
8433 builtin and then its argument prototype would still apply. */
8441 return ldap_init ();
8446 if ac_fn_c_try_link "$LINENO"; then :
8447 eval "$as_ac_Lib=yes"
8449 eval "$as_ac_Lib=no"
8451 rm -f core conftest.err conftest.$ac_objext \
8452 conftest$ac_exeext conftest.$ac_ext
8453 LIBS=$ac_check_lib_save_LIBS
8455 eval ac_res=\$$as_ac_Lib
8456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8457 $as_echo "$ac_res" >&6; }
8458 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
8460 LDADD_ldap_found="-l${ldaplib} ${extralib}"
8461 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_client_init" | $as_tr_sh`
8462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_client_init in -l${ldaplib}" >&5
8463 $as_echo_n "checking for ldapssl_client_init in -l${ldaplib}... " >&6; }
8464 if eval \${$as_ac_Lib+:} false; then :
8465 $as_echo_n "(cached) " >&6
8467 ac_check_lib_save_LIBS=$LIBS
8468 LIBS="-l${ldaplib} ${extralib} $LIBS"
8469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8470 /* end confdefs.h. */
8472 /* Override any GCC internal prototype to avoid an error.
8473 Use char because int might match the return type of a GCC
8474 builtin and then its argument prototype would still apply. */
8478 char ldapssl_client_init ();
8482 return ldapssl_client_init ();
8487 if ac_fn_c_try_link "$LINENO"; then :
8488 eval "$as_ac_Lib=yes"
8490 eval "$as_ac_Lib=no"
8492 rm -f core conftest.err conftest.$ac_objext \
8493 conftest$ac_exeext conftest.$ac_ext
8494 LIBS=$ac_check_lib_save_LIBS
8496 eval ac_res=\$$as_ac_Lib
8497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8498 $as_echo "$ac_res" >&6; }
8499 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
8500 apu_has_ldapssl_client_init="1"
8503 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_client_deinit" | $as_tr_sh`
8504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_client_deinit in -l${ldaplib}" >&5
8505 $as_echo_n "checking for ldapssl_client_deinit in -l${ldaplib}... " >&6; }
8506 if eval \${$as_ac_Lib+:} false; then :
8507 $as_echo_n "(cached) " >&6
8509 ac_check_lib_save_LIBS=$LIBS
8510 LIBS="-l${ldaplib} ${extralib} $LIBS"
8511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8512 /* end confdefs.h. */
8514 /* Override any GCC internal prototype to avoid an error.
8515 Use char because int might match the return type of a GCC
8516 builtin and then its argument prototype would still apply. */
8520 char ldapssl_client_deinit ();
8524 return ldapssl_client_deinit ();
8529 if ac_fn_c_try_link "$LINENO"; then :
8530 eval "$as_ac_Lib=yes"
8532 eval "$as_ac_Lib=no"
8534 rm -f core conftest.err conftest.$ac_objext \
8535 conftest$ac_exeext conftest.$ac_ext
8536 LIBS=$ac_check_lib_save_LIBS
8538 eval ac_res=\$$as_ac_Lib
8539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8540 $as_echo "$ac_res" >&6; }
8541 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
8542 apu_has_ldapssl_client_deinit="1"
8545 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_add_trusted_cert" | $as_tr_sh`
8546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_add_trusted_cert in -l${ldaplib}" >&5
8547 $as_echo_n "checking for ldapssl_add_trusted_cert in -l${ldaplib}... " >&6; }
8548 if eval \${$as_ac_Lib+:} false; then :
8549 $as_echo_n "(cached) " >&6
8551 ac_check_lib_save_LIBS=$LIBS
8552 LIBS="-l${ldaplib} ${extralib} $LIBS"
8553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8554 /* end confdefs.h. */
8556 /* Override any GCC internal prototype to avoid an error.
8557 Use char because int might match the return type of a GCC
8558 builtin and then its argument prototype would still apply. */
8562 char ldapssl_add_trusted_cert ();
8566 return ldapssl_add_trusted_cert ();
8571 if ac_fn_c_try_link "$LINENO"; then :
8572 eval "$as_ac_Lib=yes"
8574 eval "$as_ac_Lib=no"
8576 rm -f core conftest.err conftest.$ac_objext \
8577 conftest$ac_exeext conftest.$ac_ext
8578 LIBS=$ac_check_lib_save_LIBS
8580 eval ac_res=\$$as_ac_Lib
8581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8582 $as_echo "$ac_res" >&6; }
8583 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
8584 apu_has_ldapssl_add_trusted_cert="1"
8587 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_start_tls_s" | $as_tr_sh`
8588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_start_tls_s in -l${ldaplib}" >&5
8589 $as_echo_n "checking for ldap_start_tls_s in -l${ldaplib}... " >&6; }
8590 if eval \${$as_ac_Lib+:} false; then :
8591 $as_echo_n "(cached) " >&6
8593 ac_check_lib_save_LIBS=$LIBS
8594 LIBS="-l${ldaplib} ${extralib} $LIBS"
8595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8596 /* end confdefs.h. */
8598 /* Override any GCC internal prototype to avoid an error.
8599 Use char because int might match the return type of a GCC
8600 builtin and then its argument prototype would still apply. */
8604 char ldap_start_tls_s ();
8608 return ldap_start_tls_s ();
8613 if ac_fn_c_try_link "$LINENO"; then :
8614 eval "$as_ac_Lib=yes"
8616 eval "$as_ac_Lib=no"
8618 rm -f core conftest.err conftest.$ac_objext \
8619 conftest$ac_exeext conftest.$ac_ext
8620 LIBS=$ac_check_lib_save_LIBS
8622 eval ac_res=\$$as_ac_Lib
8623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8624 $as_echo "$ac_res" >&6; }
8625 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
8626 apu_has_ldap_start_tls_s="1"
8629 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_sslinit" | $as_tr_sh`
8630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_sslinit in -l${ldaplib}" >&5
8631 $as_echo_n "checking for ldap_sslinit in -l${ldaplib}... " >&6; }
8632 if eval \${$as_ac_Lib+:} false; then :
8633 $as_echo_n "(cached) " >&6
8635 ac_check_lib_save_LIBS=$LIBS
8636 LIBS="-l${ldaplib} ${extralib} $LIBS"
8637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8638 /* end confdefs.h. */
8640 /* Override any GCC internal prototype to avoid an error.
8641 Use char because int might match the return type of a GCC
8642 builtin and then its argument prototype would still apply. */
8646 char ldap_sslinit ();
8650 return ldap_sslinit ();
8655 if ac_fn_c_try_link "$LINENO"; then :
8656 eval "$as_ac_Lib=yes"
8658 eval "$as_ac_Lib=no"
8660 rm -f core conftest.err conftest.$ac_objext \
8661 conftest$ac_exeext conftest.$ac_ext
8662 LIBS=$ac_check_lib_save_LIBS
8664 eval ac_res=\$$as_ac_Lib
8665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8666 $as_echo "$ac_res" >&6; }
8667 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
8668 apu_has_ldap_sslinit="1"
8671 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_init" | $as_tr_sh`
8672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_init in -l${ldaplib}" >&5
8673 $as_echo_n "checking for ldapssl_init in -l${ldaplib}... " >&6; }
8674 if eval \${$as_ac_Lib+:} false; then :
8675 $as_echo_n "(cached) " >&6
8677 ac_check_lib_save_LIBS=$LIBS
8678 LIBS="-l${ldaplib} ${extralib} $LIBS"
8679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8680 /* end confdefs.h. */
8682 /* Override any GCC internal prototype to avoid an error.
8683 Use char because int might match the return type of a GCC
8684 builtin and then its argument prototype would still apply. */
8688 char ldapssl_init ();
8692 return ldapssl_init ();
8697 if ac_fn_c_try_link "$LINENO"; then :
8698 eval "$as_ac_Lib=yes"
8700 eval "$as_ac_Lib=no"
8702 rm -f core conftest.err conftest.$ac_objext \
8703 conftest$ac_exeext conftest.$ac_ext
8704 LIBS=$ac_check_lib_save_LIBS
8706 eval ac_res=\$$as_ac_Lib
8707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8708 $as_echo "$ac_res" >&6; }
8709 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
8710 apu_has_ldapssl_init="1"
8713 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_install_routines" | $as_tr_sh`
8714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_install_routines in -l${ldaplib}" >&5
8715 $as_echo_n "checking for ldapssl_install_routines in -l${ldaplib}... " >&6; }
8716 if eval \${$as_ac_Lib+:} false; then :
8717 $as_echo_n "(cached) " >&6
8719 ac_check_lib_save_LIBS=$LIBS
8720 LIBS="-l${ldaplib} ${extralib} $LIBS"
8721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8722 /* end confdefs.h. */
8724 /* Override any GCC internal prototype to avoid an error.
8725 Use char because int might match the return type of a GCC
8726 builtin and then its argument prototype would still apply. */
8730 char ldapssl_install_routines ();
8734 return ldapssl_install_routines ();
8739 if ac_fn_c_try_link "$LINENO"; then :
8740 eval "$as_ac_Lib=yes"
8742 eval "$as_ac_Lib=no"
8744 rm -f core conftest.err conftest.$ac_objext \
8745 conftest$ac_exeext conftest.$ac_ext
8746 LIBS=$ac_check_lib_save_LIBS
8748 eval ac_res=\$$as_ac_Lib
8749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8750 $as_echo "$ac_res" >&6; }
8751 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
8752 apu_has_ldapssl_install_routines="1"
8762 if test ${apu_has_ldap} != "1"; then
8764 extralib="-llber -lresolv"
8765 # Clear the cache entry for subsequent APU_FIND_LDAPLIB invocations.
8767 ldaplib_cache_id="`echo $ldaplib | sed -e 's/[^a-zA-Z0-9_]/_/g'`"
8769 unset ac_cv_lib_${ldaplib_cache_id}_ldap_init
8770 unset ac_cv_lib_${ldaplib_cache_id}___ldap_init
8771 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_init" | $as_tr_sh`
8772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_init in -l${ldaplib}" >&5
8773 $as_echo_n "checking for ldap_init in -l${ldaplib}... " >&6; }
8774 if eval \${$as_ac_Lib+:} false; then :
8775 $as_echo_n "(cached) " >&6
8777 ac_check_lib_save_LIBS=$LIBS
8778 LIBS="-l${ldaplib} ${extralib} $LIBS"
8779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8780 /* end confdefs.h. */
8782 /* Override any GCC internal prototype to avoid an error.
8783 Use char because int might match the return type of a GCC
8784 builtin and then its argument prototype would still apply. */
8792 return ldap_init ();
8797 if ac_fn_c_try_link "$LINENO"; then :
8798 eval "$as_ac_Lib=yes"
8800 eval "$as_ac_Lib=no"
8802 rm -f core conftest.err conftest.$ac_objext \
8803 conftest$ac_exeext conftest.$ac_ext
8804 LIBS=$ac_check_lib_save_LIBS
8806 eval ac_res=\$$as_ac_Lib
8807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8808 $as_echo "$ac_res" >&6; }
8809 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
8811 LDADD_ldap_found="-l${ldaplib} ${extralib}"
8812 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_client_init" | $as_tr_sh`
8813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_client_init in -l${ldaplib}" >&5
8814 $as_echo_n "checking for ldapssl_client_init in -l${ldaplib}... " >&6; }
8815 if eval \${$as_ac_Lib+:} false; then :
8816 $as_echo_n "(cached) " >&6
8818 ac_check_lib_save_LIBS=$LIBS
8819 LIBS="-l${ldaplib} ${extralib} $LIBS"
8820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8821 /* end confdefs.h. */
8823 /* Override any GCC internal prototype to avoid an error.
8824 Use char because int might match the return type of a GCC
8825 builtin and then its argument prototype would still apply. */
8829 char ldapssl_client_init ();
8833 return ldapssl_client_init ();
8838 if ac_fn_c_try_link "$LINENO"; then :
8839 eval "$as_ac_Lib=yes"
8841 eval "$as_ac_Lib=no"
8843 rm -f core conftest.err conftest.$ac_objext \
8844 conftest$ac_exeext conftest.$ac_ext
8845 LIBS=$ac_check_lib_save_LIBS
8847 eval ac_res=\$$as_ac_Lib
8848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8849 $as_echo "$ac_res" >&6; }
8850 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
8851 apu_has_ldapssl_client_init="1"
8854 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_client_deinit" | $as_tr_sh`
8855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_client_deinit in -l${ldaplib}" >&5
8856 $as_echo_n "checking for ldapssl_client_deinit in -l${ldaplib}... " >&6; }
8857 if eval \${$as_ac_Lib+:} false; then :
8858 $as_echo_n "(cached) " >&6
8860 ac_check_lib_save_LIBS=$LIBS
8861 LIBS="-l${ldaplib} ${extralib} $LIBS"
8862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8863 /* end confdefs.h. */
8865 /* Override any GCC internal prototype to avoid an error.
8866 Use char because int might match the return type of a GCC
8867 builtin and then its argument prototype would still apply. */
8871 char ldapssl_client_deinit ();
8875 return ldapssl_client_deinit ();
8880 if ac_fn_c_try_link "$LINENO"; then :
8881 eval "$as_ac_Lib=yes"
8883 eval "$as_ac_Lib=no"
8885 rm -f core conftest.err conftest.$ac_objext \
8886 conftest$ac_exeext conftest.$ac_ext
8887 LIBS=$ac_check_lib_save_LIBS
8889 eval ac_res=\$$as_ac_Lib
8890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8891 $as_echo "$ac_res" >&6; }
8892 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
8893 apu_has_ldapssl_client_deinit="1"
8896 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_add_trusted_cert" | $as_tr_sh`
8897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_add_trusted_cert in -l${ldaplib}" >&5
8898 $as_echo_n "checking for ldapssl_add_trusted_cert in -l${ldaplib}... " >&6; }
8899 if eval \${$as_ac_Lib+:} false; then :
8900 $as_echo_n "(cached) " >&6
8902 ac_check_lib_save_LIBS=$LIBS
8903 LIBS="-l${ldaplib} ${extralib} $LIBS"
8904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8905 /* end confdefs.h. */
8907 /* Override any GCC internal prototype to avoid an error.
8908 Use char because int might match the return type of a GCC
8909 builtin and then its argument prototype would still apply. */
8913 char ldapssl_add_trusted_cert ();
8917 return ldapssl_add_trusted_cert ();
8922 if ac_fn_c_try_link "$LINENO"; then :
8923 eval "$as_ac_Lib=yes"
8925 eval "$as_ac_Lib=no"
8927 rm -f core conftest.err conftest.$ac_objext \
8928 conftest$ac_exeext conftest.$ac_ext
8929 LIBS=$ac_check_lib_save_LIBS
8931 eval ac_res=\$$as_ac_Lib
8932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8933 $as_echo "$ac_res" >&6; }
8934 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
8935 apu_has_ldapssl_add_trusted_cert="1"
8938 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_start_tls_s" | $as_tr_sh`
8939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_start_tls_s in -l${ldaplib}" >&5
8940 $as_echo_n "checking for ldap_start_tls_s in -l${ldaplib}... " >&6; }
8941 if eval \${$as_ac_Lib+:} false; then :
8942 $as_echo_n "(cached) " >&6
8944 ac_check_lib_save_LIBS=$LIBS
8945 LIBS="-l${ldaplib} ${extralib} $LIBS"
8946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8947 /* end confdefs.h. */
8949 /* Override any GCC internal prototype to avoid an error.
8950 Use char because int might match the return type of a GCC
8951 builtin and then its argument prototype would still apply. */
8955 char ldap_start_tls_s ();
8959 return ldap_start_tls_s ();
8964 if ac_fn_c_try_link "$LINENO"; then :
8965 eval "$as_ac_Lib=yes"
8967 eval "$as_ac_Lib=no"
8969 rm -f core conftest.err conftest.$ac_objext \
8970 conftest$ac_exeext conftest.$ac_ext
8971 LIBS=$ac_check_lib_save_LIBS
8973 eval ac_res=\$$as_ac_Lib
8974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8975 $as_echo "$ac_res" >&6; }
8976 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
8977 apu_has_ldap_start_tls_s="1"
8980 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_sslinit" | $as_tr_sh`
8981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_sslinit in -l${ldaplib}" >&5
8982 $as_echo_n "checking for ldap_sslinit in -l${ldaplib}... " >&6; }
8983 if eval \${$as_ac_Lib+:} false; then :
8984 $as_echo_n "(cached) " >&6
8986 ac_check_lib_save_LIBS=$LIBS
8987 LIBS="-l${ldaplib} ${extralib} $LIBS"
8988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8989 /* end confdefs.h. */
8991 /* Override any GCC internal prototype to avoid an error.
8992 Use char because int might match the return type of a GCC
8993 builtin and then its argument prototype would still apply. */
8997 char ldap_sslinit ();
9001 return ldap_sslinit ();
9006 if ac_fn_c_try_link "$LINENO"; then :
9007 eval "$as_ac_Lib=yes"
9009 eval "$as_ac_Lib=no"
9011 rm -f core conftest.err conftest.$ac_objext \
9012 conftest$ac_exeext conftest.$ac_ext
9013 LIBS=$ac_check_lib_save_LIBS
9015 eval ac_res=\$$as_ac_Lib
9016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9017 $as_echo "$ac_res" >&6; }
9018 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
9019 apu_has_ldap_sslinit="1"
9022 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_init" | $as_tr_sh`
9023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_init in -l${ldaplib}" >&5
9024 $as_echo_n "checking for ldapssl_init in -l${ldaplib}... " >&6; }
9025 if eval \${$as_ac_Lib+:} false; then :
9026 $as_echo_n "(cached) " >&6
9028 ac_check_lib_save_LIBS=$LIBS
9029 LIBS="-l${ldaplib} ${extralib} $LIBS"
9030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9031 /* end confdefs.h. */
9033 /* Override any GCC internal prototype to avoid an error.
9034 Use char because int might match the return type of a GCC
9035 builtin and then its argument prototype would still apply. */
9039 char ldapssl_init ();
9043 return ldapssl_init ();
9048 if ac_fn_c_try_link "$LINENO"; then :
9049 eval "$as_ac_Lib=yes"
9051 eval "$as_ac_Lib=no"
9053 rm -f core conftest.err conftest.$ac_objext \
9054 conftest$ac_exeext conftest.$ac_ext
9055 LIBS=$ac_check_lib_save_LIBS
9057 eval ac_res=\$$as_ac_Lib
9058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9059 $as_echo "$ac_res" >&6; }
9060 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
9061 apu_has_ldapssl_init="1"
9064 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_install_routines" | $as_tr_sh`
9065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_install_routines in -l${ldaplib}" >&5
9066 $as_echo_n "checking for ldapssl_install_routines in -l${ldaplib}... " >&6; }
9067 if eval \${$as_ac_Lib+:} false; then :
9068 $as_echo_n "(cached) " >&6
9070 ac_check_lib_save_LIBS=$LIBS
9071 LIBS="-l${ldaplib} ${extralib} $LIBS"
9072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9073 /* end confdefs.h. */
9075 /* Override any GCC internal prototype to avoid an error.
9076 Use char because int might match the return type of a GCC
9077 builtin and then its argument prototype would still apply. */
9081 char ldapssl_install_routines ();
9085 return ldapssl_install_routines ();
9090 if ac_fn_c_try_link "$LINENO"; then :
9091 eval "$as_ac_Lib=yes"
9093 eval "$as_ac_Lib=no"
9095 rm -f core conftest.err conftest.$ac_objext \
9096 conftest$ac_exeext conftest.$ac_ext
9097 LIBS=$ac_check_lib_save_LIBS
9099 eval ac_res=\$$as_ac_Lib
9100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9101 $as_echo "$ac_res" >&6; }
9102 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
9103 apu_has_ldapssl_install_routines="1"
9113 if test ${apu_has_ldap} != "1"; then
9115 extralib="-llber -lresolv -lsocket -lnsl"
9116 # Clear the cache entry for subsequent APU_FIND_LDAPLIB invocations.
9118 ldaplib_cache_id="`echo $ldaplib | sed -e 's/[^a-zA-Z0-9_]/_/g'`"
9120 unset ac_cv_lib_${ldaplib_cache_id}_ldap_init
9121 unset ac_cv_lib_${ldaplib_cache_id}___ldap_init
9122 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_init" | $as_tr_sh`
9123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_init in -l${ldaplib}" >&5
9124 $as_echo_n "checking for ldap_init in -l${ldaplib}... " >&6; }
9125 if eval \${$as_ac_Lib+:} false; then :
9126 $as_echo_n "(cached) " >&6
9128 ac_check_lib_save_LIBS=$LIBS
9129 LIBS="-l${ldaplib} ${extralib} $LIBS"
9130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9131 /* end confdefs.h. */
9133 /* Override any GCC internal prototype to avoid an error.
9134 Use char because int might match the return type of a GCC
9135 builtin and then its argument prototype would still apply. */
9143 return ldap_init ();
9148 if ac_fn_c_try_link "$LINENO"; then :
9149 eval "$as_ac_Lib=yes"
9151 eval "$as_ac_Lib=no"
9153 rm -f core conftest.err conftest.$ac_objext \
9154 conftest$ac_exeext conftest.$ac_ext
9155 LIBS=$ac_check_lib_save_LIBS
9157 eval ac_res=\$$as_ac_Lib
9158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9159 $as_echo "$ac_res" >&6; }
9160 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
9162 LDADD_ldap_found="-l${ldaplib} ${extralib}"
9163 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_client_init" | $as_tr_sh`
9164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_client_init in -l${ldaplib}" >&5
9165 $as_echo_n "checking for ldapssl_client_init in -l${ldaplib}... " >&6; }
9166 if eval \${$as_ac_Lib+:} false; then :
9167 $as_echo_n "(cached) " >&6
9169 ac_check_lib_save_LIBS=$LIBS
9170 LIBS="-l${ldaplib} ${extralib} $LIBS"
9171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9172 /* end confdefs.h. */
9174 /* Override any GCC internal prototype to avoid an error.
9175 Use char because int might match the return type of a GCC
9176 builtin and then its argument prototype would still apply. */
9180 char ldapssl_client_init ();
9184 return ldapssl_client_init ();
9189 if ac_fn_c_try_link "$LINENO"; then :
9190 eval "$as_ac_Lib=yes"
9192 eval "$as_ac_Lib=no"
9194 rm -f core conftest.err conftest.$ac_objext \
9195 conftest$ac_exeext conftest.$ac_ext
9196 LIBS=$ac_check_lib_save_LIBS
9198 eval ac_res=\$$as_ac_Lib
9199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9200 $as_echo "$ac_res" >&6; }
9201 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
9202 apu_has_ldapssl_client_init="1"
9205 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_client_deinit" | $as_tr_sh`
9206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_client_deinit in -l${ldaplib}" >&5
9207 $as_echo_n "checking for ldapssl_client_deinit in -l${ldaplib}... " >&6; }
9208 if eval \${$as_ac_Lib+:} false; then :
9209 $as_echo_n "(cached) " >&6
9211 ac_check_lib_save_LIBS=$LIBS
9212 LIBS="-l${ldaplib} ${extralib} $LIBS"
9213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9214 /* end confdefs.h. */
9216 /* Override any GCC internal prototype to avoid an error.
9217 Use char because int might match the return type of a GCC
9218 builtin and then its argument prototype would still apply. */
9222 char ldapssl_client_deinit ();
9226 return ldapssl_client_deinit ();
9231 if ac_fn_c_try_link "$LINENO"; then :
9232 eval "$as_ac_Lib=yes"
9234 eval "$as_ac_Lib=no"
9236 rm -f core conftest.err conftest.$ac_objext \
9237 conftest$ac_exeext conftest.$ac_ext
9238 LIBS=$ac_check_lib_save_LIBS
9240 eval ac_res=\$$as_ac_Lib
9241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9242 $as_echo "$ac_res" >&6; }
9243 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
9244 apu_has_ldapssl_client_deinit="1"
9247 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_add_trusted_cert" | $as_tr_sh`
9248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_add_trusted_cert in -l${ldaplib}" >&5
9249 $as_echo_n "checking for ldapssl_add_trusted_cert in -l${ldaplib}... " >&6; }
9250 if eval \${$as_ac_Lib+:} false; then :
9251 $as_echo_n "(cached) " >&6
9253 ac_check_lib_save_LIBS=$LIBS
9254 LIBS="-l${ldaplib} ${extralib} $LIBS"
9255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9256 /* end confdefs.h. */
9258 /* Override any GCC internal prototype to avoid an error.
9259 Use char because int might match the return type of a GCC
9260 builtin and then its argument prototype would still apply. */
9264 char ldapssl_add_trusted_cert ();
9268 return ldapssl_add_trusted_cert ();
9273 if ac_fn_c_try_link "$LINENO"; then :
9274 eval "$as_ac_Lib=yes"
9276 eval "$as_ac_Lib=no"
9278 rm -f core conftest.err conftest.$ac_objext \
9279 conftest$ac_exeext conftest.$ac_ext
9280 LIBS=$ac_check_lib_save_LIBS
9282 eval ac_res=\$$as_ac_Lib
9283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9284 $as_echo "$ac_res" >&6; }
9285 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
9286 apu_has_ldapssl_add_trusted_cert="1"
9289 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_start_tls_s" | $as_tr_sh`
9290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_start_tls_s in -l${ldaplib}" >&5
9291 $as_echo_n "checking for ldap_start_tls_s in -l${ldaplib}... " >&6; }
9292 if eval \${$as_ac_Lib+:} false; then :
9293 $as_echo_n "(cached) " >&6
9295 ac_check_lib_save_LIBS=$LIBS
9296 LIBS="-l${ldaplib} ${extralib} $LIBS"
9297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9298 /* end confdefs.h. */
9300 /* Override any GCC internal prototype to avoid an error.
9301 Use char because int might match the return type of a GCC
9302 builtin and then its argument prototype would still apply. */
9306 char ldap_start_tls_s ();
9310 return ldap_start_tls_s ();
9315 if ac_fn_c_try_link "$LINENO"; then :
9316 eval "$as_ac_Lib=yes"
9318 eval "$as_ac_Lib=no"
9320 rm -f core conftest.err conftest.$ac_objext \
9321 conftest$ac_exeext conftest.$ac_ext
9322 LIBS=$ac_check_lib_save_LIBS
9324 eval ac_res=\$$as_ac_Lib
9325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9326 $as_echo "$ac_res" >&6; }
9327 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
9328 apu_has_ldap_start_tls_s="1"
9331 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_sslinit" | $as_tr_sh`
9332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_sslinit in -l${ldaplib}" >&5
9333 $as_echo_n "checking for ldap_sslinit in -l${ldaplib}... " >&6; }
9334 if eval \${$as_ac_Lib+:} false; then :
9335 $as_echo_n "(cached) " >&6
9337 ac_check_lib_save_LIBS=$LIBS
9338 LIBS="-l${ldaplib} ${extralib} $LIBS"
9339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9340 /* end confdefs.h. */
9342 /* Override any GCC internal prototype to avoid an error.
9343 Use char because int might match the return type of a GCC
9344 builtin and then its argument prototype would still apply. */
9348 char ldap_sslinit ();
9352 return ldap_sslinit ();
9357 if ac_fn_c_try_link "$LINENO"; then :
9358 eval "$as_ac_Lib=yes"
9360 eval "$as_ac_Lib=no"
9362 rm -f core conftest.err conftest.$ac_objext \
9363 conftest$ac_exeext conftest.$ac_ext
9364 LIBS=$ac_check_lib_save_LIBS
9366 eval ac_res=\$$as_ac_Lib
9367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9368 $as_echo "$ac_res" >&6; }
9369 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
9370 apu_has_ldap_sslinit="1"
9373 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_init" | $as_tr_sh`
9374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_init in -l${ldaplib}" >&5
9375 $as_echo_n "checking for ldapssl_init in -l${ldaplib}... " >&6; }
9376 if eval \${$as_ac_Lib+:} false; then :
9377 $as_echo_n "(cached) " >&6
9379 ac_check_lib_save_LIBS=$LIBS
9380 LIBS="-l${ldaplib} ${extralib} $LIBS"
9381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9382 /* end confdefs.h. */
9384 /* Override any GCC internal prototype to avoid an error.
9385 Use char because int might match the return type of a GCC
9386 builtin and then its argument prototype would still apply. */
9390 char ldapssl_init ();
9394 return ldapssl_init ();
9399 if ac_fn_c_try_link "$LINENO"; then :
9400 eval "$as_ac_Lib=yes"
9402 eval "$as_ac_Lib=no"
9404 rm -f core conftest.err conftest.$ac_objext \
9405 conftest$ac_exeext conftest.$ac_ext
9406 LIBS=$ac_check_lib_save_LIBS
9408 eval ac_res=\$$as_ac_Lib
9409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9410 $as_echo "$ac_res" >&6; }
9411 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
9412 apu_has_ldapssl_init="1"
9415 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_install_routines" | $as_tr_sh`
9416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_install_routines in -l${ldaplib}" >&5
9417 $as_echo_n "checking for ldapssl_install_routines in -l${ldaplib}... " >&6; }
9418 if eval \${$as_ac_Lib+:} false; then :
9419 $as_echo_n "(cached) " >&6
9421 ac_check_lib_save_LIBS=$LIBS
9422 LIBS="-l${ldaplib} ${extralib} $LIBS"
9423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9424 /* end confdefs.h. */
9426 /* Override any GCC internal prototype to avoid an error.
9427 Use char because int might match the return type of a GCC
9428 builtin and then its argument prototype would still apply. */
9432 char ldapssl_install_routines ();
9436 return ldapssl_install_routines ();
9441 if ac_fn_c_try_link "$LINENO"; then :
9442 eval "$as_ac_Lib=yes"
9444 eval "$as_ac_Lib=no"
9446 rm -f core conftest.err conftest.$ac_objext \
9447 conftest$ac_exeext conftest.$ac_ext
9448 LIBS=$ac_check_lib_save_LIBS
9450 eval ac_res=\$$as_ac_Lib
9451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9452 $as_echo "$ac_res" >&6; }
9453 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
9454 apu_has_ldapssl_install_routines="1"
9464 if test ${apu_has_ldap} != "1"; then
9466 extralib="-ldl -lpthread"
9467 # Clear the cache entry for subsequent APU_FIND_LDAPLIB invocations.
9469 ldaplib_cache_id="`echo $ldaplib | sed -e 's/[^a-zA-Z0-9_]/_/g'`"
9471 unset ac_cv_lib_${ldaplib_cache_id}_ldap_init
9472 unset ac_cv_lib_${ldaplib_cache_id}___ldap_init
9473 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_init" | $as_tr_sh`
9474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_init in -l${ldaplib}" >&5
9475 $as_echo_n "checking for ldap_init in -l${ldaplib}... " >&6; }
9476 if eval \${$as_ac_Lib+:} false; then :
9477 $as_echo_n "(cached) " >&6
9479 ac_check_lib_save_LIBS=$LIBS
9480 LIBS="-l${ldaplib} ${extralib} $LIBS"
9481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9482 /* end confdefs.h. */
9484 /* Override any GCC internal prototype to avoid an error.
9485 Use char because int might match the return type of a GCC
9486 builtin and then its argument prototype would still apply. */
9494 return ldap_init ();
9499 if ac_fn_c_try_link "$LINENO"; then :
9500 eval "$as_ac_Lib=yes"
9502 eval "$as_ac_Lib=no"
9504 rm -f core conftest.err conftest.$ac_objext \
9505 conftest$ac_exeext conftest.$ac_ext
9506 LIBS=$ac_check_lib_save_LIBS
9508 eval ac_res=\$$as_ac_Lib
9509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9510 $as_echo "$ac_res" >&6; }
9511 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
9513 LDADD_ldap_found="-l${ldaplib} ${extralib}"
9514 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_client_init" | $as_tr_sh`
9515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_client_init in -l${ldaplib}" >&5
9516 $as_echo_n "checking for ldapssl_client_init in -l${ldaplib}... " >&6; }
9517 if eval \${$as_ac_Lib+:} false; then :
9518 $as_echo_n "(cached) " >&6
9520 ac_check_lib_save_LIBS=$LIBS
9521 LIBS="-l${ldaplib} ${extralib} $LIBS"
9522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9523 /* end confdefs.h. */
9525 /* Override any GCC internal prototype to avoid an error.
9526 Use char because int might match the return type of a GCC
9527 builtin and then its argument prototype would still apply. */
9531 char ldapssl_client_init ();
9535 return ldapssl_client_init ();
9540 if ac_fn_c_try_link "$LINENO"; then :
9541 eval "$as_ac_Lib=yes"
9543 eval "$as_ac_Lib=no"
9545 rm -f core conftest.err conftest.$ac_objext \
9546 conftest$ac_exeext conftest.$ac_ext
9547 LIBS=$ac_check_lib_save_LIBS
9549 eval ac_res=\$$as_ac_Lib
9550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9551 $as_echo "$ac_res" >&6; }
9552 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
9553 apu_has_ldapssl_client_init="1"
9556 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_client_deinit" | $as_tr_sh`
9557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_client_deinit in -l${ldaplib}" >&5
9558 $as_echo_n "checking for ldapssl_client_deinit in -l${ldaplib}... " >&6; }
9559 if eval \${$as_ac_Lib+:} false; then :
9560 $as_echo_n "(cached) " >&6
9562 ac_check_lib_save_LIBS=$LIBS
9563 LIBS="-l${ldaplib} ${extralib} $LIBS"
9564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9565 /* end confdefs.h. */
9567 /* Override any GCC internal prototype to avoid an error.
9568 Use char because int might match the return type of a GCC
9569 builtin and then its argument prototype would still apply. */
9573 char ldapssl_client_deinit ();
9577 return ldapssl_client_deinit ();
9582 if ac_fn_c_try_link "$LINENO"; then :
9583 eval "$as_ac_Lib=yes"
9585 eval "$as_ac_Lib=no"
9587 rm -f core conftest.err conftest.$ac_objext \
9588 conftest$ac_exeext conftest.$ac_ext
9589 LIBS=$ac_check_lib_save_LIBS
9591 eval ac_res=\$$as_ac_Lib
9592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9593 $as_echo "$ac_res" >&6; }
9594 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
9595 apu_has_ldapssl_client_deinit="1"
9598 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_add_trusted_cert" | $as_tr_sh`
9599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_add_trusted_cert in -l${ldaplib}" >&5
9600 $as_echo_n "checking for ldapssl_add_trusted_cert in -l${ldaplib}... " >&6; }
9601 if eval \${$as_ac_Lib+:} false; then :
9602 $as_echo_n "(cached) " >&6
9604 ac_check_lib_save_LIBS=$LIBS
9605 LIBS="-l${ldaplib} ${extralib} $LIBS"
9606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9607 /* end confdefs.h. */
9609 /* Override any GCC internal prototype to avoid an error.
9610 Use char because int might match the return type of a GCC
9611 builtin and then its argument prototype would still apply. */
9615 char ldapssl_add_trusted_cert ();
9619 return ldapssl_add_trusted_cert ();
9624 if ac_fn_c_try_link "$LINENO"; then :
9625 eval "$as_ac_Lib=yes"
9627 eval "$as_ac_Lib=no"
9629 rm -f core conftest.err conftest.$ac_objext \
9630 conftest$ac_exeext conftest.$ac_ext
9631 LIBS=$ac_check_lib_save_LIBS
9633 eval ac_res=\$$as_ac_Lib
9634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9635 $as_echo "$ac_res" >&6; }
9636 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
9637 apu_has_ldapssl_add_trusted_cert="1"
9640 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_start_tls_s" | $as_tr_sh`
9641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_start_tls_s in -l${ldaplib}" >&5
9642 $as_echo_n "checking for ldap_start_tls_s in -l${ldaplib}... " >&6; }
9643 if eval \${$as_ac_Lib+:} false; then :
9644 $as_echo_n "(cached) " >&6
9646 ac_check_lib_save_LIBS=$LIBS
9647 LIBS="-l${ldaplib} ${extralib} $LIBS"
9648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9649 /* end confdefs.h. */
9651 /* Override any GCC internal prototype to avoid an error.
9652 Use char because int might match the return type of a GCC
9653 builtin and then its argument prototype would still apply. */
9657 char ldap_start_tls_s ();
9661 return ldap_start_tls_s ();
9666 if ac_fn_c_try_link "$LINENO"; then :
9667 eval "$as_ac_Lib=yes"
9669 eval "$as_ac_Lib=no"
9671 rm -f core conftest.err conftest.$ac_objext \
9672 conftest$ac_exeext conftest.$ac_ext
9673 LIBS=$ac_check_lib_save_LIBS
9675 eval ac_res=\$$as_ac_Lib
9676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9677 $as_echo "$ac_res" >&6; }
9678 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
9679 apu_has_ldap_start_tls_s="1"
9682 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_sslinit" | $as_tr_sh`
9683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_sslinit in -l${ldaplib}" >&5
9684 $as_echo_n "checking for ldap_sslinit in -l${ldaplib}... " >&6; }
9685 if eval \${$as_ac_Lib+:} false; then :
9686 $as_echo_n "(cached) " >&6
9688 ac_check_lib_save_LIBS=$LIBS
9689 LIBS="-l${ldaplib} ${extralib} $LIBS"
9690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9691 /* end confdefs.h. */
9693 /* Override any GCC internal prototype to avoid an error.
9694 Use char because int might match the return type of a GCC
9695 builtin and then its argument prototype would still apply. */
9699 char ldap_sslinit ();
9703 return ldap_sslinit ();
9708 if ac_fn_c_try_link "$LINENO"; then :
9709 eval "$as_ac_Lib=yes"
9711 eval "$as_ac_Lib=no"
9713 rm -f core conftest.err conftest.$ac_objext \
9714 conftest$ac_exeext conftest.$ac_ext
9715 LIBS=$ac_check_lib_save_LIBS
9717 eval ac_res=\$$as_ac_Lib
9718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9719 $as_echo "$ac_res" >&6; }
9720 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
9721 apu_has_ldap_sslinit="1"
9724 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_init" | $as_tr_sh`
9725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_init in -l${ldaplib}" >&5
9726 $as_echo_n "checking for ldapssl_init in -l${ldaplib}... " >&6; }
9727 if eval \${$as_ac_Lib+:} false; then :
9728 $as_echo_n "(cached) " >&6
9730 ac_check_lib_save_LIBS=$LIBS
9731 LIBS="-l${ldaplib} ${extralib} $LIBS"
9732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9733 /* end confdefs.h. */
9735 /* Override any GCC internal prototype to avoid an error.
9736 Use char because int might match the return type of a GCC
9737 builtin and then its argument prototype would still apply. */
9741 char ldapssl_init ();
9745 return ldapssl_init ();
9750 if ac_fn_c_try_link "$LINENO"; then :
9751 eval "$as_ac_Lib=yes"
9753 eval "$as_ac_Lib=no"
9755 rm -f core conftest.err conftest.$ac_objext \
9756 conftest$ac_exeext conftest.$ac_ext
9757 LIBS=$ac_check_lib_save_LIBS
9759 eval ac_res=\$$as_ac_Lib
9760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9761 $as_echo "$ac_res" >&6; }
9762 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
9763 apu_has_ldapssl_init="1"
9766 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_install_routines" | $as_tr_sh`
9767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_install_routines in -l${ldaplib}" >&5
9768 $as_echo_n "checking for ldapssl_install_routines in -l${ldaplib}... " >&6; }
9769 if eval \${$as_ac_Lib+:} false; then :
9770 $as_echo_n "(cached) " >&6
9772 ac_check_lib_save_LIBS=$LIBS
9773 LIBS="-l${ldaplib} ${extralib} $LIBS"
9774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9775 /* end confdefs.h. */
9777 /* Override any GCC internal prototype to avoid an error.
9778 Use char because int might match the return type of a GCC
9779 builtin and then its argument prototype would still apply. */
9783 char ldapssl_install_routines ();
9787 return ldapssl_install_routines ();
9792 if ac_fn_c_try_link "$LINENO"; then :
9793 eval "$as_ac_Lib=yes"
9795 eval "$as_ac_Lib=no"
9797 rm -f core conftest.err conftest.$ac_objext \
9798 conftest$ac_exeext conftest.$ac_ext
9799 LIBS=$ac_check_lib_save_LIBS
9801 eval ac_res=\$$as_ac_Lib
9802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9803 $as_echo "$ac_res" >&6; }
9804 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
9805 apu_has_ldapssl_install_routines="1"
9816 if test ${apu_has_ldap} != "1"; then
9819 # Clear the cache entry for subsequent APU_FIND_LDAPLIB invocations.
9821 ldaplib_cache_id="`echo $ldaplib | sed -e 's/[^a-zA-Z0-9_]/_/g'`"
9823 unset ac_cv_lib_${ldaplib_cache_id}_ldap_init
9824 unset ac_cv_lib_${ldaplib_cache_id}___ldap_init
9825 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_init" | $as_tr_sh`
9826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_init in -l${ldaplib}" >&5
9827 $as_echo_n "checking for ldap_init in -l${ldaplib}... " >&6; }
9828 if eval \${$as_ac_Lib+:} false; then :
9829 $as_echo_n "(cached) " >&6
9831 ac_check_lib_save_LIBS=$LIBS
9832 LIBS="-l${ldaplib} ${extralib} $LIBS"
9833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9834 /* end confdefs.h. */
9836 /* Override any GCC internal prototype to avoid an error.
9837 Use char because int might match the return type of a GCC
9838 builtin and then its argument prototype would still apply. */
9846 return ldap_init ();
9851 if ac_fn_c_try_link "$LINENO"; then :
9852 eval "$as_ac_Lib=yes"
9854 eval "$as_ac_Lib=no"
9856 rm -f core conftest.err conftest.$ac_objext \
9857 conftest$ac_exeext conftest.$ac_ext
9858 LIBS=$ac_check_lib_save_LIBS
9860 eval ac_res=\$$as_ac_Lib
9861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9862 $as_echo "$ac_res" >&6; }
9863 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
9865 LDADD_ldap_found="-l${ldaplib} ${extralib}"
9866 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_client_init" | $as_tr_sh`
9867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_client_init in -l${ldaplib}" >&5
9868 $as_echo_n "checking for ldapssl_client_init in -l${ldaplib}... " >&6; }
9869 if eval \${$as_ac_Lib+:} false; then :
9870 $as_echo_n "(cached) " >&6
9872 ac_check_lib_save_LIBS=$LIBS
9873 LIBS="-l${ldaplib} ${extralib} $LIBS"
9874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9875 /* end confdefs.h. */
9877 /* Override any GCC internal prototype to avoid an error.
9878 Use char because int might match the return type of a GCC
9879 builtin and then its argument prototype would still apply. */
9883 char ldapssl_client_init ();
9887 return ldapssl_client_init ();
9892 if ac_fn_c_try_link "$LINENO"; then :
9893 eval "$as_ac_Lib=yes"
9895 eval "$as_ac_Lib=no"
9897 rm -f core conftest.err conftest.$ac_objext \
9898 conftest$ac_exeext conftest.$ac_ext
9899 LIBS=$ac_check_lib_save_LIBS
9901 eval ac_res=\$$as_ac_Lib
9902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9903 $as_echo "$ac_res" >&6; }
9904 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
9905 apu_has_ldapssl_client_init="1"
9908 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_client_deinit" | $as_tr_sh`
9909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_client_deinit in -l${ldaplib}" >&5
9910 $as_echo_n "checking for ldapssl_client_deinit in -l${ldaplib}... " >&6; }
9911 if eval \${$as_ac_Lib+:} false; then :
9912 $as_echo_n "(cached) " >&6
9914 ac_check_lib_save_LIBS=$LIBS
9915 LIBS="-l${ldaplib} ${extralib} $LIBS"
9916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9917 /* end confdefs.h. */
9919 /* Override any GCC internal prototype to avoid an error.
9920 Use char because int might match the return type of a GCC
9921 builtin and then its argument prototype would still apply. */
9925 char ldapssl_client_deinit ();
9929 return ldapssl_client_deinit ();
9934 if ac_fn_c_try_link "$LINENO"; then :
9935 eval "$as_ac_Lib=yes"
9937 eval "$as_ac_Lib=no"
9939 rm -f core conftest.err conftest.$ac_objext \
9940 conftest$ac_exeext conftest.$ac_ext
9941 LIBS=$ac_check_lib_save_LIBS
9943 eval ac_res=\$$as_ac_Lib
9944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9945 $as_echo "$ac_res" >&6; }
9946 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
9947 apu_has_ldapssl_client_deinit="1"
9950 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_add_trusted_cert" | $as_tr_sh`
9951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_add_trusted_cert in -l${ldaplib}" >&5
9952 $as_echo_n "checking for ldapssl_add_trusted_cert in -l${ldaplib}... " >&6; }
9953 if eval \${$as_ac_Lib+:} false; then :
9954 $as_echo_n "(cached) " >&6
9956 ac_check_lib_save_LIBS=$LIBS
9957 LIBS="-l${ldaplib} ${extralib} $LIBS"
9958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9959 /* end confdefs.h. */
9961 /* Override any GCC internal prototype to avoid an error.
9962 Use char because int might match the return type of a GCC
9963 builtin and then its argument prototype would still apply. */
9967 char ldapssl_add_trusted_cert ();
9971 return ldapssl_add_trusted_cert ();
9976 if ac_fn_c_try_link "$LINENO"; then :
9977 eval "$as_ac_Lib=yes"
9979 eval "$as_ac_Lib=no"
9981 rm -f core conftest.err conftest.$ac_objext \
9982 conftest$ac_exeext conftest.$ac_ext
9983 LIBS=$ac_check_lib_save_LIBS
9985 eval ac_res=\$$as_ac_Lib
9986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9987 $as_echo "$ac_res" >&6; }
9988 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
9989 apu_has_ldapssl_add_trusted_cert="1"
9992 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_start_tls_s" | $as_tr_sh`
9993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_start_tls_s in -l${ldaplib}" >&5
9994 $as_echo_n "checking for ldap_start_tls_s in -l${ldaplib}... " >&6; }
9995 if eval \${$as_ac_Lib+:} false; then :
9996 $as_echo_n "(cached) " >&6
9998 ac_check_lib_save_LIBS=$LIBS
9999 LIBS="-l${ldaplib} ${extralib} $LIBS"
10000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10001 /* end confdefs.h. */
10003 /* Override any GCC internal prototype to avoid an error.
10004 Use char because int might match the return type of a GCC
10005 builtin and then its argument prototype would still apply. */
10009 char ldap_start_tls_s ();
10013 return ldap_start_tls_s ();
10018 if ac_fn_c_try_link "$LINENO"; then :
10019 eval "$as_ac_Lib=yes"
10021 eval "$as_ac_Lib=no"
10023 rm -f core conftest.err conftest.$ac_objext \
10024 conftest$ac_exeext conftest.$ac_ext
10025 LIBS=$ac_check_lib_save_LIBS
10027 eval ac_res=\$$as_ac_Lib
10028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10029 $as_echo "$ac_res" >&6; }
10030 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
10031 apu_has_ldap_start_tls_s="1"
10034 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_sslinit" | $as_tr_sh`
10035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_sslinit in -l${ldaplib}" >&5
10036 $as_echo_n "checking for ldap_sslinit in -l${ldaplib}... " >&6; }
10037 if eval \${$as_ac_Lib+:} false; then :
10038 $as_echo_n "(cached) " >&6
10040 ac_check_lib_save_LIBS=$LIBS
10041 LIBS="-l${ldaplib} ${extralib} $LIBS"
10042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10043 /* end confdefs.h. */
10045 /* Override any GCC internal prototype to avoid an error.
10046 Use char because int might match the return type of a GCC
10047 builtin and then its argument prototype would still apply. */
10051 char ldap_sslinit ();
10055 return ldap_sslinit ();
10060 if ac_fn_c_try_link "$LINENO"; then :
10061 eval "$as_ac_Lib=yes"
10063 eval "$as_ac_Lib=no"
10065 rm -f core conftest.err conftest.$ac_objext \
10066 conftest$ac_exeext conftest.$ac_ext
10067 LIBS=$ac_check_lib_save_LIBS
10069 eval ac_res=\$$as_ac_Lib
10070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10071 $as_echo "$ac_res" >&6; }
10072 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
10073 apu_has_ldap_sslinit="1"
10076 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_init" | $as_tr_sh`
10077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_init in -l${ldaplib}" >&5
10078 $as_echo_n "checking for ldapssl_init in -l${ldaplib}... " >&6; }
10079 if eval \${$as_ac_Lib+:} false; then :
10080 $as_echo_n "(cached) " >&6
10082 ac_check_lib_save_LIBS=$LIBS
10083 LIBS="-l${ldaplib} ${extralib} $LIBS"
10084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10085 /* end confdefs.h. */
10087 /* Override any GCC internal prototype to avoid an error.
10088 Use char because int might match the return type of a GCC
10089 builtin and then its argument prototype would still apply. */
10093 char ldapssl_init ();
10097 return ldapssl_init ();
10102 if ac_fn_c_try_link "$LINENO"; then :
10103 eval "$as_ac_Lib=yes"
10105 eval "$as_ac_Lib=no"
10107 rm -f core conftest.err conftest.$ac_objext \
10108 conftest$ac_exeext conftest.$ac_ext
10109 LIBS=$ac_check_lib_save_LIBS
10111 eval ac_res=\$$as_ac_Lib
10112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10113 $as_echo "$ac_res" >&6; }
10114 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
10115 apu_has_ldapssl_init="1"
10118 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_install_routines" | $as_tr_sh`
10119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_install_routines in -l${ldaplib}" >&5
10120 $as_echo_n "checking for ldapssl_install_routines in -l${ldaplib}... " >&6; }
10121 if eval \${$as_ac_Lib+:} false; then :
10122 $as_echo_n "(cached) " >&6
10124 ac_check_lib_save_LIBS=$LIBS
10125 LIBS="-l${ldaplib} ${extralib} $LIBS"
10126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10127 /* end confdefs.h. */
10129 /* Override any GCC internal prototype to avoid an error.
10130 Use char because int might match the return type of a GCC
10131 builtin and then its argument prototype would still apply. */
10135 char ldapssl_install_routines ();
10139 return ldapssl_install_routines ();
10144 if ac_fn_c_try_link "$LINENO"; then :
10145 eval "$as_ac_Lib=yes"
10147 eval "$as_ac_Lib=no"
10149 rm -f core conftest.err conftest.$ac_objext \
10150 conftest$ac_exeext conftest.$ac_ext
10151 LIBS=$ac_check_lib_save_LIBS
10153 eval ac_res=\$$as_ac_Lib
10154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10155 $as_echo "$ac_res" >&6; }
10156 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
10157 apu_has_ldapssl_install_routines="1"
10167 if test ${apu_has_ldap} != "1"; then
10169 extralib="-lresolv"
10170 # Clear the cache entry for subsequent APU_FIND_LDAPLIB invocations.
10172 ldaplib_cache_id="`echo $ldaplib | sed -e 's/[^a-zA-Z0-9_]/_/g'`"
10174 unset ac_cv_lib_${ldaplib_cache_id}_ldap_init
10175 unset ac_cv_lib_${ldaplib_cache_id}___ldap_init
10176 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_init" | $as_tr_sh`
10177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_init in -l${ldaplib}" >&5
10178 $as_echo_n "checking for ldap_init in -l${ldaplib}... " >&6; }
10179 if eval \${$as_ac_Lib+:} false; then :
10180 $as_echo_n "(cached) " >&6
10182 ac_check_lib_save_LIBS=$LIBS
10183 LIBS="-l${ldaplib} ${extralib} $LIBS"
10184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10185 /* end confdefs.h. */
10187 /* Override any GCC internal prototype to avoid an error.
10188 Use char because int might match the return type of a GCC
10189 builtin and then its argument prototype would still apply. */
10197 return ldap_init ();
10202 if ac_fn_c_try_link "$LINENO"; then :
10203 eval "$as_ac_Lib=yes"
10205 eval "$as_ac_Lib=no"
10207 rm -f core conftest.err conftest.$ac_objext \
10208 conftest$ac_exeext conftest.$ac_ext
10209 LIBS=$ac_check_lib_save_LIBS
10211 eval ac_res=\$$as_ac_Lib
10212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10213 $as_echo "$ac_res" >&6; }
10214 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
10216 LDADD_ldap_found="-l${ldaplib} ${extralib}"
10217 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_client_init" | $as_tr_sh`
10218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_client_init in -l${ldaplib}" >&5
10219 $as_echo_n "checking for ldapssl_client_init in -l${ldaplib}... " >&6; }
10220 if eval \${$as_ac_Lib+:} false; then :
10221 $as_echo_n "(cached) " >&6
10223 ac_check_lib_save_LIBS=$LIBS
10224 LIBS="-l${ldaplib} ${extralib} $LIBS"
10225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10226 /* end confdefs.h. */
10228 /* Override any GCC internal prototype to avoid an error.
10229 Use char because int might match the return type of a GCC
10230 builtin and then its argument prototype would still apply. */
10234 char ldapssl_client_init ();
10238 return ldapssl_client_init ();
10243 if ac_fn_c_try_link "$LINENO"; then :
10244 eval "$as_ac_Lib=yes"
10246 eval "$as_ac_Lib=no"
10248 rm -f core conftest.err conftest.$ac_objext \
10249 conftest$ac_exeext conftest.$ac_ext
10250 LIBS=$ac_check_lib_save_LIBS
10252 eval ac_res=\$$as_ac_Lib
10253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10254 $as_echo "$ac_res" >&6; }
10255 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
10256 apu_has_ldapssl_client_init="1"
10259 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_client_deinit" | $as_tr_sh`
10260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_client_deinit in -l${ldaplib}" >&5
10261 $as_echo_n "checking for ldapssl_client_deinit in -l${ldaplib}... " >&6; }
10262 if eval \${$as_ac_Lib+:} false; then :
10263 $as_echo_n "(cached) " >&6
10265 ac_check_lib_save_LIBS=$LIBS
10266 LIBS="-l${ldaplib} ${extralib} $LIBS"
10267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10268 /* end confdefs.h. */
10270 /* Override any GCC internal prototype to avoid an error.
10271 Use char because int might match the return type of a GCC
10272 builtin and then its argument prototype would still apply. */
10276 char ldapssl_client_deinit ();
10280 return ldapssl_client_deinit ();
10285 if ac_fn_c_try_link "$LINENO"; then :
10286 eval "$as_ac_Lib=yes"
10288 eval "$as_ac_Lib=no"
10290 rm -f core conftest.err conftest.$ac_objext \
10291 conftest$ac_exeext conftest.$ac_ext
10292 LIBS=$ac_check_lib_save_LIBS
10294 eval ac_res=\$$as_ac_Lib
10295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10296 $as_echo "$ac_res" >&6; }
10297 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
10298 apu_has_ldapssl_client_deinit="1"
10301 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_add_trusted_cert" | $as_tr_sh`
10302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_add_trusted_cert in -l${ldaplib}" >&5
10303 $as_echo_n "checking for ldapssl_add_trusted_cert in -l${ldaplib}... " >&6; }
10304 if eval \${$as_ac_Lib+:} false; then :
10305 $as_echo_n "(cached) " >&6
10307 ac_check_lib_save_LIBS=$LIBS
10308 LIBS="-l${ldaplib} ${extralib} $LIBS"
10309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10310 /* end confdefs.h. */
10312 /* Override any GCC internal prototype to avoid an error.
10313 Use char because int might match the return type of a GCC
10314 builtin and then its argument prototype would still apply. */
10318 char ldapssl_add_trusted_cert ();
10322 return ldapssl_add_trusted_cert ();
10327 if ac_fn_c_try_link "$LINENO"; then :
10328 eval "$as_ac_Lib=yes"
10330 eval "$as_ac_Lib=no"
10332 rm -f core conftest.err conftest.$ac_objext \
10333 conftest$ac_exeext conftest.$ac_ext
10334 LIBS=$ac_check_lib_save_LIBS
10336 eval ac_res=\$$as_ac_Lib
10337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10338 $as_echo "$ac_res" >&6; }
10339 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
10340 apu_has_ldapssl_add_trusted_cert="1"
10343 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_start_tls_s" | $as_tr_sh`
10344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_start_tls_s in -l${ldaplib}" >&5
10345 $as_echo_n "checking for ldap_start_tls_s in -l${ldaplib}... " >&6; }
10346 if eval \${$as_ac_Lib+:} false; then :
10347 $as_echo_n "(cached) " >&6
10349 ac_check_lib_save_LIBS=$LIBS
10350 LIBS="-l${ldaplib} ${extralib} $LIBS"
10351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10352 /* end confdefs.h. */
10354 /* Override any GCC internal prototype to avoid an error.
10355 Use char because int might match the return type of a GCC
10356 builtin and then its argument prototype would still apply. */
10360 char ldap_start_tls_s ();
10364 return ldap_start_tls_s ();
10369 if ac_fn_c_try_link "$LINENO"; then :
10370 eval "$as_ac_Lib=yes"
10372 eval "$as_ac_Lib=no"
10374 rm -f core conftest.err conftest.$ac_objext \
10375 conftest$ac_exeext conftest.$ac_ext
10376 LIBS=$ac_check_lib_save_LIBS
10378 eval ac_res=\$$as_ac_Lib
10379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10380 $as_echo "$ac_res" >&6; }
10381 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
10382 apu_has_ldap_start_tls_s="1"
10385 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_sslinit" | $as_tr_sh`
10386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_sslinit in -l${ldaplib}" >&5
10387 $as_echo_n "checking for ldap_sslinit in -l${ldaplib}... " >&6; }
10388 if eval \${$as_ac_Lib+:} false; then :
10389 $as_echo_n "(cached) " >&6
10391 ac_check_lib_save_LIBS=$LIBS
10392 LIBS="-l${ldaplib} ${extralib} $LIBS"
10393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10394 /* end confdefs.h. */
10396 /* Override any GCC internal prototype to avoid an error.
10397 Use char because int might match the return type of a GCC
10398 builtin and then its argument prototype would still apply. */
10402 char ldap_sslinit ();
10406 return ldap_sslinit ();
10411 if ac_fn_c_try_link "$LINENO"; then :
10412 eval "$as_ac_Lib=yes"
10414 eval "$as_ac_Lib=no"
10416 rm -f core conftest.err conftest.$ac_objext \
10417 conftest$ac_exeext conftest.$ac_ext
10418 LIBS=$ac_check_lib_save_LIBS
10420 eval ac_res=\$$as_ac_Lib
10421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10422 $as_echo "$ac_res" >&6; }
10423 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
10424 apu_has_ldap_sslinit="1"
10427 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_init" | $as_tr_sh`
10428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_init in -l${ldaplib}" >&5
10429 $as_echo_n "checking for ldapssl_init in -l${ldaplib}... " >&6; }
10430 if eval \${$as_ac_Lib+:} false; then :
10431 $as_echo_n "(cached) " >&6
10433 ac_check_lib_save_LIBS=$LIBS
10434 LIBS="-l${ldaplib} ${extralib} $LIBS"
10435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10436 /* end confdefs.h. */
10438 /* Override any GCC internal prototype to avoid an error.
10439 Use char because int might match the return type of a GCC
10440 builtin and then its argument prototype would still apply. */
10444 char ldapssl_init ();
10448 return ldapssl_init ();
10453 if ac_fn_c_try_link "$LINENO"; then :
10454 eval "$as_ac_Lib=yes"
10456 eval "$as_ac_Lib=no"
10458 rm -f core conftest.err conftest.$ac_objext \
10459 conftest$ac_exeext conftest.$ac_ext
10460 LIBS=$ac_check_lib_save_LIBS
10462 eval ac_res=\$$as_ac_Lib
10463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10464 $as_echo "$ac_res" >&6; }
10465 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
10466 apu_has_ldapssl_init="1"
10469 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_install_routines" | $as_tr_sh`
10470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_install_routines in -l${ldaplib}" >&5
10471 $as_echo_n "checking for ldapssl_install_routines in -l${ldaplib}... " >&6; }
10472 if eval \${$as_ac_Lib+:} false; then :
10473 $as_echo_n "(cached) " >&6
10475 ac_check_lib_save_LIBS=$LIBS
10476 LIBS="-l${ldaplib} ${extralib} $LIBS"
10477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10478 /* end confdefs.h. */
10480 /* Override any GCC internal prototype to avoid an error.
10481 Use char because int might match the return type of a GCC
10482 builtin and then its argument prototype would still apply. */
10486 char ldapssl_install_routines ();
10490 return ldapssl_install_routines ();
10495 if ac_fn_c_try_link "$LINENO"; then :
10496 eval "$as_ac_Lib=yes"
10498 eval "$as_ac_Lib=no"
10500 rm -f core conftest.err conftest.$ac_objext \
10501 conftest$ac_exeext conftest.$ac_ext
10502 LIBS=$ac_check_lib_save_LIBS
10504 eval ac_res=\$$as_ac_Lib
10505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10506 $as_echo "$ac_res" >&6; }
10507 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
10508 apu_has_ldapssl_install_routines="1"
10518 if test ${apu_has_ldap} != "1"; then
10520 extralib="-lresolv -lsocket -lnsl"
10521 # Clear the cache entry for subsequent APU_FIND_LDAPLIB invocations.
10523 ldaplib_cache_id="`echo $ldaplib | sed -e 's/[^a-zA-Z0-9_]/_/g'`"
10525 unset ac_cv_lib_${ldaplib_cache_id}_ldap_init
10526 unset ac_cv_lib_${ldaplib_cache_id}___ldap_init
10527 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_init" | $as_tr_sh`
10528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_init in -l${ldaplib}" >&5
10529 $as_echo_n "checking for ldap_init in -l${ldaplib}... " >&6; }
10530 if eval \${$as_ac_Lib+:} false; then :
10531 $as_echo_n "(cached) " >&6
10533 ac_check_lib_save_LIBS=$LIBS
10534 LIBS="-l${ldaplib} ${extralib} $LIBS"
10535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10536 /* end confdefs.h. */
10538 /* Override any GCC internal prototype to avoid an error.
10539 Use char because int might match the return type of a GCC
10540 builtin and then its argument prototype would still apply. */
10548 return ldap_init ();
10553 if ac_fn_c_try_link "$LINENO"; then :
10554 eval "$as_ac_Lib=yes"
10556 eval "$as_ac_Lib=no"
10558 rm -f core conftest.err conftest.$ac_objext \
10559 conftest$ac_exeext conftest.$ac_ext
10560 LIBS=$ac_check_lib_save_LIBS
10562 eval ac_res=\$$as_ac_Lib
10563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10564 $as_echo "$ac_res" >&6; }
10565 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
10567 LDADD_ldap_found="-l${ldaplib} ${extralib}"
10568 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_client_init" | $as_tr_sh`
10569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_client_init in -l${ldaplib}" >&5
10570 $as_echo_n "checking for ldapssl_client_init in -l${ldaplib}... " >&6; }
10571 if eval \${$as_ac_Lib+:} false; then :
10572 $as_echo_n "(cached) " >&6
10574 ac_check_lib_save_LIBS=$LIBS
10575 LIBS="-l${ldaplib} ${extralib} $LIBS"
10576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10577 /* end confdefs.h. */
10579 /* Override any GCC internal prototype to avoid an error.
10580 Use char because int might match the return type of a GCC
10581 builtin and then its argument prototype would still apply. */
10585 char ldapssl_client_init ();
10589 return ldapssl_client_init ();
10594 if ac_fn_c_try_link "$LINENO"; then :
10595 eval "$as_ac_Lib=yes"
10597 eval "$as_ac_Lib=no"
10599 rm -f core conftest.err conftest.$ac_objext \
10600 conftest$ac_exeext conftest.$ac_ext
10601 LIBS=$ac_check_lib_save_LIBS
10603 eval ac_res=\$$as_ac_Lib
10604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10605 $as_echo "$ac_res" >&6; }
10606 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
10607 apu_has_ldapssl_client_init="1"
10610 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_client_deinit" | $as_tr_sh`
10611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_client_deinit in -l${ldaplib}" >&5
10612 $as_echo_n "checking for ldapssl_client_deinit in -l${ldaplib}... " >&6; }
10613 if eval \${$as_ac_Lib+:} false; then :
10614 $as_echo_n "(cached) " >&6
10616 ac_check_lib_save_LIBS=$LIBS
10617 LIBS="-l${ldaplib} ${extralib} $LIBS"
10618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10619 /* end confdefs.h. */
10621 /* Override any GCC internal prototype to avoid an error.
10622 Use char because int might match the return type of a GCC
10623 builtin and then its argument prototype would still apply. */
10627 char ldapssl_client_deinit ();
10631 return ldapssl_client_deinit ();
10636 if ac_fn_c_try_link "$LINENO"; then :
10637 eval "$as_ac_Lib=yes"
10639 eval "$as_ac_Lib=no"
10641 rm -f core conftest.err conftest.$ac_objext \
10642 conftest$ac_exeext conftest.$ac_ext
10643 LIBS=$ac_check_lib_save_LIBS
10645 eval ac_res=\$$as_ac_Lib
10646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10647 $as_echo "$ac_res" >&6; }
10648 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
10649 apu_has_ldapssl_client_deinit="1"
10652 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_add_trusted_cert" | $as_tr_sh`
10653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_add_trusted_cert in -l${ldaplib}" >&5
10654 $as_echo_n "checking for ldapssl_add_trusted_cert in -l${ldaplib}... " >&6; }
10655 if eval \${$as_ac_Lib+:} false; then :
10656 $as_echo_n "(cached) " >&6
10658 ac_check_lib_save_LIBS=$LIBS
10659 LIBS="-l${ldaplib} ${extralib} $LIBS"
10660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10661 /* end confdefs.h. */
10663 /* Override any GCC internal prototype to avoid an error.
10664 Use char because int might match the return type of a GCC
10665 builtin and then its argument prototype would still apply. */
10669 char ldapssl_add_trusted_cert ();
10673 return ldapssl_add_trusted_cert ();
10678 if ac_fn_c_try_link "$LINENO"; then :
10679 eval "$as_ac_Lib=yes"
10681 eval "$as_ac_Lib=no"
10683 rm -f core conftest.err conftest.$ac_objext \
10684 conftest$ac_exeext conftest.$ac_ext
10685 LIBS=$ac_check_lib_save_LIBS
10687 eval ac_res=\$$as_ac_Lib
10688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10689 $as_echo "$ac_res" >&6; }
10690 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
10691 apu_has_ldapssl_add_trusted_cert="1"
10694 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_start_tls_s" | $as_tr_sh`
10695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_start_tls_s in -l${ldaplib}" >&5
10696 $as_echo_n "checking for ldap_start_tls_s in -l${ldaplib}... " >&6; }
10697 if eval \${$as_ac_Lib+:} false; then :
10698 $as_echo_n "(cached) " >&6
10700 ac_check_lib_save_LIBS=$LIBS
10701 LIBS="-l${ldaplib} ${extralib} $LIBS"
10702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10703 /* end confdefs.h. */
10705 /* Override any GCC internal prototype to avoid an error.
10706 Use char because int might match the return type of a GCC
10707 builtin and then its argument prototype would still apply. */
10711 char ldap_start_tls_s ();
10715 return ldap_start_tls_s ();
10720 if ac_fn_c_try_link "$LINENO"; then :
10721 eval "$as_ac_Lib=yes"
10723 eval "$as_ac_Lib=no"
10725 rm -f core conftest.err conftest.$ac_objext \
10726 conftest$ac_exeext conftest.$ac_ext
10727 LIBS=$ac_check_lib_save_LIBS
10729 eval ac_res=\$$as_ac_Lib
10730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10731 $as_echo "$ac_res" >&6; }
10732 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
10733 apu_has_ldap_start_tls_s="1"
10736 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_sslinit" | $as_tr_sh`
10737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_sslinit in -l${ldaplib}" >&5
10738 $as_echo_n "checking for ldap_sslinit in -l${ldaplib}... " >&6; }
10739 if eval \${$as_ac_Lib+:} false; then :
10740 $as_echo_n "(cached) " >&6
10742 ac_check_lib_save_LIBS=$LIBS
10743 LIBS="-l${ldaplib} ${extralib} $LIBS"
10744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10745 /* end confdefs.h. */
10747 /* Override any GCC internal prototype to avoid an error.
10748 Use char because int might match the return type of a GCC
10749 builtin and then its argument prototype would still apply. */
10753 char ldap_sslinit ();
10757 return ldap_sslinit ();
10762 if ac_fn_c_try_link "$LINENO"; then :
10763 eval "$as_ac_Lib=yes"
10765 eval "$as_ac_Lib=no"
10767 rm -f core conftest.err conftest.$ac_objext \
10768 conftest$ac_exeext conftest.$ac_ext
10769 LIBS=$ac_check_lib_save_LIBS
10771 eval ac_res=\$$as_ac_Lib
10772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10773 $as_echo "$ac_res" >&6; }
10774 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
10775 apu_has_ldap_sslinit="1"
10778 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_init" | $as_tr_sh`
10779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_init in -l${ldaplib}" >&5
10780 $as_echo_n "checking for ldapssl_init in -l${ldaplib}... " >&6; }
10781 if eval \${$as_ac_Lib+:} false; then :
10782 $as_echo_n "(cached) " >&6
10784 ac_check_lib_save_LIBS=$LIBS
10785 LIBS="-l${ldaplib} ${extralib} $LIBS"
10786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10787 /* end confdefs.h. */
10789 /* Override any GCC internal prototype to avoid an error.
10790 Use char because int might match the return type of a GCC
10791 builtin and then its argument prototype would still apply. */
10795 char ldapssl_init ();
10799 return ldapssl_init ();
10804 if ac_fn_c_try_link "$LINENO"; then :
10805 eval "$as_ac_Lib=yes"
10807 eval "$as_ac_Lib=no"
10809 rm -f core conftest.err conftest.$ac_objext \
10810 conftest$ac_exeext conftest.$ac_ext
10811 LIBS=$ac_check_lib_save_LIBS
10813 eval ac_res=\$$as_ac_Lib
10814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10815 $as_echo "$ac_res" >&6; }
10816 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
10817 apu_has_ldapssl_init="1"
10820 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_install_routines" | $as_tr_sh`
10821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_install_routines in -l${ldaplib}" >&5
10822 $as_echo_n "checking for ldapssl_install_routines in -l${ldaplib}... " >&6; }
10823 if eval \${$as_ac_Lib+:} false; then :
10824 $as_echo_n "(cached) " >&6
10826 ac_check_lib_save_LIBS=$LIBS
10827 LIBS="-l${ldaplib} ${extralib} $LIBS"
10828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10829 /* end confdefs.h. */
10831 /* Override any GCC internal prototype to avoid an error.
10832 Use char because int might match the return type of a GCC
10833 builtin and then its argument prototype would still apply. */
10837 char ldapssl_install_routines ();
10841 return ldapssl_install_routines ();
10846 if ac_fn_c_try_link "$LINENO"; then :
10847 eval "$as_ac_Lib=yes"
10849 eval "$as_ac_Lib=no"
10851 rm -f core conftest.err conftest.$ac_objext \
10852 conftest$ac_exeext conftest.$ac_ext
10853 LIBS=$ac_check_lib_save_LIBS
10855 eval ac_res=\$$as_ac_Lib
10856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10857 $as_echo "$ac_res" >&6; }
10858 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
10859 apu_has_ldapssl_install_routines="1"
10869 if test ${apu_has_ldap} != "1"; then
10871 extralib="-ldl -lpthread"
10872 # Clear the cache entry for subsequent APU_FIND_LDAPLIB invocations.
10874 ldaplib_cache_id="`echo $ldaplib | sed -e 's/[^a-zA-Z0-9_]/_/g'`"
10876 unset ac_cv_lib_${ldaplib_cache_id}_ldap_init
10877 unset ac_cv_lib_${ldaplib_cache_id}___ldap_init
10878 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_init" | $as_tr_sh`
10879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_init in -l${ldaplib}" >&5
10880 $as_echo_n "checking for ldap_init in -l${ldaplib}... " >&6; }
10881 if eval \${$as_ac_Lib+:} false; then :
10882 $as_echo_n "(cached) " >&6
10884 ac_check_lib_save_LIBS=$LIBS
10885 LIBS="-l${ldaplib} ${extralib} $LIBS"
10886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10887 /* end confdefs.h. */
10889 /* Override any GCC internal prototype to avoid an error.
10890 Use char because int might match the return type of a GCC
10891 builtin and then its argument prototype would still apply. */
10899 return ldap_init ();
10904 if ac_fn_c_try_link "$LINENO"; then :
10905 eval "$as_ac_Lib=yes"
10907 eval "$as_ac_Lib=no"
10909 rm -f core conftest.err conftest.$ac_objext \
10910 conftest$ac_exeext conftest.$ac_ext
10911 LIBS=$ac_check_lib_save_LIBS
10913 eval ac_res=\$$as_ac_Lib
10914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10915 $as_echo "$ac_res" >&6; }
10916 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
10918 LDADD_ldap_found="-l${ldaplib} ${extralib}"
10919 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_client_init" | $as_tr_sh`
10920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_client_init in -l${ldaplib}" >&5
10921 $as_echo_n "checking for ldapssl_client_init in -l${ldaplib}... " >&6; }
10922 if eval \${$as_ac_Lib+:} false; then :
10923 $as_echo_n "(cached) " >&6
10925 ac_check_lib_save_LIBS=$LIBS
10926 LIBS="-l${ldaplib} ${extralib} $LIBS"
10927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10928 /* end confdefs.h. */
10930 /* Override any GCC internal prototype to avoid an error.
10931 Use char because int might match the return type of a GCC
10932 builtin and then its argument prototype would still apply. */
10936 char ldapssl_client_init ();
10940 return ldapssl_client_init ();
10945 if ac_fn_c_try_link "$LINENO"; then :
10946 eval "$as_ac_Lib=yes"
10948 eval "$as_ac_Lib=no"
10950 rm -f core conftest.err conftest.$ac_objext \
10951 conftest$ac_exeext conftest.$ac_ext
10952 LIBS=$ac_check_lib_save_LIBS
10954 eval ac_res=\$$as_ac_Lib
10955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10956 $as_echo "$ac_res" >&6; }
10957 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
10958 apu_has_ldapssl_client_init="1"
10961 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_client_deinit" | $as_tr_sh`
10962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_client_deinit in -l${ldaplib}" >&5
10963 $as_echo_n "checking for ldapssl_client_deinit in -l${ldaplib}... " >&6; }
10964 if eval \${$as_ac_Lib+:} false; then :
10965 $as_echo_n "(cached) " >&6
10967 ac_check_lib_save_LIBS=$LIBS
10968 LIBS="-l${ldaplib} ${extralib} $LIBS"
10969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10970 /* end confdefs.h. */
10972 /* Override any GCC internal prototype to avoid an error.
10973 Use char because int might match the return type of a GCC
10974 builtin and then its argument prototype would still apply. */
10978 char ldapssl_client_deinit ();
10982 return ldapssl_client_deinit ();
10987 if ac_fn_c_try_link "$LINENO"; then :
10988 eval "$as_ac_Lib=yes"
10990 eval "$as_ac_Lib=no"
10992 rm -f core conftest.err conftest.$ac_objext \
10993 conftest$ac_exeext conftest.$ac_ext
10994 LIBS=$ac_check_lib_save_LIBS
10996 eval ac_res=\$$as_ac_Lib
10997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10998 $as_echo "$ac_res" >&6; }
10999 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
11000 apu_has_ldapssl_client_deinit="1"
11003 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_add_trusted_cert" | $as_tr_sh`
11004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_add_trusted_cert in -l${ldaplib}" >&5
11005 $as_echo_n "checking for ldapssl_add_trusted_cert in -l${ldaplib}... " >&6; }
11006 if eval \${$as_ac_Lib+:} false; then :
11007 $as_echo_n "(cached) " >&6
11009 ac_check_lib_save_LIBS=$LIBS
11010 LIBS="-l${ldaplib} ${extralib} $LIBS"
11011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11012 /* end confdefs.h. */
11014 /* Override any GCC internal prototype to avoid an error.
11015 Use char because int might match the return type of a GCC
11016 builtin and then its argument prototype would still apply. */
11020 char ldapssl_add_trusted_cert ();
11024 return ldapssl_add_trusted_cert ();
11029 if ac_fn_c_try_link "$LINENO"; then :
11030 eval "$as_ac_Lib=yes"
11032 eval "$as_ac_Lib=no"
11034 rm -f core conftest.err conftest.$ac_objext \
11035 conftest$ac_exeext conftest.$ac_ext
11036 LIBS=$ac_check_lib_save_LIBS
11038 eval ac_res=\$$as_ac_Lib
11039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11040 $as_echo "$ac_res" >&6; }
11041 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
11042 apu_has_ldapssl_add_trusted_cert="1"
11045 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_start_tls_s" | $as_tr_sh`
11046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_start_tls_s in -l${ldaplib}" >&5
11047 $as_echo_n "checking for ldap_start_tls_s in -l${ldaplib}... " >&6; }
11048 if eval \${$as_ac_Lib+:} false; then :
11049 $as_echo_n "(cached) " >&6
11051 ac_check_lib_save_LIBS=$LIBS
11052 LIBS="-l${ldaplib} ${extralib} $LIBS"
11053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11054 /* end confdefs.h. */
11056 /* Override any GCC internal prototype to avoid an error.
11057 Use char because int might match the return type of a GCC
11058 builtin and then its argument prototype would still apply. */
11062 char ldap_start_tls_s ();
11066 return ldap_start_tls_s ();
11071 if ac_fn_c_try_link "$LINENO"; then :
11072 eval "$as_ac_Lib=yes"
11074 eval "$as_ac_Lib=no"
11076 rm -f core conftest.err conftest.$ac_objext \
11077 conftest$ac_exeext conftest.$ac_ext
11078 LIBS=$ac_check_lib_save_LIBS
11080 eval ac_res=\$$as_ac_Lib
11081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11082 $as_echo "$ac_res" >&6; }
11083 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
11084 apu_has_ldap_start_tls_s="1"
11087 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_sslinit" | $as_tr_sh`
11088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_sslinit in -l${ldaplib}" >&5
11089 $as_echo_n "checking for ldap_sslinit in -l${ldaplib}... " >&6; }
11090 if eval \${$as_ac_Lib+:} false; then :
11091 $as_echo_n "(cached) " >&6
11093 ac_check_lib_save_LIBS=$LIBS
11094 LIBS="-l${ldaplib} ${extralib} $LIBS"
11095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11096 /* end confdefs.h. */
11098 /* Override any GCC internal prototype to avoid an error.
11099 Use char because int might match the return type of a GCC
11100 builtin and then its argument prototype would still apply. */
11104 char ldap_sslinit ();
11108 return ldap_sslinit ();
11113 if ac_fn_c_try_link "$LINENO"; then :
11114 eval "$as_ac_Lib=yes"
11116 eval "$as_ac_Lib=no"
11118 rm -f core conftest.err conftest.$ac_objext \
11119 conftest$ac_exeext conftest.$ac_ext
11120 LIBS=$ac_check_lib_save_LIBS
11122 eval ac_res=\$$as_ac_Lib
11123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11124 $as_echo "$ac_res" >&6; }
11125 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
11126 apu_has_ldap_sslinit="1"
11129 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_init" | $as_tr_sh`
11130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_init in -l${ldaplib}" >&5
11131 $as_echo_n "checking for ldapssl_init in -l${ldaplib}... " >&6; }
11132 if eval \${$as_ac_Lib+:} false; then :
11133 $as_echo_n "(cached) " >&6
11135 ac_check_lib_save_LIBS=$LIBS
11136 LIBS="-l${ldaplib} ${extralib} $LIBS"
11137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11138 /* end confdefs.h. */
11140 /* Override any GCC internal prototype to avoid an error.
11141 Use char because int might match the return type of a GCC
11142 builtin and then its argument prototype would still apply. */
11146 char ldapssl_init ();
11150 return ldapssl_init ();
11155 if ac_fn_c_try_link "$LINENO"; then :
11156 eval "$as_ac_Lib=yes"
11158 eval "$as_ac_Lib=no"
11160 rm -f core conftest.err conftest.$ac_objext \
11161 conftest$ac_exeext conftest.$ac_ext
11162 LIBS=$ac_check_lib_save_LIBS
11164 eval ac_res=\$$as_ac_Lib
11165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11166 $as_echo "$ac_res" >&6; }
11167 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
11168 apu_has_ldapssl_init="1"
11171 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_install_routines" | $as_tr_sh`
11172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_install_routines in -l${ldaplib}" >&5
11173 $as_echo_n "checking for ldapssl_install_routines in -l${ldaplib}... " >&6; }
11174 if eval \${$as_ac_Lib+:} false; then :
11175 $as_echo_n "(cached) " >&6
11177 ac_check_lib_save_LIBS=$LIBS
11178 LIBS="-l${ldaplib} ${extralib} $LIBS"
11179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11180 /* end confdefs.h. */
11182 /* Override any GCC internal prototype to avoid an error.
11183 Use char because int might match the return type of a GCC
11184 builtin and then its argument prototype would still apply. */
11188 char ldapssl_install_routines ();
11192 return ldapssl_install_routines ();
11197 if ac_fn_c_try_link "$LINENO"; then :
11198 eval "$as_ac_Lib=yes"
11200 eval "$as_ac_Lib=no"
11202 rm -f core conftest.err conftest.$ac_objext \
11203 conftest$ac_exeext conftest.$ac_ext
11204 LIBS=$ac_check_lib_save_LIBS
11206 eval ac_res=\$$as_ac_Lib
11207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11208 $as_echo "$ac_res" >&6; }
11209 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
11210 apu_has_ldapssl_install_routines="1"
11221 if test ${apu_has_ldap} != "1"; then
11222 as_fn_error $? "could not find an LDAP library" "$LINENO" 5
11225 if test "x$LDADD_ldap" = "x"; then
11226 test "x$silent" != "xyes" && echo " setting LDADD_ldap to \"$LDADD_ldap_found\""
11227 LDADD_ldap="$LDADD_ldap_found"
11229 apr_addto_bugger="$LDADD_ldap_found"
11230 for i in $apr_addto_bugger; do
11231 apr_addto_duplicate="0"
11232 for j in $LDADD_ldap; do
11233 if test "x$i" = "x$j"; then
11234 apr_addto_duplicate="1"
11238 if test $apr_addto_duplicate = "0"; then
11239 test "x$silent" != "xyes" && echo " adding \"$i\" to LDADD_ldap"
11240 LDADD_ldap="$LDADD_ldap $i"
11246 as_ac_Lib=`$as_echo "ac_cv_lib_$apu_liblber_name''_ber_init" | $as_tr_sh`
11247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_init in -l$apu_liblber_name" >&5
11248 $as_echo_n "checking for ber_init in -l$apu_liblber_name... " >&6; }
11249 if eval \${$as_ac_Lib+:} false; then :
11250 $as_echo_n "(cached) " >&6
11252 ac_check_lib_save_LIBS=$LIBS
11253 LIBS="-l$apu_liblber_name $LIBS"
11254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11255 /* end confdefs.h. */
11257 /* Override any GCC internal prototype to avoid an error.
11258 Use char because int might match the return type of a GCC
11259 builtin and then its argument prototype would still apply. */
11267 return ber_init ();
11272 if ac_fn_c_try_link "$LINENO"; then :
11273 eval "$as_ac_Lib=yes"
11275 eval "$as_ac_Lib=no"
11277 rm -f core conftest.err conftest.$ac_objext \
11278 conftest$ac_exeext conftest.$ac_ext
11279 LIBS=$ac_check_lib_save_LIBS
11281 eval ac_res=\$$as_ac_Lib
11282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11283 $as_echo "$ac_res" >&6; }
11284 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
11286 if test "x$LDADD_ldap" = "x"; then
11287 test "x$silent" != "xyes" && echo " setting LDADD_ldap to \"-l${apu_liblber_name}\""
11288 LDADD_ldap="-l${apu_liblber_name}"
11290 apr_addto_bugger="-l${apu_liblber_name}"
11291 for i in $apr_addto_bugger; do
11292 apr_addto_duplicate="0"
11293 for j in $LDADD_ldap; do
11294 if test "x$i" = "x$j"; then
11295 apr_addto_duplicate="1"
11299 if test $apr_addto_duplicate = "0"; then
11300 test "x$silent" != "xyes" && echo " adding \"$i\" to LDADD_ldap"
11301 LDADD_ldap="$LDADD_ldap $i"
11309 for ac_header in lber.h
11311 ac_fn_c_check_header_mongrel "$LINENO" "lber.h" "ac_cv_header_lber_h" "$ac_includes_default"
11312 if test "x$ac_cv_header_lber_h" = xyes; then :
11313 cat >>confdefs.h <<_ACEOF
11314 #define HAVE_LBER_H 1
11316 lber_h="#include <lber.h>"
11322 # Solaris has a problem in <ldap.h> which prevents it from
11323 # being included by itself. Check for <ldap.h> manually,
11324 # including lber.h first.
11325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap.h" >&5
11326 $as_echo_n "checking for ldap.h... " >&6; }
11327 if ${apr_cv_hdr_ldap_h+:} false; then :
11328 $as_echo_n "(cached) " >&6
11330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11331 /* end confdefs.h. */
11338 if ac_fn_c_try_cpp "$LINENO"; then :
11339 apr_cv_hdr_ldap_h=yes
11341 apr_cv_hdr_ldap_h=no
11343 rm -f conftest.err conftest.i conftest.$ac_ext
11345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_hdr_ldap_h" >&5
11346 $as_echo "$apr_cv_hdr_ldap_h" >&6; }
11347 if test "$apr_cv_hdr_ldap_h" = "yes"; then
11348 ldap_h="#include <ldap.h>"
11350 $as_echo "#define HAVE_LDAP_H 1" >>confdefs.h
11354 for ac_header in ldap_ssl.h
11356 ac_fn_c_check_header_mongrel "$LINENO" "ldap_ssl.h" "ac_cv_header_ldap_ssl_h" "$ac_includes_default"
11357 if test "x$ac_cv_header_ldap_ssl_h" = xyes; then :
11358 cat >>confdefs.h <<_ACEOF
11359 #define HAVE_LDAP_SSL_H 1
11361 ldap_ssl_h="#include <ldap_ssl.h>"
11367 if test "$apr_cv_hdr_ldap_h" = "yes"; then
11368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDAP toolkit" >&5
11369 $as_echo_n "checking for LDAP toolkit... " >&6; }
11370 if ${apr_cv_ldap_toolkit+:} false; then :
11371 $as_echo_n "(cached) " >&6
11374 if test "x$apr_cv_ldap_toolkit" = "x"; then
11375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11376 /* end confdefs.h. */
11381 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11382 $EGREP "OpenLDAP" >/dev/null 2>&1; then :
11383 apu_has_ldap_openldap="1"
11384 apr_cv_ldap_toolkit="OpenLDAP"
11389 if test "x$apr_cv_ldap_toolkit" = "x"; then
11390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11391 /* end confdefs.h. */
11396 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11397 $EGREP "Sun Microsystems Inc." >/dev/null 2>&1; then :
11398 apu_has_ldap_solaris="1"
11399 apr_cv_ldap_toolkit="Solaris"
11404 if test "x$apr_cv_ldap_toolkit" = "x"; then
11405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11406 /* end confdefs.h. */
11411 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11412 $EGREP "Novell" >/dev/null 2>&1; then :
11413 apu_has_ldap_novell="1"
11414 apr_cv_ldap_toolkit="Novell"
11419 if test "x$apr_cv_ldap_toolkit" = "x"; then
11420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11421 /* end confdefs.h. */
11426 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11427 $EGREP "Microsoft Corporation." >/dev/null 2>&1; then :
11428 apu_has_ldap_microsoft="1"
11429 apr_cv_ldap_toolkit="Microsoft"
11434 if test "x$apr_cv_ldap_toolkit" = "x"; then
11435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11436 /* end confdefs.h. */
11441 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11442 $EGREP "Netscape Communications Corp." >/dev/null 2>&1; then :
11443 apu_has_ldap_netscape="1"
11444 apr_cv_ldap_toolkit="Netscape"
11449 if test "x$apr_cv_ldap_toolkit" = "x"; then
11450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11451 /* end confdefs.h. */
11456 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11457 $EGREP "mozilla.org" >/dev/null 2>&1; then :
11458 apu_has_ldap_mozilla="1"
11459 apr_cv_ldap_toolkit="Mozilla"
11464 if test "x$apr_cv_ldap_toolkit" = "x"; then
11465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11466 /* end confdefs.h. */
11471 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11472 $EGREP "International Business Machines" >/dev/null 2>&1; then :
11473 apu_has_ldap_tivoli="1"
11474 apr_cv_ldap_toolkit="Tivoli"
11479 if test "x$apr_cv_ldap_toolkit" = "x"; then
11482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11483 /* end confdefs.h. */
11487 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11488 $EGREP "IBM" >/dev/null 2>&1; then :
11489 apu_has_ldap_zos="1"
11490 apr_cv_ldap_toolkit="z/OS"
11497 if test "x$apr_cv_ldap_toolkit" = "x"; then
11498 apu_has_ldap_other="1"
11499 apr_cv_ldap_toolkit="unknown"
11503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_ldap_toolkit" >&5
11504 $as_echo "$apr_cv_ldap_toolkit" >&6; }
11507 CPPFLAGS=$save_cppflags
11508 LDFLAGS=$save_ldflags
11515 if test "$apu_has_ldap_openldap" = "1"; then
11516 save_cppflags="$CPPFLAGS"
11517 save_ldflags="$LDFLAGS"
11520 CPPFLAGS="$CPPFLAGS $APRUTIL_INCLUDES"
11521 LDFLAGS="$LDFLAGS $APRUTIL_LDFLAGS"
11522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking style of ldap_set_rebind_proc routine" >&5
11523 $as_echo_n "checking style of ldap_set_rebind_proc routine... " >&6; }
11524 if ${ac_cv_ldap_set_rebind_proc_style+:} false; then :
11525 $as_echo_n "(cached) " >&6
11527 apr_save_CFLAGS=$CFLAGS
11528 CFLAGS="$CFLAGS $CFLAGS_WARN"
11529 if test "$ac_cv_c_compiler_gnu" = "yes"; then
11530 CFLAGS="$CFLAGS -Werror"
11532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11533 /* end confdefs.h. */
11534 #include "confdefs.h"
11544 int main(int argc, const char *const *argv) {
11546 ldap_set_rebind_proc((LDAP *)0, (LDAP_REBIND_PROC *)0, (void *)0);
11551 if ac_fn_c_try_compile "$LINENO"; then :
11552 ac_cv_ldap_set_rebind_proc_style=three
11554 ac_cv_ldap_set_rebind_proc_style=two
11556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11557 CFLAGS=$apr_save_CFLAGS
11560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ldap_set_rebind_proc_style" >&5
11561 $as_echo "$ac_cv_ldap_set_rebind_proc_style" >&6; }
11563 if test "$ac_cv_ldap_set_rebind_proc_style" = "three"; then
11565 $as_echo "#define LDAP_SET_REBIND_PROC_THREE 1" >>confdefs.h
11569 CPPFLAGS="$save_cppflags"
11570 LDFLAGS="$save_ldflags"
11607 apu_db_header=db.h # default so apu_select_dbm.h is syntactically correct
11610 # Maximum supported version announced in help string.
11611 # Although we search for all versions up to 6.9,
11612 # we should only include existing versions in our
11614 dbm_list="sdbm, gdbm, ndbm, db, db1, db185, db2, db3, db4"
11617 db_version="$db_min_version"
11618 while [ $db_version -le $db_max_version ]
11620 dbm_list="$dbm_list, db$db_version"
11621 db_version=`expr $db_version + 1`
11625 db_version="$db_min_version"
11626 while [ $db_version -le $db_max_version ]
11628 dbm_list="$dbm_list, db$db_version"
11629 db_version=`expr $db_version + 1`
11633 db_version="$db_min_version"
11634 while [ $db_version -le $db_max_version ]
11636 dbm_list="$dbm_list, db$db_version"
11637 db_version=`expr $db_version + 1`
11641 # Check whether --with-dbm was given.
11642 if test "${with_dbm+set}" = set; then :
11644 if test "$withval" = "yes"; then
11645 as_fn_error $? "--with-dbm needs to specify a DBM type to use.
11646 One of: $dbm_list" "$LINENO" 5
11648 requested="$withval"
11658 # Check whether --with-gdbm was given.
11659 if test "${with_gdbm+set}" = set; then :
11660 withval=$with_gdbm;
11662 if test "$withval" = "yes"; then
11663 ac_fn_c_check_header_mongrel "$LINENO" "gdbm.h" "ac_cv_header_gdbm_h" "$ac_includes_default"
11664 if test "x$ac_cv_header_gdbm_h" = xyes; then :
11665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbm_open in -lgdbm" >&5
11666 $as_echo_n "checking for gdbm_open in -lgdbm... " >&6; }
11667 if ${ac_cv_lib_gdbm_gdbm_open+:} false; then :
11668 $as_echo_n "(cached) " >&6
11670 ac_check_lib_save_LIBS=$LIBS
11671 LIBS="-lgdbm $LIBS"
11672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11673 /* end confdefs.h. */
11675 /* Override any GCC internal prototype to avoid an error.
11676 Use char because int might match the return type of a GCC
11677 builtin and then its argument prototype would still apply. */
11685 return gdbm_open ();
11690 if ac_fn_c_try_link "$LINENO"; then :
11691 ac_cv_lib_gdbm_gdbm_open=yes
11693 ac_cv_lib_gdbm_gdbm_open=no
11695 rm -f core conftest.err conftest.$ac_objext \
11696 conftest$ac_exeext conftest.$ac_ext
11697 LIBS=$ac_check_lib_save_LIBS
11699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gdbm_gdbm_open" >&5
11700 $as_echo "$ac_cv_lib_gdbm_gdbm_open" >&6; }
11701 if test "x$ac_cv_lib_gdbm_gdbm_open" = xyes; then :
11708 elif test "$withval" = "no"; then
11711 saved_cppflags="$CPPFLAGS"
11712 saved_ldflags="$LDFLAGS"
11713 CPPFLAGS="$CPPFLAGS -I$withval/include"
11714 LDFLAGS="$LDFLAGS -L$withval/lib "
11716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking checking for gdbm in $withval" >&5
11717 $as_echo_n "checking checking for gdbm in $withval... " >&6; }
11718 ac_fn_c_check_header_mongrel "$LINENO" "gdbm.h" "ac_cv_header_gdbm_h" "$ac_includes_default"
11719 if test "x$ac_cv_header_gdbm_h" = xyes; then :
11720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbm_open in -lgdbm" >&5
11721 $as_echo_n "checking for gdbm_open in -lgdbm... " >&6; }
11722 if ${ac_cv_lib_gdbm_gdbm_open+:} false; then :
11723 $as_echo_n "(cached) " >&6
11725 ac_check_lib_save_LIBS=$LIBS
11726 LIBS="-lgdbm $LIBS"
11727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11728 /* end confdefs.h. */
11730 /* Override any GCC internal prototype to avoid an error.
11731 Use char because int might match the return type of a GCC
11732 builtin and then its argument prototype would still apply. */
11740 return gdbm_open ();
11745 if ac_fn_c_try_link "$LINENO"; then :
11746 ac_cv_lib_gdbm_gdbm_open=yes
11748 ac_cv_lib_gdbm_gdbm_open=no
11750 rm -f core conftest.err conftest.$ac_objext \
11751 conftest$ac_exeext conftest.$ac_ext
11752 LIBS=$ac_check_lib_save_LIBS
11754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gdbm_gdbm_open" >&5
11755 $as_echo "$ac_cv_lib_gdbm_gdbm_open" >&6; }
11756 if test "x$ac_cv_lib_gdbm_gdbm_open" = xyes; then :
11763 if test "$apu_have_gdbm" != "0"; then
11765 if test "x$APRUTIL_LDFLAGS" = "x"; then
11766 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$withval/lib\""
11767 APRUTIL_LDFLAGS="-L$withval/lib"
11769 apr_addto_bugger="-L$withval/lib"
11770 for i in $apr_addto_bugger; do
11771 apr_addto_duplicate="0"
11772 for j in $APRUTIL_LDFLAGS; do
11773 if test "x$i" = "x$j"; then
11774 apr_addto_duplicate="1"
11778 if test $apr_addto_duplicate = "0"; then
11779 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS"
11780 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
11786 if test "x$APRUTIL_INCLUDES" = "x"; then
11787 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$withval/include\""
11788 APRUTIL_INCLUDES="-I$withval/include"
11790 apr_addto_bugger="-I$withval/include"
11791 for i in $apr_addto_bugger; do
11792 apr_addto_duplicate="0"
11793 for j in $APRUTIL_INCLUDES; do
11794 if test "x$i" = "x$j"; then
11795 apr_addto_duplicate="1"
11799 if test $apr_addto_duplicate = "0"; then
11800 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES"
11801 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
11807 CPPFLAGS="$saved_cppflags"
11808 LDFLAGS="$saved_ldflags"
11815 # Check whether --with-ndbm was given.
11816 if test "${with_ndbm+set}" = set; then :
11817 withval=$with_ndbm;
11819 if test "$withval" = "yes"; then
11820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking checking for ndbm in the usual places" >&5
11821 $as_echo_n "checking checking for ndbm in the usual places... " >&6; }
11825 elif test "$withval" = "no"; then
11831 NDBM_INC="-I`echo $withval |sed -e 's/:.*$//'`"
11832 NDBM_LDFLAGS="-L`echo $withval |sed -e 's/^.*://'`"
11833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking checking for ndbm includes with $NDBM_INC libs with $NDBM_LDFLAGS " >&5
11834 $as_echo_n "checking checking for ndbm includes with $NDBM_INC libs with $NDBM_LDFLAGS ... " >&6; }
11837 NDBM_INC="-I$withval/include"
11838 NDBM_LDFLAGS="-L$withval/lib"
11839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking checking for ndbm includes in $withval" >&5
11840 $as_echo_n "checking checking for ndbm includes in $withval... " >&6; }
11845 save_cppflags="$CPPFLAGS"
11846 save_ldflags="$LDFLAGS"
11847 CPPFLAGS="$CPPFLAGS $NDBM_INC"
11848 LDFLAGS="$LDFLAGS $NDBM_LDFLAGS"
11849 if test "$apu_want_ndbm" != "0"; then
11850 ac_fn_c_check_header_mongrel "$LINENO" "ndbm.h" "ac_cv_header_ndbm_h" "$ac_includes_default"
11851 if test "x$ac_cv_header_ndbm_h" = xyes; then :
11852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbm_open in -lc" >&5
11853 $as_echo_n "checking for dbm_open in -lc... " >&6; }
11854 if ${ac_cv_lib_c_dbm_open+:} false; then :
11855 $as_echo_n "(cached) " >&6
11857 ac_check_lib_save_LIBS=$LIBS
11859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11860 /* end confdefs.h. */
11862 /* Override any GCC internal prototype to avoid an error.
11863 Use char because int might match the return type of a GCC
11864 builtin and then its argument prototype would still apply. */
11872 return dbm_open ();
11877 if ac_fn_c_try_link "$LINENO"; then :
11878 ac_cv_lib_c_dbm_open=yes
11880 ac_cv_lib_c_dbm_open=no
11882 rm -f core conftest.err conftest.$ac_objext \
11883 conftest$ac_exeext conftest.$ac_ext
11884 LIBS=$ac_check_lib_save_LIBS
11886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dbm_open" >&5
11887 $as_echo "$ac_cv_lib_c_dbm_open" >&6; }
11888 if test "x$ac_cv_lib_c_dbm_open" = xyes; then :
11889 apu_have_ndbm=1;apu_ndbm_lib=c
11891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbm_open in -ldbm" >&5
11892 $as_echo_n "checking for dbm_open in -ldbm... " >&6; }
11893 if ${ac_cv_lib_dbm_dbm_open+:} false; then :
11894 $as_echo_n "(cached) " >&6
11896 ac_check_lib_save_LIBS=$LIBS
11898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11899 /* end confdefs.h. */
11901 /* Override any GCC internal prototype to avoid an error.
11902 Use char because int might match the return type of a GCC
11903 builtin and then its argument prototype would still apply. */
11911 return dbm_open ();
11916 if ac_fn_c_try_link "$LINENO"; then :
11917 ac_cv_lib_dbm_dbm_open=yes
11919 ac_cv_lib_dbm_dbm_open=no
11921 rm -f core conftest.err conftest.$ac_objext \
11922 conftest$ac_exeext conftest.$ac_ext
11923 LIBS=$ac_check_lib_save_LIBS
11925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dbm_dbm_open" >&5
11926 $as_echo "$ac_cv_lib_dbm_dbm_open" >&6; }
11927 if test "x$ac_cv_lib_dbm_dbm_open" = xyes; then :
11928 apu_have_ndbm=1;apu_ndbm_lib=dbm
11930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbm_open in -ldb" >&5
11931 $as_echo_n "checking for dbm_open in -ldb... " >&6; }
11932 if ${ac_cv_lib_db_dbm_open+:} false; then :
11933 $as_echo_n "(cached) " >&6
11935 ac_check_lib_save_LIBS=$LIBS
11937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11938 /* end confdefs.h. */
11940 /* Override any GCC internal prototype to avoid an error.
11941 Use char because int might match the return type of a GCC
11942 builtin and then its argument prototype would still apply. */
11950 return dbm_open ();
11955 if ac_fn_c_try_link "$LINENO"; then :
11956 ac_cv_lib_db_dbm_open=yes
11958 ac_cv_lib_db_dbm_open=no
11960 rm -f core conftest.err conftest.$ac_objext \
11961 conftest$ac_exeext conftest.$ac_ext
11962 LIBS=$ac_check_lib_save_LIBS
11964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_db_dbm_open" >&5
11965 $as_echo "$ac_cv_lib_db_dbm_open" >&6; }
11966 if test "x$ac_cv_lib_db_dbm_open" = xyes; then :
11967 apu_have_ndbm=1;apu_ndbm_lib=db
11969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __db_ndbm_open in -ldb" >&5
11970 $as_echo_n "checking for __db_ndbm_open in -ldb... " >&6; }
11971 if ${ac_cv_lib_db___db_ndbm_open+:} false; then :
11972 $as_echo_n "(cached) " >&6
11974 ac_check_lib_save_LIBS=$LIBS
11976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11977 /* end confdefs.h. */
11979 /* Override any GCC internal prototype to avoid an error.
11980 Use char because int might match the return type of a GCC
11981 builtin and then its argument prototype would still apply. */
11985 char __db_ndbm_open ();
11989 return __db_ndbm_open ();
11994 if ac_fn_c_try_link "$LINENO"; then :
11995 ac_cv_lib_db___db_ndbm_open=yes
11997 ac_cv_lib_db___db_ndbm_open=no
11999 rm -f core conftest.err conftest.$ac_objext \
12000 conftest$ac_exeext conftest.$ac_ext
12001 LIBS=$ac_check_lib_save_LIBS
12003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_db___db_ndbm_open" >&5
12004 $as_echo "$ac_cv_lib_db___db_ndbm_open" >&6; }
12005 if test "x$ac_cv_lib_db___db_ndbm_open" = xyes; then :
12006 apu_have_ndbm=1;apu_ndbm_lib=db
12022 if test "$apu_have_ndbm" != "0"; then
12023 if test "$withval" != "yes"; then
12025 if test "x$APRUTIL_INCLUDES" = "x"; then
12026 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"$NDBM_INC\""
12027 APRUTIL_INCLUDES="$NDBM_INC"
12029 apr_addto_bugger="$NDBM_INC"
12030 for i in $apr_addto_bugger; do
12031 apr_addto_duplicate="0"
12032 for j in $APRUTIL_INCLUDES; do
12033 if test "x$i" = "x$j"; then
12034 apr_addto_duplicate="1"
12038 if test $apr_addto_duplicate = "0"; then
12039 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES"
12040 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
12046 if test "x$APRUTIL_LDFLAGS" = "x"; then
12047 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"$NDBM_LDFLAGS\""
12048 APRUTIL_LDFLAGS="$NDBM_LDFLAGS"
12050 apr_addto_bugger="$NDBM_LDFLAGS"
12051 for i in $apr_addto_bugger; do
12052 apr_addto_duplicate="0"
12053 for j in $APRUTIL_LDFLAGS; do
12054 if test "x$i" = "x$j"; then
12055 apr_addto_duplicate="1"
12059 if test $apr_addto_duplicate = "0"; then
12060 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS"
12061 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
12067 elif test "$withval" != "yes"; then
12068 as_fn_error $? "NDBM not found in the specified directory" "$LINENO" 5
12071 CPPFLAGS="$save_cppflags"
12072 LDFLAGS="$save_ldflags"
12082 if test -n "$apu_db_xtra_libs"; then
12083 saveddbxtralibs="$LIBS"
12084 LIBS="$apu_db_xtra_libs $LIBS"
12088 # Check whether --with-berkeley-db was given.
12089 if test "${with_berkeley_db+set}" = set; then :
12090 withval=$with_berkeley_db;
12091 if test "$withval" = "yes"; then
12094 elif test "$withval" = "no"; then
12098 user_places="$withval"
12101 if test "$apu_want_db" != "0"; then
12103 requested=$requested
12104 check_places=$user_places
12106 case "$requested" in
12109 all_places="$check_places"
12111 # Start version search at version 6.9
12113 while [ $db_version -ge 40 ]
12115 db_major=`echo $db_version | sed -e 's/.$//'`
12116 db_minor=`echo $db_version | sed -e 's/.//'`
12118 places="$all_places"
12119 db_major="$db_major"
12120 db_minor="$db_minor"
12121 if test -z "$places"; then
12122 places="std /usr/local /usr/local/BerkeleyDB.${db_major}.${db_minor} /boot/home/config"
12125 bdb_version="${db_major}"
12126 if test ""${db_minor}"" != "-1"; then
12127 bdb_version="$bdb_version."${db_minor}""
12128 if test ""-1"" != "-1"; then
12129 bdb_version="$bdb_version."-1""
12132 bdb_places="$places"
12133 bdb_default_search_headers="db${db_major}${db_minor}/db.h db${db_major}/db.h db.h"
12134 bdb_default_search_lib_names="db-${db_major}.${db_minor} db${db_major}-${db_major}.${db_minor} db${db_major}${db_minor} db-${db_major} db${db_major} db"
12139 # Save the original values of the flags we tweak.
12140 apu_check_lib_save_libs="$LIBS"
12141 apu_check_lib_save_ldflags="$LDFLAGS"
12142 apu_check_lib_save_cppflags="$CPPFLAGS"
12144 # The variable `found' is the prefix under which we've found
12145 # Berkeley DB, or `not' if we haven't found it anywhere yet.
12147 for bdb_place in $bdb_places; do
12149 LDFLAGS="$apu_check_lib_save_ldflags"
12150 CPPFLAGS="$apu_check_lib_save_cppflags"
12151 case "$bdb_place" in
12153 description="the standard places"
12156 header="`echo $bdb_place | sed -e 's/:.*$//'`"
12157 lib="`echo $bdb_place | sed -e 's/^.*://'`"
12158 CPPFLAGS="$CPPFLAGS -I$header"
12159 LDFLAGS="$LDFLAGS -L$lib"
12160 description="$header and $lib"
12163 if test -d $bdb_place; then
12164 LDFLAGS="$LDFLAGS -L$bdb_place/lib"
12165 CPPFLAGS="$CPPFLAGS -I$bdb_place/include"
12167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB $bdb_version in $bdb_place" >&5
12168 $as_echo_n "checking for Berkeley DB $bdb_version in $bdb_place... " >&6; }
12169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: directory not found" >&5
12170 $as_echo "directory not found" >&6; }
12173 description="$bdb_place"
12177 # Since there is no AC_MSG_NOTICE in autoconf 2.13, we use this
12178 # trick to display a message instead.
12179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB $bdb_version in $description" >&5
12180 $as_echo_n "checking for Berkeley DB $bdb_version in $description... " >&6; }
12181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
12184 for bdb_libname in $bdb_default_search_lib_names; do
12185 for bdb_header in $bdb_default_search_headers; do
12186 # Clear the header cache variable for each location
12188 cache_id="`echo ac_cv_header_${bdb_header} \
12189 | sed -e 's/[^a-zA-Z0-9_]/_/g'`"
12192 as_ac_Header=`$as_echo "ac_cv_header_$bdb_header" | $as_tr_sh`
12193 ac_fn_c_check_header_mongrel "$LINENO" "$bdb_header" "$as_ac_Header" "$ac_includes_default"
12194 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12196 if test ""${db_major}"" = "3" -o ""${db_major}"" = "4" -o ""${db_major}"" = "5" -o ""${db_major}"" = "6"; then
12197 # We generate a separate cache variable for each prefix and libname
12198 # we search under. That way, we avoid caching information that
12199 # changes if the user runs `configure' with a different set of
12202 cache_id="`echo apu_cv_check_berkeley_db_"${db_major}"_"${db_minor}"_"-1"_${bdb_header}_${bdb_libname}_in_${bdb_place} \
12203 | sed -e 's/[^a-zA-Z0-9_]/_/g'`"
12206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -l$bdb_libname" >&5
12207 $as_echo_n "checking for -l$bdb_libname... " >&6; }
12208 if eval \${$cache_id+:} false; then :
12209 $as_echo_n "(cached) " >&6
12213 apu_try_berkeley_db_save_libs="$LIBS"
12215 apu_check_berkeley_db_major="${db_major}"
12216 apu_check_berkeley_db_minor="${db_minor}"
12217 apu_check_berkeley_db_patch="-1"
12218 apu_try_berkeley_db_header=$bdb_header
12219 apu_try_berkeley_db_libname=$bdb_libname
12221 LIBS="$LIBS -l$apu_try_berkeley_db_libname"
12222 if test "$cross_compiling" = yes; then :
12223 apu_try_berkeley_db=yes
12226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12227 /* end confdefs.h. */
12229 #include <stdlib.h>
12231 #include <$apu_try_berkeley_db_header>
12234 int major, minor, patch;
12236 db_version(&major, &minor, &patch);
12238 /* Sanity check: ensure that db.h constants actually match the db library */
12239 if (major != DB_VERSION_MAJOR
12240 || minor != DB_VERSION_MINOR
12241 || patch != DB_VERSION_PATCH)
12244 /* Run-time check: ensure the library claims to be the correct version. */
12246 if ($apu_check_berkeley_db_major != -1) {
12247 if (major < $apu_check_berkeley_db_major)
12249 if (major > $apu_check_berkeley_db_major)
12253 if ($apu_check_berkeley_db_minor != -1) {
12254 if (minor < $apu_check_berkeley_db_minor)
12256 if (minor > $apu_check_berkeley_db_minor)
12260 if ($apu_check_berkeley_db_patch == -1
12261 || patch >= $apu_check_berkeley_db_patch)
12268 if ac_fn_c_try_run "$LINENO"; then :
12269 apu_try_berkeley_db=yes
12271 apu_try_berkeley_db=no
12273 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12274 conftest.$ac_objext conftest.beam conftest.$ac_ext
12278 LIBS="$apu_try_berkeley_db_save_libs"
12281 eval "$cache_id=$apu_try_berkeley_db"
12285 result="`eval echo '$'$cache_id`"
12286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
12287 $as_echo "$result" >&6; }
12288 elif test ""${db_major}"" = "1"; then
12289 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_dbopen" | $as_tr_sh`
12290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbopen in -l$bdb_libname" >&5
12291 $as_echo_n "checking for dbopen in -l$bdb_libname... " >&6; }
12292 if eval \${$as_ac_Lib+:} false; then :
12293 $as_echo_n "(cached) " >&6
12295 ac_check_lib_save_LIBS=$LIBS
12296 LIBS="-l$bdb_libname $LIBS"
12297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12298 /* end confdefs.h. */
12300 /* Override any GCC internal prototype to avoid an error.
12301 Use char because int might match the return type of a GCC
12302 builtin and then its argument prototype would still apply. */
12315 if ac_fn_c_try_link "$LINENO"; then :
12316 eval "$as_ac_Lib=yes"
12318 eval "$as_ac_Lib=no"
12320 rm -f core conftest.err conftest.$ac_objext \
12321 conftest$ac_exeext conftest.$ac_ext
12322 LIBS=$ac_check_lib_save_LIBS
12324 eval ac_res=\$$as_ac_Lib
12325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12326 $as_echo "$ac_res" >&6; }
12327 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
12334 elif test ""${db_major}"" = "2"; then
12335 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_db_open" | $as_tr_sh`
12336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_open in -l$bdb_libname" >&5
12337 $as_echo_n "checking for db_open in -l$bdb_libname... " >&6; }
12338 if eval \${$as_ac_Lib+:} false; then :
12339 $as_echo_n "(cached) " >&6
12341 ac_check_lib_save_LIBS=$LIBS
12342 LIBS="-l$bdb_libname $LIBS"
12343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12344 /* end confdefs.h. */
12346 /* Override any GCC internal prototype to avoid an error.
12347 Use char because int might match the return type of a GCC
12348 builtin and then its argument prototype would still apply. */
12361 if ac_fn_c_try_link "$LINENO"; then :
12362 eval "$as_ac_Lib=yes"
12364 eval "$as_ac_Lib=no"
12366 rm -f core conftest.err conftest.$ac_objext \
12367 conftest$ac_exeext conftest.$ac_ext
12368 LIBS=$ac_check_lib_save_LIBS
12370 eval ac_res=\$$as_ac_Lib
12371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12372 $as_echo "$ac_res" >&6; }
12373 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
12388 # If we found it, no need to search any more.
12389 if test "$result" = "yes"; then
12394 test "$found" != "not" && break
12396 test "$found" != "not" && break
12399 # Restore the original values of the flags we tweak.
12400 LDFLAGS="$apu_check_lib_save_ldflags"
12401 CPPFLAGS="$apu_check_lib_save_cppflags"
12408 apu_db_header=$bdb_header
12409 apu_db_lib=$bdb_libname
12413 header="`echo $found | sed -e 's/:.*$//'`"
12414 lib="`echo $found | sed -e 's/^.*://'`"
12417 if test "x$APRUTIL_INCLUDES" = "x"; then
12418 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$header\""
12419 APRUTIL_INCLUDES="-I$header"
12421 apr_addto_bugger="-I$header"
12422 for i in $apr_addto_bugger; do
12423 apr_addto_duplicate="0"
12424 for j in $APRUTIL_INCLUDES; do
12425 if test "x$i" = "x$j"; then
12426 apr_addto_duplicate="1"
12430 if test $apr_addto_duplicate = "0"; then
12431 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES"
12432 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
12438 if test "x$APRUTIL_LDFLAGS" = "x"; then
12439 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$lib\""
12440 APRUTIL_LDFLAGS="-L$lib"
12442 apr_addto_bugger="-L$lib"
12443 for i in $apr_addto_bugger; do
12444 apr_addto_duplicate="0"
12445 for j in $APRUTIL_LDFLAGS; do
12446 if test "x$i" = "x$j"; then
12447 apr_addto_duplicate="1"
12451 if test $apr_addto_duplicate = "0"; then
12452 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS"
12453 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
12458 apu_db_header=$bdb_header
12459 apu_db_lib=$bdb_libname
12464 if test "x$APRUTIL_INCLUDES" = "x"; then
12465 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$found/include\""
12466 APRUTIL_INCLUDES="-I$found/include"
12468 apr_addto_bugger="-I$found/include"
12469 for i in $apr_addto_bugger; do
12470 apr_addto_duplicate="0"
12471 for j in $APRUTIL_INCLUDES; do
12472 if test "x$i" = "x$j"; then
12473 apr_addto_duplicate="1"
12477 if test $apr_addto_duplicate = "0"; then
12478 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES"
12479 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
12485 if test "x$APRUTIL_LDFLAGS" = "x"; then
12486 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$found/lib\""
12487 APRUTIL_LDFLAGS="-L$found/lib"
12489 apr_addto_bugger="-L$found/lib"
12490 for i in $apr_addto_bugger; do
12491 apr_addto_duplicate="0"
12492 for j in $APRUTIL_LDFLAGS; do
12493 if test "x$i" = "x$j"; then
12494 apr_addto_duplicate="1"
12498 if test $apr_addto_duplicate = "0"; then
12499 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS"
12500 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
12505 apu_db_header=$bdb_header
12506 apu_db_lib=$bdb_libname
12511 if test "$apu_have_db" = "1"; then
12512 apu_db_version=${db_major}
12515 if test "$apu_have_db" = "1"; then
12518 db_version=`expr $db_version - 1`
12520 if test "$apu_have_db" = "0"; then
12522 places="$all_places"
12523 if test -z "$places"; then
12528 if test "-1" != "-1"; then
12529 bdb_version="$bdb_version.-1"
12530 if test "-1" != "-1"; then
12531 bdb_version="$bdb_version.-1"
12534 bdb_places="$places"
12535 bdb_default_search_headers="db3/db.h db.h"
12536 bdb_default_search_lib_names="db3 db"
12541 # Save the original values of the flags we tweak.
12542 apu_check_lib_save_libs="$LIBS"
12543 apu_check_lib_save_ldflags="$LDFLAGS"
12544 apu_check_lib_save_cppflags="$CPPFLAGS"
12546 # The variable `found' is the prefix under which we've found
12547 # Berkeley DB, or `not' if we haven't found it anywhere yet.
12549 for bdb_place in $bdb_places; do
12551 LDFLAGS="$apu_check_lib_save_ldflags"
12552 CPPFLAGS="$apu_check_lib_save_cppflags"
12553 case "$bdb_place" in
12555 description="the standard places"
12558 header="`echo $bdb_place | sed -e 's/:.*$//'`"
12559 lib="`echo $bdb_place | sed -e 's/^.*://'`"
12560 CPPFLAGS="$CPPFLAGS -I$header"
12561 LDFLAGS="$LDFLAGS -L$lib"
12562 description="$header and $lib"
12565 if test -d $bdb_place; then
12566 LDFLAGS="$LDFLAGS -L$bdb_place/lib"
12567 CPPFLAGS="$CPPFLAGS -I$bdb_place/include"
12569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB $bdb_version in $bdb_place" >&5
12570 $as_echo_n "checking for Berkeley DB $bdb_version in $bdb_place... " >&6; }
12571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: directory not found" >&5
12572 $as_echo "directory not found" >&6; }
12575 description="$bdb_place"
12579 # Since there is no AC_MSG_NOTICE in autoconf 2.13, we use this
12580 # trick to display a message instead.
12581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB $bdb_version in $description" >&5
12582 $as_echo_n "checking for Berkeley DB $bdb_version in $description... " >&6; }
12583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
12586 for bdb_libname in $bdb_default_search_lib_names; do
12587 for bdb_header in $bdb_default_search_headers; do
12588 # Clear the header cache variable for each location
12590 cache_id="`echo ac_cv_header_${bdb_header} \
12591 | sed -e 's/[^a-zA-Z0-9_]/_/g'`"
12594 as_ac_Header=`$as_echo "ac_cv_header_$bdb_header" | $as_tr_sh`
12595 ac_fn_c_check_header_mongrel "$LINENO" "$bdb_header" "$as_ac_Header" "$ac_includes_default"
12596 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12598 if test "3" = "3" -o "3" = "4" -o "3" = "5" -o "3" = "6"; then
12599 # We generate a separate cache variable for each prefix and libname
12600 # we search under. That way, we avoid caching information that
12601 # changes if the user runs `configure' with a different set of
12604 cache_id="`echo apu_cv_check_berkeley_db_3_-1_-1_${bdb_header}_${bdb_libname}_in_${bdb_place} \
12605 | sed -e 's/[^a-zA-Z0-9_]/_/g'`"
12608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -l$bdb_libname" >&5
12609 $as_echo_n "checking for -l$bdb_libname... " >&6; }
12610 if eval \${$cache_id+:} false; then :
12611 $as_echo_n "(cached) " >&6
12615 apu_try_berkeley_db_save_libs="$LIBS"
12617 apu_check_berkeley_db_major=3
12618 apu_check_berkeley_db_minor=-1
12619 apu_check_berkeley_db_patch=-1
12620 apu_try_berkeley_db_header=$bdb_header
12621 apu_try_berkeley_db_libname=$bdb_libname
12623 LIBS="$LIBS -l$apu_try_berkeley_db_libname"
12624 if test "$cross_compiling" = yes; then :
12625 apu_try_berkeley_db=yes
12628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12629 /* end confdefs.h. */
12631 #include <stdlib.h>
12633 #include <$apu_try_berkeley_db_header>
12636 int major, minor, patch;
12638 db_version(&major, &minor, &patch);
12640 /* Sanity check: ensure that db.h constants actually match the db library */
12641 if (major != DB_VERSION_MAJOR
12642 || minor != DB_VERSION_MINOR
12643 || patch != DB_VERSION_PATCH)
12646 /* Run-time check: ensure the library claims to be the correct version. */
12648 if ($apu_check_berkeley_db_major != -1) {
12649 if (major < $apu_check_berkeley_db_major)
12651 if (major > $apu_check_berkeley_db_major)
12655 if ($apu_check_berkeley_db_minor != -1) {
12656 if (minor < $apu_check_berkeley_db_minor)
12658 if (minor > $apu_check_berkeley_db_minor)
12662 if ($apu_check_berkeley_db_patch == -1
12663 || patch >= $apu_check_berkeley_db_patch)
12670 if ac_fn_c_try_run "$LINENO"; then :
12671 apu_try_berkeley_db=yes
12673 apu_try_berkeley_db=no
12675 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12676 conftest.$ac_objext conftest.beam conftest.$ac_ext
12680 LIBS="$apu_try_berkeley_db_save_libs"
12683 eval "$cache_id=$apu_try_berkeley_db"
12687 result="`eval echo '$'$cache_id`"
12688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
12689 $as_echo "$result" >&6; }
12690 elif test "3" = "1"; then
12691 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_dbopen" | $as_tr_sh`
12692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbopen in -l$bdb_libname" >&5
12693 $as_echo_n "checking for dbopen in -l$bdb_libname... " >&6; }
12694 if eval \${$as_ac_Lib+:} false; then :
12695 $as_echo_n "(cached) " >&6
12697 ac_check_lib_save_LIBS=$LIBS
12698 LIBS="-l$bdb_libname $LIBS"
12699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12700 /* end confdefs.h. */
12702 /* Override any GCC internal prototype to avoid an error.
12703 Use char because int might match the return type of a GCC
12704 builtin and then its argument prototype would still apply. */
12717 if ac_fn_c_try_link "$LINENO"; then :
12718 eval "$as_ac_Lib=yes"
12720 eval "$as_ac_Lib=no"
12722 rm -f core conftest.err conftest.$ac_objext \
12723 conftest$ac_exeext conftest.$ac_ext
12724 LIBS=$ac_check_lib_save_LIBS
12726 eval ac_res=\$$as_ac_Lib
12727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12728 $as_echo "$ac_res" >&6; }
12729 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
12736 elif test "3" = "2"; then
12737 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_db_open" | $as_tr_sh`
12738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_open in -l$bdb_libname" >&5
12739 $as_echo_n "checking for db_open in -l$bdb_libname... " >&6; }
12740 if eval \${$as_ac_Lib+:} false; then :
12741 $as_echo_n "(cached) " >&6
12743 ac_check_lib_save_LIBS=$LIBS
12744 LIBS="-l$bdb_libname $LIBS"
12745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12746 /* end confdefs.h. */
12748 /* Override any GCC internal prototype to avoid an error.
12749 Use char because int might match the return type of a GCC
12750 builtin and then its argument prototype would still apply. */
12763 if ac_fn_c_try_link "$LINENO"; then :
12764 eval "$as_ac_Lib=yes"
12766 eval "$as_ac_Lib=no"
12768 rm -f core conftest.err conftest.$ac_objext \
12769 conftest$ac_exeext conftest.$ac_ext
12770 LIBS=$ac_check_lib_save_LIBS
12772 eval ac_res=\$$as_ac_Lib
12773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12774 $as_echo "$ac_res" >&6; }
12775 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
12790 # If we found it, no need to search any more.
12791 if test "$result" = "yes"; then
12796 test "$found" != "not" && break
12798 test "$found" != "not" && break
12801 # Restore the original values of the flags we tweak.
12802 LDFLAGS="$apu_check_lib_save_ldflags"
12803 CPPFLAGS="$apu_check_lib_save_cppflags"
12810 apu_db_header=$bdb_header
12811 apu_db_lib=$bdb_libname
12815 header="`echo $found | sed -e 's/:.*$//'`"
12816 lib="`echo $found | sed -e 's/^.*://'`"
12819 if test "x$APRUTIL_INCLUDES" = "x"; then
12820 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$header\""
12821 APRUTIL_INCLUDES="-I$header"
12823 apr_addto_bugger="-I$header"
12824 for i in $apr_addto_bugger; do
12825 apr_addto_duplicate="0"
12826 for j in $APRUTIL_INCLUDES; do
12827 if test "x$i" = "x$j"; then
12828 apr_addto_duplicate="1"
12832 if test $apr_addto_duplicate = "0"; then
12833 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES"
12834 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
12840 if test "x$APRUTIL_LDFLAGS" = "x"; then
12841 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$lib\""
12842 APRUTIL_LDFLAGS="-L$lib"
12844 apr_addto_bugger="-L$lib"
12845 for i in $apr_addto_bugger; do
12846 apr_addto_duplicate="0"
12847 for j in $APRUTIL_LDFLAGS; do
12848 if test "x$i" = "x$j"; then
12849 apr_addto_duplicate="1"
12853 if test $apr_addto_duplicate = "0"; then
12854 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS"
12855 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
12860 apu_db_header=$bdb_header
12861 apu_db_lib=$bdb_libname
12866 if test "x$APRUTIL_INCLUDES" = "x"; then
12867 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$found/include\""
12868 APRUTIL_INCLUDES="-I$found/include"
12870 apr_addto_bugger="-I$found/include"
12871 for i in $apr_addto_bugger; do
12872 apr_addto_duplicate="0"
12873 for j in $APRUTIL_INCLUDES; do
12874 if test "x$i" = "x$j"; then
12875 apr_addto_duplicate="1"
12879 if test $apr_addto_duplicate = "0"; then
12880 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES"
12881 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
12887 if test "x$APRUTIL_LDFLAGS" = "x"; then
12888 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$found/lib\""
12889 APRUTIL_LDFLAGS="-L$found/lib"
12891 apr_addto_bugger="-L$found/lib"
12892 for i in $apr_addto_bugger; do
12893 apr_addto_duplicate="0"
12894 for j in $APRUTIL_LDFLAGS; do
12895 if test "x$i" = "x$j"; then
12896 apr_addto_duplicate="1"
12900 if test $apr_addto_duplicate = "0"; then
12901 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS"
12902 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
12907 apu_db_header=$bdb_header
12908 apu_db_lib=$bdb_libname
12913 if test "$apu_have_db" = "1"; then
12918 if test "$apu_have_db" = "0"; then
12920 places="$all_places"
12921 if test -z "$places"; then
12926 if test "-1" != "-1"; then
12927 bdb_version="$bdb_version.-1"
12928 if test "-1" != "-1"; then
12929 bdb_version="$bdb_version.-1"
12932 bdb_places="$places"
12933 bdb_default_search_headers="db2/db.h db.h"
12934 bdb_default_search_lib_names="db2 db"
12939 # Save the original values of the flags we tweak.
12940 apu_check_lib_save_libs="$LIBS"
12941 apu_check_lib_save_ldflags="$LDFLAGS"
12942 apu_check_lib_save_cppflags="$CPPFLAGS"
12944 # The variable `found' is the prefix under which we've found
12945 # Berkeley DB, or `not' if we haven't found it anywhere yet.
12947 for bdb_place in $bdb_places; do
12949 LDFLAGS="$apu_check_lib_save_ldflags"
12950 CPPFLAGS="$apu_check_lib_save_cppflags"
12951 case "$bdb_place" in
12953 description="the standard places"
12956 header="`echo $bdb_place | sed -e 's/:.*$//'`"
12957 lib="`echo $bdb_place | sed -e 's/^.*://'`"
12958 CPPFLAGS="$CPPFLAGS -I$header"
12959 LDFLAGS="$LDFLAGS -L$lib"
12960 description="$header and $lib"
12963 if test -d $bdb_place; then
12964 LDFLAGS="$LDFLAGS -L$bdb_place/lib"
12965 CPPFLAGS="$CPPFLAGS -I$bdb_place/include"
12967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB $bdb_version in $bdb_place" >&5
12968 $as_echo_n "checking for Berkeley DB $bdb_version in $bdb_place... " >&6; }
12969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: directory not found" >&5
12970 $as_echo "directory not found" >&6; }
12973 description="$bdb_place"
12977 # Since there is no AC_MSG_NOTICE in autoconf 2.13, we use this
12978 # trick to display a message instead.
12979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB $bdb_version in $description" >&5
12980 $as_echo_n "checking for Berkeley DB $bdb_version in $description... " >&6; }
12981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
12984 for bdb_libname in $bdb_default_search_lib_names; do
12985 for bdb_header in $bdb_default_search_headers; do
12986 # Clear the header cache variable for each location
12988 cache_id="`echo ac_cv_header_${bdb_header} \
12989 | sed -e 's/[^a-zA-Z0-9_]/_/g'`"
12992 as_ac_Header=`$as_echo "ac_cv_header_$bdb_header" | $as_tr_sh`
12993 ac_fn_c_check_header_mongrel "$LINENO" "$bdb_header" "$as_ac_Header" "$ac_includes_default"
12994 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12996 if test "2" = "3" -o "2" = "4" -o "2" = "5" -o "2" = "6"; then
12997 # We generate a separate cache variable for each prefix and libname
12998 # we search under. That way, we avoid caching information that
12999 # changes if the user runs `configure' with a different set of
13002 cache_id="`echo apu_cv_check_berkeley_db_2_-1_-1_${bdb_header}_${bdb_libname}_in_${bdb_place} \
13003 | sed -e 's/[^a-zA-Z0-9_]/_/g'`"
13006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -l$bdb_libname" >&5
13007 $as_echo_n "checking for -l$bdb_libname... " >&6; }
13008 if eval \${$cache_id+:} false; then :
13009 $as_echo_n "(cached) " >&6
13013 apu_try_berkeley_db_save_libs="$LIBS"
13015 apu_check_berkeley_db_major=2
13016 apu_check_berkeley_db_minor=-1
13017 apu_check_berkeley_db_patch=-1
13018 apu_try_berkeley_db_header=$bdb_header
13019 apu_try_berkeley_db_libname=$bdb_libname
13021 LIBS="$LIBS -l$apu_try_berkeley_db_libname"
13022 if test "$cross_compiling" = yes; then :
13023 apu_try_berkeley_db=yes
13026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13027 /* end confdefs.h. */
13029 #include <stdlib.h>
13031 #include <$apu_try_berkeley_db_header>
13034 int major, minor, patch;
13036 db_version(&major, &minor, &patch);
13038 /* Sanity check: ensure that db.h constants actually match the db library */
13039 if (major != DB_VERSION_MAJOR
13040 || minor != DB_VERSION_MINOR
13041 || patch != DB_VERSION_PATCH)
13044 /* Run-time check: ensure the library claims to be the correct version. */
13046 if ($apu_check_berkeley_db_major != -1) {
13047 if (major < $apu_check_berkeley_db_major)
13049 if (major > $apu_check_berkeley_db_major)
13053 if ($apu_check_berkeley_db_minor != -1) {
13054 if (minor < $apu_check_berkeley_db_minor)
13056 if (minor > $apu_check_berkeley_db_minor)
13060 if ($apu_check_berkeley_db_patch == -1
13061 || patch >= $apu_check_berkeley_db_patch)
13068 if ac_fn_c_try_run "$LINENO"; then :
13069 apu_try_berkeley_db=yes
13071 apu_try_berkeley_db=no
13073 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13074 conftest.$ac_objext conftest.beam conftest.$ac_ext
13078 LIBS="$apu_try_berkeley_db_save_libs"
13081 eval "$cache_id=$apu_try_berkeley_db"
13085 result="`eval echo '$'$cache_id`"
13086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
13087 $as_echo "$result" >&6; }
13088 elif test "2" = "1"; then
13089 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_dbopen" | $as_tr_sh`
13090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbopen in -l$bdb_libname" >&5
13091 $as_echo_n "checking for dbopen in -l$bdb_libname... " >&6; }
13092 if eval \${$as_ac_Lib+:} false; then :
13093 $as_echo_n "(cached) " >&6
13095 ac_check_lib_save_LIBS=$LIBS
13096 LIBS="-l$bdb_libname $LIBS"
13097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13098 /* end confdefs.h. */
13100 /* Override any GCC internal prototype to avoid an error.
13101 Use char because int might match the return type of a GCC
13102 builtin and then its argument prototype would still apply. */
13115 if ac_fn_c_try_link "$LINENO"; then :
13116 eval "$as_ac_Lib=yes"
13118 eval "$as_ac_Lib=no"
13120 rm -f core conftest.err conftest.$ac_objext \
13121 conftest$ac_exeext conftest.$ac_ext
13122 LIBS=$ac_check_lib_save_LIBS
13124 eval ac_res=\$$as_ac_Lib
13125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13126 $as_echo "$ac_res" >&6; }
13127 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
13134 elif test "2" = "2"; then
13135 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_db_open" | $as_tr_sh`
13136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_open in -l$bdb_libname" >&5
13137 $as_echo_n "checking for db_open in -l$bdb_libname... " >&6; }
13138 if eval \${$as_ac_Lib+:} false; then :
13139 $as_echo_n "(cached) " >&6
13141 ac_check_lib_save_LIBS=$LIBS
13142 LIBS="-l$bdb_libname $LIBS"
13143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13144 /* end confdefs.h. */
13146 /* Override any GCC internal prototype to avoid an error.
13147 Use char because int might match the return type of a GCC
13148 builtin and then its argument prototype would still apply. */
13161 if ac_fn_c_try_link "$LINENO"; then :
13162 eval "$as_ac_Lib=yes"
13164 eval "$as_ac_Lib=no"
13166 rm -f core conftest.err conftest.$ac_objext \
13167 conftest$ac_exeext conftest.$ac_ext
13168 LIBS=$ac_check_lib_save_LIBS
13170 eval ac_res=\$$as_ac_Lib
13171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13172 $as_echo "$ac_res" >&6; }
13173 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
13188 # If we found it, no need to search any more.
13189 if test "$result" = "yes"; then
13194 test "$found" != "not" && break
13196 test "$found" != "not" && break
13199 # Restore the original values of the flags we tweak.
13200 LDFLAGS="$apu_check_lib_save_ldflags"
13201 CPPFLAGS="$apu_check_lib_save_cppflags"
13208 apu_db_header=$bdb_header
13209 apu_db_lib=$bdb_libname
13213 header="`echo $found | sed -e 's/:.*$//'`"
13214 lib="`echo $found | sed -e 's/^.*://'`"
13217 if test "x$APRUTIL_INCLUDES" = "x"; then
13218 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$header\""
13219 APRUTIL_INCLUDES="-I$header"
13221 apr_addto_bugger="-I$header"
13222 for i in $apr_addto_bugger; do
13223 apr_addto_duplicate="0"
13224 for j in $APRUTIL_INCLUDES; do
13225 if test "x$i" = "x$j"; then
13226 apr_addto_duplicate="1"
13230 if test $apr_addto_duplicate = "0"; then
13231 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES"
13232 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
13238 if test "x$APRUTIL_LDFLAGS" = "x"; then
13239 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$lib\""
13240 APRUTIL_LDFLAGS="-L$lib"
13242 apr_addto_bugger="-L$lib"
13243 for i in $apr_addto_bugger; do
13244 apr_addto_duplicate="0"
13245 for j in $APRUTIL_LDFLAGS; do
13246 if test "x$i" = "x$j"; then
13247 apr_addto_duplicate="1"
13251 if test $apr_addto_duplicate = "0"; then
13252 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS"
13253 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
13258 apu_db_header=$bdb_header
13259 apu_db_lib=$bdb_libname
13264 if test "x$APRUTIL_INCLUDES" = "x"; then
13265 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$found/include\""
13266 APRUTIL_INCLUDES="-I$found/include"
13268 apr_addto_bugger="-I$found/include"
13269 for i in $apr_addto_bugger; do
13270 apr_addto_duplicate="0"
13271 for j in $APRUTIL_INCLUDES; do
13272 if test "x$i" = "x$j"; then
13273 apr_addto_duplicate="1"
13277 if test $apr_addto_duplicate = "0"; then
13278 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES"
13279 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
13285 if test "x$APRUTIL_LDFLAGS" = "x"; then
13286 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$found/lib\""
13287 APRUTIL_LDFLAGS="-L$found/lib"
13289 apr_addto_bugger="-L$found/lib"
13290 for i in $apr_addto_bugger; do
13291 apr_addto_duplicate="0"
13292 for j in $APRUTIL_LDFLAGS; do
13293 if test "x$i" = "x$j"; then
13294 apr_addto_duplicate="1"
13298 if test $apr_addto_duplicate = "0"; then
13299 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS"
13300 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
13305 apu_db_header=$bdb_header
13306 apu_db_lib=$bdb_libname
13311 if test "$apu_have_db" = "1"; then
13316 if test "$apu_have_db" = "0"; then
13318 places="$all_places"
13319 if test -z "$places"; then
13324 if test "0" != "-1"; then
13325 bdb_version="$bdb_version.0"
13326 if test "0" != "-1"; then
13327 bdb_version="$bdb_version.0"
13330 bdb_places="$places"
13331 bdb_default_search_headers="db1/db.h db.h"
13332 bdb_default_search_lib_names="db1"
13337 # Save the original values of the flags we tweak.
13338 apu_check_lib_save_libs="$LIBS"
13339 apu_check_lib_save_ldflags="$LDFLAGS"
13340 apu_check_lib_save_cppflags="$CPPFLAGS"
13342 # The variable `found' is the prefix under which we've found
13343 # Berkeley DB, or `not' if we haven't found it anywhere yet.
13345 for bdb_place in $bdb_places; do
13347 LDFLAGS="$apu_check_lib_save_ldflags"
13348 CPPFLAGS="$apu_check_lib_save_cppflags"
13349 case "$bdb_place" in
13351 description="the standard places"
13354 header="`echo $bdb_place | sed -e 's/:.*$//'`"
13355 lib="`echo $bdb_place | sed -e 's/^.*://'`"
13356 CPPFLAGS="$CPPFLAGS -I$header"
13357 LDFLAGS="$LDFLAGS -L$lib"
13358 description="$header and $lib"
13361 if test -d $bdb_place; then
13362 LDFLAGS="$LDFLAGS -L$bdb_place/lib"
13363 CPPFLAGS="$CPPFLAGS -I$bdb_place/include"
13365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB $bdb_version in $bdb_place" >&5
13366 $as_echo_n "checking for Berkeley DB $bdb_version in $bdb_place... " >&6; }
13367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: directory not found" >&5
13368 $as_echo "directory not found" >&6; }
13371 description="$bdb_place"
13375 # Since there is no AC_MSG_NOTICE in autoconf 2.13, we use this
13376 # trick to display a message instead.
13377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB $bdb_version in $description" >&5
13378 $as_echo_n "checking for Berkeley DB $bdb_version in $description... " >&6; }
13379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
13382 for bdb_libname in $bdb_default_search_lib_names; do
13383 for bdb_header in $bdb_default_search_headers; do
13384 # Clear the header cache variable for each location
13386 cache_id="`echo ac_cv_header_${bdb_header} \
13387 | sed -e 's/[^a-zA-Z0-9_]/_/g'`"
13390 as_ac_Header=`$as_echo "ac_cv_header_$bdb_header" | $as_tr_sh`
13391 ac_fn_c_check_header_mongrel "$LINENO" "$bdb_header" "$as_ac_Header" "$ac_includes_default"
13392 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13394 if test "1" = "3" -o "1" = "4" -o "1" = "5" -o "1" = "6"; then
13395 # We generate a separate cache variable for each prefix and libname
13396 # we search under. That way, we avoid caching information that
13397 # changes if the user runs `configure' with a different set of
13400 cache_id="`echo apu_cv_check_berkeley_db_1_0_0_${bdb_header}_${bdb_libname}_in_${bdb_place} \
13401 | sed -e 's/[^a-zA-Z0-9_]/_/g'`"
13404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -l$bdb_libname" >&5
13405 $as_echo_n "checking for -l$bdb_libname... " >&6; }
13406 if eval \${$cache_id+:} false; then :
13407 $as_echo_n "(cached) " >&6
13411 apu_try_berkeley_db_save_libs="$LIBS"
13413 apu_check_berkeley_db_major=1
13414 apu_check_berkeley_db_minor=0
13415 apu_check_berkeley_db_patch=0
13416 apu_try_berkeley_db_header=$bdb_header
13417 apu_try_berkeley_db_libname=$bdb_libname
13419 LIBS="$LIBS -l$apu_try_berkeley_db_libname"
13420 if test "$cross_compiling" = yes; then :
13421 apu_try_berkeley_db=yes
13424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13425 /* end confdefs.h. */
13427 #include <stdlib.h>
13429 #include <$apu_try_berkeley_db_header>
13432 int major, minor, patch;
13434 db_version(&major, &minor, &patch);
13436 /* Sanity check: ensure that db.h constants actually match the db library */
13437 if (major != DB_VERSION_MAJOR
13438 || minor != DB_VERSION_MINOR
13439 || patch != DB_VERSION_PATCH)
13442 /* Run-time check: ensure the library claims to be the correct version. */
13444 if ($apu_check_berkeley_db_major != -1) {
13445 if (major < $apu_check_berkeley_db_major)
13447 if (major > $apu_check_berkeley_db_major)
13451 if ($apu_check_berkeley_db_minor != -1) {
13452 if (minor < $apu_check_berkeley_db_minor)
13454 if (minor > $apu_check_berkeley_db_minor)
13458 if ($apu_check_berkeley_db_patch == -1
13459 || patch >= $apu_check_berkeley_db_patch)
13466 if ac_fn_c_try_run "$LINENO"; then :
13467 apu_try_berkeley_db=yes
13469 apu_try_berkeley_db=no
13471 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13472 conftest.$ac_objext conftest.beam conftest.$ac_ext
13476 LIBS="$apu_try_berkeley_db_save_libs"
13479 eval "$cache_id=$apu_try_berkeley_db"
13483 result="`eval echo '$'$cache_id`"
13484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
13485 $as_echo "$result" >&6; }
13486 elif test "1" = "1"; then
13487 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_dbopen" | $as_tr_sh`
13488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbopen in -l$bdb_libname" >&5
13489 $as_echo_n "checking for dbopen in -l$bdb_libname... " >&6; }
13490 if eval \${$as_ac_Lib+:} false; then :
13491 $as_echo_n "(cached) " >&6
13493 ac_check_lib_save_LIBS=$LIBS
13494 LIBS="-l$bdb_libname $LIBS"
13495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13496 /* end confdefs.h. */
13498 /* Override any GCC internal prototype to avoid an error.
13499 Use char because int might match the return type of a GCC
13500 builtin and then its argument prototype would still apply. */
13513 if ac_fn_c_try_link "$LINENO"; then :
13514 eval "$as_ac_Lib=yes"
13516 eval "$as_ac_Lib=no"
13518 rm -f core conftest.err conftest.$ac_objext \
13519 conftest$ac_exeext conftest.$ac_ext
13520 LIBS=$ac_check_lib_save_LIBS
13522 eval ac_res=\$$as_ac_Lib
13523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13524 $as_echo "$ac_res" >&6; }
13525 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
13532 elif test "1" = "2"; then
13533 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_db_open" | $as_tr_sh`
13534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_open in -l$bdb_libname" >&5
13535 $as_echo_n "checking for db_open in -l$bdb_libname... " >&6; }
13536 if eval \${$as_ac_Lib+:} false; then :
13537 $as_echo_n "(cached) " >&6
13539 ac_check_lib_save_LIBS=$LIBS
13540 LIBS="-l$bdb_libname $LIBS"
13541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13542 /* end confdefs.h. */
13544 /* Override any GCC internal prototype to avoid an error.
13545 Use char because int might match the return type of a GCC
13546 builtin and then its argument prototype would still apply. */
13559 if ac_fn_c_try_link "$LINENO"; then :
13560 eval "$as_ac_Lib=yes"
13562 eval "$as_ac_Lib=no"
13564 rm -f core conftest.err conftest.$ac_objext \
13565 conftest$ac_exeext conftest.$ac_ext
13566 LIBS=$ac_check_lib_save_LIBS
13568 eval ac_res=\$$as_ac_Lib
13569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13570 $as_echo "$ac_res" >&6; }
13571 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
13586 # If we found it, no need to search any more.
13587 if test "$result" = "yes"; then
13592 test "$found" != "not" && break
13594 test "$found" != "not" && break
13597 # Restore the original values of the flags we tweak.
13598 LDFLAGS="$apu_check_lib_save_ldflags"
13599 CPPFLAGS="$apu_check_lib_save_cppflags"
13606 apu_db_header=$bdb_header
13607 apu_db_lib=$bdb_libname
13611 header="`echo $found | sed -e 's/:.*$//'`"
13612 lib="`echo $found | sed -e 's/^.*://'`"
13615 if test "x$APRUTIL_INCLUDES" = "x"; then
13616 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$header\""
13617 APRUTIL_INCLUDES="-I$header"
13619 apr_addto_bugger="-I$header"
13620 for i in $apr_addto_bugger; do
13621 apr_addto_duplicate="0"
13622 for j in $APRUTIL_INCLUDES; do
13623 if test "x$i" = "x$j"; then
13624 apr_addto_duplicate="1"
13628 if test $apr_addto_duplicate = "0"; then
13629 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES"
13630 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
13636 if test "x$APRUTIL_LDFLAGS" = "x"; then
13637 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$lib\""
13638 APRUTIL_LDFLAGS="-L$lib"
13640 apr_addto_bugger="-L$lib"
13641 for i in $apr_addto_bugger; do
13642 apr_addto_duplicate="0"
13643 for j in $APRUTIL_LDFLAGS; do
13644 if test "x$i" = "x$j"; then
13645 apr_addto_duplicate="1"
13649 if test $apr_addto_duplicate = "0"; then
13650 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS"
13651 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
13656 apu_db_header=$bdb_header
13657 apu_db_lib=$bdb_libname
13662 if test "x$APRUTIL_INCLUDES" = "x"; then
13663 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$found/include\""
13664 APRUTIL_INCLUDES="-I$found/include"
13666 apr_addto_bugger="-I$found/include"
13667 for i in $apr_addto_bugger; do
13668 apr_addto_duplicate="0"
13669 for j in $APRUTIL_INCLUDES; do
13670 if test "x$i" = "x$j"; then
13671 apr_addto_duplicate="1"
13675 if test $apr_addto_duplicate = "0"; then
13676 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES"
13677 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
13683 if test "x$APRUTIL_LDFLAGS" = "x"; then
13684 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$found/lib\""
13685 APRUTIL_LDFLAGS="-L$found/lib"
13687 apr_addto_bugger="-L$found/lib"
13688 for i in $apr_addto_bugger; do
13689 apr_addto_duplicate="0"
13690 for j in $APRUTIL_LDFLAGS; do
13691 if test "x$i" = "x$j"; then
13692 apr_addto_duplicate="1"
13696 if test $apr_addto_duplicate = "0"; then
13697 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS"
13698 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
13703 apu_db_header=$bdb_header
13704 apu_db_lib=$bdb_libname
13709 if test "$apu_have_db" = "1"; then
13714 if test "$apu_have_db" = "0"; then
13716 places="$all_places"
13717 if test -z "$places"; then
13722 if test "-1" != "-1"; then
13723 bdb_version="$bdb_version.-1"
13724 if test "-1" != "-1"; then
13725 bdb_version="$bdb_version.-1"
13728 bdb_places="$places"
13729 bdb_default_search_headers="db_185.h"
13730 bdb_default_search_lib_names="db"
13735 # Save the original values of the flags we tweak.
13736 apu_check_lib_save_libs="$LIBS"
13737 apu_check_lib_save_ldflags="$LDFLAGS"
13738 apu_check_lib_save_cppflags="$CPPFLAGS"
13740 # The variable `found' is the prefix under which we've found
13741 # Berkeley DB, or `not' if we haven't found it anywhere yet.
13743 for bdb_place in $bdb_places; do
13745 LDFLAGS="$apu_check_lib_save_ldflags"
13746 CPPFLAGS="$apu_check_lib_save_cppflags"
13747 case "$bdb_place" in
13749 description="the standard places"
13752 header="`echo $bdb_place | sed -e 's/:.*$//'`"
13753 lib="`echo $bdb_place | sed -e 's/^.*://'`"
13754 CPPFLAGS="$CPPFLAGS -I$header"
13755 LDFLAGS="$LDFLAGS -L$lib"
13756 description="$header and $lib"
13759 if test -d $bdb_place; then
13760 LDFLAGS="$LDFLAGS -L$bdb_place/lib"
13761 CPPFLAGS="$CPPFLAGS -I$bdb_place/include"
13763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB $bdb_version in $bdb_place" >&5
13764 $as_echo_n "checking for Berkeley DB $bdb_version in $bdb_place... " >&6; }
13765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: directory not found" >&5
13766 $as_echo "directory not found" >&6; }
13769 description="$bdb_place"
13773 # Since there is no AC_MSG_NOTICE in autoconf 2.13, we use this
13774 # trick to display a message instead.
13775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB $bdb_version in $description" >&5
13776 $as_echo_n "checking for Berkeley DB $bdb_version in $description... " >&6; }
13777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
13780 for bdb_libname in $bdb_default_search_lib_names; do
13781 for bdb_header in $bdb_default_search_headers; do
13782 # Clear the header cache variable for each location
13784 cache_id="`echo ac_cv_header_${bdb_header} \
13785 | sed -e 's/[^a-zA-Z0-9_]/_/g'`"
13788 as_ac_Header=`$as_echo "ac_cv_header_$bdb_header" | $as_tr_sh`
13789 ac_fn_c_check_header_mongrel "$LINENO" "$bdb_header" "$as_ac_Header" "$ac_includes_default"
13790 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13792 if test "1" = "3" -o "1" = "4" -o "1" = "5" -o "1" = "6"; then
13793 # We generate a separate cache variable for each prefix and libname
13794 # we search under. That way, we avoid caching information that
13795 # changes if the user runs `configure' with a different set of
13798 cache_id="`echo apu_cv_check_berkeley_db_1_-1_-1_${bdb_header}_${bdb_libname}_in_${bdb_place} \
13799 | sed -e 's/[^a-zA-Z0-9_]/_/g'`"
13802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -l$bdb_libname" >&5
13803 $as_echo_n "checking for -l$bdb_libname... " >&6; }
13804 if eval \${$cache_id+:} false; then :
13805 $as_echo_n "(cached) " >&6
13809 apu_try_berkeley_db_save_libs="$LIBS"
13811 apu_check_berkeley_db_major=1
13812 apu_check_berkeley_db_minor=-1
13813 apu_check_berkeley_db_patch=-1
13814 apu_try_berkeley_db_header=$bdb_header
13815 apu_try_berkeley_db_libname=$bdb_libname
13817 LIBS="$LIBS -l$apu_try_berkeley_db_libname"
13818 if test "$cross_compiling" = yes; then :
13819 apu_try_berkeley_db=yes
13822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13823 /* end confdefs.h. */
13825 #include <stdlib.h>
13827 #include <$apu_try_berkeley_db_header>
13830 int major, minor, patch;
13832 db_version(&major, &minor, &patch);
13834 /* Sanity check: ensure that db.h constants actually match the db library */
13835 if (major != DB_VERSION_MAJOR
13836 || minor != DB_VERSION_MINOR
13837 || patch != DB_VERSION_PATCH)
13840 /* Run-time check: ensure the library claims to be the correct version. */
13842 if ($apu_check_berkeley_db_major != -1) {
13843 if (major < $apu_check_berkeley_db_major)
13845 if (major > $apu_check_berkeley_db_major)
13849 if ($apu_check_berkeley_db_minor != -1) {
13850 if (minor < $apu_check_berkeley_db_minor)
13852 if (minor > $apu_check_berkeley_db_minor)
13856 if ($apu_check_berkeley_db_patch == -1
13857 || patch >= $apu_check_berkeley_db_patch)
13864 if ac_fn_c_try_run "$LINENO"; then :
13865 apu_try_berkeley_db=yes
13867 apu_try_berkeley_db=no
13869 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13870 conftest.$ac_objext conftest.beam conftest.$ac_ext
13874 LIBS="$apu_try_berkeley_db_save_libs"
13877 eval "$cache_id=$apu_try_berkeley_db"
13881 result="`eval echo '$'$cache_id`"
13882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
13883 $as_echo "$result" >&6; }
13884 elif test "1" = "1"; then
13885 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_dbopen" | $as_tr_sh`
13886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbopen in -l$bdb_libname" >&5
13887 $as_echo_n "checking for dbopen in -l$bdb_libname... " >&6; }
13888 if eval \${$as_ac_Lib+:} false; then :
13889 $as_echo_n "(cached) " >&6
13891 ac_check_lib_save_LIBS=$LIBS
13892 LIBS="-l$bdb_libname $LIBS"
13893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13894 /* end confdefs.h. */
13896 /* Override any GCC internal prototype to avoid an error.
13897 Use char because int might match the return type of a GCC
13898 builtin and then its argument prototype would still apply. */
13911 if ac_fn_c_try_link "$LINENO"; then :
13912 eval "$as_ac_Lib=yes"
13914 eval "$as_ac_Lib=no"
13916 rm -f core conftest.err conftest.$ac_objext \
13917 conftest$ac_exeext conftest.$ac_ext
13918 LIBS=$ac_check_lib_save_LIBS
13920 eval ac_res=\$$as_ac_Lib
13921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13922 $as_echo "$ac_res" >&6; }
13923 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
13930 elif test "1" = "2"; then
13931 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_db_open" | $as_tr_sh`
13932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_open in -l$bdb_libname" >&5
13933 $as_echo_n "checking for db_open in -l$bdb_libname... " >&6; }
13934 if eval \${$as_ac_Lib+:} false; then :
13935 $as_echo_n "(cached) " >&6
13937 ac_check_lib_save_LIBS=$LIBS
13938 LIBS="-l$bdb_libname $LIBS"
13939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13940 /* end confdefs.h. */
13942 /* Override any GCC internal prototype to avoid an error.
13943 Use char because int might match the return type of a GCC
13944 builtin and then its argument prototype would still apply. */
13957 if ac_fn_c_try_link "$LINENO"; then :
13958 eval "$as_ac_Lib=yes"
13960 eval "$as_ac_Lib=no"
13962 rm -f core conftest.err conftest.$ac_objext \
13963 conftest$ac_exeext conftest.$ac_ext
13964 LIBS=$ac_check_lib_save_LIBS
13966 eval ac_res=\$$as_ac_Lib
13967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13968 $as_echo "$ac_res" >&6; }
13969 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
13984 # If we found it, no need to search any more.
13985 if test "$result" = "yes"; then
13990 test "$found" != "not" && break
13992 test "$found" != "not" && break
13995 # Restore the original values of the flags we tweak.
13996 LDFLAGS="$apu_check_lib_save_ldflags"
13997 CPPFLAGS="$apu_check_lib_save_cppflags"
14004 apu_db_header=$bdb_header
14005 apu_db_lib=$bdb_libname
14009 header="`echo $found | sed -e 's/:.*$//'`"
14010 lib="`echo $found | sed -e 's/^.*://'`"
14013 if test "x$APRUTIL_INCLUDES" = "x"; then
14014 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$header\""
14015 APRUTIL_INCLUDES="-I$header"
14017 apr_addto_bugger="-I$header"
14018 for i in $apr_addto_bugger; do
14019 apr_addto_duplicate="0"
14020 for j in $APRUTIL_INCLUDES; do
14021 if test "x$i" = "x$j"; then
14022 apr_addto_duplicate="1"
14026 if test $apr_addto_duplicate = "0"; then
14027 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES"
14028 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
14034 if test "x$APRUTIL_LDFLAGS" = "x"; then
14035 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$lib\""
14036 APRUTIL_LDFLAGS="-L$lib"
14038 apr_addto_bugger="-L$lib"
14039 for i in $apr_addto_bugger; do
14040 apr_addto_duplicate="0"
14041 for j in $APRUTIL_LDFLAGS; do
14042 if test "x$i" = "x$j"; then
14043 apr_addto_duplicate="1"
14047 if test $apr_addto_duplicate = "0"; then
14048 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS"
14049 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
14054 apu_db_header=$bdb_header
14055 apu_db_lib=$bdb_libname
14060 if test "x$APRUTIL_INCLUDES" = "x"; then
14061 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$found/include\""
14062 APRUTIL_INCLUDES="-I$found/include"
14064 apr_addto_bugger="-I$found/include"
14065 for i in $apr_addto_bugger; do
14066 apr_addto_duplicate="0"
14067 for j in $APRUTIL_INCLUDES; do
14068 if test "x$i" = "x$j"; then
14069 apr_addto_duplicate="1"
14073 if test $apr_addto_duplicate = "0"; then
14074 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES"
14075 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
14081 if test "x$APRUTIL_LDFLAGS" = "x"; then
14082 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$found/lib\""
14083 APRUTIL_LDFLAGS="-L$found/lib"
14085 apr_addto_bugger="-L$found/lib"
14086 for i in $apr_addto_bugger; do
14087 apr_addto_duplicate="0"
14088 for j in $APRUTIL_LDFLAGS; do
14089 if test "x$i" = "x$j"; then
14090 apr_addto_duplicate="1"
14094 if test $apr_addto_duplicate = "0"; then
14095 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS"
14096 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
14101 apu_db_header=$bdb_header
14102 apu_db_lib=$bdb_libname
14107 if test "$apu_have_db" = "1"; then
14112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB" >&5
14113 $as_echo_n "checking for Berkeley DB... " >&6; }
14114 if test "$apu_have_db" = "1"; then
14115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found db$apu_db_version" >&5
14116 $as_echo "found db$apu_db_version" >&6; }
14118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14119 $as_echo "not found" >&6; }
14122 if test "$apu_have_db" = "0"; then
14123 as_fn_error but not found "Berkeley db requested" "$LINENO" 5
14128 places="$check_places"
14129 if test -z "$places"; then
14134 if test "0" != "-1"; then
14135 bdb_version="$bdb_version.0"
14136 if test "0" != "-1"; then
14137 bdb_version="$bdb_version.0"
14140 bdb_places="$places"
14141 bdb_default_search_headers="db1/db.h db.h"
14142 bdb_default_search_lib_names="db1"
14147 # Save the original values of the flags we tweak.
14148 apu_check_lib_save_libs="$LIBS"
14149 apu_check_lib_save_ldflags="$LDFLAGS"
14150 apu_check_lib_save_cppflags="$CPPFLAGS"
14152 # The variable `found' is the prefix under which we've found
14153 # Berkeley DB, or `not' if we haven't found it anywhere yet.
14155 for bdb_place in $bdb_places; do
14157 LDFLAGS="$apu_check_lib_save_ldflags"
14158 CPPFLAGS="$apu_check_lib_save_cppflags"
14159 case "$bdb_place" in
14161 description="the standard places"
14164 header="`echo $bdb_place | sed -e 's/:.*$//'`"
14165 lib="`echo $bdb_place | sed -e 's/^.*://'`"
14166 CPPFLAGS="$CPPFLAGS -I$header"
14167 LDFLAGS="$LDFLAGS -L$lib"
14168 description="$header and $lib"
14171 if test -d $bdb_place; then
14172 LDFLAGS="$LDFLAGS -L$bdb_place/lib"
14173 CPPFLAGS="$CPPFLAGS -I$bdb_place/include"
14175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB $bdb_version in $bdb_place" >&5
14176 $as_echo_n "checking for Berkeley DB $bdb_version in $bdb_place... " >&6; }
14177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: directory not found" >&5
14178 $as_echo "directory not found" >&6; }
14181 description="$bdb_place"
14185 # Since there is no AC_MSG_NOTICE in autoconf 2.13, we use this
14186 # trick to display a message instead.
14187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB $bdb_version in $description" >&5
14188 $as_echo_n "checking for Berkeley DB $bdb_version in $description... " >&6; }
14189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
14192 for bdb_libname in $bdb_default_search_lib_names; do
14193 for bdb_header in $bdb_default_search_headers; do
14194 # Clear the header cache variable for each location
14196 cache_id="`echo ac_cv_header_${bdb_header} \
14197 | sed -e 's/[^a-zA-Z0-9_]/_/g'`"
14200 as_ac_Header=`$as_echo "ac_cv_header_$bdb_header" | $as_tr_sh`
14201 ac_fn_c_check_header_mongrel "$LINENO" "$bdb_header" "$as_ac_Header" "$ac_includes_default"
14202 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14204 if test "1" = "3" -o "1" = "4" -o "1" = "5" -o "1" = "6"; then
14205 # We generate a separate cache variable for each prefix and libname
14206 # we search under. That way, we avoid caching information that
14207 # changes if the user runs `configure' with a different set of
14210 cache_id="`echo apu_cv_check_berkeley_db_1_0_0_${bdb_header}_${bdb_libname}_in_${bdb_place} \
14211 | sed -e 's/[^a-zA-Z0-9_]/_/g'`"
14214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -l$bdb_libname" >&5
14215 $as_echo_n "checking for -l$bdb_libname... " >&6; }
14216 if eval \${$cache_id+:} false; then :
14217 $as_echo_n "(cached) " >&6
14221 apu_try_berkeley_db_save_libs="$LIBS"
14223 apu_check_berkeley_db_major=1
14224 apu_check_berkeley_db_minor=0
14225 apu_check_berkeley_db_patch=0
14226 apu_try_berkeley_db_header=$bdb_header
14227 apu_try_berkeley_db_libname=$bdb_libname
14229 LIBS="$LIBS -l$apu_try_berkeley_db_libname"
14230 if test "$cross_compiling" = yes; then :
14231 apu_try_berkeley_db=yes
14234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14235 /* end confdefs.h. */
14237 #include <stdlib.h>
14239 #include <$apu_try_berkeley_db_header>
14242 int major, minor, patch;
14244 db_version(&major, &minor, &patch);
14246 /* Sanity check: ensure that db.h constants actually match the db library */
14247 if (major != DB_VERSION_MAJOR
14248 || minor != DB_VERSION_MINOR
14249 || patch != DB_VERSION_PATCH)
14252 /* Run-time check: ensure the library claims to be the correct version. */
14254 if ($apu_check_berkeley_db_major != -1) {
14255 if (major < $apu_check_berkeley_db_major)
14257 if (major > $apu_check_berkeley_db_major)
14261 if ($apu_check_berkeley_db_minor != -1) {
14262 if (minor < $apu_check_berkeley_db_minor)
14264 if (minor > $apu_check_berkeley_db_minor)
14268 if ($apu_check_berkeley_db_patch == -1
14269 || patch >= $apu_check_berkeley_db_patch)
14276 if ac_fn_c_try_run "$LINENO"; then :
14277 apu_try_berkeley_db=yes
14279 apu_try_berkeley_db=no
14281 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14282 conftest.$ac_objext conftest.beam conftest.$ac_ext
14286 LIBS="$apu_try_berkeley_db_save_libs"
14289 eval "$cache_id=$apu_try_berkeley_db"
14293 result="`eval echo '$'$cache_id`"
14294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
14295 $as_echo "$result" >&6; }
14296 elif test "1" = "1"; then
14297 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_dbopen" | $as_tr_sh`
14298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbopen in -l$bdb_libname" >&5
14299 $as_echo_n "checking for dbopen in -l$bdb_libname... " >&6; }
14300 if eval \${$as_ac_Lib+:} false; then :
14301 $as_echo_n "(cached) " >&6
14303 ac_check_lib_save_LIBS=$LIBS
14304 LIBS="-l$bdb_libname $LIBS"
14305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14306 /* end confdefs.h. */
14308 /* Override any GCC internal prototype to avoid an error.
14309 Use char because int might match the return type of a GCC
14310 builtin and then its argument prototype would still apply. */
14323 if ac_fn_c_try_link "$LINENO"; then :
14324 eval "$as_ac_Lib=yes"
14326 eval "$as_ac_Lib=no"
14328 rm -f core conftest.err conftest.$ac_objext \
14329 conftest$ac_exeext conftest.$ac_ext
14330 LIBS=$ac_check_lib_save_LIBS
14332 eval ac_res=\$$as_ac_Lib
14333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14334 $as_echo "$ac_res" >&6; }
14335 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
14342 elif test "1" = "2"; then
14343 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_db_open" | $as_tr_sh`
14344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_open in -l$bdb_libname" >&5
14345 $as_echo_n "checking for db_open in -l$bdb_libname... " >&6; }
14346 if eval \${$as_ac_Lib+:} false; then :
14347 $as_echo_n "(cached) " >&6
14349 ac_check_lib_save_LIBS=$LIBS
14350 LIBS="-l$bdb_libname $LIBS"
14351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14352 /* end confdefs.h. */
14354 /* Override any GCC internal prototype to avoid an error.
14355 Use char because int might match the return type of a GCC
14356 builtin and then its argument prototype would still apply. */
14369 if ac_fn_c_try_link "$LINENO"; then :
14370 eval "$as_ac_Lib=yes"
14372 eval "$as_ac_Lib=no"
14374 rm -f core conftest.err conftest.$ac_objext \
14375 conftest$ac_exeext conftest.$ac_ext
14376 LIBS=$ac_check_lib_save_LIBS
14378 eval ac_res=\$$as_ac_Lib
14379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14380 $as_echo "$ac_res" >&6; }
14381 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
14396 # If we found it, no need to search any more.
14397 if test "$result" = "yes"; then
14402 test "$found" != "not" && break
14404 test "$found" != "not" && break
14407 # Restore the original values of the flags we tweak.
14408 LDFLAGS="$apu_check_lib_save_ldflags"
14409 CPPFLAGS="$apu_check_lib_save_cppflags"
14416 apu_db_header=$bdb_header
14417 apu_db_lib=$bdb_libname
14421 header="`echo $found | sed -e 's/:.*$//'`"
14422 lib="`echo $found | sed -e 's/^.*://'`"
14425 if test "x$APRUTIL_INCLUDES" = "x"; then
14426 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$header\""
14427 APRUTIL_INCLUDES="-I$header"
14429 apr_addto_bugger="-I$header"
14430 for i in $apr_addto_bugger; do
14431 apr_addto_duplicate="0"
14432 for j in $APRUTIL_INCLUDES; do
14433 if test "x$i" = "x$j"; then
14434 apr_addto_duplicate="1"
14438 if test $apr_addto_duplicate = "0"; then
14439 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES"
14440 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
14446 if test "x$APRUTIL_LDFLAGS" = "x"; then
14447 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$lib\""
14448 APRUTIL_LDFLAGS="-L$lib"
14450 apr_addto_bugger="-L$lib"
14451 for i in $apr_addto_bugger; do
14452 apr_addto_duplicate="0"
14453 for j in $APRUTIL_LDFLAGS; do
14454 if test "x$i" = "x$j"; then
14455 apr_addto_duplicate="1"
14459 if test $apr_addto_duplicate = "0"; then
14460 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS"
14461 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
14466 apu_db_header=$bdb_header
14467 apu_db_lib=$bdb_libname
14472 if test "x$APRUTIL_INCLUDES" = "x"; then
14473 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$found/include\""
14474 APRUTIL_INCLUDES="-I$found/include"
14476 apr_addto_bugger="-I$found/include"
14477 for i in $apr_addto_bugger; do
14478 apr_addto_duplicate="0"
14479 for j in $APRUTIL_INCLUDES; do
14480 if test "x$i" = "x$j"; then
14481 apr_addto_duplicate="1"
14485 if test $apr_addto_duplicate = "0"; then
14486 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES"
14487 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
14493 if test "x$APRUTIL_LDFLAGS" = "x"; then
14494 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$found/lib\""
14495 APRUTIL_LDFLAGS="-L$found/lib"
14497 apr_addto_bugger="-L$found/lib"
14498 for i in $apr_addto_bugger; do
14499 apr_addto_duplicate="0"
14500 for j in $APRUTIL_LDFLAGS; do
14501 if test "x$i" = "x$j"; then
14502 apr_addto_duplicate="1"
14506 if test $apr_addto_duplicate = "0"; then
14507 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS"
14508 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
14513 apu_db_header=$bdb_header
14514 apu_db_lib=$bdb_libname
14519 if test "$apu_have_db" = "1"; then
14523 if test "$apu_db_version" != "1"; then
14524 as_fn_error $? "Berkeley db1 not found" "$LINENO" 5
14529 places="$check_places"
14530 if test -z "$places"; then
14535 if test "-1" != "-1"; then
14536 bdb_version="$bdb_version.-1"
14537 if test "-1" != "-1"; then
14538 bdb_version="$bdb_version.-1"
14541 bdb_places="$places"
14542 bdb_default_search_headers="db_185.h"
14543 bdb_default_search_lib_names="db"
14548 # Save the original values of the flags we tweak.
14549 apu_check_lib_save_libs="$LIBS"
14550 apu_check_lib_save_ldflags="$LDFLAGS"
14551 apu_check_lib_save_cppflags="$CPPFLAGS"
14553 # The variable `found' is the prefix under which we've found
14554 # Berkeley DB, or `not' if we haven't found it anywhere yet.
14556 for bdb_place in $bdb_places; do
14558 LDFLAGS="$apu_check_lib_save_ldflags"
14559 CPPFLAGS="$apu_check_lib_save_cppflags"
14560 case "$bdb_place" in
14562 description="the standard places"
14565 header="`echo $bdb_place | sed -e 's/:.*$//'`"
14566 lib="`echo $bdb_place | sed -e 's/^.*://'`"
14567 CPPFLAGS="$CPPFLAGS -I$header"
14568 LDFLAGS="$LDFLAGS -L$lib"
14569 description="$header and $lib"
14572 if test -d $bdb_place; then
14573 LDFLAGS="$LDFLAGS -L$bdb_place/lib"
14574 CPPFLAGS="$CPPFLAGS -I$bdb_place/include"
14576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB $bdb_version in $bdb_place" >&5
14577 $as_echo_n "checking for Berkeley DB $bdb_version in $bdb_place... " >&6; }
14578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: directory not found" >&5
14579 $as_echo "directory not found" >&6; }
14582 description="$bdb_place"
14586 # Since there is no AC_MSG_NOTICE in autoconf 2.13, we use this
14587 # trick to display a message instead.
14588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB $bdb_version in $description" >&5
14589 $as_echo_n "checking for Berkeley DB $bdb_version in $description... " >&6; }
14590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
14593 for bdb_libname in $bdb_default_search_lib_names; do
14594 for bdb_header in $bdb_default_search_headers; do
14595 # Clear the header cache variable for each location
14597 cache_id="`echo ac_cv_header_${bdb_header} \
14598 | sed -e 's/[^a-zA-Z0-9_]/_/g'`"
14601 as_ac_Header=`$as_echo "ac_cv_header_$bdb_header" | $as_tr_sh`
14602 ac_fn_c_check_header_mongrel "$LINENO" "$bdb_header" "$as_ac_Header" "$ac_includes_default"
14603 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14605 if test "1" = "3" -o "1" = "4" -o "1" = "5" -o "1" = "6"; 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_1_-1_-1_${bdb_header}_${bdb_libname}_in_${bdb_place} \
14612 | sed -e 's/[^a-zA-Z0-9_]/_/g'`"
14615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -l$bdb_libname" >&5
14616 $as_echo_n "checking for -l$bdb_libname... " >&6; }
14617 if eval \${$cache_id+:} false; then :
14618 $as_echo_n "(cached) " >&6
14622 apu_try_berkeley_db_save_libs="$LIBS"
14624 apu_check_berkeley_db_major=1
14625 apu_check_berkeley_db_minor=-1
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 confdefs.h - <<_ACEOF >conftest.$ac_ext
14636 /* end confdefs.h. */
14638 #include <stdlib.h>
14640 #include <$apu_try_berkeley_db_header>
14643 int major, minor, patch;
14645 db_version(&major, &minor, &patch);
14647 /* Sanity check: ensure that db.h constants actually match the db library */
14648 if (major != DB_VERSION_MAJOR
14649 || minor != DB_VERSION_MINOR
14650 || patch != DB_VERSION_PATCH)
14653 /* Run-time check: ensure the library claims to be the correct version. */
14655 if ($apu_check_berkeley_db_major != -1) {
14656 if (major < $apu_check_berkeley_db_major)
14658 if (major > $apu_check_berkeley_db_major)
14662 if ($apu_check_berkeley_db_minor != -1) {
14663 if (minor < $apu_check_berkeley_db_minor)
14665 if (minor > $apu_check_berkeley_db_minor)
14669 if ($apu_check_berkeley_db_patch == -1
14670 || patch >= $apu_check_berkeley_db_patch)
14677 if ac_fn_c_try_run "$LINENO"; then :
14678 apu_try_berkeley_db=yes
14680 apu_try_berkeley_db=no
14682 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14683 conftest.$ac_objext conftest.beam conftest.$ac_ext
14687 LIBS="$apu_try_berkeley_db_save_libs"
14690 eval "$cache_id=$apu_try_berkeley_db"
14694 result="`eval echo '$'$cache_id`"
14695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
14696 $as_echo "$result" >&6; }
14697 elif test "1" = "1"; then
14698 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_dbopen" | $as_tr_sh`
14699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbopen in -l$bdb_libname" >&5
14700 $as_echo_n "checking for dbopen in -l$bdb_libname... " >&6; }
14701 if eval \${$as_ac_Lib+:} false; then :
14702 $as_echo_n "(cached) " >&6
14704 ac_check_lib_save_LIBS=$LIBS
14705 LIBS="-l$bdb_libname $LIBS"
14706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14707 /* end confdefs.h. */
14709 /* Override any GCC internal prototype to avoid an error.
14710 Use char because int might match the return type of a GCC
14711 builtin and then its argument prototype would still apply. */
14724 if ac_fn_c_try_link "$LINENO"; then :
14725 eval "$as_ac_Lib=yes"
14727 eval "$as_ac_Lib=no"
14729 rm -f core conftest.err conftest.$ac_objext \
14730 conftest$ac_exeext conftest.$ac_ext
14731 LIBS=$ac_check_lib_save_LIBS
14733 eval ac_res=\$$as_ac_Lib
14734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14735 $as_echo "$ac_res" >&6; }
14736 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
14743 elif test "1" = "2"; then
14744 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_db_open" | $as_tr_sh`
14745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_open in -l$bdb_libname" >&5
14746 $as_echo_n "checking for db_open in -l$bdb_libname... " >&6; }
14747 if eval \${$as_ac_Lib+:} false; then :
14748 $as_echo_n "(cached) " >&6
14750 ac_check_lib_save_LIBS=$LIBS
14751 LIBS="-l$bdb_libname $LIBS"
14752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14753 /* end confdefs.h. */
14755 /* Override any GCC internal prototype to avoid an error.
14756 Use char because int might match the return type of a GCC
14757 builtin and then its argument prototype would still apply. */
14770 if ac_fn_c_try_link "$LINENO"; then :
14771 eval "$as_ac_Lib=yes"
14773 eval "$as_ac_Lib=no"
14775 rm -f core conftest.err conftest.$ac_objext \
14776 conftest$ac_exeext conftest.$ac_ext
14777 LIBS=$ac_check_lib_save_LIBS
14779 eval ac_res=\$$as_ac_Lib
14780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14781 $as_echo "$ac_res" >&6; }
14782 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
14797 # If we found it, no need to search any more.
14798 if test "$result" = "yes"; then
14803 test "$found" != "not" && break
14805 test "$found" != "not" && break
14808 # Restore the original values of the flags we tweak.
14809 LDFLAGS="$apu_check_lib_save_ldflags"
14810 CPPFLAGS="$apu_check_lib_save_cppflags"
14817 apu_db_header=$bdb_header
14818 apu_db_lib=$bdb_libname
14822 header="`echo $found | sed -e 's/:.*$//'`"
14823 lib="`echo $found | sed -e 's/^.*://'`"
14826 if test "x$APRUTIL_INCLUDES" = "x"; then
14827 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$header\""
14828 APRUTIL_INCLUDES="-I$header"
14830 apr_addto_bugger="-I$header"
14831 for i in $apr_addto_bugger; do
14832 apr_addto_duplicate="0"
14833 for j in $APRUTIL_INCLUDES; do
14834 if test "x$i" = "x$j"; then
14835 apr_addto_duplicate="1"
14839 if test $apr_addto_duplicate = "0"; then
14840 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES"
14841 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
14847 if test "x$APRUTIL_LDFLAGS" = "x"; then
14848 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$lib\""
14849 APRUTIL_LDFLAGS="-L$lib"
14851 apr_addto_bugger="-L$lib"
14852 for i in $apr_addto_bugger; do
14853 apr_addto_duplicate="0"
14854 for j in $APRUTIL_LDFLAGS; do
14855 if test "x$i" = "x$j"; then
14856 apr_addto_duplicate="1"
14860 if test $apr_addto_duplicate = "0"; then
14861 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS"
14862 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
14867 apu_db_header=$bdb_header
14868 apu_db_lib=$bdb_libname
14873 if test "x$APRUTIL_INCLUDES" = "x"; then
14874 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$found/include\""
14875 APRUTIL_INCLUDES="-I$found/include"
14877 apr_addto_bugger="-I$found/include"
14878 for i in $apr_addto_bugger; do
14879 apr_addto_duplicate="0"
14880 for j in $APRUTIL_INCLUDES; do
14881 if test "x$i" = "x$j"; then
14882 apr_addto_duplicate="1"
14886 if test $apr_addto_duplicate = "0"; then
14887 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES"
14888 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
14894 if test "x$APRUTIL_LDFLAGS" = "x"; then
14895 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$found/lib\""
14896 APRUTIL_LDFLAGS="-L$found/lib"
14898 apr_addto_bugger="-L$found/lib"
14899 for i in $apr_addto_bugger; do
14900 apr_addto_duplicate="0"
14901 for j in $APRUTIL_LDFLAGS; do
14902 if test "x$i" = "x$j"; then
14903 apr_addto_duplicate="1"
14907 if test $apr_addto_duplicate = "0"; then
14908 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS"
14909 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
14914 apu_db_header=$bdb_header
14915 apu_db_lib=$bdb_libname
14920 if test "$apu_have_db" = "1"; then
14924 if test "$apu_db_version" != "185"; then
14925 as_fn_error $? "Berkeley db185 not found" "$LINENO" 5
14930 places="$check_places"
14931 if test -z "$places"; then
14936 if test "-1" != "-1"; then
14937 bdb_version="$bdb_version.-1"
14938 if test "-1" != "-1"; then
14939 bdb_version="$bdb_version.-1"
14942 bdb_places="$places"
14943 bdb_default_search_headers="db2/db.h db.h"
14944 bdb_default_search_lib_names="db2 db"
14949 # Save the original values of the flags we tweak.
14950 apu_check_lib_save_libs="$LIBS"
14951 apu_check_lib_save_ldflags="$LDFLAGS"
14952 apu_check_lib_save_cppflags="$CPPFLAGS"
14954 # The variable `found' is the prefix under which we've found
14955 # Berkeley DB, or `not' if we haven't found it anywhere yet.
14957 for bdb_place in $bdb_places; do
14959 LDFLAGS="$apu_check_lib_save_ldflags"
14960 CPPFLAGS="$apu_check_lib_save_cppflags"
14961 case "$bdb_place" in
14963 description="the standard places"
14966 header="`echo $bdb_place | sed -e 's/:.*$//'`"
14967 lib="`echo $bdb_place | sed -e 's/^.*://'`"
14968 CPPFLAGS="$CPPFLAGS -I$header"
14969 LDFLAGS="$LDFLAGS -L$lib"
14970 description="$header and $lib"
14973 if test -d $bdb_place; then
14974 LDFLAGS="$LDFLAGS -L$bdb_place/lib"
14975 CPPFLAGS="$CPPFLAGS -I$bdb_place/include"
14977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB $bdb_version in $bdb_place" >&5
14978 $as_echo_n "checking for Berkeley DB $bdb_version in $bdb_place... " >&6; }
14979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: directory not found" >&5
14980 $as_echo "directory not found" >&6; }
14983 description="$bdb_place"
14987 # Since there is no AC_MSG_NOTICE in autoconf 2.13, we use this
14988 # trick to display a message instead.
14989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB $bdb_version in $description" >&5
14990 $as_echo_n "checking for Berkeley DB $bdb_version in $description... " >&6; }
14991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
14994 for bdb_libname in $bdb_default_search_lib_names; do
14995 for bdb_header in $bdb_default_search_headers; do
14996 # Clear the header cache variable for each location
14998 cache_id="`echo ac_cv_header_${bdb_header} \
14999 | sed -e 's/[^a-zA-Z0-9_]/_/g'`"
15002 as_ac_Header=`$as_echo "ac_cv_header_$bdb_header" | $as_tr_sh`
15003 ac_fn_c_check_header_mongrel "$LINENO" "$bdb_header" "$as_ac_Header" "$ac_includes_default"
15004 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15006 if test "2" = "3" -o "2" = "4" -o "2" = "5" -o "2" = "6"; then
15007 # We generate a separate cache variable for each prefix and libname
15008 # we search under. That way, we avoid caching information that
15009 # changes if the user runs `configure' with a different set of
15012 cache_id="`echo apu_cv_check_berkeley_db_2_-1_-1_${bdb_header}_${bdb_libname}_in_${bdb_place} \
15013 | sed -e 's/[^a-zA-Z0-9_]/_/g'`"
15016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -l$bdb_libname" >&5
15017 $as_echo_n "checking for -l$bdb_libname... " >&6; }
15018 if eval \${$cache_id+:} false; then :
15019 $as_echo_n "(cached) " >&6
15023 apu_try_berkeley_db_save_libs="$LIBS"
15025 apu_check_berkeley_db_major=2
15026 apu_check_berkeley_db_minor=-1
15027 apu_check_berkeley_db_patch=-1
15028 apu_try_berkeley_db_header=$bdb_header
15029 apu_try_berkeley_db_libname=$bdb_libname
15031 LIBS="$LIBS -l$apu_try_berkeley_db_libname"
15032 if test "$cross_compiling" = yes; then :
15033 apu_try_berkeley_db=yes
15036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15037 /* end confdefs.h. */
15039 #include <stdlib.h>
15041 #include <$apu_try_berkeley_db_header>
15044 int major, minor, patch;
15046 db_version(&major, &minor, &patch);
15048 /* Sanity check: ensure that db.h constants actually match the db library */
15049 if (major != DB_VERSION_MAJOR
15050 || minor != DB_VERSION_MINOR
15051 || patch != DB_VERSION_PATCH)
15054 /* Run-time check: ensure the library claims to be the correct version. */
15056 if ($apu_check_berkeley_db_major != -1) {
15057 if (major < $apu_check_berkeley_db_major)
15059 if (major > $apu_check_berkeley_db_major)
15063 if ($apu_check_berkeley_db_minor != -1) {
15064 if (minor < $apu_check_berkeley_db_minor)
15066 if (minor > $apu_check_berkeley_db_minor)
15070 if ($apu_check_berkeley_db_patch == -1
15071 || patch >= $apu_check_berkeley_db_patch)
15078 if ac_fn_c_try_run "$LINENO"; then :
15079 apu_try_berkeley_db=yes
15081 apu_try_berkeley_db=no
15083 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15084 conftest.$ac_objext conftest.beam conftest.$ac_ext
15088 LIBS="$apu_try_berkeley_db_save_libs"
15091 eval "$cache_id=$apu_try_berkeley_db"
15095 result="`eval echo '$'$cache_id`"
15096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
15097 $as_echo "$result" >&6; }
15098 elif test "2" = "1"; then
15099 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_dbopen" | $as_tr_sh`
15100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbopen in -l$bdb_libname" >&5
15101 $as_echo_n "checking for dbopen in -l$bdb_libname... " >&6; }
15102 if eval \${$as_ac_Lib+:} false; then :
15103 $as_echo_n "(cached) " >&6
15105 ac_check_lib_save_LIBS=$LIBS
15106 LIBS="-l$bdb_libname $LIBS"
15107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15108 /* end confdefs.h. */
15110 /* Override any GCC internal prototype to avoid an error.
15111 Use char because int might match the return type of a GCC
15112 builtin and then its argument prototype would still apply. */
15125 if ac_fn_c_try_link "$LINENO"; then :
15126 eval "$as_ac_Lib=yes"
15128 eval "$as_ac_Lib=no"
15130 rm -f core conftest.err conftest.$ac_objext \
15131 conftest$ac_exeext conftest.$ac_ext
15132 LIBS=$ac_check_lib_save_LIBS
15134 eval ac_res=\$$as_ac_Lib
15135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15136 $as_echo "$ac_res" >&6; }
15137 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
15144 elif test "2" = "2"; then
15145 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_db_open" | $as_tr_sh`
15146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_open in -l$bdb_libname" >&5
15147 $as_echo_n "checking for db_open in -l$bdb_libname... " >&6; }
15148 if eval \${$as_ac_Lib+:} false; then :
15149 $as_echo_n "(cached) " >&6
15151 ac_check_lib_save_LIBS=$LIBS
15152 LIBS="-l$bdb_libname $LIBS"
15153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15154 /* end confdefs.h. */
15156 /* Override any GCC internal prototype to avoid an error.
15157 Use char because int might match the return type of a GCC
15158 builtin and then its argument prototype would still apply. */
15171 if ac_fn_c_try_link "$LINENO"; then :
15172 eval "$as_ac_Lib=yes"
15174 eval "$as_ac_Lib=no"
15176 rm -f core conftest.err conftest.$ac_objext \
15177 conftest$ac_exeext conftest.$ac_ext
15178 LIBS=$ac_check_lib_save_LIBS
15180 eval ac_res=\$$as_ac_Lib
15181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15182 $as_echo "$ac_res" >&6; }
15183 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
15198 # If we found it, no need to search any more.
15199 if test "$result" = "yes"; then
15204 test "$found" != "not" && break
15206 test "$found" != "not" && break
15209 # Restore the original values of the flags we tweak.
15210 LDFLAGS="$apu_check_lib_save_ldflags"
15211 CPPFLAGS="$apu_check_lib_save_cppflags"
15218 apu_db_header=$bdb_header
15219 apu_db_lib=$bdb_libname
15223 header="`echo $found | sed -e 's/:.*$//'`"
15224 lib="`echo $found | sed -e 's/^.*://'`"
15227 if test "x$APRUTIL_INCLUDES" = "x"; then
15228 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$header\""
15229 APRUTIL_INCLUDES="-I$header"
15231 apr_addto_bugger="-I$header"
15232 for i in $apr_addto_bugger; do
15233 apr_addto_duplicate="0"
15234 for j in $APRUTIL_INCLUDES; do
15235 if test "x$i" = "x$j"; then
15236 apr_addto_duplicate="1"
15240 if test $apr_addto_duplicate = "0"; then
15241 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES"
15242 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
15248 if test "x$APRUTIL_LDFLAGS" = "x"; then
15249 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$lib\""
15250 APRUTIL_LDFLAGS="-L$lib"
15252 apr_addto_bugger="-L$lib"
15253 for i in $apr_addto_bugger; do
15254 apr_addto_duplicate="0"
15255 for j in $APRUTIL_LDFLAGS; do
15256 if test "x$i" = "x$j"; then
15257 apr_addto_duplicate="1"
15261 if test $apr_addto_duplicate = "0"; then
15262 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS"
15263 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
15268 apu_db_header=$bdb_header
15269 apu_db_lib=$bdb_libname
15274 if test "x$APRUTIL_INCLUDES" = "x"; then
15275 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$found/include\""
15276 APRUTIL_INCLUDES="-I$found/include"
15278 apr_addto_bugger="-I$found/include"
15279 for i in $apr_addto_bugger; do
15280 apr_addto_duplicate="0"
15281 for j in $APRUTIL_INCLUDES; do
15282 if test "x$i" = "x$j"; then
15283 apr_addto_duplicate="1"
15287 if test $apr_addto_duplicate = "0"; then
15288 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES"
15289 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
15295 if test "x$APRUTIL_LDFLAGS" = "x"; then
15296 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$found/lib\""
15297 APRUTIL_LDFLAGS="-L$found/lib"
15299 apr_addto_bugger="-L$found/lib"
15300 for i in $apr_addto_bugger; do
15301 apr_addto_duplicate="0"
15302 for j in $APRUTIL_LDFLAGS; do
15303 if test "x$i" = "x$j"; then
15304 apr_addto_duplicate="1"
15308 if test $apr_addto_duplicate = "0"; then
15309 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS"
15310 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
15315 apu_db_header=$bdb_header
15316 apu_db_lib=$bdb_libname
15321 if test "$apu_have_db" = "1"; then
15325 if test "$apu_db_version" != "2"; then
15326 as_fn_error $? "Berkeley db2 not found" "$LINENO" 5
15331 places="$check_places"
15332 if test -z "$places"; then
15337 if test "-1" != "-1"; then
15338 bdb_version="$bdb_version.-1"
15339 if test "-1" != "-1"; then
15340 bdb_version="$bdb_version.-1"
15343 bdb_places="$places"
15344 bdb_default_search_headers="db3/db.h db.h"
15345 bdb_default_search_lib_names="db3 db"
15350 # Save the original values of the flags we tweak.
15351 apu_check_lib_save_libs="$LIBS"
15352 apu_check_lib_save_ldflags="$LDFLAGS"
15353 apu_check_lib_save_cppflags="$CPPFLAGS"
15355 # The variable `found' is the prefix under which we've found
15356 # Berkeley DB, or `not' if we haven't found it anywhere yet.
15358 for bdb_place in $bdb_places; do
15360 LDFLAGS="$apu_check_lib_save_ldflags"
15361 CPPFLAGS="$apu_check_lib_save_cppflags"
15362 case "$bdb_place" in
15364 description="the standard places"
15367 header="`echo $bdb_place | sed -e 's/:.*$//'`"
15368 lib="`echo $bdb_place | sed -e 's/^.*://'`"
15369 CPPFLAGS="$CPPFLAGS -I$header"
15370 LDFLAGS="$LDFLAGS -L$lib"
15371 description="$header and $lib"
15374 if test -d $bdb_place; then
15375 LDFLAGS="$LDFLAGS -L$bdb_place/lib"
15376 CPPFLAGS="$CPPFLAGS -I$bdb_place/include"
15378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB $bdb_version in $bdb_place" >&5
15379 $as_echo_n "checking for Berkeley DB $bdb_version in $bdb_place... " >&6; }
15380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: directory not found" >&5
15381 $as_echo "directory not found" >&6; }
15384 description="$bdb_place"
15388 # Since there is no AC_MSG_NOTICE in autoconf 2.13, we use this
15389 # trick to display a message instead.
15390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB $bdb_version in $description" >&5
15391 $as_echo_n "checking for Berkeley DB $bdb_version in $description... " >&6; }
15392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
15395 for bdb_libname in $bdb_default_search_lib_names; do
15396 for bdb_header in $bdb_default_search_headers; do
15397 # Clear the header cache variable for each location
15399 cache_id="`echo ac_cv_header_${bdb_header} \
15400 | sed -e 's/[^a-zA-Z0-9_]/_/g'`"
15403 as_ac_Header=`$as_echo "ac_cv_header_$bdb_header" | $as_tr_sh`
15404 ac_fn_c_check_header_mongrel "$LINENO" "$bdb_header" "$as_ac_Header" "$ac_includes_default"
15405 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15407 if test "3" = "3" -o "3" = "4" -o "3" = "5" -o "3" = "6"; then
15408 # We generate a separate cache variable for each prefix and libname
15409 # we search under. That way, we avoid caching information that
15410 # changes if the user runs `configure' with a different set of
15413 cache_id="`echo apu_cv_check_berkeley_db_3_-1_-1_${bdb_header}_${bdb_libname}_in_${bdb_place} \
15414 | sed -e 's/[^a-zA-Z0-9_]/_/g'`"
15417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -l$bdb_libname" >&5
15418 $as_echo_n "checking for -l$bdb_libname... " >&6; }
15419 if eval \${$cache_id+:} false; then :
15420 $as_echo_n "(cached) " >&6
15424 apu_try_berkeley_db_save_libs="$LIBS"
15426 apu_check_berkeley_db_major=3
15427 apu_check_berkeley_db_minor=-1
15428 apu_check_berkeley_db_patch=-1
15429 apu_try_berkeley_db_header=$bdb_header
15430 apu_try_berkeley_db_libname=$bdb_libname
15432 LIBS="$LIBS -l$apu_try_berkeley_db_libname"
15433 if test "$cross_compiling" = yes; then :
15434 apu_try_berkeley_db=yes
15437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15438 /* end confdefs.h. */
15440 #include <stdlib.h>
15442 #include <$apu_try_berkeley_db_header>
15445 int major, minor, patch;
15447 db_version(&major, &minor, &patch);
15449 /* Sanity check: ensure that db.h constants actually match the db library */
15450 if (major != DB_VERSION_MAJOR
15451 || minor != DB_VERSION_MINOR
15452 || patch != DB_VERSION_PATCH)
15455 /* Run-time check: ensure the library claims to be the correct version. */
15457 if ($apu_check_berkeley_db_major != -1) {
15458 if (major < $apu_check_berkeley_db_major)
15460 if (major > $apu_check_berkeley_db_major)
15464 if ($apu_check_berkeley_db_minor != -1) {
15465 if (minor < $apu_check_berkeley_db_minor)
15467 if (minor > $apu_check_berkeley_db_minor)
15471 if ($apu_check_berkeley_db_patch == -1
15472 || patch >= $apu_check_berkeley_db_patch)
15479 if ac_fn_c_try_run "$LINENO"; then :
15480 apu_try_berkeley_db=yes
15482 apu_try_berkeley_db=no
15484 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15485 conftest.$ac_objext conftest.beam conftest.$ac_ext
15489 LIBS="$apu_try_berkeley_db_save_libs"
15492 eval "$cache_id=$apu_try_berkeley_db"
15496 result="`eval echo '$'$cache_id`"
15497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
15498 $as_echo "$result" >&6; }
15499 elif test "3" = "1"; then
15500 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_dbopen" | $as_tr_sh`
15501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbopen in -l$bdb_libname" >&5
15502 $as_echo_n "checking for dbopen in -l$bdb_libname... " >&6; }
15503 if eval \${$as_ac_Lib+:} false; then :
15504 $as_echo_n "(cached) " >&6
15506 ac_check_lib_save_LIBS=$LIBS
15507 LIBS="-l$bdb_libname $LIBS"
15508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15509 /* end confdefs.h. */
15511 /* Override any GCC internal prototype to avoid an error.
15512 Use char because int might match the return type of a GCC
15513 builtin and then its argument prototype would still apply. */
15526 if ac_fn_c_try_link "$LINENO"; then :
15527 eval "$as_ac_Lib=yes"
15529 eval "$as_ac_Lib=no"
15531 rm -f core conftest.err conftest.$ac_objext \
15532 conftest$ac_exeext conftest.$ac_ext
15533 LIBS=$ac_check_lib_save_LIBS
15535 eval ac_res=\$$as_ac_Lib
15536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15537 $as_echo "$ac_res" >&6; }
15538 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
15545 elif test "3" = "2"; then
15546 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_db_open" | $as_tr_sh`
15547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_open in -l$bdb_libname" >&5
15548 $as_echo_n "checking for db_open in -l$bdb_libname... " >&6; }
15549 if eval \${$as_ac_Lib+:} false; then :
15550 $as_echo_n "(cached) " >&6
15552 ac_check_lib_save_LIBS=$LIBS
15553 LIBS="-l$bdb_libname $LIBS"
15554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15555 /* end confdefs.h. */
15557 /* Override any GCC internal prototype to avoid an error.
15558 Use char because int might match the return type of a GCC
15559 builtin and then its argument prototype would still apply. */
15572 if ac_fn_c_try_link "$LINENO"; then :
15573 eval "$as_ac_Lib=yes"
15575 eval "$as_ac_Lib=no"
15577 rm -f core conftest.err conftest.$ac_objext \
15578 conftest$ac_exeext conftest.$ac_ext
15579 LIBS=$ac_check_lib_save_LIBS
15581 eval ac_res=\$$as_ac_Lib
15582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15583 $as_echo "$ac_res" >&6; }
15584 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
15599 # If we found it, no need to search any more.
15600 if test "$result" = "yes"; then
15605 test "$found" != "not" && break
15607 test "$found" != "not" && break
15610 # Restore the original values of the flags we tweak.
15611 LDFLAGS="$apu_check_lib_save_ldflags"
15612 CPPFLAGS="$apu_check_lib_save_cppflags"
15619 apu_db_header=$bdb_header
15620 apu_db_lib=$bdb_libname
15624 header="`echo $found | sed -e 's/:.*$//'`"
15625 lib="`echo $found | sed -e 's/^.*://'`"
15628 if test "x$APRUTIL_INCLUDES" = "x"; then
15629 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$header\""
15630 APRUTIL_INCLUDES="-I$header"
15632 apr_addto_bugger="-I$header"
15633 for i in $apr_addto_bugger; do
15634 apr_addto_duplicate="0"
15635 for j in $APRUTIL_INCLUDES; do
15636 if test "x$i" = "x$j"; then
15637 apr_addto_duplicate="1"
15641 if test $apr_addto_duplicate = "0"; then
15642 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES"
15643 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
15649 if test "x$APRUTIL_LDFLAGS" = "x"; then
15650 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$lib\""
15651 APRUTIL_LDFLAGS="-L$lib"
15653 apr_addto_bugger="-L$lib"
15654 for i in $apr_addto_bugger; do
15655 apr_addto_duplicate="0"
15656 for j in $APRUTIL_LDFLAGS; do
15657 if test "x$i" = "x$j"; then
15658 apr_addto_duplicate="1"
15662 if test $apr_addto_duplicate = "0"; then
15663 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS"
15664 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
15669 apu_db_header=$bdb_header
15670 apu_db_lib=$bdb_libname
15675 if test "x$APRUTIL_INCLUDES" = "x"; then
15676 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$found/include\""
15677 APRUTIL_INCLUDES="-I$found/include"
15679 apr_addto_bugger="-I$found/include"
15680 for i in $apr_addto_bugger; do
15681 apr_addto_duplicate="0"
15682 for j in $APRUTIL_INCLUDES; do
15683 if test "x$i" = "x$j"; then
15684 apr_addto_duplicate="1"
15688 if test $apr_addto_duplicate = "0"; then
15689 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES"
15690 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
15696 if test "x$APRUTIL_LDFLAGS" = "x"; then
15697 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$found/lib\""
15698 APRUTIL_LDFLAGS="-L$found/lib"
15700 apr_addto_bugger="-L$found/lib"
15701 for i in $apr_addto_bugger; do
15702 apr_addto_duplicate="0"
15703 for j in $APRUTIL_LDFLAGS; do
15704 if test "x$i" = "x$j"; then
15705 apr_addto_duplicate="1"
15709 if test $apr_addto_duplicate = "0"; then
15710 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS"
15711 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
15716 apu_db_header=$bdb_header
15717 apu_db_lib=$bdb_libname
15722 if test "$apu_have_db" = "1"; then
15726 if test "$apu_db_version" != "3"; then
15727 as_fn_error $? "Berkeley db3 not found" "$LINENO" 5
15731 db_major=`echo "$requested" | sed -e 's/db//' -e 's/.$//'`
15732 db_minor=`echo "$requested" | sed -e 's/db//' -e 's/.//'`
15734 places="$check_places"
15735 db_major="$db_major"
15736 db_minor="$db_minor"
15737 if test -z "$places"; then
15738 places="std /usr/local /usr/local/BerkeleyDB.${db_major}.${db_minor} /boot/home/config"
15741 bdb_version="${db_major}"
15742 if test ""${db_minor}"" != "-1"; then
15743 bdb_version="$bdb_version."${db_minor}""
15744 if test ""-1"" != "-1"; then
15745 bdb_version="$bdb_version."-1""
15748 bdb_places="$places"
15749 bdb_default_search_headers="db${db_major}${db_minor}/db.h db${db_major}/db.h db.h"
15750 bdb_default_search_lib_names="db-${db_major}.${db_minor} db${db_major}-${db_major}.${db_minor} db${db_major}${db_minor} db-${db_major} db${db_major} db"
15755 # Save the original values of the flags we tweak.
15756 apu_check_lib_save_libs="$LIBS"
15757 apu_check_lib_save_ldflags="$LDFLAGS"
15758 apu_check_lib_save_cppflags="$CPPFLAGS"
15760 # The variable `found' is the prefix under which we've found
15761 # Berkeley DB, or `not' if we haven't found it anywhere yet.
15763 for bdb_place in $bdb_places; do
15765 LDFLAGS="$apu_check_lib_save_ldflags"
15766 CPPFLAGS="$apu_check_lib_save_cppflags"
15767 case "$bdb_place" in
15769 description="the standard places"
15772 header="`echo $bdb_place | sed -e 's/:.*$//'`"
15773 lib="`echo $bdb_place | sed -e 's/^.*://'`"
15774 CPPFLAGS="$CPPFLAGS -I$header"
15775 LDFLAGS="$LDFLAGS -L$lib"
15776 description="$header and $lib"
15779 if test -d $bdb_place; then
15780 LDFLAGS="$LDFLAGS -L$bdb_place/lib"
15781 CPPFLAGS="$CPPFLAGS -I$bdb_place/include"
15783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB $bdb_version in $bdb_place" >&5
15784 $as_echo_n "checking for Berkeley DB $bdb_version in $bdb_place... " >&6; }
15785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: directory not found" >&5
15786 $as_echo "directory not found" >&6; }
15789 description="$bdb_place"
15793 # Since there is no AC_MSG_NOTICE in autoconf 2.13, we use this
15794 # trick to display a message instead.
15795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB $bdb_version in $description" >&5
15796 $as_echo_n "checking for Berkeley DB $bdb_version in $description... " >&6; }
15797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
15800 for bdb_libname in $bdb_default_search_lib_names; do
15801 for bdb_header in $bdb_default_search_headers; do
15802 # Clear the header cache variable for each location
15804 cache_id="`echo ac_cv_header_${bdb_header} \
15805 | sed -e 's/[^a-zA-Z0-9_]/_/g'`"
15808 as_ac_Header=`$as_echo "ac_cv_header_$bdb_header" | $as_tr_sh`
15809 ac_fn_c_check_header_mongrel "$LINENO" "$bdb_header" "$as_ac_Header" "$ac_includes_default"
15810 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15812 if test ""${db_major}"" = "3" -o ""${db_major}"" = "4" -o ""${db_major}"" = "5" -o ""${db_major}"" = "6"; then
15813 # We generate a separate cache variable for each prefix and libname
15814 # we search under. That way, we avoid caching information that
15815 # changes if the user runs `configure' with a different set of
15818 cache_id="`echo apu_cv_check_berkeley_db_"${db_major}"_"${db_minor}"_"-1"_${bdb_header}_${bdb_libname}_in_${bdb_place} \
15819 | sed -e 's/[^a-zA-Z0-9_]/_/g'`"
15822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -l$bdb_libname" >&5
15823 $as_echo_n "checking for -l$bdb_libname... " >&6; }
15824 if eval \${$cache_id+:} false; then :
15825 $as_echo_n "(cached) " >&6
15829 apu_try_berkeley_db_save_libs="$LIBS"
15831 apu_check_berkeley_db_major="${db_major}"
15832 apu_check_berkeley_db_minor="${db_minor}"
15833 apu_check_berkeley_db_patch="-1"
15834 apu_try_berkeley_db_header=$bdb_header
15835 apu_try_berkeley_db_libname=$bdb_libname
15837 LIBS="$LIBS -l$apu_try_berkeley_db_libname"
15838 if test "$cross_compiling" = yes; then :
15839 apu_try_berkeley_db=yes
15842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15843 /* end confdefs.h. */
15845 #include <stdlib.h>
15847 #include <$apu_try_berkeley_db_header>
15850 int major, minor, patch;
15852 db_version(&major, &minor, &patch);
15854 /* Sanity check: ensure that db.h constants actually match the db library */
15855 if (major != DB_VERSION_MAJOR
15856 || minor != DB_VERSION_MINOR
15857 || patch != DB_VERSION_PATCH)
15860 /* Run-time check: ensure the library claims to be the correct version. */
15862 if ($apu_check_berkeley_db_major != -1) {
15863 if (major < $apu_check_berkeley_db_major)
15865 if (major > $apu_check_berkeley_db_major)
15869 if ($apu_check_berkeley_db_minor != -1) {
15870 if (minor < $apu_check_berkeley_db_minor)
15872 if (minor > $apu_check_berkeley_db_minor)
15876 if ($apu_check_berkeley_db_patch == -1
15877 || patch >= $apu_check_berkeley_db_patch)
15884 if ac_fn_c_try_run "$LINENO"; then :
15885 apu_try_berkeley_db=yes
15887 apu_try_berkeley_db=no
15889 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15890 conftest.$ac_objext conftest.beam conftest.$ac_ext
15894 LIBS="$apu_try_berkeley_db_save_libs"
15897 eval "$cache_id=$apu_try_berkeley_db"
15901 result="`eval echo '$'$cache_id`"
15902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
15903 $as_echo "$result" >&6; }
15904 elif test ""${db_major}"" = "1"; then
15905 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_dbopen" | $as_tr_sh`
15906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbopen in -l$bdb_libname" >&5
15907 $as_echo_n "checking for dbopen in -l$bdb_libname... " >&6; }
15908 if eval \${$as_ac_Lib+:} false; then :
15909 $as_echo_n "(cached) " >&6
15911 ac_check_lib_save_LIBS=$LIBS
15912 LIBS="-l$bdb_libname $LIBS"
15913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15914 /* end confdefs.h. */
15916 /* Override any GCC internal prototype to avoid an error.
15917 Use char because int might match the return type of a GCC
15918 builtin and then its argument prototype would still apply. */
15931 if ac_fn_c_try_link "$LINENO"; then :
15932 eval "$as_ac_Lib=yes"
15934 eval "$as_ac_Lib=no"
15936 rm -f core conftest.err conftest.$ac_objext \
15937 conftest$ac_exeext conftest.$ac_ext
15938 LIBS=$ac_check_lib_save_LIBS
15940 eval ac_res=\$$as_ac_Lib
15941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15942 $as_echo "$ac_res" >&6; }
15943 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
15950 elif test ""${db_major}"" = "2"; then
15951 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_db_open" | $as_tr_sh`
15952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_open in -l$bdb_libname" >&5
15953 $as_echo_n "checking for db_open in -l$bdb_libname... " >&6; }
15954 if eval \${$as_ac_Lib+:} false; then :
15955 $as_echo_n "(cached) " >&6
15957 ac_check_lib_save_LIBS=$LIBS
15958 LIBS="-l$bdb_libname $LIBS"
15959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15960 /* end confdefs.h. */
15962 /* Override any GCC internal prototype to avoid an error.
15963 Use char because int might match the return type of a GCC
15964 builtin and then its argument prototype would still apply. */
15977 if ac_fn_c_try_link "$LINENO"; then :
15978 eval "$as_ac_Lib=yes"
15980 eval "$as_ac_Lib=no"
15982 rm -f core conftest.err conftest.$ac_objext \
15983 conftest$ac_exeext conftest.$ac_ext
15984 LIBS=$ac_check_lib_save_LIBS
15986 eval ac_res=\$$as_ac_Lib
15987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15988 $as_echo "$ac_res" >&6; }
15989 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
16004 # If we found it, no need to search any more.
16005 if test "$result" = "yes"; then
16010 test "$found" != "not" && break
16012 test "$found" != "not" && break
16015 # Restore the original values of the flags we tweak.
16016 LDFLAGS="$apu_check_lib_save_ldflags"
16017 CPPFLAGS="$apu_check_lib_save_cppflags"
16024 apu_db_header=$bdb_header
16025 apu_db_lib=$bdb_libname
16029 header="`echo $found | sed -e 's/:.*$//'`"
16030 lib="`echo $found | sed -e 's/^.*://'`"
16033 if test "x$APRUTIL_INCLUDES" = "x"; then
16034 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$header\""
16035 APRUTIL_INCLUDES="-I$header"
16037 apr_addto_bugger="-I$header"
16038 for i in $apr_addto_bugger; do
16039 apr_addto_duplicate="0"
16040 for j in $APRUTIL_INCLUDES; do
16041 if test "x$i" = "x$j"; then
16042 apr_addto_duplicate="1"
16046 if test $apr_addto_duplicate = "0"; then
16047 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES"
16048 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
16054 if test "x$APRUTIL_LDFLAGS" = "x"; then
16055 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$lib\""
16056 APRUTIL_LDFLAGS="-L$lib"
16058 apr_addto_bugger="-L$lib"
16059 for i in $apr_addto_bugger; do
16060 apr_addto_duplicate="0"
16061 for j in $APRUTIL_LDFLAGS; do
16062 if test "x$i" = "x$j"; then
16063 apr_addto_duplicate="1"
16067 if test $apr_addto_duplicate = "0"; then
16068 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS"
16069 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
16074 apu_db_header=$bdb_header
16075 apu_db_lib=$bdb_libname
16080 if test "x$APRUTIL_INCLUDES" = "x"; then
16081 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$found/include\""
16082 APRUTIL_INCLUDES="-I$found/include"
16084 apr_addto_bugger="-I$found/include"
16085 for i in $apr_addto_bugger; do
16086 apr_addto_duplicate="0"
16087 for j in $APRUTIL_INCLUDES; do
16088 if test "x$i" = "x$j"; then
16089 apr_addto_duplicate="1"
16093 if test $apr_addto_duplicate = "0"; then
16094 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES"
16095 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
16101 if test "x$APRUTIL_LDFLAGS" = "x"; then
16102 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$found/lib\""
16103 APRUTIL_LDFLAGS="-L$found/lib"
16105 apr_addto_bugger="-L$found/lib"
16106 for i in $apr_addto_bugger; do
16107 apr_addto_duplicate="0"
16108 for j in $APRUTIL_LDFLAGS; do
16109 if test "x$i" = "x$j"; then
16110 apr_addto_duplicate="1"
16114 if test $apr_addto_duplicate = "0"; then
16115 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS"
16116 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
16121 apu_db_header=$bdb_header
16122 apu_db_lib=$bdb_libname
16127 if test "$apu_have_db" = "1"; then
16128 apu_db_version=${db_major}
16131 if test "$apu_db_version" != "$db_major"; then
16132 as_fn_error $? "Berkeley db$db_major not found" "$LINENO" 5
16136 db_major=`echo "$requested" | sed -e 's/db//'`
16137 # Start version search at version x.9
16139 while [ $db_minor -ge 0 ]
16142 places="$check_places"
16143 db_major="$db_major"
16144 db_minor="$db_minor"
16145 if test -z "$places"; then
16146 places="std /usr/local /usr/local/BerkeleyDB.${db_major}.${db_minor} /boot/home/config"
16149 bdb_version="${db_major}"
16150 if test ""${db_minor}"" != "-1"; then
16151 bdb_version="$bdb_version."${db_minor}""
16152 if test ""-1"" != "-1"; then
16153 bdb_version="$bdb_version."-1""
16156 bdb_places="$places"
16157 bdb_default_search_headers="db${db_major}${db_minor}/db.h db${db_major}/db.h db.h"
16158 bdb_default_search_lib_names="db-${db_major}.${db_minor} db${db_major}-${db_major}.${db_minor} db${db_major}${db_minor} db-${db_major} db${db_major} db"
16163 # Save the original values of the flags we tweak.
16164 apu_check_lib_save_libs="$LIBS"
16165 apu_check_lib_save_ldflags="$LDFLAGS"
16166 apu_check_lib_save_cppflags="$CPPFLAGS"
16168 # The variable `found' is the prefix under which we've found
16169 # Berkeley DB, or `not' if we haven't found it anywhere yet.
16171 for bdb_place in $bdb_places; do
16173 LDFLAGS="$apu_check_lib_save_ldflags"
16174 CPPFLAGS="$apu_check_lib_save_cppflags"
16175 case "$bdb_place" in
16177 description="the standard places"
16180 header="`echo $bdb_place | sed -e 's/:.*$//'`"
16181 lib="`echo $bdb_place | sed -e 's/^.*://'`"
16182 CPPFLAGS="$CPPFLAGS -I$header"
16183 LDFLAGS="$LDFLAGS -L$lib"
16184 description="$header and $lib"
16187 if test -d $bdb_place; then
16188 LDFLAGS="$LDFLAGS -L$bdb_place/lib"
16189 CPPFLAGS="$CPPFLAGS -I$bdb_place/include"
16191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB $bdb_version in $bdb_place" >&5
16192 $as_echo_n "checking for Berkeley DB $bdb_version in $bdb_place... " >&6; }
16193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: directory not found" >&5
16194 $as_echo "directory not found" >&6; }
16197 description="$bdb_place"
16201 # Since there is no AC_MSG_NOTICE in autoconf 2.13, we use this
16202 # trick to display a message instead.
16203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB $bdb_version in $description" >&5
16204 $as_echo_n "checking for Berkeley DB $bdb_version in $description... " >&6; }
16205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
16208 for bdb_libname in $bdb_default_search_lib_names; do
16209 for bdb_header in $bdb_default_search_headers; do
16210 # Clear the header cache variable for each location
16212 cache_id="`echo ac_cv_header_${bdb_header} \
16213 | sed -e 's/[^a-zA-Z0-9_]/_/g'`"
16216 as_ac_Header=`$as_echo "ac_cv_header_$bdb_header" | $as_tr_sh`
16217 ac_fn_c_check_header_mongrel "$LINENO" "$bdb_header" "$as_ac_Header" "$ac_includes_default"
16218 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16220 if test ""${db_major}"" = "3" -o ""${db_major}"" = "4" -o ""${db_major}"" = "5" -o ""${db_major}"" = "6"; then
16221 # We generate a separate cache variable for each prefix and libname
16222 # we search under. That way, we avoid caching information that
16223 # changes if the user runs `configure' with a different set of
16226 cache_id="`echo apu_cv_check_berkeley_db_"${db_major}"_"${db_minor}"_"-1"_${bdb_header}_${bdb_libname}_in_${bdb_place} \
16227 | sed -e 's/[^a-zA-Z0-9_]/_/g'`"
16230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -l$bdb_libname" >&5
16231 $as_echo_n "checking for -l$bdb_libname... " >&6; }
16232 if eval \${$cache_id+:} false; then :
16233 $as_echo_n "(cached) " >&6
16237 apu_try_berkeley_db_save_libs="$LIBS"
16239 apu_check_berkeley_db_major="${db_major}"
16240 apu_check_berkeley_db_minor="${db_minor}"
16241 apu_check_berkeley_db_patch="-1"
16242 apu_try_berkeley_db_header=$bdb_header
16243 apu_try_berkeley_db_libname=$bdb_libname
16245 LIBS="$LIBS -l$apu_try_berkeley_db_libname"
16246 if test "$cross_compiling" = yes; then :
16247 apu_try_berkeley_db=yes
16250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16251 /* end confdefs.h. */
16253 #include <stdlib.h>
16255 #include <$apu_try_berkeley_db_header>
16258 int major, minor, patch;
16260 db_version(&major, &minor, &patch);
16262 /* Sanity check: ensure that db.h constants actually match the db library */
16263 if (major != DB_VERSION_MAJOR
16264 || minor != DB_VERSION_MINOR
16265 || patch != DB_VERSION_PATCH)
16268 /* Run-time check: ensure the library claims to be the correct version. */
16270 if ($apu_check_berkeley_db_major != -1) {
16271 if (major < $apu_check_berkeley_db_major)
16273 if (major > $apu_check_berkeley_db_major)
16277 if ($apu_check_berkeley_db_minor != -1) {
16278 if (minor < $apu_check_berkeley_db_minor)
16280 if (minor > $apu_check_berkeley_db_minor)
16284 if ($apu_check_berkeley_db_patch == -1
16285 || patch >= $apu_check_berkeley_db_patch)
16292 if ac_fn_c_try_run "$LINENO"; then :
16293 apu_try_berkeley_db=yes
16295 apu_try_berkeley_db=no
16297 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16298 conftest.$ac_objext conftest.beam conftest.$ac_ext
16302 LIBS="$apu_try_berkeley_db_save_libs"
16305 eval "$cache_id=$apu_try_berkeley_db"
16309 result="`eval echo '$'$cache_id`"
16310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
16311 $as_echo "$result" >&6; }
16312 elif test ""${db_major}"" = "1"; then
16313 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_dbopen" | $as_tr_sh`
16314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbopen in -l$bdb_libname" >&5
16315 $as_echo_n "checking for dbopen in -l$bdb_libname... " >&6; }
16316 if eval \${$as_ac_Lib+:} false; then :
16317 $as_echo_n "(cached) " >&6
16319 ac_check_lib_save_LIBS=$LIBS
16320 LIBS="-l$bdb_libname $LIBS"
16321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16322 /* end confdefs.h. */
16324 /* Override any GCC internal prototype to avoid an error.
16325 Use char because int might match the return type of a GCC
16326 builtin and then its argument prototype would still apply. */
16339 if ac_fn_c_try_link "$LINENO"; then :
16340 eval "$as_ac_Lib=yes"
16342 eval "$as_ac_Lib=no"
16344 rm -f core conftest.err conftest.$ac_objext \
16345 conftest$ac_exeext conftest.$ac_ext
16346 LIBS=$ac_check_lib_save_LIBS
16348 eval ac_res=\$$as_ac_Lib
16349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16350 $as_echo "$ac_res" >&6; }
16351 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
16358 elif test ""${db_major}"" = "2"; then
16359 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_db_open" | $as_tr_sh`
16360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_open in -l$bdb_libname" >&5
16361 $as_echo_n "checking for db_open in -l$bdb_libname... " >&6; }
16362 if eval \${$as_ac_Lib+:} false; then :
16363 $as_echo_n "(cached) " >&6
16365 ac_check_lib_save_LIBS=$LIBS
16366 LIBS="-l$bdb_libname $LIBS"
16367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16368 /* end confdefs.h. */
16370 /* Override any GCC internal prototype to avoid an error.
16371 Use char because int might match the return type of a GCC
16372 builtin and then its argument prototype would still apply. */
16385 if ac_fn_c_try_link "$LINENO"; then :
16386 eval "$as_ac_Lib=yes"
16388 eval "$as_ac_Lib=no"
16390 rm -f core conftest.err conftest.$ac_objext \
16391 conftest$ac_exeext conftest.$ac_ext
16392 LIBS=$ac_check_lib_save_LIBS
16394 eval ac_res=\$$as_ac_Lib
16395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16396 $as_echo "$ac_res" >&6; }
16397 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
16412 # If we found it, no need to search any more.
16413 if test "$result" = "yes"; then
16418 test "$found" != "not" && break
16420 test "$found" != "not" && break
16423 # Restore the original values of the flags we tweak.
16424 LDFLAGS="$apu_check_lib_save_ldflags"
16425 CPPFLAGS="$apu_check_lib_save_cppflags"
16432 apu_db_header=$bdb_header
16433 apu_db_lib=$bdb_libname
16437 header="`echo $found | sed -e 's/:.*$//'`"
16438 lib="`echo $found | sed -e 's/^.*://'`"
16441 if test "x$APRUTIL_INCLUDES" = "x"; then
16442 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$header\""
16443 APRUTIL_INCLUDES="-I$header"
16445 apr_addto_bugger="-I$header"
16446 for i in $apr_addto_bugger; do
16447 apr_addto_duplicate="0"
16448 for j in $APRUTIL_INCLUDES; do
16449 if test "x$i" = "x$j"; then
16450 apr_addto_duplicate="1"
16454 if test $apr_addto_duplicate = "0"; then
16455 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES"
16456 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
16462 if test "x$APRUTIL_LDFLAGS" = "x"; then
16463 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$lib\""
16464 APRUTIL_LDFLAGS="-L$lib"
16466 apr_addto_bugger="-L$lib"
16467 for i in $apr_addto_bugger; do
16468 apr_addto_duplicate="0"
16469 for j in $APRUTIL_LDFLAGS; do
16470 if test "x$i" = "x$j"; then
16471 apr_addto_duplicate="1"
16475 if test $apr_addto_duplicate = "0"; then
16476 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS"
16477 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
16482 apu_db_header=$bdb_header
16483 apu_db_lib=$bdb_libname
16488 if test "x$APRUTIL_INCLUDES" = "x"; then
16489 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$found/include\""
16490 APRUTIL_INCLUDES="-I$found/include"
16492 apr_addto_bugger="-I$found/include"
16493 for i in $apr_addto_bugger; do
16494 apr_addto_duplicate="0"
16495 for j in $APRUTIL_INCLUDES; do
16496 if test "x$i" = "x$j"; then
16497 apr_addto_duplicate="1"
16501 if test $apr_addto_duplicate = "0"; then
16502 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES"
16503 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
16509 if test "x$APRUTIL_LDFLAGS" = "x"; then
16510 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$found/lib\""
16511 APRUTIL_LDFLAGS="-L$found/lib"
16513 apr_addto_bugger="-L$found/lib"
16514 for i in $apr_addto_bugger; do
16515 apr_addto_duplicate="0"
16516 for j in $APRUTIL_LDFLAGS; do
16517 if test "x$i" = "x$j"; then
16518 apr_addto_duplicate="1"
16522 if test $apr_addto_duplicate = "0"; then
16523 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS"
16524 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
16529 apu_db_header=$bdb_header
16530 apu_db_lib=$bdb_libname
16535 if test "$apu_have_db" = "1"; then
16536 apu_db_version=${db_major}
16539 if test "$apu_have_db" = "1"; then
16542 db_minor=`expr $db_minor - 1`
16544 if test "$apu_db_version" != "$db_major"; then
16545 as_fn_error $? "Berkeley db$db_major not found" "$LINENO" 5
16550 all_places="$check_places"
16552 # Start version search at version 6.9
16554 while [ $db_version -ge 40 ]
16556 db_major=`echo $db_version | sed -e 's/.$//'`
16557 db_minor=`echo $db_version | sed -e 's/.//'`
16559 places="$all_places"
16560 db_major="$db_major"
16561 db_minor="$db_minor"
16562 if test -z "$places"; then
16563 places="std /usr/local /usr/local/BerkeleyDB.${db_major}.${db_minor} /boot/home/config"
16566 bdb_version="${db_major}"
16567 if test ""${db_minor}"" != "-1"; then
16568 bdb_version="$bdb_version."${db_minor}""
16569 if test ""-1"" != "-1"; then
16570 bdb_version="$bdb_version."-1""
16573 bdb_places="$places"
16574 bdb_default_search_headers="db${db_major}${db_minor}/db.h db${db_major}/db.h db.h"
16575 bdb_default_search_lib_names="db-${db_major}.${db_minor} db${db_major}-${db_major}.${db_minor} db${db_major}${db_minor} db-${db_major} db${db_major} db"
16580 # Save the original values of the flags we tweak.
16581 apu_check_lib_save_libs="$LIBS"
16582 apu_check_lib_save_ldflags="$LDFLAGS"
16583 apu_check_lib_save_cppflags="$CPPFLAGS"
16585 # The variable `found' is the prefix under which we've found
16586 # Berkeley DB, or `not' if we haven't found it anywhere yet.
16588 for bdb_place in $bdb_places; do
16590 LDFLAGS="$apu_check_lib_save_ldflags"
16591 CPPFLAGS="$apu_check_lib_save_cppflags"
16592 case "$bdb_place" in
16594 description="the standard places"
16597 header="`echo $bdb_place | sed -e 's/:.*$//'`"
16598 lib="`echo $bdb_place | sed -e 's/^.*://'`"
16599 CPPFLAGS="$CPPFLAGS -I$header"
16600 LDFLAGS="$LDFLAGS -L$lib"
16601 description="$header and $lib"
16604 if test -d $bdb_place; then
16605 LDFLAGS="$LDFLAGS -L$bdb_place/lib"
16606 CPPFLAGS="$CPPFLAGS -I$bdb_place/include"
16608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB $bdb_version in $bdb_place" >&5
16609 $as_echo_n "checking for Berkeley DB $bdb_version in $bdb_place... " >&6; }
16610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: directory not found" >&5
16611 $as_echo "directory not found" >&6; }
16614 description="$bdb_place"
16618 # Since there is no AC_MSG_NOTICE in autoconf 2.13, we use this
16619 # trick to display a message instead.
16620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB $bdb_version in $description" >&5
16621 $as_echo_n "checking for Berkeley DB $bdb_version in $description... " >&6; }
16622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
16625 for bdb_libname in $bdb_default_search_lib_names; do
16626 for bdb_header in $bdb_default_search_headers; do
16627 # Clear the header cache variable for each location
16629 cache_id="`echo ac_cv_header_${bdb_header} \
16630 | sed -e 's/[^a-zA-Z0-9_]/_/g'`"
16633 as_ac_Header=`$as_echo "ac_cv_header_$bdb_header" | $as_tr_sh`
16634 ac_fn_c_check_header_mongrel "$LINENO" "$bdb_header" "$as_ac_Header" "$ac_includes_default"
16635 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16637 if test ""${db_major}"" = "3" -o ""${db_major}"" = "4" -o ""${db_major}"" = "5" -o ""${db_major}"" = "6"; then
16638 # We generate a separate cache variable for each prefix and libname
16639 # we search under. That way, we avoid caching information that
16640 # changes if the user runs `configure' with a different set of
16643 cache_id="`echo apu_cv_check_berkeley_db_"${db_major}"_"${db_minor}"_"-1"_${bdb_header}_${bdb_libname}_in_${bdb_place} \
16644 | sed -e 's/[^a-zA-Z0-9_]/_/g'`"
16647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -l$bdb_libname" >&5
16648 $as_echo_n "checking for -l$bdb_libname... " >&6; }
16649 if eval \${$cache_id+:} false; then :
16650 $as_echo_n "(cached) " >&6
16654 apu_try_berkeley_db_save_libs="$LIBS"
16656 apu_check_berkeley_db_major="${db_major}"
16657 apu_check_berkeley_db_minor="${db_minor}"
16658 apu_check_berkeley_db_patch="-1"
16659 apu_try_berkeley_db_header=$bdb_header
16660 apu_try_berkeley_db_libname=$bdb_libname
16662 LIBS="$LIBS -l$apu_try_berkeley_db_libname"
16663 if test "$cross_compiling" = yes; then :
16664 apu_try_berkeley_db=yes
16667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16668 /* end confdefs.h. */
16670 #include <stdlib.h>
16672 #include <$apu_try_berkeley_db_header>
16675 int major, minor, patch;
16677 db_version(&major, &minor, &patch);
16679 /* Sanity check: ensure that db.h constants actually match the db library */
16680 if (major != DB_VERSION_MAJOR
16681 || minor != DB_VERSION_MINOR
16682 || patch != DB_VERSION_PATCH)
16685 /* Run-time check: ensure the library claims to be the correct version. */
16687 if ($apu_check_berkeley_db_major != -1) {
16688 if (major < $apu_check_berkeley_db_major)
16690 if (major > $apu_check_berkeley_db_major)
16694 if ($apu_check_berkeley_db_minor != -1) {
16695 if (minor < $apu_check_berkeley_db_minor)
16697 if (minor > $apu_check_berkeley_db_minor)
16701 if ($apu_check_berkeley_db_patch == -1
16702 || patch >= $apu_check_berkeley_db_patch)
16709 if ac_fn_c_try_run "$LINENO"; then :
16710 apu_try_berkeley_db=yes
16712 apu_try_berkeley_db=no
16714 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16715 conftest.$ac_objext conftest.beam conftest.$ac_ext
16719 LIBS="$apu_try_berkeley_db_save_libs"
16722 eval "$cache_id=$apu_try_berkeley_db"
16726 result="`eval echo '$'$cache_id`"
16727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
16728 $as_echo "$result" >&6; }
16729 elif test ""${db_major}"" = "1"; then
16730 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_dbopen" | $as_tr_sh`
16731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbopen in -l$bdb_libname" >&5
16732 $as_echo_n "checking for dbopen in -l$bdb_libname... " >&6; }
16733 if eval \${$as_ac_Lib+:} false; then :
16734 $as_echo_n "(cached) " >&6
16736 ac_check_lib_save_LIBS=$LIBS
16737 LIBS="-l$bdb_libname $LIBS"
16738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16739 /* end confdefs.h. */
16741 /* Override any GCC internal prototype to avoid an error.
16742 Use char because int might match the return type of a GCC
16743 builtin and then its argument prototype would still apply. */
16756 if ac_fn_c_try_link "$LINENO"; then :
16757 eval "$as_ac_Lib=yes"
16759 eval "$as_ac_Lib=no"
16761 rm -f core conftest.err conftest.$ac_objext \
16762 conftest$ac_exeext conftest.$ac_ext
16763 LIBS=$ac_check_lib_save_LIBS
16765 eval ac_res=\$$as_ac_Lib
16766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16767 $as_echo "$ac_res" >&6; }
16768 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
16775 elif test ""${db_major}"" = "2"; then
16776 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_db_open" | $as_tr_sh`
16777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_open in -l$bdb_libname" >&5
16778 $as_echo_n "checking for db_open in -l$bdb_libname... " >&6; }
16779 if eval \${$as_ac_Lib+:} false; then :
16780 $as_echo_n "(cached) " >&6
16782 ac_check_lib_save_LIBS=$LIBS
16783 LIBS="-l$bdb_libname $LIBS"
16784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16785 /* end confdefs.h. */
16787 /* Override any GCC internal prototype to avoid an error.
16788 Use char because int might match the return type of a GCC
16789 builtin and then its argument prototype would still apply. */
16802 if ac_fn_c_try_link "$LINENO"; then :
16803 eval "$as_ac_Lib=yes"
16805 eval "$as_ac_Lib=no"
16807 rm -f core conftest.err conftest.$ac_objext \
16808 conftest$ac_exeext conftest.$ac_ext
16809 LIBS=$ac_check_lib_save_LIBS
16811 eval ac_res=\$$as_ac_Lib
16812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16813 $as_echo "$ac_res" >&6; }
16814 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
16829 # If we found it, no need to search any more.
16830 if test "$result" = "yes"; then
16835 test "$found" != "not" && break
16837 test "$found" != "not" && break
16840 # Restore the original values of the flags we tweak.
16841 LDFLAGS="$apu_check_lib_save_ldflags"
16842 CPPFLAGS="$apu_check_lib_save_cppflags"
16849 apu_db_header=$bdb_header
16850 apu_db_lib=$bdb_libname
16854 header="`echo $found | sed -e 's/:.*$//'`"
16855 lib="`echo $found | sed -e 's/^.*://'`"
16858 if test "x$APRUTIL_INCLUDES" = "x"; then
16859 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$header\""
16860 APRUTIL_INCLUDES="-I$header"
16862 apr_addto_bugger="-I$header"
16863 for i in $apr_addto_bugger; do
16864 apr_addto_duplicate="0"
16865 for j in $APRUTIL_INCLUDES; do
16866 if test "x$i" = "x$j"; then
16867 apr_addto_duplicate="1"
16871 if test $apr_addto_duplicate = "0"; then
16872 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES"
16873 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
16879 if test "x$APRUTIL_LDFLAGS" = "x"; then
16880 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$lib\""
16881 APRUTIL_LDFLAGS="-L$lib"
16883 apr_addto_bugger="-L$lib"
16884 for i in $apr_addto_bugger; do
16885 apr_addto_duplicate="0"
16886 for j in $APRUTIL_LDFLAGS; do
16887 if test "x$i" = "x$j"; then
16888 apr_addto_duplicate="1"
16892 if test $apr_addto_duplicate = "0"; then
16893 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS"
16894 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
16899 apu_db_header=$bdb_header
16900 apu_db_lib=$bdb_libname
16905 if test "x$APRUTIL_INCLUDES" = "x"; then
16906 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$found/include\""
16907 APRUTIL_INCLUDES="-I$found/include"
16909 apr_addto_bugger="-I$found/include"
16910 for i in $apr_addto_bugger; do
16911 apr_addto_duplicate="0"
16912 for j in $APRUTIL_INCLUDES; do
16913 if test "x$i" = "x$j"; then
16914 apr_addto_duplicate="1"
16918 if test $apr_addto_duplicate = "0"; then
16919 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES"
16920 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
16926 if test "x$APRUTIL_LDFLAGS" = "x"; then
16927 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$found/lib\""
16928 APRUTIL_LDFLAGS="-L$found/lib"
16930 apr_addto_bugger="-L$found/lib"
16931 for i in $apr_addto_bugger; do
16932 apr_addto_duplicate="0"
16933 for j in $APRUTIL_LDFLAGS; do
16934 if test "x$i" = "x$j"; then
16935 apr_addto_duplicate="1"
16939 if test $apr_addto_duplicate = "0"; then
16940 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS"
16941 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
16946 apu_db_header=$bdb_header
16947 apu_db_lib=$bdb_libname
16952 if test "$apu_have_db" = "1"; then
16953 apu_db_version=${db_major}
16956 if test "$apu_have_db" = "1"; then
16959 db_version=`expr $db_version - 1`
16961 if test "$apu_have_db" = "0"; then
16963 places="$all_places"
16964 if test -z "$places"; then
16969 if test "-1" != "-1"; then
16970 bdb_version="$bdb_version.-1"
16971 if test "-1" != "-1"; then
16972 bdb_version="$bdb_version.-1"
16975 bdb_places="$places"
16976 bdb_default_search_headers="db3/db.h db.h"
16977 bdb_default_search_lib_names="db3 db"
16982 # Save the original values of the flags we tweak.
16983 apu_check_lib_save_libs="$LIBS"
16984 apu_check_lib_save_ldflags="$LDFLAGS"
16985 apu_check_lib_save_cppflags="$CPPFLAGS"
16987 # The variable `found' is the prefix under which we've found
16988 # Berkeley DB, or `not' if we haven't found it anywhere yet.
16990 for bdb_place in $bdb_places; do
16992 LDFLAGS="$apu_check_lib_save_ldflags"
16993 CPPFLAGS="$apu_check_lib_save_cppflags"
16994 case "$bdb_place" in
16996 description="the standard places"
16999 header="`echo $bdb_place | sed -e 's/:.*$//'`"
17000 lib="`echo $bdb_place | sed -e 's/^.*://'`"
17001 CPPFLAGS="$CPPFLAGS -I$header"
17002 LDFLAGS="$LDFLAGS -L$lib"
17003 description="$header and $lib"
17006 if test -d $bdb_place; then
17007 LDFLAGS="$LDFLAGS -L$bdb_place/lib"
17008 CPPFLAGS="$CPPFLAGS -I$bdb_place/include"
17010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB $bdb_version in $bdb_place" >&5
17011 $as_echo_n "checking for Berkeley DB $bdb_version in $bdb_place... " >&6; }
17012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: directory not found" >&5
17013 $as_echo "directory not found" >&6; }
17016 description="$bdb_place"
17020 # Since there is no AC_MSG_NOTICE in autoconf 2.13, we use this
17021 # trick to display a message instead.
17022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB $bdb_version in $description" >&5
17023 $as_echo_n "checking for Berkeley DB $bdb_version in $description... " >&6; }
17024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
17027 for bdb_libname in $bdb_default_search_lib_names; do
17028 for bdb_header in $bdb_default_search_headers; do
17029 # Clear the header cache variable for each location
17031 cache_id="`echo ac_cv_header_${bdb_header} \
17032 | sed -e 's/[^a-zA-Z0-9_]/_/g'`"
17035 as_ac_Header=`$as_echo "ac_cv_header_$bdb_header" | $as_tr_sh`
17036 ac_fn_c_check_header_mongrel "$LINENO" "$bdb_header" "$as_ac_Header" "$ac_includes_default"
17037 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17039 if test "3" = "3" -o "3" = "4" -o "3" = "5" -o "3" = "6"; then
17040 # We generate a separate cache variable for each prefix and libname
17041 # we search under. That way, we avoid caching information that
17042 # changes if the user runs `configure' with a different set of
17045 cache_id="`echo apu_cv_check_berkeley_db_3_-1_-1_${bdb_header}_${bdb_libname}_in_${bdb_place} \
17046 | sed -e 's/[^a-zA-Z0-9_]/_/g'`"
17049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -l$bdb_libname" >&5
17050 $as_echo_n "checking for -l$bdb_libname... " >&6; }
17051 if eval \${$cache_id+:} false; then :
17052 $as_echo_n "(cached) " >&6
17056 apu_try_berkeley_db_save_libs="$LIBS"
17058 apu_check_berkeley_db_major=3
17059 apu_check_berkeley_db_minor=-1
17060 apu_check_berkeley_db_patch=-1
17061 apu_try_berkeley_db_header=$bdb_header
17062 apu_try_berkeley_db_libname=$bdb_libname
17064 LIBS="$LIBS -l$apu_try_berkeley_db_libname"
17065 if test "$cross_compiling" = yes; then :
17066 apu_try_berkeley_db=yes
17069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17070 /* end confdefs.h. */
17072 #include <stdlib.h>
17074 #include <$apu_try_berkeley_db_header>
17077 int major, minor, patch;
17079 db_version(&major, &minor, &patch);
17081 /* Sanity check: ensure that db.h constants actually match the db library */
17082 if (major != DB_VERSION_MAJOR
17083 || minor != DB_VERSION_MINOR
17084 || patch != DB_VERSION_PATCH)
17087 /* Run-time check: ensure the library claims to be the correct version. */
17089 if ($apu_check_berkeley_db_major != -1) {
17090 if (major < $apu_check_berkeley_db_major)
17092 if (major > $apu_check_berkeley_db_major)
17096 if ($apu_check_berkeley_db_minor != -1) {
17097 if (minor < $apu_check_berkeley_db_minor)
17099 if (minor > $apu_check_berkeley_db_minor)
17103 if ($apu_check_berkeley_db_patch == -1
17104 || patch >= $apu_check_berkeley_db_patch)
17111 if ac_fn_c_try_run "$LINENO"; then :
17112 apu_try_berkeley_db=yes
17114 apu_try_berkeley_db=no
17116 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17117 conftest.$ac_objext conftest.beam conftest.$ac_ext
17121 LIBS="$apu_try_berkeley_db_save_libs"
17124 eval "$cache_id=$apu_try_berkeley_db"
17128 result="`eval echo '$'$cache_id`"
17129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
17130 $as_echo "$result" >&6; }
17131 elif test "3" = "1"; then
17132 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_dbopen" | $as_tr_sh`
17133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbopen in -l$bdb_libname" >&5
17134 $as_echo_n "checking for dbopen in -l$bdb_libname... " >&6; }
17135 if eval \${$as_ac_Lib+:} false; then :
17136 $as_echo_n "(cached) " >&6
17138 ac_check_lib_save_LIBS=$LIBS
17139 LIBS="-l$bdb_libname $LIBS"
17140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17141 /* end confdefs.h. */
17143 /* Override any GCC internal prototype to avoid an error.
17144 Use char because int might match the return type of a GCC
17145 builtin and then its argument prototype would still apply. */
17158 if ac_fn_c_try_link "$LINENO"; then :
17159 eval "$as_ac_Lib=yes"
17161 eval "$as_ac_Lib=no"
17163 rm -f core conftest.err conftest.$ac_objext \
17164 conftest$ac_exeext conftest.$ac_ext
17165 LIBS=$ac_check_lib_save_LIBS
17167 eval ac_res=\$$as_ac_Lib
17168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17169 $as_echo "$ac_res" >&6; }
17170 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
17177 elif test "3" = "2"; then
17178 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_db_open" | $as_tr_sh`
17179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_open in -l$bdb_libname" >&5
17180 $as_echo_n "checking for db_open in -l$bdb_libname... " >&6; }
17181 if eval \${$as_ac_Lib+:} false; then :
17182 $as_echo_n "(cached) " >&6
17184 ac_check_lib_save_LIBS=$LIBS
17185 LIBS="-l$bdb_libname $LIBS"
17186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17187 /* end confdefs.h. */
17189 /* Override any GCC internal prototype to avoid an error.
17190 Use char because int might match the return type of a GCC
17191 builtin and then its argument prototype would still apply. */
17204 if ac_fn_c_try_link "$LINENO"; then :
17205 eval "$as_ac_Lib=yes"
17207 eval "$as_ac_Lib=no"
17209 rm -f core conftest.err conftest.$ac_objext \
17210 conftest$ac_exeext conftest.$ac_ext
17211 LIBS=$ac_check_lib_save_LIBS
17213 eval ac_res=\$$as_ac_Lib
17214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17215 $as_echo "$ac_res" >&6; }
17216 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
17231 # If we found it, no need to search any more.
17232 if test "$result" = "yes"; then
17237 test "$found" != "not" && break
17239 test "$found" != "not" && break
17242 # Restore the original values of the flags we tweak.
17243 LDFLAGS="$apu_check_lib_save_ldflags"
17244 CPPFLAGS="$apu_check_lib_save_cppflags"
17251 apu_db_header=$bdb_header
17252 apu_db_lib=$bdb_libname
17256 header="`echo $found | sed -e 's/:.*$//'`"
17257 lib="`echo $found | sed -e 's/^.*://'`"
17260 if test "x$APRUTIL_INCLUDES" = "x"; then
17261 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$header\""
17262 APRUTIL_INCLUDES="-I$header"
17264 apr_addto_bugger="-I$header"
17265 for i in $apr_addto_bugger; do
17266 apr_addto_duplicate="0"
17267 for j in $APRUTIL_INCLUDES; do
17268 if test "x$i" = "x$j"; then
17269 apr_addto_duplicate="1"
17273 if test $apr_addto_duplicate = "0"; then
17274 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES"
17275 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
17281 if test "x$APRUTIL_LDFLAGS" = "x"; then
17282 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$lib\""
17283 APRUTIL_LDFLAGS="-L$lib"
17285 apr_addto_bugger="-L$lib"
17286 for i in $apr_addto_bugger; do
17287 apr_addto_duplicate="0"
17288 for j in $APRUTIL_LDFLAGS; do
17289 if test "x$i" = "x$j"; then
17290 apr_addto_duplicate="1"
17294 if test $apr_addto_duplicate = "0"; then
17295 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS"
17296 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
17301 apu_db_header=$bdb_header
17302 apu_db_lib=$bdb_libname
17307 if test "x$APRUTIL_INCLUDES" = "x"; then
17308 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$found/include\""
17309 APRUTIL_INCLUDES="-I$found/include"
17311 apr_addto_bugger="-I$found/include"
17312 for i in $apr_addto_bugger; do
17313 apr_addto_duplicate="0"
17314 for j in $APRUTIL_INCLUDES; do
17315 if test "x$i" = "x$j"; then
17316 apr_addto_duplicate="1"
17320 if test $apr_addto_duplicate = "0"; then
17321 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES"
17322 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
17328 if test "x$APRUTIL_LDFLAGS" = "x"; then
17329 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$found/lib\""
17330 APRUTIL_LDFLAGS="-L$found/lib"
17332 apr_addto_bugger="-L$found/lib"
17333 for i in $apr_addto_bugger; do
17334 apr_addto_duplicate="0"
17335 for j in $APRUTIL_LDFLAGS; do
17336 if test "x$i" = "x$j"; then
17337 apr_addto_duplicate="1"
17341 if test $apr_addto_duplicate = "0"; then
17342 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS"
17343 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
17348 apu_db_header=$bdb_header
17349 apu_db_lib=$bdb_libname
17354 if test "$apu_have_db" = "1"; then
17359 if test "$apu_have_db" = "0"; then
17361 places="$all_places"
17362 if test -z "$places"; then
17367 if test "-1" != "-1"; then
17368 bdb_version="$bdb_version.-1"
17369 if test "-1" != "-1"; then
17370 bdb_version="$bdb_version.-1"
17373 bdb_places="$places"
17374 bdb_default_search_headers="db2/db.h db.h"
17375 bdb_default_search_lib_names="db2 db"
17380 # Save the original values of the flags we tweak.
17381 apu_check_lib_save_libs="$LIBS"
17382 apu_check_lib_save_ldflags="$LDFLAGS"
17383 apu_check_lib_save_cppflags="$CPPFLAGS"
17385 # The variable `found' is the prefix under which we've found
17386 # Berkeley DB, or `not' if we haven't found it anywhere yet.
17388 for bdb_place in $bdb_places; do
17390 LDFLAGS="$apu_check_lib_save_ldflags"
17391 CPPFLAGS="$apu_check_lib_save_cppflags"
17392 case "$bdb_place" in
17394 description="the standard places"
17397 header="`echo $bdb_place | sed -e 's/:.*$//'`"
17398 lib="`echo $bdb_place | sed -e 's/^.*://'`"
17399 CPPFLAGS="$CPPFLAGS -I$header"
17400 LDFLAGS="$LDFLAGS -L$lib"
17401 description="$header and $lib"
17404 if test -d $bdb_place; then
17405 LDFLAGS="$LDFLAGS -L$bdb_place/lib"
17406 CPPFLAGS="$CPPFLAGS -I$bdb_place/include"
17408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB $bdb_version in $bdb_place" >&5
17409 $as_echo_n "checking for Berkeley DB $bdb_version in $bdb_place... " >&6; }
17410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: directory not found" >&5
17411 $as_echo "directory not found" >&6; }
17414 description="$bdb_place"
17418 # Since there is no AC_MSG_NOTICE in autoconf 2.13, we use this
17419 # trick to display a message instead.
17420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB $bdb_version in $description" >&5
17421 $as_echo_n "checking for Berkeley DB $bdb_version in $description... " >&6; }
17422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
17425 for bdb_libname in $bdb_default_search_lib_names; do
17426 for bdb_header in $bdb_default_search_headers; do
17427 # Clear the header cache variable for each location
17429 cache_id="`echo ac_cv_header_${bdb_header} \
17430 | sed -e 's/[^a-zA-Z0-9_]/_/g'`"
17433 as_ac_Header=`$as_echo "ac_cv_header_$bdb_header" | $as_tr_sh`
17434 ac_fn_c_check_header_mongrel "$LINENO" "$bdb_header" "$as_ac_Header" "$ac_includes_default"
17435 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17437 if test "2" = "3" -o "2" = "4" -o "2" = "5" -o "2" = "6"; then
17438 # We generate a separate cache variable for each prefix and libname
17439 # we search under. That way, we avoid caching information that
17440 # changes if the user runs `configure' with a different set of
17443 cache_id="`echo apu_cv_check_berkeley_db_2_-1_-1_${bdb_header}_${bdb_libname}_in_${bdb_place} \
17444 | sed -e 's/[^a-zA-Z0-9_]/_/g'`"
17447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -l$bdb_libname" >&5
17448 $as_echo_n "checking for -l$bdb_libname... " >&6; }
17449 if eval \${$cache_id+:} false; then :
17450 $as_echo_n "(cached) " >&6
17454 apu_try_berkeley_db_save_libs="$LIBS"
17456 apu_check_berkeley_db_major=2
17457 apu_check_berkeley_db_minor=-1
17458 apu_check_berkeley_db_patch=-1
17459 apu_try_berkeley_db_header=$bdb_header
17460 apu_try_berkeley_db_libname=$bdb_libname
17462 LIBS="$LIBS -l$apu_try_berkeley_db_libname"
17463 if test "$cross_compiling" = yes; then :
17464 apu_try_berkeley_db=yes
17467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17468 /* end confdefs.h. */
17470 #include <stdlib.h>
17472 #include <$apu_try_berkeley_db_header>
17475 int major, minor, patch;
17477 db_version(&major, &minor, &patch);
17479 /* Sanity check: ensure that db.h constants actually match the db library */
17480 if (major != DB_VERSION_MAJOR
17481 || minor != DB_VERSION_MINOR
17482 || patch != DB_VERSION_PATCH)
17485 /* Run-time check: ensure the library claims to be the correct version. */
17487 if ($apu_check_berkeley_db_major != -1) {
17488 if (major < $apu_check_berkeley_db_major)
17490 if (major > $apu_check_berkeley_db_major)
17494 if ($apu_check_berkeley_db_minor != -1) {
17495 if (minor < $apu_check_berkeley_db_minor)
17497 if (minor > $apu_check_berkeley_db_minor)
17501 if ($apu_check_berkeley_db_patch == -1
17502 || patch >= $apu_check_berkeley_db_patch)
17509 if ac_fn_c_try_run "$LINENO"; then :
17510 apu_try_berkeley_db=yes
17512 apu_try_berkeley_db=no
17514 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17515 conftest.$ac_objext conftest.beam conftest.$ac_ext
17519 LIBS="$apu_try_berkeley_db_save_libs"
17522 eval "$cache_id=$apu_try_berkeley_db"
17526 result="`eval echo '$'$cache_id`"
17527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
17528 $as_echo "$result" >&6; }
17529 elif test "2" = "1"; then
17530 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_dbopen" | $as_tr_sh`
17531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbopen in -l$bdb_libname" >&5
17532 $as_echo_n "checking for dbopen in -l$bdb_libname... " >&6; }
17533 if eval \${$as_ac_Lib+:} false; then :
17534 $as_echo_n "(cached) " >&6
17536 ac_check_lib_save_LIBS=$LIBS
17537 LIBS="-l$bdb_libname $LIBS"
17538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17539 /* end confdefs.h. */
17541 /* Override any GCC internal prototype to avoid an error.
17542 Use char because int might match the return type of a GCC
17543 builtin and then its argument prototype would still apply. */
17556 if ac_fn_c_try_link "$LINENO"; then :
17557 eval "$as_ac_Lib=yes"
17559 eval "$as_ac_Lib=no"
17561 rm -f core conftest.err conftest.$ac_objext \
17562 conftest$ac_exeext conftest.$ac_ext
17563 LIBS=$ac_check_lib_save_LIBS
17565 eval ac_res=\$$as_ac_Lib
17566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17567 $as_echo "$ac_res" >&6; }
17568 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
17575 elif test "2" = "2"; then
17576 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_db_open" | $as_tr_sh`
17577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_open in -l$bdb_libname" >&5
17578 $as_echo_n "checking for db_open in -l$bdb_libname... " >&6; }
17579 if eval \${$as_ac_Lib+:} false; then :
17580 $as_echo_n "(cached) " >&6
17582 ac_check_lib_save_LIBS=$LIBS
17583 LIBS="-l$bdb_libname $LIBS"
17584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17585 /* end confdefs.h. */
17587 /* Override any GCC internal prototype to avoid an error.
17588 Use char because int might match the return type of a GCC
17589 builtin and then its argument prototype would still apply. */
17602 if ac_fn_c_try_link "$LINENO"; then :
17603 eval "$as_ac_Lib=yes"
17605 eval "$as_ac_Lib=no"
17607 rm -f core conftest.err conftest.$ac_objext \
17608 conftest$ac_exeext conftest.$ac_ext
17609 LIBS=$ac_check_lib_save_LIBS
17611 eval ac_res=\$$as_ac_Lib
17612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17613 $as_echo "$ac_res" >&6; }
17614 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
17629 # If we found it, no need to search any more.
17630 if test "$result" = "yes"; then
17635 test "$found" != "not" && break
17637 test "$found" != "not" && break
17640 # Restore the original values of the flags we tweak.
17641 LDFLAGS="$apu_check_lib_save_ldflags"
17642 CPPFLAGS="$apu_check_lib_save_cppflags"
17649 apu_db_header=$bdb_header
17650 apu_db_lib=$bdb_libname
17654 header="`echo $found | sed -e 's/:.*$//'`"
17655 lib="`echo $found | sed -e 's/^.*://'`"
17658 if test "x$APRUTIL_INCLUDES" = "x"; then
17659 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$header\""
17660 APRUTIL_INCLUDES="-I$header"
17662 apr_addto_bugger="-I$header"
17663 for i in $apr_addto_bugger; do
17664 apr_addto_duplicate="0"
17665 for j in $APRUTIL_INCLUDES; do
17666 if test "x$i" = "x$j"; then
17667 apr_addto_duplicate="1"
17671 if test $apr_addto_duplicate = "0"; then
17672 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES"
17673 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
17679 if test "x$APRUTIL_LDFLAGS" = "x"; then
17680 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$lib\""
17681 APRUTIL_LDFLAGS="-L$lib"
17683 apr_addto_bugger="-L$lib"
17684 for i in $apr_addto_bugger; do
17685 apr_addto_duplicate="0"
17686 for j in $APRUTIL_LDFLAGS; do
17687 if test "x$i" = "x$j"; then
17688 apr_addto_duplicate="1"
17692 if test $apr_addto_duplicate = "0"; then
17693 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS"
17694 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
17699 apu_db_header=$bdb_header
17700 apu_db_lib=$bdb_libname
17705 if test "x$APRUTIL_INCLUDES" = "x"; then
17706 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$found/include\""
17707 APRUTIL_INCLUDES="-I$found/include"
17709 apr_addto_bugger="-I$found/include"
17710 for i in $apr_addto_bugger; do
17711 apr_addto_duplicate="0"
17712 for j in $APRUTIL_INCLUDES; do
17713 if test "x$i" = "x$j"; then
17714 apr_addto_duplicate="1"
17718 if test $apr_addto_duplicate = "0"; then
17719 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES"
17720 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
17726 if test "x$APRUTIL_LDFLAGS" = "x"; then
17727 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$found/lib\""
17728 APRUTIL_LDFLAGS="-L$found/lib"
17730 apr_addto_bugger="-L$found/lib"
17731 for i in $apr_addto_bugger; do
17732 apr_addto_duplicate="0"
17733 for j in $APRUTIL_LDFLAGS; do
17734 if test "x$i" = "x$j"; then
17735 apr_addto_duplicate="1"
17739 if test $apr_addto_duplicate = "0"; then
17740 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS"
17741 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
17746 apu_db_header=$bdb_header
17747 apu_db_lib=$bdb_libname
17752 if test "$apu_have_db" = "1"; then
17757 if test "$apu_have_db" = "0"; then
17759 places="$all_places"
17760 if test -z "$places"; then
17765 if test "0" != "-1"; then
17766 bdb_version="$bdb_version.0"
17767 if test "0" != "-1"; then
17768 bdb_version="$bdb_version.0"
17771 bdb_places="$places"
17772 bdb_default_search_headers="db1/db.h db.h"
17773 bdb_default_search_lib_names="db1"
17778 # Save the original values of the flags we tweak.
17779 apu_check_lib_save_libs="$LIBS"
17780 apu_check_lib_save_ldflags="$LDFLAGS"
17781 apu_check_lib_save_cppflags="$CPPFLAGS"
17783 # The variable `found' is the prefix under which we've found
17784 # Berkeley DB, or `not' if we haven't found it anywhere yet.
17786 for bdb_place in $bdb_places; do
17788 LDFLAGS="$apu_check_lib_save_ldflags"
17789 CPPFLAGS="$apu_check_lib_save_cppflags"
17790 case "$bdb_place" in
17792 description="the standard places"
17795 header="`echo $bdb_place | sed -e 's/:.*$//'`"
17796 lib="`echo $bdb_place | sed -e 's/^.*://'`"
17797 CPPFLAGS="$CPPFLAGS -I$header"
17798 LDFLAGS="$LDFLAGS -L$lib"
17799 description="$header and $lib"
17802 if test -d $bdb_place; then
17803 LDFLAGS="$LDFLAGS -L$bdb_place/lib"
17804 CPPFLAGS="$CPPFLAGS -I$bdb_place/include"
17806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB $bdb_version in $bdb_place" >&5
17807 $as_echo_n "checking for Berkeley DB $bdb_version in $bdb_place... " >&6; }
17808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: directory not found" >&5
17809 $as_echo "directory not found" >&6; }
17812 description="$bdb_place"
17816 # Since there is no AC_MSG_NOTICE in autoconf 2.13, we use this
17817 # trick to display a message instead.
17818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB $bdb_version in $description" >&5
17819 $as_echo_n "checking for Berkeley DB $bdb_version in $description... " >&6; }
17820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
17823 for bdb_libname in $bdb_default_search_lib_names; do
17824 for bdb_header in $bdb_default_search_headers; do
17825 # Clear the header cache variable for each location
17827 cache_id="`echo ac_cv_header_${bdb_header} \
17828 | sed -e 's/[^a-zA-Z0-9_]/_/g'`"
17831 as_ac_Header=`$as_echo "ac_cv_header_$bdb_header" | $as_tr_sh`
17832 ac_fn_c_check_header_mongrel "$LINENO" "$bdb_header" "$as_ac_Header" "$ac_includes_default"
17833 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17835 if test "1" = "3" -o "1" = "4" -o "1" = "5" -o "1" = "6"; then
17836 # We generate a separate cache variable for each prefix and libname
17837 # we search under. That way, we avoid caching information that
17838 # changes if the user runs `configure' with a different set of
17841 cache_id="`echo apu_cv_check_berkeley_db_1_0_0_${bdb_header}_${bdb_libname}_in_${bdb_place} \
17842 | sed -e 's/[^a-zA-Z0-9_]/_/g'`"
17845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -l$bdb_libname" >&5
17846 $as_echo_n "checking for -l$bdb_libname... " >&6; }
17847 if eval \${$cache_id+:} false; then :
17848 $as_echo_n "(cached) " >&6
17852 apu_try_berkeley_db_save_libs="$LIBS"
17854 apu_check_berkeley_db_major=1
17855 apu_check_berkeley_db_minor=0
17856 apu_check_berkeley_db_patch=0
17857 apu_try_berkeley_db_header=$bdb_header
17858 apu_try_berkeley_db_libname=$bdb_libname
17860 LIBS="$LIBS -l$apu_try_berkeley_db_libname"
17861 if test "$cross_compiling" = yes; then :
17862 apu_try_berkeley_db=yes
17865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17866 /* end confdefs.h. */
17868 #include <stdlib.h>
17870 #include <$apu_try_berkeley_db_header>
17873 int major, minor, patch;
17875 db_version(&major, &minor, &patch);
17877 /* Sanity check: ensure that db.h constants actually match the db library */
17878 if (major != DB_VERSION_MAJOR
17879 || minor != DB_VERSION_MINOR
17880 || patch != DB_VERSION_PATCH)
17883 /* Run-time check: ensure the library claims to be the correct version. */
17885 if ($apu_check_berkeley_db_major != -1) {
17886 if (major < $apu_check_berkeley_db_major)
17888 if (major > $apu_check_berkeley_db_major)
17892 if ($apu_check_berkeley_db_minor != -1) {
17893 if (minor < $apu_check_berkeley_db_minor)
17895 if (minor > $apu_check_berkeley_db_minor)
17899 if ($apu_check_berkeley_db_patch == -1
17900 || patch >= $apu_check_berkeley_db_patch)
17907 if ac_fn_c_try_run "$LINENO"; then :
17908 apu_try_berkeley_db=yes
17910 apu_try_berkeley_db=no
17912 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17913 conftest.$ac_objext conftest.beam conftest.$ac_ext
17917 LIBS="$apu_try_berkeley_db_save_libs"
17920 eval "$cache_id=$apu_try_berkeley_db"
17924 result="`eval echo '$'$cache_id`"
17925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
17926 $as_echo "$result" >&6; }
17927 elif test "1" = "1"; then
17928 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_dbopen" | $as_tr_sh`
17929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbopen in -l$bdb_libname" >&5
17930 $as_echo_n "checking for dbopen in -l$bdb_libname... " >&6; }
17931 if eval \${$as_ac_Lib+:} false; then :
17932 $as_echo_n "(cached) " >&6
17934 ac_check_lib_save_LIBS=$LIBS
17935 LIBS="-l$bdb_libname $LIBS"
17936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17937 /* end confdefs.h. */
17939 /* Override any GCC internal prototype to avoid an error.
17940 Use char because int might match the return type of a GCC
17941 builtin and then its argument prototype would still apply. */
17954 if ac_fn_c_try_link "$LINENO"; then :
17955 eval "$as_ac_Lib=yes"
17957 eval "$as_ac_Lib=no"
17959 rm -f core conftest.err conftest.$ac_objext \
17960 conftest$ac_exeext conftest.$ac_ext
17961 LIBS=$ac_check_lib_save_LIBS
17963 eval ac_res=\$$as_ac_Lib
17964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17965 $as_echo "$ac_res" >&6; }
17966 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
17973 elif test "1" = "2"; then
17974 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_db_open" | $as_tr_sh`
17975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_open in -l$bdb_libname" >&5
17976 $as_echo_n "checking for db_open in -l$bdb_libname... " >&6; }
17977 if eval \${$as_ac_Lib+:} false; then :
17978 $as_echo_n "(cached) " >&6
17980 ac_check_lib_save_LIBS=$LIBS
17981 LIBS="-l$bdb_libname $LIBS"
17982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17983 /* end confdefs.h. */
17985 /* Override any GCC internal prototype to avoid an error.
17986 Use char because int might match the return type of a GCC
17987 builtin and then its argument prototype would still apply. */
18000 if ac_fn_c_try_link "$LINENO"; then :
18001 eval "$as_ac_Lib=yes"
18003 eval "$as_ac_Lib=no"
18005 rm -f core conftest.err conftest.$ac_objext \
18006 conftest$ac_exeext conftest.$ac_ext
18007 LIBS=$ac_check_lib_save_LIBS
18009 eval ac_res=\$$as_ac_Lib
18010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18011 $as_echo "$ac_res" >&6; }
18012 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
18027 # If we found it, no need to search any more.
18028 if test "$result" = "yes"; then
18033 test "$found" != "not" && break
18035 test "$found" != "not" && break
18038 # Restore the original values of the flags we tweak.
18039 LDFLAGS="$apu_check_lib_save_ldflags"
18040 CPPFLAGS="$apu_check_lib_save_cppflags"
18047 apu_db_header=$bdb_header
18048 apu_db_lib=$bdb_libname
18052 header="`echo $found | sed -e 's/:.*$//'`"
18053 lib="`echo $found | sed -e 's/^.*://'`"
18056 if test "x$APRUTIL_INCLUDES" = "x"; then
18057 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$header\""
18058 APRUTIL_INCLUDES="-I$header"
18060 apr_addto_bugger="-I$header"
18061 for i in $apr_addto_bugger; do
18062 apr_addto_duplicate="0"
18063 for j in $APRUTIL_INCLUDES; do
18064 if test "x$i" = "x$j"; then
18065 apr_addto_duplicate="1"
18069 if test $apr_addto_duplicate = "0"; then
18070 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES"
18071 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
18077 if test "x$APRUTIL_LDFLAGS" = "x"; then
18078 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$lib\""
18079 APRUTIL_LDFLAGS="-L$lib"
18081 apr_addto_bugger="-L$lib"
18082 for i in $apr_addto_bugger; do
18083 apr_addto_duplicate="0"
18084 for j in $APRUTIL_LDFLAGS; do
18085 if test "x$i" = "x$j"; then
18086 apr_addto_duplicate="1"
18090 if test $apr_addto_duplicate = "0"; then
18091 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS"
18092 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
18097 apu_db_header=$bdb_header
18098 apu_db_lib=$bdb_libname
18103 if test "x$APRUTIL_INCLUDES" = "x"; then
18104 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$found/include\""
18105 APRUTIL_INCLUDES="-I$found/include"
18107 apr_addto_bugger="-I$found/include"
18108 for i in $apr_addto_bugger; do
18109 apr_addto_duplicate="0"
18110 for j in $APRUTIL_INCLUDES; do
18111 if test "x$i" = "x$j"; then
18112 apr_addto_duplicate="1"
18116 if test $apr_addto_duplicate = "0"; then
18117 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES"
18118 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
18124 if test "x$APRUTIL_LDFLAGS" = "x"; then
18125 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$found/lib\""
18126 APRUTIL_LDFLAGS="-L$found/lib"
18128 apr_addto_bugger="-L$found/lib"
18129 for i in $apr_addto_bugger; do
18130 apr_addto_duplicate="0"
18131 for j in $APRUTIL_LDFLAGS; do
18132 if test "x$i" = "x$j"; then
18133 apr_addto_duplicate="1"
18137 if test $apr_addto_duplicate = "0"; then
18138 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS"
18139 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
18144 apu_db_header=$bdb_header
18145 apu_db_lib=$bdb_libname
18150 if test "$apu_have_db" = "1"; then
18155 if test "$apu_have_db" = "0"; then
18157 places="$all_places"
18158 if test -z "$places"; then
18163 if test "-1" != "-1"; then
18164 bdb_version="$bdb_version.-1"
18165 if test "-1" != "-1"; then
18166 bdb_version="$bdb_version.-1"
18169 bdb_places="$places"
18170 bdb_default_search_headers="db_185.h"
18171 bdb_default_search_lib_names="db"
18176 # Save the original values of the flags we tweak.
18177 apu_check_lib_save_libs="$LIBS"
18178 apu_check_lib_save_ldflags="$LDFLAGS"
18179 apu_check_lib_save_cppflags="$CPPFLAGS"
18181 # The variable `found' is the prefix under which we've found
18182 # Berkeley DB, or `not' if we haven't found it anywhere yet.
18184 for bdb_place in $bdb_places; do
18186 LDFLAGS="$apu_check_lib_save_ldflags"
18187 CPPFLAGS="$apu_check_lib_save_cppflags"
18188 case "$bdb_place" in
18190 description="the standard places"
18193 header="`echo $bdb_place | sed -e 's/:.*$//'`"
18194 lib="`echo $bdb_place | sed -e 's/^.*://'`"
18195 CPPFLAGS="$CPPFLAGS -I$header"
18196 LDFLAGS="$LDFLAGS -L$lib"
18197 description="$header and $lib"
18200 if test -d $bdb_place; then
18201 LDFLAGS="$LDFLAGS -L$bdb_place/lib"
18202 CPPFLAGS="$CPPFLAGS -I$bdb_place/include"
18204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB $bdb_version in $bdb_place" >&5
18205 $as_echo_n "checking for Berkeley DB $bdb_version in $bdb_place... " >&6; }
18206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: directory not found" >&5
18207 $as_echo "directory not found" >&6; }
18210 description="$bdb_place"
18214 # Since there is no AC_MSG_NOTICE in autoconf 2.13, we use this
18215 # trick to display a message instead.
18216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB $bdb_version in $description" >&5
18217 $as_echo_n "checking for Berkeley DB $bdb_version in $description... " >&6; }
18218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
18221 for bdb_libname in $bdb_default_search_lib_names; do
18222 for bdb_header in $bdb_default_search_headers; do
18223 # Clear the header cache variable for each location
18225 cache_id="`echo ac_cv_header_${bdb_header} \
18226 | sed -e 's/[^a-zA-Z0-9_]/_/g'`"
18229 as_ac_Header=`$as_echo "ac_cv_header_$bdb_header" | $as_tr_sh`
18230 ac_fn_c_check_header_mongrel "$LINENO" "$bdb_header" "$as_ac_Header" "$ac_includes_default"
18231 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18233 if test "1" = "3" -o "1" = "4" -o "1" = "5" -o "1" = "6"; then
18234 # We generate a separate cache variable for each prefix and libname
18235 # we search under. That way, we avoid caching information that
18236 # changes if the user runs `configure' with a different set of
18239 cache_id="`echo apu_cv_check_berkeley_db_1_-1_-1_${bdb_header}_${bdb_libname}_in_${bdb_place} \
18240 | sed -e 's/[^a-zA-Z0-9_]/_/g'`"
18243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -l$bdb_libname" >&5
18244 $as_echo_n "checking for -l$bdb_libname... " >&6; }
18245 if eval \${$cache_id+:} false; then :
18246 $as_echo_n "(cached) " >&6
18250 apu_try_berkeley_db_save_libs="$LIBS"
18252 apu_check_berkeley_db_major=1
18253 apu_check_berkeley_db_minor=-1
18254 apu_check_berkeley_db_patch=-1
18255 apu_try_berkeley_db_header=$bdb_header
18256 apu_try_berkeley_db_libname=$bdb_libname
18258 LIBS="$LIBS -l$apu_try_berkeley_db_libname"
18259 if test "$cross_compiling" = yes; then :
18260 apu_try_berkeley_db=yes
18263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18264 /* end confdefs.h. */
18266 #include <stdlib.h>
18268 #include <$apu_try_berkeley_db_header>
18271 int major, minor, patch;
18273 db_version(&major, &minor, &patch);
18275 /* Sanity check: ensure that db.h constants actually match the db library */
18276 if (major != DB_VERSION_MAJOR
18277 || minor != DB_VERSION_MINOR
18278 || patch != DB_VERSION_PATCH)
18281 /* Run-time check: ensure the library claims to be the correct version. */
18283 if ($apu_check_berkeley_db_major != -1) {
18284 if (major < $apu_check_berkeley_db_major)
18286 if (major > $apu_check_berkeley_db_major)
18290 if ($apu_check_berkeley_db_minor != -1) {
18291 if (minor < $apu_check_berkeley_db_minor)
18293 if (minor > $apu_check_berkeley_db_minor)
18297 if ($apu_check_berkeley_db_patch == -1
18298 || patch >= $apu_check_berkeley_db_patch)
18305 if ac_fn_c_try_run "$LINENO"; then :
18306 apu_try_berkeley_db=yes
18308 apu_try_berkeley_db=no
18310 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18311 conftest.$ac_objext conftest.beam conftest.$ac_ext
18315 LIBS="$apu_try_berkeley_db_save_libs"
18318 eval "$cache_id=$apu_try_berkeley_db"
18322 result="`eval echo '$'$cache_id`"
18323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
18324 $as_echo "$result" >&6; }
18325 elif test "1" = "1"; then
18326 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_dbopen" | $as_tr_sh`
18327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbopen in -l$bdb_libname" >&5
18328 $as_echo_n "checking for dbopen in -l$bdb_libname... " >&6; }
18329 if eval \${$as_ac_Lib+:} false; then :
18330 $as_echo_n "(cached) " >&6
18332 ac_check_lib_save_LIBS=$LIBS
18333 LIBS="-l$bdb_libname $LIBS"
18334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18335 /* end confdefs.h. */
18337 /* Override any GCC internal prototype to avoid an error.
18338 Use char because int might match the return type of a GCC
18339 builtin and then its argument prototype would still apply. */
18352 if ac_fn_c_try_link "$LINENO"; then :
18353 eval "$as_ac_Lib=yes"
18355 eval "$as_ac_Lib=no"
18357 rm -f core conftest.err conftest.$ac_objext \
18358 conftest$ac_exeext conftest.$ac_ext
18359 LIBS=$ac_check_lib_save_LIBS
18361 eval ac_res=\$$as_ac_Lib
18362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18363 $as_echo "$ac_res" >&6; }
18364 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
18371 elif test "1" = "2"; then
18372 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_db_open" | $as_tr_sh`
18373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_open in -l$bdb_libname" >&5
18374 $as_echo_n "checking for db_open in -l$bdb_libname... " >&6; }
18375 if eval \${$as_ac_Lib+:} false; then :
18376 $as_echo_n "(cached) " >&6
18378 ac_check_lib_save_LIBS=$LIBS
18379 LIBS="-l$bdb_libname $LIBS"
18380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18381 /* end confdefs.h. */
18383 /* Override any GCC internal prototype to avoid an error.
18384 Use char because int might match the return type of a GCC
18385 builtin and then its argument prototype would still apply. */
18398 if ac_fn_c_try_link "$LINENO"; then :
18399 eval "$as_ac_Lib=yes"
18401 eval "$as_ac_Lib=no"
18403 rm -f core conftest.err conftest.$ac_objext \
18404 conftest$ac_exeext conftest.$ac_ext
18405 LIBS=$ac_check_lib_save_LIBS
18407 eval ac_res=\$$as_ac_Lib
18408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18409 $as_echo "$ac_res" >&6; }
18410 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
18425 # If we found it, no need to search any more.
18426 if test "$result" = "yes"; then
18431 test "$found" != "not" && break
18433 test "$found" != "not" && break
18436 # Restore the original values of the flags we tweak.
18437 LDFLAGS="$apu_check_lib_save_ldflags"
18438 CPPFLAGS="$apu_check_lib_save_cppflags"
18445 apu_db_header=$bdb_header
18446 apu_db_lib=$bdb_libname
18450 header="`echo $found | sed -e 's/:.*$//'`"
18451 lib="`echo $found | sed -e 's/^.*://'`"
18454 if test "x$APRUTIL_INCLUDES" = "x"; then
18455 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$header\""
18456 APRUTIL_INCLUDES="-I$header"
18458 apr_addto_bugger="-I$header"
18459 for i in $apr_addto_bugger; do
18460 apr_addto_duplicate="0"
18461 for j in $APRUTIL_INCLUDES; do
18462 if test "x$i" = "x$j"; then
18463 apr_addto_duplicate="1"
18467 if test $apr_addto_duplicate = "0"; then
18468 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES"
18469 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
18475 if test "x$APRUTIL_LDFLAGS" = "x"; then
18476 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$lib\""
18477 APRUTIL_LDFLAGS="-L$lib"
18479 apr_addto_bugger="-L$lib"
18480 for i in $apr_addto_bugger; do
18481 apr_addto_duplicate="0"
18482 for j in $APRUTIL_LDFLAGS; do
18483 if test "x$i" = "x$j"; then
18484 apr_addto_duplicate="1"
18488 if test $apr_addto_duplicate = "0"; then
18489 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS"
18490 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
18495 apu_db_header=$bdb_header
18496 apu_db_lib=$bdb_libname
18501 if test "x$APRUTIL_INCLUDES" = "x"; then
18502 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$found/include\""
18503 APRUTIL_INCLUDES="-I$found/include"
18505 apr_addto_bugger="-I$found/include"
18506 for i in $apr_addto_bugger; do
18507 apr_addto_duplicate="0"
18508 for j in $APRUTIL_INCLUDES; do
18509 if test "x$i" = "x$j"; then
18510 apr_addto_duplicate="1"
18514 if test $apr_addto_duplicate = "0"; then
18515 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES"
18516 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
18522 if test "x$APRUTIL_LDFLAGS" = "x"; then
18523 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$found/lib\""
18524 APRUTIL_LDFLAGS="-L$found/lib"
18526 apr_addto_bugger="-L$found/lib"
18527 for i in $apr_addto_bugger; do
18528 apr_addto_duplicate="0"
18529 for j in $APRUTIL_LDFLAGS; do
18530 if test "x$i" = "x$j"; then
18531 apr_addto_duplicate="1"
18535 if test $apr_addto_duplicate = "0"; then
18536 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS"
18537 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
18542 apu_db_header=$bdb_header
18543 apu_db_lib=$bdb_libname
18548 if test "$apu_have_db" = "1"; then
18553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB" >&5
18554 $as_echo_n "checking for Berkeley DB... " >&6; }
18555 if test "$apu_have_db" = "1"; then
18556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found db$apu_db_version" >&5
18557 $as_echo "found db$apu_db_version" >&6; }
18559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18560 $as_echo "not found" >&6; }
18566 if test "$apu_have_db" = "0"; then
18567 as_fn_error $? "Berkeley DB not found." "$LINENO" 5
18574 if test -n "$apu_db_xtra_libs"; then
18575 LIBS="$saveddbxtralibs"
18578 case "$requested" in
18579 sdbm | gdbm | ndbm | db)
18580 eval "apu_use_$requested=1"
18581 apu_default_dbm=$requested
18583 db185 | db[123456])
18585 apu_default_dbm=$requested
18589 apu_default_dbm=`echo $requested | sed -e 's/.$//'`
18592 apu_default_dbm="sdbm (default)"
18596 as_fn_error $? "--with-dbm=$requested is an unknown DBM type.
18597 Use one of: $dbm_list" "$LINENO" 5
18601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default DBM" >&5
18602 $as_echo_n "checking for default DBM... " >&6; }
18603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apu_default_dbm" >&5
18604 $as_echo "$apu_default_dbm" >&6; }
18618 if test "$apu_have_db" = "1"; then
18620 if test "x$LDADD_dbm_db" = "x"; then
18621 test "x$silent" != "xyes" && echo " setting LDADD_dbm_db to \"-l$apu_db_lib\""
18622 LDADD_dbm_db="-l$apu_db_lib"
18624 apr_addto_bugger="-l$apu_db_lib"
18625 for i in $apr_addto_bugger; do
18626 apr_addto_duplicate="0"
18627 for j in $LDADD_dbm_db; do
18628 if test "x$i" = "x$j"; then
18629 apr_addto_duplicate="1"
18633 if test $apr_addto_duplicate = "0"; then
18634 test "x$silent" != "xyes" && echo " adding \"$i\" to LDADD_dbm_db"
18635 LDADD_dbm_db="$LDADD_dbm_db $i"
18640 if test -n "apu_db_xtra_libs"; then
18642 if test "x$LDADD_dbm_db" = "x"; then
18643 test "x$silent" != "xyes" && echo " setting LDADD_dbm_db to \"$apu_db_xtra_libs\""
18644 LDADD_dbm_db="$apu_db_xtra_libs"
18646 apr_addto_bugger="$apu_db_xtra_libs"
18647 for i in $apr_addto_bugger; do
18648 apr_addto_duplicate="0"
18649 for j in $LDADD_dbm_db; do
18650 if test "x$i" = "x$j"; then
18651 apr_addto_duplicate="1"
18655 if test $apr_addto_duplicate = "0"; then
18656 test "x$silent" != "xyes" && echo " adding \"$i\" to LDADD_dbm_db"
18657 LDADD_dbm_db="$LDADD_dbm_db $i"
18665 if test "$apu_have_gdbm" = "1"; then
18667 if test "x$LDADD_dbm_gdbm" = "x"; then
18668 test "x$silent" != "xyes" && echo " setting LDADD_dbm_gdbm to \"-lgdbm\""
18669 LDADD_dbm_gdbm="-lgdbm"
18671 apr_addto_bugger="-lgdbm"
18672 for i in $apr_addto_bugger; do
18673 apr_addto_duplicate="0"
18674 for j in $LDADD_dbm_gdbm; do
18675 if test "x$i" = "x$j"; then
18676 apr_addto_duplicate="1"
18680 if test $apr_addto_duplicate = "0"; then
18681 test "x$silent" != "xyes" && echo " adding \"$i\" to LDADD_dbm_gdbm"
18682 LDADD_dbm_gdbm="$LDADD_dbm_gdbm $i"
18689 if test "$apu_have_ndbm" = "1"; then
18691 if test "x$LDADD_dbm_ndbm" = "x"; then
18692 test "x$silent" != "xyes" && echo " setting LDADD_dbm_ndbm to \"-l$apu_ndbm_lib\""
18693 LDADD_dbm_ndbm="-l$apu_ndbm_lib"
18695 apr_addto_bugger="-l$apu_ndbm_lib"
18696 for i in $apr_addto_bugger; do
18697 apr_addto_duplicate="0"
18698 for j in $LDADD_dbm_ndbm; do
18699 if test "x$i" = "x$j"; then
18700 apr_addto_duplicate="1"
18704 if test $apr_addto_duplicate = "0"; then
18705 test "x$silent" != "xyes" && echo " adding \"$i\" to LDADD_dbm_ndbm"
18706 LDADD_dbm_ndbm="$LDADD_dbm_ndbm $i"
18721 old_cppflags="$CPPFLAGS"
18722 old_ldflags="$LDFLAGS"
18725 # Check whether --with-pgsql was given.
18726 if test "${with_pgsql+set}" = set; then :
18727 withval=$with_pgsql;
18728 if test "$withval" = "yes"; then
18729 # Extract the first word of "pg_config", so it can be a program name with args.
18730 set dummy pg_config; ac_word=$2
18731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18732 $as_echo_n "checking for $ac_word... " >&6; }
18733 if ${ac_cv_path_PGSQL_CONFIG+:} false; then :
18734 $as_echo_n "(cached) " >&6
18736 case $PGSQL_CONFIG in
18738 ac_cv_path_PGSQL_CONFIG="$PGSQL_CONFIG" # Let the user override the test with a path.
18741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18742 for as_dir in $PATH
18745 test -z "$as_dir" && as_dir=.
18746 for ac_exec_ext in '' $ac_executable_extensions; do
18747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18748 ac_cv_path_PGSQL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18759 PGSQL_CONFIG=$ac_cv_path_PGSQL_CONFIG
18760 if test -n "$PGSQL_CONFIG"; then
18761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGSQL_CONFIG" >&5
18762 $as_echo "$PGSQL_CONFIG" >&6; }
18764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18765 $as_echo "no" >&6; }
18769 if test "x$PGSQL_CONFIG" != 'x'; then
18770 pgsql_CPPFLAGS="-I`$PGSQL_CONFIG --includedir`"
18771 pgsql_LDFLAGS="-L`$PGSQL_CONFIG --libdir`"
18774 if test "x$CPPFLAGS" = "x"; then
18775 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"$pgsql_CPPFLAGS\""
18776 CPPFLAGS="$pgsql_CPPFLAGS"
18778 apr_addto_bugger="$pgsql_CPPFLAGS"
18779 for i in $apr_addto_bugger; do
18780 apr_addto_duplicate="0"
18781 for j in $CPPFLAGS; do
18782 if test "x$i" = "x$j"; then
18783 apr_addto_duplicate="1"
18787 if test $apr_addto_duplicate = "0"; then
18788 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
18789 CPPFLAGS="$CPPFLAGS $i"
18795 if test "x$LDFLAGS" = "x"; then
18796 test "x$silent" != "xyes" && echo " setting LDFLAGS to \"$pgsql_LDFLAGS\""
18797 LDFLAGS="$pgsql_LDFLAGS"
18799 apr_addto_bugger="$pgsql_LDFLAGS"
18800 for i in $apr_addto_bugger; do
18801 apr_addto_duplicate="0"
18802 for j in $LDFLAGS; do
18803 if test "x$i" = "x$j"; then
18804 apr_addto_duplicate="1"
18808 if test $apr_addto_duplicate = "0"; then
18809 test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS"
18810 LDFLAGS="$LDFLAGS $i"
18817 for ac_header in libpq-fe.h
18819 ac_fn_c_check_header_mongrel "$LINENO" "libpq-fe.h" "ac_cv_header_libpq_fe_h" "$ac_includes_default"
18820 if test "x$ac_cv_header_libpq_fe_h" = xyes; then :
18821 cat >>confdefs.h <<_ACEOF
18822 #define HAVE_LIBPQ_FE_H 1
18825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQsendQueryPrepared in -lpq" >&5
18826 $as_echo_n "checking for PQsendQueryPrepared in -lpq... " >&6; }
18827 if ${ac_cv_lib_pq_PQsendQueryPrepared+:} false; then :
18828 $as_echo_n "(cached) " >&6
18830 ac_check_lib_save_LIBS=$LIBS
18832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18833 /* end confdefs.h. */
18835 /* Override any GCC internal prototype to avoid an error.
18836 Use char because int might match the return type of a GCC
18837 builtin and then its argument prototype would still apply. */
18841 char PQsendQueryPrepared ();
18845 return PQsendQueryPrepared ();
18850 if ac_fn_c_try_link "$LINENO"; then :
18851 ac_cv_lib_pq_PQsendQueryPrepared=yes
18853 ac_cv_lib_pq_PQsendQueryPrepared=no
18855 rm -f core conftest.err conftest.$ac_objext \
18856 conftest$ac_exeext conftest.$ac_ext
18857 LIBS=$ac_check_lib_save_LIBS
18859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQsendQueryPrepared" >&5
18860 $as_echo "$ac_cv_lib_pq_PQsendQueryPrepared" >&6; }
18861 if test "x$ac_cv_lib_pq_PQsendQueryPrepared" = xyes; then :
18865 if test "x$PGSQL_CONFIG" != 'x'; then
18866 unset ac_cv_lib_pq_PQsendQueryPrepared
18867 pgsql_LIBS="`$PGSQL_CONFIG --libs`"
18869 if test "x$LIBS" = "x"; then
18870 test "x$silent" != "xyes" && echo " setting LIBS to \"$pgsql_LIBS\""
18873 apr_addto_bugger="$pgsql_LIBS"
18874 for i in $apr_addto_bugger; do
18875 apr_addto_duplicate="0"
18877 if test "x$i" = "x$j"; then
18878 apr_addto_duplicate="1"
18882 if test $apr_addto_duplicate = "0"; then
18883 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
18889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQsendQueryPrepared in -lpq" >&5
18890 $as_echo_n "checking for PQsendQueryPrepared in -lpq... " >&6; }
18891 if ${ac_cv_lib_pq_PQsendQueryPrepared+:} false; then :
18892 $as_echo_n "(cached) " >&6
18894 ac_check_lib_save_LIBS=$LIBS
18896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18897 /* end confdefs.h. */
18899 /* Override any GCC internal prototype to avoid an error.
18900 Use char because int might match the return type of a GCC
18901 builtin and then its argument prototype would still apply. */
18905 char PQsendQueryPrepared ();
18909 return PQsendQueryPrepared ();
18914 if ac_fn_c_try_link "$LINENO"; then :
18915 ac_cv_lib_pq_PQsendQueryPrepared=yes
18917 ac_cv_lib_pq_PQsendQueryPrepared=no
18919 rm -f core conftest.err conftest.$ac_objext \
18920 conftest$ac_exeext conftest.$ac_ext
18921 LIBS=$ac_check_lib_save_LIBS
18923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQsendQueryPrepared" >&5
18924 $as_echo "$ac_cv_lib_pq_PQsendQueryPrepared" >&6; }
18925 if test "x$ac_cv_lib_pq_PQsendQueryPrepared" = xyes; then :
18938 if test "$apu_have_pgsql" = "0"; then
18939 for ac_header in postgresql/libpq-fe.h
18941 ac_fn_c_check_header_mongrel "$LINENO" "postgresql/libpq-fe.h" "ac_cv_header_postgresql_libpq_fe_h" "$ac_includes_default"
18942 if test "x$ac_cv_header_postgresql_libpq_fe_h" = xyes; then :
18943 cat >>confdefs.h <<_ACEOF
18944 #define HAVE_POSTGRESQL_LIBPQ_FE_H 1
18947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQsendQueryPrepared in -lpq" >&5
18948 $as_echo_n "checking for PQsendQueryPrepared in -lpq... " >&6; }
18949 if ${ac_cv_lib_pq_PQsendQueryPrepared+:} false; then :
18950 $as_echo_n "(cached) " >&6
18952 ac_check_lib_save_LIBS=$LIBS
18954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18955 /* end confdefs.h. */
18957 /* Override any GCC internal prototype to avoid an error.
18958 Use char because int might match the return type of a GCC
18959 builtin and then its argument prototype would still apply. */
18963 char PQsendQueryPrepared ();
18967 return PQsendQueryPrepared ();
18972 if ac_fn_c_try_link "$LINENO"; then :
18973 ac_cv_lib_pq_PQsendQueryPrepared=yes
18975 ac_cv_lib_pq_PQsendQueryPrepared=no
18977 rm -f core conftest.err conftest.$ac_objext \
18978 conftest$ac_exeext conftest.$ac_ext
18979 LIBS=$ac_check_lib_save_LIBS
18981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQsendQueryPrepared" >&5
18982 $as_echo "$ac_cv_lib_pq_PQsendQueryPrepared" >&6; }
18983 if test "x$ac_cv_lib_pq_PQsendQueryPrepared" = xyes; then :
18987 if test "x$PGSQL_CONFIG" != 'x'; then
18988 unset ac_cv_lib_pq_PQsendQueryPrepared
18989 pgsql_LIBS="`$PGSQL_CONFIG --libs`"
18991 if test "x$LIBS" = "x"; then
18992 test "x$silent" != "xyes" && echo " setting LIBS to \"$pgsql_LIBS\""
18995 apr_addto_bugger="$pgsql_LIBS"
18996 for i in $apr_addto_bugger; do
18997 apr_addto_duplicate="0"
18999 if test "x$i" = "x$j"; then
19000 apr_addto_duplicate="1"
19004 if test $apr_addto_duplicate = "0"; then
19005 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
19011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQsendQueryPrepared in -lpq" >&5
19012 $as_echo_n "checking for PQsendQueryPrepared in -lpq... " >&6; }
19013 if ${ac_cv_lib_pq_PQsendQueryPrepared+:} false; then :
19014 $as_echo_n "(cached) " >&6
19016 ac_check_lib_save_LIBS=$LIBS
19018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19019 /* end confdefs.h. */
19021 /* Override any GCC internal prototype to avoid an error.
19022 Use char because int might match the return type of a GCC
19023 builtin and then its argument prototype would still apply. */
19027 char PQsendQueryPrepared ();
19031 return PQsendQueryPrepared ();
19036 if ac_fn_c_try_link "$LINENO"; then :
19037 ac_cv_lib_pq_PQsendQueryPrepared=yes
19039 ac_cv_lib_pq_PQsendQueryPrepared=no
19041 rm -f core conftest.err conftest.$ac_objext \
19042 conftest$ac_exeext conftest.$ac_ext
19043 LIBS=$ac_check_lib_save_LIBS
19045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQsendQueryPrepared" >&5
19046 $as_echo "$ac_cv_lib_pq_PQsendQueryPrepared" >&6; }
19047 if test "x$ac_cv_lib_pq_PQsendQueryPrepared" = xyes; then :
19061 if test "$apu_have_pgsql" != "0" && test "x$PGSQL_CONFIG" != 'x'; then
19063 if test "x$APRUTIL_PRIV_INCLUDES" = "x"; then
19064 test "x$silent" != "xyes" && echo " setting APRUTIL_PRIV_INCLUDES to \"$pgsql_CPPFLAGS\""
19065 APRUTIL_PRIV_INCLUDES="$pgsql_CPPFLAGS"
19067 apr_addto_bugger="$pgsql_CPPFLAGS"
19068 for i in $apr_addto_bugger; do
19069 apr_addto_duplicate="0"
19070 for j in $APRUTIL_PRIV_INCLUDES; do
19071 if test "x$i" = "x$j"; then
19072 apr_addto_duplicate="1"
19076 if test $apr_addto_duplicate = "0"; then
19077 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_PRIV_INCLUDES"
19078 APRUTIL_PRIV_INCLUDES="$APRUTIL_PRIV_INCLUDES $i"
19084 elif test "$withval" = "no"; then
19087 # Extract the first word of "pg_config", so it can be a program name with args.
19088 set dummy pg_config; ac_word=$2
19089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19090 $as_echo_n "checking for $ac_word... " >&6; }
19091 if ${ac_cv_path_PGSQL_CONFIG+:} false; then :
19092 $as_echo_n "(cached) " >&6
19094 case $PGSQL_CONFIG in
19096 ac_cv_path_PGSQL_CONFIG="$PGSQL_CONFIG" # Let the user override the test with a path.
19099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19100 for as_dir in $withval/bin
19103 test -z "$as_dir" && as_dir=.
19104 for ac_exec_ext in '' $ac_executable_extensions; do
19105 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19106 ac_cv_path_PGSQL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19117 PGSQL_CONFIG=$ac_cv_path_PGSQL_CONFIG
19118 if test -n "$PGSQL_CONFIG"; then
19119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGSQL_CONFIG" >&5
19120 $as_echo "$PGSQL_CONFIG" >&6; }
19122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19123 $as_echo "no" >&6; }
19127 if test "x$PGSQL_CONFIG" != 'x'; then
19128 pgsql_CPPFLAGS="-I`$PGSQL_CONFIG --includedir`"
19129 pgsql_LDFLAGS="-L`$PGSQL_CONFIG --libdir`"
19131 pgsql_CPPFLAGS="-I$withval/include"
19132 pgsql_LDFLAGS="-L$withval/lib "
19136 if test "x$CPPFLAGS" = "x"; then
19137 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"$pgsql_CPPFLAGS\""
19138 CPPFLAGS="$pgsql_CPPFLAGS"
19140 apr_addto_bugger="$pgsql_CPPFLAGS"
19141 for i in $apr_addto_bugger; do
19142 apr_addto_duplicate="0"
19143 for j in $CPPFLAGS; do
19144 if test "x$i" = "x$j"; then
19145 apr_addto_duplicate="1"
19149 if test $apr_addto_duplicate = "0"; then
19150 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
19151 CPPFLAGS="$CPPFLAGS $i"
19157 if test "x$LDFLAGS" = "x"; then
19158 test "x$silent" != "xyes" && echo " setting LDFLAGS to \"$pgsql_LDFLAGS\""
19159 LDFLAGS="$pgsql_LDFLAGS"
19161 apr_addto_bugger="$pgsql_LDFLAGS"
19162 for i in $apr_addto_bugger; do
19163 apr_addto_duplicate="0"
19164 for j in $LDFLAGS; do
19165 if test "x$i" = "x$j"; then
19166 apr_addto_duplicate="1"
19170 if test $apr_addto_duplicate = "0"; then
19171 test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS"
19172 LDFLAGS="$LDFLAGS $i"
19178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pgsql in $withval" >&5
19179 $as_echo "$as_me: checking for pgsql in $withval" >&6;}
19180 for ac_header in libpq-fe.h
19182 ac_fn_c_check_header_mongrel "$LINENO" "libpq-fe.h" "ac_cv_header_libpq_fe_h" "$ac_includes_default"
19183 if test "x$ac_cv_header_libpq_fe_h" = xyes; then :
19184 cat >>confdefs.h <<_ACEOF
19185 #define HAVE_LIBPQ_FE_H 1
19188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQsendQueryPrepared in -lpq" >&5
19189 $as_echo_n "checking for PQsendQueryPrepared in -lpq... " >&6; }
19190 if ${ac_cv_lib_pq_PQsendQueryPrepared+:} false; then :
19191 $as_echo_n "(cached) " >&6
19193 ac_check_lib_save_LIBS=$LIBS
19195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19196 /* end confdefs.h. */
19198 /* Override any GCC internal prototype to avoid an error.
19199 Use char because int might match the return type of a GCC
19200 builtin and then its argument prototype would still apply. */
19204 char PQsendQueryPrepared ();
19208 return PQsendQueryPrepared ();
19213 if ac_fn_c_try_link "$LINENO"; then :
19214 ac_cv_lib_pq_PQsendQueryPrepared=yes
19216 ac_cv_lib_pq_PQsendQueryPrepared=no
19218 rm -f core conftest.err conftest.$ac_objext \
19219 conftest$ac_exeext conftest.$ac_ext
19220 LIBS=$ac_check_lib_save_LIBS
19222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQsendQueryPrepared" >&5
19223 $as_echo "$ac_cv_lib_pq_PQsendQueryPrepared" >&6; }
19224 if test "x$ac_cv_lib_pq_PQsendQueryPrepared" = xyes; then :
19228 if test "x$PGSQL_CONFIG" != 'x'; then
19229 unset ac_cv_lib_pq_PQsendQueryPrepared
19230 pgsql_LIBS="`$PGSQL_CONFIG --libs`"
19232 if test "x$LIBS" = "x"; then
19233 test "x$silent" != "xyes" && echo " setting LIBS to \"$pgsql_LIBS\""
19236 apr_addto_bugger="$pgsql_LIBS"
19237 for i in $apr_addto_bugger; do
19238 apr_addto_duplicate="0"
19240 if test "x$i" = "x$j"; then
19241 apr_addto_duplicate="1"
19245 if test $apr_addto_duplicate = "0"; then
19246 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
19252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQsendQueryPrepared in -lpq" >&5
19253 $as_echo_n "checking for PQsendQueryPrepared in -lpq... " >&6; }
19254 if ${ac_cv_lib_pq_PQsendQueryPrepared+:} false; then :
19255 $as_echo_n "(cached) " >&6
19257 ac_check_lib_save_LIBS=$LIBS
19259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19260 /* end confdefs.h. */
19262 /* Override any GCC internal prototype to avoid an error.
19263 Use char because int might match the return type of a GCC
19264 builtin and then its argument prototype would still apply. */
19268 char PQsendQueryPrepared ();
19272 return PQsendQueryPrepared ();
19277 if ac_fn_c_try_link "$LINENO"; then :
19278 ac_cv_lib_pq_PQsendQueryPrepared=yes
19280 ac_cv_lib_pq_PQsendQueryPrepared=no
19282 rm -f core conftest.err conftest.$ac_objext \
19283 conftest$ac_exeext conftest.$ac_ext
19284 LIBS=$ac_check_lib_save_LIBS
19286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQsendQueryPrepared" >&5
19287 $as_echo "$ac_cv_lib_pq_PQsendQueryPrepared" >&6; }
19288 if test "x$ac_cv_lib_pq_PQsendQueryPrepared" = xyes; then :
19301 if test "$apu_have_pgsql" != "1"; then
19302 for ac_header in postgresql/libpq-fe.h
19304 ac_fn_c_check_header_mongrel "$LINENO" "postgresql/libpq-fe.h" "ac_cv_header_postgresql_libpq_fe_h" "$ac_includes_default"
19305 if test "x$ac_cv_header_postgresql_libpq_fe_h" = xyes; then :
19306 cat >>confdefs.h <<_ACEOF
19307 #define HAVE_POSTGRESQL_LIBPQ_FE_H 1
19310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQsendQueryPrepared in -lpq" >&5
19311 $as_echo_n "checking for PQsendQueryPrepared in -lpq... " >&6; }
19312 if ${ac_cv_lib_pq_PQsendQueryPrepared+:} false; then :
19313 $as_echo_n "(cached) " >&6
19315 ac_check_lib_save_LIBS=$LIBS
19317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19318 /* end confdefs.h. */
19320 /* Override any GCC internal prototype to avoid an error.
19321 Use char because int might match the return type of a GCC
19322 builtin and then its argument prototype would still apply. */
19326 char PQsendQueryPrepared ();
19330 return PQsendQueryPrepared ();
19335 if ac_fn_c_try_link "$LINENO"; then :
19336 ac_cv_lib_pq_PQsendQueryPrepared=yes
19338 ac_cv_lib_pq_PQsendQueryPrepared=no
19340 rm -f core conftest.err conftest.$ac_objext \
19341 conftest$ac_exeext conftest.$ac_ext
19342 LIBS=$ac_check_lib_save_LIBS
19344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQsendQueryPrepared" >&5
19345 $as_echo "$ac_cv_lib_pq_PQsendQueryPrepared" >&6; }
19346 if test "x$ac_cv_lib_pq_PQsendQueryPrepared" = xyes; then :
19350 if test "x$PGSQL_CONFIG" != 'x'; then
19351 unset ac_cv_lib_pq_PQsendQueryPrepared
19352 pgsql_LIBS="`$PGSQL_CONFIG --libs`"
19354 if test "x$LIBS" = "x"; then
19355 test "x$silent" != "xyes" && echo " setting LIBS to \"$pgsql_LIBS\""
19358 apr_addto_bugger="$pgsql_LIBS"
19359 for i in $apr_addto_bugger; do
19360 apr_addto_duplicate="0"
19362 if test "x$i" = "x$j"; then
19363 apr_addto_duplicate="1"
19367 if test $apr_addto_duplicate = "0"; then
19368 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
19374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQsendQueryPrepared in -lpq" >&5
19375 $as_echo_n "checking for PQsendQueryPrepared in -lpq... " >&6; }
19376 if ${ac_cv_lib_pq_PQsendQueryPrepared+:} false; then :
19377 $as_echo_n "(cached) " >&6
19379 ac_check_lib_save_LIBS=$LIBS
19381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19382 /* end confdefs.h. */
19384 /* Override any GCC internal prototype to avoid an error.
19385 Use char because int might match the return type of a GCC
19386 builtin and then its argument prototype would still apply. */
19390 char PQsendQueryPrepared ();
19394 return PQsendQueryPrepared ();
19399 if ac_fn_c_try_link "$LINENO"; then :
19400 ac_cv_lib_pq_PQsendQueryPrepared=yes
19402 ac_cv_lib_pq_PQsendQueryPrepared=no
19404 rm -f core conftest.err conftest.$ac_objext \
19405 conftest$ac_exeext conftest.$ac_ext
19406 LIBS=$ac_check_lib_save_LIBS
19408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQsendQueryPrepared" >&5
19409 $as_echo "$ac_cv_lib_pq_PQsendQueryPrepared" >&6; }
19410 if test "x$ac_cv_lib_pq_PQsendQueryPrepared" = xyes; then :
19424 if test "$apu_have_pgsql" != "0"; then
19426 if test "x$APRUTIL_PRIV_INCLUDES" = "x"; then
19427 test "x$silent" != "xyes" && echo " setting APRUTIL_PRIV_INCLUDES to \"$pgsql_CPPFLAGS\""
19428 APRUTIL_PRIV_INCLUDES="$pgsql_CPPFLAGS"
19430 apr_addto_bugger="$pgsql_CPPFLAGS"
19431 for i in $apr_addto_bugger; do
19432 apr_addto_duplicate="0"
19433 for j in $APRUTIL_PRIV_INCLUDES; do
19434 if test "x$i" = "x$j"; then
19435 apr_addto_duplicate="1"
19439 if test $apr_addto_duplicate = "0"; then
19440 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_PRIV_INCLUDES"
19441 APRUTIL_PRIV_INCLUDES="$APRUTIL_PRIV_INCLUDES $i"
19451 # Extract the first word of "pg_config", so it can be a program name with args.
19452 set dummy pg_config; ac_word=$2
19453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19454 $as_echo_n "checking for $ac_word... " >&6; }
19455 if ${ac_cv_path_PGSQL_CONFIG+:} false; then :
19456 $as_echo_n "(cached) " >&6
19458 case $PGSQL_CONFIG in
19460 ac_cv_path_PGSQL_CONFIG="$PGSQL_CONFIG" # Let the user override the test with a path.
19463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19464 for as_dir in $PATH
19467 test -z "$as_dir" && as_dir=.
19468 for ac_exec_ext in '' $ac_executable_extensions; do
19469 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19470 ac_cv_path_PGSQL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19481 PGSQL_CONFIG=$ac_cv_path_PGSQL_CONFIG
19482 if test -n "$PGSQL_CONFIG"; then
19483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGSQL_CONFIG" >&5
19484 $as_echo "$PGSQL_CONFIG" >&6; }
19486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19487 $as_echo "no" >&6; }
19491 if test "x$PGSQL_CONFIG" != 'x'; then
19492 pgsql_CPPFLAGS="-I`$PGSQL_CONFIG --includedir`"
19493 pgsql_LDFLAGS="-L`$PGSQL_CONFIG --libdir`"
19496 if test "x$CPPFLAGS" = "x"; then
19497 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"$pgsql_CPPFLAGS\""
19498 CPPFLAGS="$pgsql_CPPFLAGS"
19500 apr_addto_bugger="$pgsql_CPPFLAGS"
19501 for i in $apr_addto_bugger; do
19502 apr_addto_duplicate="0"
19503 for j in $CPPFLAGS; do
19504 if test "x$i" = "x$j"; then
19505 apr_addto_duplicate="1"
19509 if test $apr_addto_duplicate = "0"; then
19510 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
19511 CPPFLAGS="$CPPFLAGS $i"
19517 if test "x$LDFLAGS" = "x"; then
19518 test "x$silent" != "xyes" && echo " setting LDFLAGS to \"$pgsql_LDFLAGS\""
19519 LDFLAGS="$pgsql_LDFLAGS"
19521 apr_addto_bugger="$pgsql_LDFLAGS"
19522 for i in $apr_addto_bugger; do
19523 apr_addto_duplicate="0"
19524 for j in $LDFLAGS; do
19525 if test "x$i" = "x$j"; then
19526 apr_addto_duplicate="1"
19530 if test $apr_addto_duplicate = "0"; then
19531 test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS"
19532 LDFLAGS="$LDFLAGS $i"
19539 for ac_header in libpq-fe.h
19541 ac_fn_c_check_header_mongrel "$LINENO" "libpq-fe.h" "ac_cv_header_libpq_fe_h" "$ac_includes_default"
19542 if test "x$ac_cv_header_libpq_fe_h" = xyes; then :
19543 cat >>confdefs.h <<_ACEOF
19544 #define HAVE_LIBPQ_FE_H 1
19547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQsendQueryPrepared in -lpq" >&5
19548 $as_echo_n "checking for PQsendQueryPrepared in -lpq... " >&6; }
19549 if ${ac_cv_lib_pq_PQsendQueryPrepared+:} false; then :
19550 $as_echo_n "(cached) " >&6
19552 ac_check_lib_save_LIBS=$LIBS
19554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19555 /* end confdefs.h. */
19557 /* Override any GCC internal prototype to avoid an error.
19558 Use char because int might match the return type of a GCC
19559 builtin and then its argument prototype would still apply. */
19563 char PQsendQueryPrepared ();
19567 return PQsendQueryPrepared ();
19572 if ac_fn_c_try_link "$LINENO"; then :
19573 ac_cv_lib_pq_PQsendQueryPrepared=yes
19575 ac_cv_lib_pq_PQsendQueryPrepared=no
19577 rm -f core conftest.err conftest.$ac_objext \
19578 conftest$ac_exeext conftest.$ac_ext
19579 LIBS=$ac_check_lib_save_LIBS
19581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQsendQueryPrepared" >&5
19582 $as_echo "$ac_cv_lib_pq_PQsendQueryPrepared" >&6; }
19583 if test "x$ac_cv_lib_pq_PQsendQueryPrepared" = xyes; then :
19587 if test "x$PGSQL_CONFIG" != 'x'; then
19588 unset ac_cv_lib_pq_PQsendQueryPrepared
19589 pgsql_LIBS="`$PGSQL_CONFIG --libs`"
19591 if test "x$LIBS" = "x"; then
19592 test "x$silent" != "xyes" && echo " setting LIBS to \"$pgsql_LIBS\""
19595 apr_addto_bugger="$pgsql_LIBS"
19596 for i in $apr_addto_bugger; do
19597 apr_addto_duplicate="0"
19599 if test "x$i" = "x$j"; then
19600 apr_addto_duplicate="1"
19604 if test $apr_addto_duplicate = "0"; then
19605 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
19611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQsendQueryPrepared in -lpq" >&5
19612 $as_echo_n "checking for PQsendQueryPrepared in -lpq... " >&6; }
19613 if ${ac_cv_lib_pq_PQsendQueryPrepared+:} false; then :
19614 $as_echo_n "(cached) " >&6
19616 ac_check_lib_save_LIBS=$LIBS
19618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19619 /* end confdefs.h. */
19621 /* Override any GCC internal prototype to avoid an error.
19622 Use char because int might match the return type of a GCC
19623 builtin and then its argument prototype would still apply. */
19627 char PQsendQueryPrepared ();
19631 return PQsendQueryPrepared ();
19636 if ac_fn_c_try_link "$LINENO"; then :
19637 ac_cv_lib_pq_PQsendQueryPrepared=yes
19639 ac_cv_lib_pq_PQsendQueryPrepared=no
19641 rm -f core conftest.err conftest.$ac_objext \
19642 conftest$ac_exeext conftest.$ac_ext
19643 LIBS=$ac_check_lib_save_LIBS
19645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQsendQueryPrepared" >&5
19646 $as_echo "$ac_cv_lib_pq_PQsendQueryPrepared" >&6; }
19647 if test "x$ac_cv_lib_pq_PQsendQueryPrepared" = xyes; then :
19660 if test "$apu_have_pgsql" = "0"; then
19661 for ac_header in postgresql/libpq-fe.h
19663 ac_fn_c_check_header_mongrel "$LINENO" "postgresql/libpq-fe.h" "ac_cv_header_postgresql_libpq_fe_h" "$ac_includes_default"
19664 if test "x$ac_cv_header_postgresql_libpq_fe_h" = xyes; then :
19665 cat >>confdefs.h <<_ACEOF
19666 #define HAVE_POSTGRESQL_LIBPQ_FE_H 1
19669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQsendQueryPrepared in -lpq" >&5
19670 $as_echo_n "checking for PQsendQueryPrepared in -lpq... " >&6; }
19671 if ${ac_cv_lib_pq_PQsendQueryPrepared+:} false; then :
19672 $as_echo_n "(cached) " >&6
19674 ac_check_lib_save_LIBS=$LIBS
19676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19677 /* end confdefs.h. */
19679 /* Override any GCC internal prototype to avoid an error.
19680 Use char because int might match the return type of a GCC
19681 builtin and then its argument prototype would still apply. */
19685 char PQsendQueryPrepared ();
19689 return PQsendQueryPrepared ();
19694 if ac_fn_c_try_link "$LINENO"; then :
19695 ac_cv_lib_pq_PQsendQueryPrepared=yes
19697 ac_cv_lib_pq_PQsendQueryPrepared=no
19699 rm -f core conftest.err conftest.$ac_objext \
19700 conftest$ac_exeext conftest.$ac_ext
19701 LIBS=$ac_check_lib_save_LIBS
19703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQsendQueryPrepared" >&5
19704 $as_echo "$ac_cv_lib_pq_PQsendQueryPrepared" >&6; }
19705 if test "x$ac_cv_lib_pq_PQsendQueryPrepared" = xyes; then :
19709 if test "x$PGSQL_CONFIG" != 'x'; then
19710 unset ac_cv_lib_pq_PQsendQueryPrepared
19711 pgsql_LIBS="`$PGSQL_CONFIG --libs`"
19713 if test "x$LIBS" = "x"; then
19714 test "x$silent" != "xyes" && echo " setting LIBS to \"$pgsql_LIBS\""
19717 apr_addto_bugger="$pgsql_LIBS"
19718 for i in $apr_addto_bugger; do
19719 apr_addto_duplicate="0"
19721 if test "x$i" = "x$j"; then
19722 apr_addto_duplicate="1"
19726 if test $apr_addto_duplicate = "0"; then
19727 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
19733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQsendQueryPrepared in -lpq" >&5
19734 $as_echo_n "checking for PQsendQueryPrepared in -lpq... " >&6; }
19735 if ${ac_cv_lib_pq_PQsendQueryPrepared+:} false; then :
19736 $as_echo_n "(cached) " >&6
19738 ac_check_lib_save_LIBS=$LIBS
19740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19741 /* end confdefs.h. */
19743 /* Override any GCC internal prototype to avoid an error.
19744 Use char because int might match the return type of a GCC
19745 builtin and then its argument prototype would still apply. */
19749 char PQsendQueryPrepared ();
19753 return PQsendQueryPrepared ();
19758 if ac_fn_c_try_link "$LINENO"; then :
19759 ac_cv_lib_pq_PQsendQueryPrepared=yes
19761 ac_cv_lib_pq_PQsendQueryPrepared=no
19763 rm -f core conftest.err conftest.$ac_objext \
19764 conftest$ac_exeext conftest.$ac_ext
19765 LIBS=$ac_check_lib_save_LIBS
19767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQsendQueryPrepared" >&5
19768 $as_echo "$ac_cv_lib_pq_PQsendQueryPrepared" >&6; }
19769 if test "x$ac_cv_lib_pq_PQsendQueryPrepared" = xyes; then :
19783 if test "$apu_have_pgsql" != "0" && test "x$PGSQL_CONFIG" != 'x'; then
19785 if test "x$APRUTIL_PRIV_INCLUDES" = "x"; then
19786 test "x$silent" != "xyes" && echo " setting APRUTIL_PRIV_INCLUDES to \"$pgsql_CPPFLAGS\""
19787 APRUTIL_PRIV_INCLUDES="$pgsql_CPPFLAGS"
19789 apr_addto_bugger="$pgsql_CPPFLAGS"
19790 for i in $apr_addto_bugger; do
19791 apr_addto_duplicate="0"
19792 for j in $APRUTIL_PRIV_INCLUDES; do
19793 if test "x$i" = "x$j"; then
19794 apr_addto_duplicate="1"
19798 if test $apr_addto_duplicate = "0"; then
19799 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_PRIV_INCLUDES"
19800 APRUTIL_PRIV_INCLUDES="$APRUTIL_PRIV_INCLUDES $i"
19810 if test "$apu_have_pgsql" = "1"; then
19812 if test "x$LDADD_dbd_pgsql" = "x"; then
19813 test "x$silent" != "xyes" && echo " setting LDADD_dbd_pgsql to \"$pgsql_LDFLAGS -lpq $pgsql_LIBS\""
19814 LDADD_dbd_pgsql="$pgsql_LDFLAGS -lpq $pgsql_LIBS"
19816 apr_addto_bugger="$pgsql_LDFLAGS -lpq $pgsql_LIBS"
19817 for i in $apr_addto_bugger; do
19818 apr_addto_duplicate="0"
19819 for j in $LDADD_dbd_pgsql; do
19820 if test "x$i" = "x$j"; then
19821 apr_addto_duplicate="1"
19825 if test $apr_addto_duplicate = "0"; then
19826 test "x$silent" != "xyes" && echo " adding \"$i\" to LDADD_dbd_pgsql"
19827 LDADD_dbd_pgsql="$LDADD_dbd_pgsql $i"
19836 CPPFLAGS="$old_cppflags"
19837 LDFLAGS="$old_ldflags"
19843 old_cppflags="$CPPFLAGS"
19844 old_ldflags="$LDFLAGS"
19847 # Check whether --with-mysql was given.
19848 if test "${with_mysql+set}" = set; then :
19849 withval=$with_mysql;
19850 if test "$withval" = "yes"; then
19851 # Extract the first word of "mysql_config", so it can be a program name with args.
19852 set dummy mysql_config; ac_word=$2
19853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19854 $as_echo_n "checking for $ac_word... " >&6; }
19855 if ${ac_cv_path_MYSQL_CONFIG+:} false; then :
19856 $as_echo_n "(cached) " >&6
19858 case $MYSQL_CONFIG in
19860 ac_cv_path_MYSQL_CONFIG="$MYSQL_CONFIG" # Let the user override the test with a path.
19863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19864 for as_dir in $PATH
19867 test -z "$as_dir" && as_dir=.
19868 for ac_exec_ext in '' $ac_executable_extensions; do
19869 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19870 ac_cv_path_MYSQL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19881 MYSQL_CONFIG=$ac_cv_path_MYSQL_CONFIG
19882 if test -n "$MYSQL_CONFIG"; then
19883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYSQL_CONFIG" >&5
19884 $as_echo "$MYSQL_CONFIG" >&6; }
19886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19887 $as_echo "no" >&6; }
19891 if test "x$MYSQL_CONFIG" != 'x'; then
19892 mysql_CPPFLAGS="`$MYSQL_CONFIG --include`"
19893 mysql_LDFLAGS="`$MYSQL_CONFIG --libs_r | sed -e 's/-l[^ ]\+//g'`"
19894 mysql_LIBS="`$MYSQL_CONFIG --libs_r`"
19897 if test "x$CPPFLAGS" = "x"; then
19898 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"$mysql_CPPFLAGS\""
19899 CPPFLAGS="$mysql_CPPFLAGS"
19901 apr_addto_bugger="$mysql_CPPFLAGS"
19902 for i in $apr_addto_bugger; do
19903 apr_addto_duplicate="0"
19904 for j in $CPPFLAGS; do
19905 if test "x$i" = "x$j"; then
19906 apr_addto_duplicate="1"
19910 if test $apr_addto_duplicate = "0"; then
19911 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
19912 CPPFLAGS="$CPPFLAGS $i"
19918 if test "x$LIBS" = "x"; then
19919 test "x$silent" != "xyes" && echo " setting LIBS to \"$mysql_LIBS\""
19922 apr_addto_bugger="$mysql_LIBS"
19923 for i in $apr_addto_bugger; do
19924 apr_addto_duplicate="0"
19926 if test "x$i" = "x$j"; then
19927 apr_addto_duplicate="1"
19931 if test $apr_addto_duplicate = "0"; then
19932 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
19940 for ac_header in mysql.h my_global.h my_sys.h
19942 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19943 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <my_global.h>
19945 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19946 cat >>confdefs.h <<_ACEOF
19947 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_init in -lmysqlclient_r" >&5
19950 $as_echo_n "checking for mysql_init in -lmysqlclient_r... " >&6; }
19951 if ${ac_cv_lib_mysqlclient_r_mysql_init+:} false; then :
19952 $as_echo_n "(cached) " >&6
19954 ac_check_lib_save_LIBS=$LIBS
19955 LIBS="-lmysqlclient_r $LIBS"
19956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19957 /* end confdefs.h. */
19959 /* Override any GCC internal prototype to avoid an error.
19960 Use char because int might match the return type of a GCC
19961 builtin and then its argument prototype would still apply. */
19965 char mysql_init ();
19969 return mysql_init ();
19974 if ac_fn_c_try_link "$LINENO"; then :
19975 ac_cv_lib_mysqlclient_r_mysql_init=yes
19977 ac_cv_lib_mysqlclient_r_mysql_init=no
19979 rm -f core conftest.err conftest.$ac_objext \
19980 conftest$ac_exeext conftest.$ac_ext
19981 LIBS=$ac_check_lib_save_LIBS
19983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_r_mysql_init" >&5
19984 $as_echo "$ac_cv_lib_mysqlclient_r_mysql_init" >&6; }
19985 if test "x$ac_cv_lib_mysqlclient_r_mysql_init" = xyes; then :
19990 apu_have_mysql=0; break
19995 if test "$apu_have_mysql" = "0"; then
19996 for ac_header in mysql/mysql.h mysql/my_global.h mysql/my_sys.h
19998 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19999 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <mysql/my_global.h>
20001 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20002 cat >>confdefs.h <<_ACEOF
20003 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_init in -lmysqlclient_r" >&5
20006 $as_echo_n "checking for mysql_init in -lmysqlclient_r... " >&6; }
20007 if ${ac_cv_lib_mysqlclient_r_mysql_init+:} false; then :
20008 $as_echo_n "(cached) " >&6
20010 ac_check_lib_save_LIBS=$LIBS
20011 LIBS="-lmysqlclient_r $LIBS"
20012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20013 /* end confdefs.h. */
20015 /* Override any GCC internal prototype to avoid an error.
20016 Use char because int might match the return type of a GCC
20017 builtin and then its argument prototype would still apply. */
20021 char mysql_init ();
20025 return mysql_init ();
20030 if ac_fn_c_try_link "$LINENO"; then :
20031 ac_cv_lib_mysqlclient_r_mysql_init=yes
20033 ac_cv_lib_mysqlclient_r_mysql_init=no
20035 rm -f core conftest.err conftest.$ac_objext \
20036 conftest$ac_exeext conftest.$ac_ext
20037 LIBS=$ac_check_lib_save_LIBS
20039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_r_mysql_init" >&5
20040 $as_echo "$ac_cv_lib_mysqlclient_r_mysql_init" >&6; }
20041 if test "x$ac_cv_lib_mysqlclient_r_mysql_init" = xyes; then :
20046 apu_have_mysql=0; break
20052 if test "$apu_have_mysql" != "0" && test "x$MYSQL_CONFIG" != 'x'; then
20054 if test "x$APRUTIL_PRIV_INCLUDES" = "x"; then
20055 test "x$silent" != "xyes" && echo " setting APRUTIL_PRIV_INCLUDES to \"$mysql_CPPFLAGS\""
20056 APRUTIL_PRIV_INCLUDES="$mysql_CPPFLAGS"
20058 apr_addto_bugger="$mysql_CPPFLAGS"
20059 for i in $apr_addto_bugger; do
20060 apr_addto_duplicate="0"
20061 for j in $APRUTIL_PRIV_INCLUDES; do
20062 if test "x$i" = "x$j"; then
20063 apr_addto_duplicate="1"
20067 if test $apr_addto_duplicate = "0"; then
20068 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_PRIV_INCLUDES"
20069 APRUTIL_PRIV_INCLUDES="$APRUTIL_PRIV_INCLUDES $i"
20075 elif test "$withval" = "no"; then
20078 # Extract the first word of "mysql_config", so it can be a program name with args.
20079 set dummy mysql_config; ac_word=$2
20080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20081 $as_echo_n "checking for $ac_word... " >&6; }
20082 if ${ac_cv_path_MYSQL_CONFIG+:} false; then :
20083 $as_echo_n "(cached) " >&6
20085 case $MYSQL_CONFIG in
20087 ac_cv_path_MYSQL_CONFIG="$MYSQL_CONFIG" # Let the user override the test with a path.
20090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20091 for as_dir in $withval/bin
20094 test -z "$as_dir" && as_dir=.
20095 for ac_exec_ext in '' $ac_executable_extensions; do
20096 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20097 ac_cv_path_MYSQL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20108 MYSQL_CONFIG=$ac_cv_path_MYSQL_CONFIG
20109 if test -n "$MYSQL_CONFIG"; then
20110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYSQL_CONFIG" >&5
20111 $as_echo "$MYSQL_CONFIG" >&6; }
20113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20114 $as_echo "no" >&6; }
20118 if test "x$MYSQL_CONFIG" != 'x'; then
20119 mysql_CPPFLAGS="`$MYSQL_CONFIG --include`"
20120 mysql_LDFLAGS="`$MYSQL_CONFIG --libs_r | sed -e 's/-l[^ ]\+//g'`"
20121 mysql_LIBS="`$MYSQL_CONFIG --libs_r`"
20123 mysql_CPPFLAGS="-I$withval/include"
20124 mysql_LDFLAGS="-L$withval/lib "
20128 if test "x$CPPFLAGS" = "x"; then
20129 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"$mysql_CPPFLAGS\""
20130 CPPFLAGS="$mysql_CPPFLAGS"
20132 apr_addto_bugger="$mysql_CPPFLAGS"
20133 for i in $apr_addto_bugger; do
20134 apr_addto_duplicate="0"
20135 for j in $CPPFLAGS; do
20136 if test "x$i" = "x$j"; then
20137 apr_addto_duplicate="1"
20141 if test $apr_addto_duplicate = "0"; then
20142 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
20143 CPPFLAGS="$CPPFLAGS $i"
20149 if test "x$LDFLAGS" = "x"; then
20150 test "x$silent" != "xyes" && echo " setting LDFLAGS to \"$mysql_LDFLAGS\""
20151 LDFLAGS="$mysql_LDFLAGS"
20153 apr_addto_bugger="$mysql_LDFLAGS"
20154 for i in $apr_addto_bugger; do
20155 apr_addto_duplicate="0"
20156 for j in $LDFLAGS; do
20157 if test "x$i" = "x$j"; then
20158 apr_addto_duplicate="1"
20162 if test $apr_addto_duplicate = "0"; then
20163 test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS"
20164 LDFLAGS="$LDFLAGS $i"
20170 if test "x$LIBS" = "x"; then
20171 test "x$silent" != "xyes" && echo " setting LIBS to \"$mysql_LIBS\""
20174 apr_addto_bugger="$mysql_LIBS"
20175 for i in $apr_addto_bugger; do
20176 apr_addto_duplicate="0"
20178 if test "x$i" = "x$j"; then
20179 apr_addto_duplicate="1"
20183 if test $apr_addto_duplicate = "0"; then
20184 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
20191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql in $withval" >&5
20192 $as_echo "$as_me: checking for mysql in $withval" >&6;}
20193 for ac_header in mysql.h my_global.h my_sys.h
20195 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20196 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <my_global.h>
20198 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20199 cat >>confdefs.h <<_ACEOF
20200 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_init in -lmysqlclient_r" >&5
20203 $as_echo_n "checking for mysql_init in -lmysqlclient_r... " >&6; }
20204 if ${ac_cv_lib_mysqlclient_r_mysql_init+:} false; then :
20205 $as_echo_n "(cached) " >&6
20207 ac_check_lib_save_LIBS=$LIBS
20208 LIBS="-lmysqlclient_r $LIBS"
20209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20210 /* end confdefs.h. */
20212 /* Override any GCC internal prototype to avoid an error.
20213 Use char because int might match the return type of a GCC
20214 builtin and then its argument prototype would still apply. */
20218 char mysql_init ();
20222 return mysql_init ();
20227 if ac_fn_c_try_link "$LINENO"; then :
20228 ac_cv_lib_mysqlclient_r_mysql_init=yes
20230 ac_cv_lib_mysqlclient_r_mysql_init=no
20232 rm -f core conftest.err conftest.$ac_objext \
20233 conftest$ac_exeext conftest.$ac_ext
20234 LIBS=$ac_check_lib_save_LIBS
20236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_r_mysql_init" >&5
20237 $as_echo "$ac_cv_lib_mysqlclient_r_mysql_init" >&6; }
20238 if test "x$ac_cv_lib_mysqlclient_r_mysql_init" = xyes; then :
20243 apu_have_mysql=0; break
20249 if test "$apu_have_mysql" != "1"; then
20250 for ac_header in mysql/mysql.h mysql/my_global.h mysql/my_sys.h
20252 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20253 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <mysql/my_global.h>
20255 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20256 cat >>confdefs.h <<_ACEOF
20257 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_init in -lmysqlclient_r" >&5
20260 $as_echo_n "checking for mysql_init in -lmysqlclient_r... " >&6; }
20261 if ${ac_cv_lib_mysqlclient_r_mysql_init+:} false; then :
20262 $as_echo_n "(cached) " >&6
20264 ac_check_lib_save_LIBS=$LIBS
20265 LIBS="-lmysqlclient_r $LIBS"
20266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20267 /* end confdefs.h. */
20269 /* Override any GCC internal prototype to avoid an error.
20270 Use char because int might match the return type of a GCC
20271 builtin and then its argument prototype would still apply. */
20275 char mysql_init ();
20279 return mysql_init ();
20284 if ac_fn_c_try_link "$LINENO"; then :
20285 ac_cv_lib_mysqlclient_r_mysql_init=yes
20287 ac_cv_lib_mysqlclient_r_mysql_init=no
20289 rm -f core conftest.err conftest.$ac_objext \
20290 conftest$ac_exeext conftest.$ac_ext
20291 LIBS=$ac_check_lib_save_LIBS
20293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_r_mysql_init" >&5
20294 $as_echo "$ac_cv_lib_mysqlclient_r_mysql_init" >&6; }
20295 if test "x$ac_cv_lib_mysqlclient_r_mysql_init" = xyes; then :
20300 apu_have_mysql=0; break
20306 if test "$apu_have_mysql" != "0"; then
20308 if test "x$APRUTIL_PRIV_INCLUDES" = "x"; then
20309 test "x$silent" != "xyes" && echo " setting APRUTIL_PRIV_INCLUDES to \"$mysql_CPPFLAGS\""
20310 APRUTIL_PRIV_INCLUDES="$mysql_CPPFLAGS"
20312 apr_addto_bugger="$mysql_CPPFLAGS"
20313 for i in $apr_addto_bugger; do
20314 apr_addto_duplicate="0"
20315 for j in $APRUTIL_PRIV_INCLUDES; do
20316 if test "x$i" = "x$j"; then
20317 apr_addto_duplicate="1"
20321 if test $apr_addto_duplicate = "0"; then
20322 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_PRIV_INCLUDES"
20323 APRUTIL_PRIV_INCLUDES="$APRUTIL_PRIV_INCLUDES $i"
20336 if test "$apu_have_mysql" = "1"; then
20338 if test "x$LDADD_dbd_mysql" = "x"; then
20339 test "x$silent" != "xyes" && echo " setting LDADD_dbd_mysql to \"$mysql_LDFLAGS -lmysqlclient_r $mysql_LIBS\""
20340 LDADD_dbd_mysql="$mysql_LDFLAGS -lmysqlclient_r $mysql_LIBS"
20342 apr_addto_bugger="$mysql_LDFLAGS -lmysqlclient_r $mysql_LIBS"
20343 for i in $apr_addto_bugger; do
20344 apr_addto_duplicate="0"
20345 for j in $LDADD_dbd_mysql; do
20346 if test "x$i" = "x$j"; then
20347 apr_addto_duplicate="1"
20351 if test $apr_addto_duplicate = "0"; then
20352 test "x$silent" != "xyes" && echo " adding \"$i\" to LDADD_dbd_mysql"
20353 LDADD_dbd_mysql="$LDADD_dbd_mysql $i"
20362 CPPFLAGS="$old_cppflags"
20363 LDFLAGS="$old_ldflags"
20369 old_cppflags="$CPPFLAGS"
20370 old_ldflags="$LDFLAGS"
20373 # Check whether --with-sqlite3 was given.
20374 if test "${with_sqlite3+set}" = set; then :
20375 withval=$with_sqlite3;
20376 if test "$withval" = "yes"; then
20377 for ac_header in sqlite3.h
20379 ac_fn_c_check_header_mongrel "$LINENO" "sqlite3.h" "ac_cv_header_sqlite3_h" "$ac_includes_default"
20380 if test "x$ac_cv_header_sqlite3_h" = xyes; then :
20381 cat >>confdefs.h <<_ACEOF
20382 #define HAVE_SQLITE3_H 1
20384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_open in -lsqlite3" >&5
20385 $as_echo_n "checking for sqlite3_open in -lsqlite3... " >&6; }
20386 if ${ac_cv_lib_sqlite3_sqlite3_open+:} false; then :
20387 $as_echo_n "(cached) " >&6
20389 ac_check_lib_save_LIBS=$LIBS
20390 LIBS="-lsqlite3 $LIBS"
20391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20392 /* end confdefs.h. */
20394 /* Override any GCC internal prototype to avoid an error.
20395 Use char because int might match the return type of a GCC
20396 builtin and then its argument prototype would still apply. */
20400 char sqlite3_open ();
20404 return sqlite3_open ();
20409 if ac_fn_c_try_link "$LINENO"; then :
20410 ac_cv_lib_sqlite3_sqlite3_open=yes
20412 ac_cv_lib_sqlite3_sqlite3_open=no
20414 rm -f core conftest.err conftest.$ac_objext \
20415 conftest$ac_exeext conftest.$ac_ext
20416 LIBS=$ac_check_lib_save_LIBS
20418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_open" >&5
20419 $as_echo "$ac_cv_lib_sqlite3_sqlite3_open" >&6; }
20420 if test "x$ac_cv_lib_sqlite3_sqlite3_open" = xyes; then :
20428 elif test "$withval" = "no"; then
20431 sqlite3_CPPFLAGS="-I$withval/include"
20432 sqlite3_LDFLAGS="-L$withval/lib "
20435 if test "x$CPPFLAGS" = "x"; then
20436 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"$sqlite3_CPPFLAGS\""
20437 CPPFLAGS="$sqlite3_CPPFLAGS"
20439 apr_addto_bugger="$sqlite3_CPPFLAGS"
20440 for i in $apr_addto_bugger; do
20441 apr_addto_duplicate="0"
20442 for j in $CPPFLAGS; do
20443 if test "x$i" = "x$j"; then
20444 apr_addto_duplicate="1"
20448 if test $apr_addto_duplicate = "0"; then
20449 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
20450 CPPFLAGS="$CPPFLAGS $i"
20456 if test "x$LDFLAGS" = "x"; then
20457 test "x$silent" != "xyes" && echo " setting LDFLAGS to \"$sqlite3_LDFLAGS\""
20458 LDFLAGS="$sqlite3_LDFLAGS"
20460 apr_addto_bugger="$sqlite3_LDFLAGS"
20461 for i in $apr_addto_bugger; do
20462 apr_addto_duplicate="0"
20463 for j in $LDFLAGS; do
20464 if test "x$i" = "x$j"; then
20465 apr_addto_duplicate="1"
20469 if test $apr_addto_duplicate = "0"; then
20470 test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS"
20471 LDFLAGS="$LDFLAGS $i"
20477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3 in $withval" >&5
20478 $as_echo "$as_me: checking for sqlite3 in $withval" >&6;}
20479 for ac_header in sqlite3.h
20481 ac_fn_c_check_header_mongrel "$LINENO" "sqlite3.h" "ac_cv_header_sqlite3_h" "$ac_includes_default"
20482 if test "x$ac_cv_header_sqlite3_h" = xyes; then :
20483 cat >>confdefs.h <<_ACEOF
20484 #define HAVE_SQLITE3_H 1
20486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_open in -lsqlite3" >&5
20487 $as_echo_n "checking for sqlite3_open in -lsqlite3... " >&6; }
20488 if ${ac_cv_lib_sqlite3_sqlite3_open+:} false; then :
20489 $as_echo_n "(cached) " >&6
20491 ac_check_lib_save_LIBS=$LIBS
20492 LIBS="-lsqlite3 $LIBS"
20493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20494 /* end confdefs.h. */
20496 /* Override any GCC internal prototype to avoid an error.
20497 Use char because int might match the return type of a GCC
20498 builtin and then its argument prototype would still apply. */
20502 char sqlite3_open ();
20506 return sqlite3_open ();
20511 if ac_fn_c_try_link "$LINENO"; then :
20512 ac_cv_lib_sqlite3_sqlite3_open=yes
20514 ac_cv_lib_sqlite3_sqlite3_open=no
20516 rm -f core conftest.err conftest.$ac_objext \
20517 conftest$ac_exeext conftest.$ac_ext
20518 LIBS=$ac_check_lib_save_LIBS
20520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_open" >&5
20521 $as_echo "$ac_cv_lib_sqlite3_sqlite3_open" >&6; }
20522 if test "x$ac_cv_lib_sqlite3_sqlite3_open" = xyes; then :
20530 if test "$apu_have_sqlite3" != "0"; then
20532 if test "x$APRUTIL_PRIV_INCLUDES" = "x"; then
20533 test "x$silent" != "xyes" && echo " setting APRUTIL_PRIV_INCLUDES to \"-I$withval/include\""
20534 APRUTIL_PRIV_INCLUDES="-I$withval/include"
20536 apr_addto_bugger="-I$withval/include"
20537 for i in $apr_addto_bugger; do
20538 apr_addto_duplicate="0"
20539 for j in $APRUTIL_PRIV_INCLUDES; do
20540 if test "x$i" = "x$j"; then
20541 apr_addto_duplicate="1"
20545 if test $apr_addto_duplicate = "0"; then
20546 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_PRIV_INCLUDES"
20547 APRUTIL_PRIV_INCLUDES="$APRUTIL_PRIV_INCLUDES $i"
20557 for ac_header in sqlite3.h
20559 ac_fn_c_check_header_mongrel "$LINENO" "sqlite3.h" "ac_cv_header_sqlite3_h" "$ac_includes_default"
20560 if test "x$ac_cv_header_sqlite3_h" = xyes; then :
20561 cat >>confdefs.h <<_ACEOF
20562 #define HAVE_SQLITE3_H 1
20564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_open in -lsqlite3" >&5
20565 $as_echo_n "checking for sqlite3_open in -lsqlite3... " >&6; }
20566 if ${ac_cv_lib_sqlite3_sqlite3_open+:} false; then :
20567 $as_echo_n "(cached) " >&6
20569 ac_check_lib_save_LIBS=$LIBS
20570 LIBS="-lsqlite3 $LIBS"
20571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20572 /* end confdefs.h. */
20574 /* Override any GCC internal prototype to avoid an error.
20575 Use char because int might match the return type of a GCC
20576 builtin and then its argument prototype would still apply. */
20580 char sqlite3_open ();
20584 return sqlite3_open ();
20589 if ac_fn_c_try_link "$LINENO"; then :
20590 ac_cv_lib_sqlite3_sqlite3_open=yes
20592 ac_cv_lib_sqlite3_sqlite3_open=no
20594 rm -f core conftest.err conftest.$ac_objext \
20595 conftest$ac_exeext conftest.$ac_ext
20596 LIBS=$ac_check_lib_save_LIBS
20598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_open" >&5
20599 $as_echo "$ac_cv_lib_sqlite3_sqlite3_open" >&6; }
20600 if test "x$ac_cv_lib_sqlite3_sqlite3_open" = xyes; then :
20614 if test "$apu_have_sqlite3" = "1"; then
20616 if test "x$LDADD_dbd_sqlite3" = "x"; then
20617 test "x$silent" != "xyes" && echo " setting LDADD_dbd_sqlite3 to \"$sqlite3_LDFLAGS -lsqlite3\""
20618 LDADD_dbd_sqlite3="$sqlite3_LDFLAGS -lsqlite3"
20620 apr_addto_bugger="$sqlite3_LDFLAGS -lsqlite3"
20621 for i in $apr_addto_bugger; do
20622 apr_addto_duplicate="0"
20623 for j in $LDADD_dbd_sqlite3; do
20624 if test "x$i" = "x$j"; then
20625 apr_addto_duplicate="1"
20629 if test $apr_addto_duplicate = "0"; then
20630 test "x$silent" != "xyes" && echo " adding \"$i\" to LDADD_dbd_sqlite3"
20631 LDADD_dbd_sqlite3="$LDADD_dbd_sqlite3 $i"
20640 CPPFLAGS="$old_cppflags"
20641 LDFLAGS="$old_ldflags"
20647 old_cppflags="$CPPFLAGS"
20648 old_ldflags="$LDFLAGS"
20651 # Check whether --with-sqlite2 was given.
20652 if test "${with_sqlite2+set}" = set; then :
20653 withval=$with_sqlite2;
20654 if test "$withval" = "yes"; then
20655 for ac_header in sqlite.h
20657 ac_fn_c_check_header_mongrel "$LINENO" "sqlite.h" "ac_cv_header_sqlite_h" "$ac_includes_default"
20658 if test "x$ac_cv_header_sqlite_h" = xyes; then :
20659 cat >>confdefs.h <<_ACEOF
20660 #define HAVE_SQLITE_H 1
20662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite_open in -lsqlite" >&5
20663 $as_echo_n "checking for sqlite_open in -lsqlite... " >&6; }
20664 if ${ac_cv_lib_sqlite_sqlite_open+:} false; then :
20665 $as_echo_n "(cached) " >&6
20667 ac_check_lib_save_LIBS=$LIBS
20668 LIBS="-lsqlite $LIBS"
20669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20670 /* end confdefs.h. */
20672 /* Override any GCC internal prototype to avoid an error.
20673 Use char because int might match the return type of a GCC
20674 builtin and then its argument prototype would still apply. */
20678 char sqlite_open ();
20682 return sqlite_open ();
20687 if ac_fn_c_try_link "$LINENO"; then :
20688 ac_cv_lib_sqlite_sqlite_open=yes
20690 ac_cv_lib_sqlite_sqlite_open=no
20692 rm -f core conftest.err conftest.$ac_objext \
20693 conftest$ac_exeext conftest.$ac_ext
20694 LIBS=$ac_check_lib_save_LIBS
20696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite_sqlite_open" >&5
20697 $as_echo "$ac_cv_lib_sqlite_sqlite_open" >&6; }
20698 if test "x$ac_cv_lib_sqlite_sqlite_open" = xyes; then :
20706 elif test "$withval" = "no"; then
20709 sqlite2_CPPFLAGS="-I$withval/include"
20710 sqlite2_LDFLAGS="-L$withval/lib "
20713 if test "x$CPPFLAGS" = "x"; then
20714 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"$sqlite2_CPPFLAGS\""
20715 CPPFLAGS="$sqlite2_CPPFLAGS"
20717 apr_addto_bugger="$sqlite2_CPPFLAGS"
20718 for i in $apr_addto_bugger; do
20719 apr_addto_duplicate="0"
20720 for j in $CPPFLAGS; do
20721 if test "x$i" = "x$j"; then
20722 apr_addto_duplicate="1"
20726 if test $apr_addto_duplicate = "0"; then
20727 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
20728 CPPFLAGS="$CPPFLAGS $i"
20734 if test "x$LDFLAGS" = "x"; then
20735 test "x$silent" != "xyes" && echo " setting LDFLAGS to \"$sqlite2_LDFLAGS\""
20736 LDFLAGS="$sqlite2_LDFLAGS"
20738 apr_addto_bugger="$sqlite2_LDFLAGS"
20739 for i in $apr_addto_bugger; do
20740 apr_addto_duplicate="0"
20741 for j in $LDFLAGS; do
20742 if test "x$i" = "x$j"; then
20743 apr_addto_duplicate="1"
20747 if test $apr_addto_duplicate = "0"; then
20748 test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS"
20749 LDFLAGS="$LDFLAGS $i"
20755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite2 in $withval" >&5
20756 $as_echo "$as_me: checking for sqlite2 in $withval" >&6;}
20757 for ac_header in sqlite.h
20759 ac_fn_c_check_header_mongrel "$LINENO" "sqlite.h" "ac_cv_header_sqlite_h" "$ac_includes_default"
20760 if test "x$ac_cv_header_sqlite_h" = xyes; then :
20761 cat >>confdefs.h <<_ACEOF
20762 #define HAVE_SQLITE_H 1
20764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite_open in -lsqlite" >&5
20765 $as_echo_n "checking for sqlite_open in -lsqlite... " >&6; }
20766 if ${ac_cv_lib_sqlite_sqlite_open+:} false; then :
20767 $as_echo_n "(cached) " >&6
20769 ac_check_lib_save_LIBS=$LIBS
20770 LIBS="-lsqlite $LIBS"
20771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20772 /* end confdefs.h. */
20774 /* Override any GCC internal prototype to avoid an error.
20775 Use char because int might match the return type of a GCC
20776 builtin and then its argument prototype would still apply. */
20780 char sqlite_open ();
20784 return sqlite_open ();
20789 if ac_fn_c_try_link "$LINENO"; then :
20790 ac_cv_lib_sqlite_sqlite_open=yes
20792 ac_cv_lib_sqlite_sqlite_open=no
20794 rm -f core conftest.err conftest.$ac_objext \
20795 conftest$ac_exeext conftest.$ac_ext
20796 LIBS=$ac_check_lib_save_LIBS
20798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite_sqlite_open" >&5
20799 $as_echo "$ac_cv_lib_sqlite_sqlite_open" >&6; }
20800 if test "x$ac_cv_lib_sqlite_sqlite_open" = xyes; then :
20808 if test "$apu_have_sqlite2" != "0"; then
20810 if test "x$APRUTIL_PRIV_INCLUDES" = "x"; then
20811 test "x$silent" != "xyes" && echo " setting APRUTIL_PRIV_INCLUDES to \"-I$withval/include\""
20812 APRUTIL_PRIV_INCLUDES="-I$withval/include"
20814 apr_addto_bugger="-I$withval/include"
20815 for i in $apr_addto_bugger; do
20816 apr_addto_duplicate="0"
20817 for j in $APRUTIL_PRIV_INCLUDES; do
20818 if test "x$i" = "x$j"; then
20819 apr_addto_duplicate="1"
20823 if test $apr_addto_duplicate = "0"; then
20824 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_PRIV_INCLUDES"
20825 APRUTIL_PRIV_INCLUDES="$APRUTIL_PRIV_INCLUDES $i"
20835 for ac_header in sqlite.h
20837 ac_fn_c_check_header_mongrel "$LINENO" "sqlite.h" "ac_cv_header_sqlite_h" "$ac_includes_default"
20838 if test "x$ac_cv_header_sqlite_h" = xyes; then :
20839 cat >>confdefs.h <<_ACEOF
20840 #define HAVE_SQLITE_H 1
20842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite_open in -lsqlite" >&5
20843 $as_echo_n "checking for sqlite_open in -lsqlite... " >&6; }
20844 if ${ac_cv_lib_sqlite_sqlite_open+:} false; then :
20845 $as_echo_n "(cached) " >&6
20847 ac_check_lib_save_LIBS=$LIBS
20848 LIBS="-lsqlite $LIBS"
20849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20850 /* end confdefs.h. */
20852 /* Override any GCC internal prototype to avoid an error.
20853 Use char because int might match the return type of a GCC
20854 builtin and then its argument prototype would still apply. */
20858 char sqlite_open ();
20862 return sqlite_open ();
20867 if ac_fn_c_try_link "$LINENO"; then :
20868 ac_cv_lib_sqlite_sqlite_open=yes
20870 ac_cv_lib_sqlite_sqlite_open=no
20872 rm -f core conftest.err conftest.$ac_objext \
20873 conftest$ac_exeext conftest.$ac_ext
20874 LIBS=$ac_check_lib_save_LIBS
20876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite_sqlite_open" >&5
20877 $as_echo "$ac_cv_lib_sqlite_sqlite_open" >&6; }
20878 if test "x$ac_cv_lib_sqlite_sqlite_open" = xyes; then :
20892 if test "$apu_have_sqlite2" = "1"; then
20894 if test "x$LDADD_dbd_sqlite2" = "x"; then
20895 test "x$silent" != "xyes" && echo " setting LDADD_dbd_sqlite2 to \"$sqlite2_LDFLAGS -lsqlite\""
20896 LDADD_dbd_sqlite2="$sqlite2_LDFLAGS -lsqlite"
20898 apr_addto_bugger="$sqlite2_LDFLAGS -lsqlite"
20899 for i in $apr_addto_bugger; do
20900 apr_addto_duplicate="0"
20901 for j in $LDADD_dbd_sqlite2; do
20902 if test "x$i" = "x$j"; then
20903 apr_addto_duplicate="1"
20907 if test $apr_addto_duplicate = "0"; then
20908 test "x$silent" != "xyes" && echo " adding \"$i\" to LDADD_dbd_sqlite2"
20909 LDADD_dbd_sqlite2="$LDADD_dbd_sqlite2 $i"
20918 CPPFLAGS="$old_cppflags"
20919 LDFLAGS="$old_ldflags"
20925 old_cppflags="$CPPFLAGS"
20926 old_ldflags="$LDFLAGS"
20929 # Check whether --with-oracle-include was given.
20930 if test "${with_oracle_include+set}" = set; then :
20931 withval=$with_oracle_include;
20935 # Check whether --with-oracle was given.
20936 if test "${with_oracle+set}" = set; then :
20937 withval=$with_oracle;
20938 if test "$withval" = "yes"; then
20939 if test -n "$with_oracle_include"; then
20940 oracle_CPPFLAGS="$CPPFLAGS -I$with_oracle_include"
20942 if test "x$APRUTIL_PRIV_INCLUDES" = "x"; then
20943 test "x$silent" != "xyes" && echo " setting APRUTIL_PRIV_INCLUDES to \"-I$with_oracle_include\""
20944 APRUTIL_PRIV_INCLUDES="-I$with_oracle_include"
20946 apr_addto_bugger="-I$with_oracle_include"
20947 for i in $apr_addto_bugger; do
20948 apr_addto_duplicate="0"
20949 for j in $APRUTIL_PRIV_INCLUDES; do
20950 if test "x$i" = "x$j"; then
20951 apr_addto_duplicate="1"
20955 if test $apr_addto_duplicate = "0"; then
20956 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_PRIV_INCLUDES"
20957 APRUTIL_PRIV_INCLUDES="$APRUTIL_PRIV_INCLUDES $i"
20965 if test "x$CPPFLAGS" = "x"; then
20966 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"$oracle_CPPFLAGS\""
20967 CPPFLAGS="$oracle_CPPFLAGS"
20969 apr_addto_bugger="$oracle_CPPFLAGS"
20970 for i in $apr_addto_bugger; do
20971 apr_addto_duplicate="0"
20972 for j in $CPPFLAGS; do
20973 if test "x$i" = "x$j"; then
20974 apr_addto_duplicate="1"
20978 if test $apr_addto_duplicate = "0"; then
20979 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
20980 CPPFLAGS="$CPPFLAGS $i"
20986 for ac_header in oci.h
20988 ac_fn_c_check_header_mongrel "$LINENO" "oci.h" "ac_cv_header_oci_h" "$ac_includes_default"
20989 if test "x$ac_cv_header_oci_h" = xyes; then :
20990 cat >>confdefs.h <<_ACEOF
20991 #define HAVE_OCI_H 1
20993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCIEnvCreate in -lclntsh" >&5
20994 $as_echo_n "checking for OCIEnvCreate in -lclntsh... " >&6; }
20995 if ${ac_cv_lib_clntsh_OCIEnvCreate+:} false; then :
20996 $as_echo_n "(cached) " >&6
20998 ac_check_lib_save_LIBS=$LIBS
20999 LIBS="-lclntsh $LIBS"
21000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21001 /* end confdefs.h. */
21003 /* Override any GCC internal prototype to avoid an error.
21004 Use char because int might match the return type of a GCC
21005 builtin and then its argument prototype would still apply. */
21009 char OCIEnvCreate ();
21013 return OCIEnvCreate ();
21018 if ac_fn_c_try_link "$LINENO"; then :
21019 ac_cv_lib_clntsh_OCIEnvCreate=yes
21021 ac_cv_lib_clntsh_OCIEnvCreate=no
21023 rm -f core conftest.err conftest.$ac_objext \
21024 conftest$ac_exeext conftest.$ac_ext
21025 LIBS=$ac_check_lib_save_LIBS
21027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_clntsh_OCIEnvCreate" >&5
21028 $as_echo "$ac_cv_lib_clntsh_OCIEnvCreate" >&6; }
21029 if test "x$ac_cv_lib_clntsh_OCIEnvCreate" = xyes; then :
21033 unset ac_cv_lib_clntsh_OCIEnvCreate
21034 oracle_LIBS="-lnnz11"
21036 if test "x$LIBS" = "x"; then
21037 test "x$silent" != "xyes" && echo " setting LIBS to \"$oracle_LIBS\""
21038 LIBS="$oracle_LIBS"
21040 apr_addto_bugger="$oracle_LIBS"
21041 for i in $apr_addto_bugger; do
21042 apr_addto_duplicate="0"
21044 if test "x$i" = "x$j"; then
21045 apr_addto_duplicate="1"
21049 if test $apr_addto_duplicate = "0"; then
21050 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
21056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCIEnvCreate in -lclntsh" >&5
21057 $as_echo_n "checking for OCIEnvCreate in -lclntsh... " >&6; }
21058 if ${ac_cv_lib_clntsh_OCIEnvCreate+:} false; then :
21059 $as_echo_n "(cached) " >&6
21061 ac_check_lib_save_LIBS=$LIBS
21062 LIBS="-lclntsh $LIBS"
21063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21064 /* end confdefs.h. */
21066 /* Override any GCC internal prototype to avoid an error.
21067 Use char because int might match the return type of a GCC
21068 builtin and then its argument prototype would still apply. */
21072 char OCIEnvCreate ();
21076 return OCIEnvCreate ();
21081 if ac_fn_c_try_link "$LINENO"; then :
21082 ac_cv_lib_clntsh_OCIEnvCreate=yes
21084 ac_cv_lib_clntsh_OCIEnvCreate=no
21086 rm -f core conftest.err conftest.$ac_objext \
21087 conftest$ac_exeext conftest.$ac_ext
21088 LIBS=$ac_check_lib_save_LIBS
21090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_clntsh_OCIEnvCreate" >&5
21091 $as_echo "$ac_cv_lib_clntsh_OCIEnvCreate" >&6; }
21092 if test "x$ac_cv_lib_clntsh_OCIEnvCreate" = xyes; then :
21096 unset ac_cv_lib_clntsh_OCIEnvCreate
21098 if test "x$LIBS" = "x$oracle_LIBS"; then
21099 test "x$silent" != "xyes" && echo " nulling LIBS"
21105 if test "x$i" != "x$oracle_LIBS"; then
21106 apr_new_bugger="$apr_new_bugger $i"
21111 if test $apr_removed = "1"; then
21112 test "x$silent" != "xyes" && echo " removed \"$oracle_LIBS\" from LIBS"
21113 LIBS=$apr_new_bugger
21117 oracle_LIBS="-lnnz10"
21119 if test "x$LIBS" = "x"; then
21120 test "x$silent" != "xyes" && echo " setting LIBS to \"$oracle_LIBS\""
21121 LIBS="$oracle_LIBS"
21123 apr_addto_bugger="$oracle_LIBS"
21124 for i in $apr_addto_bugger; do
21125 apr_addto_duplicate="0"
21127 if test "x$i" = "x$j"; then
21128 apr_addto_duplicate="1"
21132 if test $apr_addto_duplicate = "0"; then
21133 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
21139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCIEnvCreate in -lclntsh" >&5
21140 $as_echo_n "checking for OCIEnvCreate in -lclntsh... " >&6; }
21141 if ${ac_cv_lib_clntsh_OCIEnvCreate+:} false; then :
21142 $as_echo_n "(cached) " >&6
21144 ac_check_lib_save_LIBS=$LIBS
21145 LIBS="-lclntsh $LIBS"
21146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21147 /* end confdefs.h. */
21149 /* Override any GCC internal prototype to avoid an error.
21150 Use char because int might match the return type of a GCC
21151 builtin and then its argument prototype would still apply. */
21155 char OCIEnvCreate ();
21159 return OCIEnvCreate ();
21164 if ac_fn_c_try_link "$LINENO"; then :
21165 ac_cv_lib_clntsh_OCIEnvCreate=yes
21167 ac_cv_lib_clntsh_OCIEnvCreate=no
21169 rm -f core conftest.err conftest.$ac_objext \
21170 conftest$ac_exeext conftest.$ac_ext
21171 LIBS=$ac_check_lib_save_LIBS
21173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_clntsh_OCIEnvCreate" >&5
21174 $as_echo "$ac_cv_lib_clntsh_OCIEnvCreate" >&6; }
21175 if test "x$ac_cv_lib_clntsh_OCIEnvCreate" = xyes; then :
21189 elif test "$withval" = "no"; then
21192 if test -n "$with_oracle_include"; then
21193 oracle_CPPFLAGS="$CPPFLAGS -I$with_oracle_include"
21195 if test "x$APRUTIL_PRIV_INCLUDES" = "x"; then
21196 test "x$silent" != "xyes" && echo " setting APRUTIL_PRIV_INCLUDES to \"-I$with_oracle_include\""
21197 APRUTIL_PRIV_INCLUDES="-I$with_oracle_include"
21199 apr_addto_bugger="-I$with_oracle_include"
21200 for i in $apr_addto_bugger; do
21201 apr_addto_duplicate="0"
21202 for j in $APRUTIL_PRIV_INCLUDES; do
21203 if test "x$i" = "x$j"; then
21204 apr_addto_duplicate="1"
21208 if test $apr_addto_duplicate = "0"; then
21209 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_PRIV_INCLUDES"
21210 APRUTIL_PRIV_INCLUDES="$APRUTIL_PRIV_INCLUDES $i"
21216 oracle_CPPFLAGS="-I$withval/rdbms/demo -I$withval/rdbms/public"
21218 oracle_LDFLAGS="-L$withval/lib "
21221 if test "x$CPPFLAGS" = "x"; then
21222 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"$oracle_CPPFLAGS\""
21223 CPPFLAGS="$oracle_CPPFLAGS"
21225 apr_addto_bugger="$oracle_CPPFLAGS"
21226 for i in $apr_addto_bugger; do
21227 apr_addto_duplicate="0"
21228 for j in $CPPFLAGS; do
21229 if test "x$i" = "x$j"; then
21230 apr_addto_duplicate="1"
21234 if test $apr_addto_duplicate = "0"; then
21235 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
21236 CPPFLAGS="$CPPFLAGS $i"
21242 if test "x$LDFLAGS" = "x"; then
21243 test "x$silent" != "xyes" && echo " setting LDFLAGS to \"$oracle_LDFLAGS\""
21244 LDFLAGS="$oracle_LDFLAGS"
21246 apr_addto_bugger="$oracle_LDFLAGS"
21247 for i in $apr_addto_bugger; do
21248 apr_addto_duplicate="0"
21249 for j in $LDFLAGS; do
21250 if test "x$i" = "x$j"; then
21251 apr_addto_duplicate="1"
21255 if test $apr_addto_duplicate = "0"; then
21256 test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS"
21257 LDFLAGS="$LDFLAGS $i"
21263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for oracle in $withval" >&5
21264 $as_echo "$as_me: checking for oracle in $withval" >&6;}
21265 for ac_header in oci.h
21267 ac_fn_c_check_header_mongrel "$LINENO" "oci.h" "ac_cv_header_oci_h" "$ac_includes_default"
21268 if test "x$ac_cv_header_oci_h" = xyes; then :
21269 cat >>confdefs.h <<_ACEOF
21270 #define HAVE_OCI_H 1
21272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCIEnvCreate in -lclntsh" >&5
21273 $as_echo_n "checking for OCIEnvCreate in -lclntsh... " >&6; }
21274 if ${ac_cv_lib_clntsh_OCIEnvCreate+:} false; then :
21275 $as_echo_n "(cached) " >&6
21277 ac_check_lib_save_LIBS=$LIBS
21278 LIBS="-lclntsh $LIBS"
21279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21280 /* end confdefs.h. */
21282 /* Override any GCC internal prototype to avoid an error.
21283 Use char because int might match the return type of a GCC
21284 builtin and then its argument prototype would still apply. */
21288 char OCIEnvCreate ();
21292 return OCIEnvCreate ();
21297 if ac_fn_c_try_link "$LINENO"; then :
21298 ac_cv_lib_clntsh_OCIEnvCreate=yes
21300 ac_cv_lib_clntsh_OCIEnvCreate=no
21302 rm -f core conftest.err conftest.$ac_objext \
21303 conftest$ac_exeext conftest.$ac_ext
21304 LIBS=$ac_check_lib_save_LIBS
21306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_clntsh_OCIEnvCreate" >&5
21307 $as_echo "$ac_cv_lib_clntsh_OCIEnvCreate" >&6; }
21308 if test "x$ac_cv_lib_clntsh_OCIEnvCreate" = xyes; then :
21312 unset ac_cv_lib_clntsh_OCIEnvCreate
21313 oracle_LIBS="-lnnz11"
21315 if test "x$LIBS" = "x"; then
21316 test "x$silent" != "xyes" && echo " setting LIBS to \"$oracle_LIBS\""
21317 LIBS="$oracle_LIBS"
21319 apr_addto_bugger="$oracle_LIBS"
21320 for i in $apr_addto_bugger; do
21321 apr_addto_duplicate="0"
21323 if test "x$i" = "x$j"; then
21324 apr_addto_duplicate="1"
21328 if test $apr_addto_duplicate = "0"; then
21329 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
21335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCIEnvCreate in -lclntsh" >&5
21336 $as_echo_n "checking for OCIEnvCreate in -lclntsh... " >&6; }
21337 if ${ac_cv_lib_clntsh_OCIEnvCreate+:} false; then :
21338 $as_echo_n "(cached) " >&6
21340 ac_check_lib_save_LIBS=$LIBS
21341 LIBS="-lclntsh $LIBS"
21342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21343 /* end confdefs.h. */
21345 /* Override any GCC internal prototype to avoid an error.
21346 Use char because int might match the return type of a GCC
21347 builtin and then its argument prototype would still apply. */
21351 char OCIEnvCreate ();
21355 return OCIEnvCreate ();
21360 if ac_fn_c_try_link "$LINENO"; then :
21361 ac_cv_lib_clntsh_OCIEnvCreate=yes
21363 ac_cv_lib_clntsh_OCIEnvCreate=no
21365 rm -f core conftest.err conftest.$ac_objext \
21366 conftest$ac_exeext conftest.$ac_ext
21367 LIBS=$ac_check_lib_save_LIBS
21369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_clntsh_OCIEnvCreate" >&5
21370 $as_echo "$ac_cv_lib_clntsh_OCIEnvCreate" >&6; }
21371 if test "x$ac_cv_lib_clntsh_OCIEnvCreate" = xyes; then :
21375 unset ac_cv_lib_clntsh_OCIEnvCreate
21377 if test "x$LIBS" = "x$oracle_LIBS"; then
21378 test "x$silent" != "xyes" && echo " nulling LIBS"
21384 if test "x$i" != "x$oracle_LIBS"; then
21385 apr_new_bugger="$apr_new_bugger $i"
21390 if test $apr_removed = "1"; then
21391 test "x$silent" != "xyes" && echo " removed \"$oracle_LIBS\" from LIBS"
21392 LIBS=$apr_new_bugger
21396 oracle_LIBS="-lnnz10"
21398 if test "x$LIBS" = "x"; then
21399 test "x$silent" != "xyes" && echo " setting LIBS to \"$oracle_LIBS\""
21400 LIBS="$oracle_LIBS"
21402 apr_addto_bugger="$oracle_LIBS"
21403 for i in $apr_addto_bugger; do
21404 apr_addto_duplicate="0"
21406 if test "x$i" = "x$j"; then
21407 apr_addto_duplicate="1"
21411 if test $apr_addto_duplicate = "0"; then
21412 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
21418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCIEnvCreate in -lclntsh" >&5
21419 $as_echo_n "checking for OCIEnvCreate in -lclntsh... " >&6; }
21420 if ${ac_cv_lib_clntsh_OCIEnvCreate+:} false; then :
21421 $as_echo_n "(cached) " >&6
21423 ac_check_lib_save_LIBS=$LIBS
21424 LIBS="-lclntsh $LIBS"
21425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21426 /* end confdefs.h. */
21428 /* Override any GCC internal prototype to avoid an error.
21429 Use char because int might match the return type of a GCC
21430 builtin and then its argument prototype would still apply. */
21434 char OCIEnvCreate ();
21438 return OCIEnvCreate ();
21443 if ac_fn_c_try_link "$LINENO"; then :
21444 ac_cv_lib_clntsh_OCIEnvCreate=yes
21446 ac_cv_lib_clntsh_OCIEnvCreate=no
21448 rm -f core conftest.err conftest.$ac_objext \
21449 conftest$ac_exeext conftest.$ac_ext
21450 LIBS=$ac_check_lib_save_LIBS
21452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_clntsh_OCIEnvCreate" >&5
21453 $as_echo "$ac_cv_lib_clntsh_OCIEnvCreate" >&6; }
21454 if test "x$ac_cv_lib_clntsh_OCIEnvCreate" = xyes; then :
21468 if test "$apu_have_oracle" != "0"; then
21469 oracle_LDFLAGS="$oracle_LDFLAGS -R$withval/lib"
21470 if test -z "$with_oracle_include"; then
21472 if test "x$APRUTIL_PRIV_INCLUDES" = "x"; then
21473 test "x$silent" != "xyes" && echo " setting APRUTIL_PRIV_INCLUDES to \"-I$withval/rdbms/demo\""
21474 APRUTIL_PRIV_INCLUDES="-I$withval/rdbms/demo"
21476 apr_addto_bugger="-I$withval/rdbms/demo"
21477 for i in $apr_addto_bugger; do
21478 apr_addto_duplicate="0"
21479 for j in $APRUTIL_PRIV_INCLUDES; do
21480 if test "x$i" = "x$j"; then
21481 apr_addto_duplicate="1"
21485 if test $apr_addto_duplicate = "0"; then
21486 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_PRIV_INCLUDES"
21487 APRUTIL_PRIV_INCLUDES="$APRUTIL_PRIV_INCLUDES $i"
21493 if test "x$APRUTIL_PRIV_INCLUDES" = "x"; then
21494 test "x$silent" != "xyes" && echo " setting APRUTIL_PRIV_INCLUDES to \"-I$withval/rdbms/public\""
21495 APRUTIL_PRIV_INCLUDES="-I$withval/rdbms/public"
21497 apr_addto_bugger="-I$withval/rdbms/public"
21498 for i in $apr_addto_bugger; do
21499 apr_addto_duplicate="0"
21500 for j in $APRUTIL_PRIV_INCLUDES; do
21501 if test "x$i" = "x$j"; then
21502 apr_addto_duplicate="1"
21506 if test $apr_addto_duplicate = "0"; then
21507 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_PRIV_INCLUDES"
21508 APRUTIL_PRIV_INCLUDES="$APRUTIL_PRIV_INCLUDES $i"
21522 if test "$apu_have_oracle" = "1"; then
21524 if test "x$LDADD_dbd_oracle" = "x"; then
21525 test "x$silent" != "xyes" && echo " setting LDADD_dbd_oracle to \"$oracle_LDFLAGS -lclntsh $oracle_LIBS\""
21526 LDADD_dbd_oracle="$oracle_LDFLAGS -lclntsh $oracle_LIBS"
21528 apr_addto_bugger="$oracle_LDFLAGS -lclntsh $oracle_LIBS"
21529 for i in $apr_addto_bugger; do
21530 apr_addto_duplicate="0"
21531 for j in $LDADD_dbd_oracle; do
21532 if test "x$i" = "x$j"; then
21533 apr_addto_duplicate="1"
21537 if test $apr_addto_duplicate = "0"; then
21538 test "x$silent" != "xyes" && echo " adding \"$i\" to LDADD_dbd_oracle"
21539 LDADD_dbd_oracle="$LDADD_dbd_oracle $i"
21548 CPPFLAGS="$old_cppflags"
21549 LDFLAGS="$old_ldflags"
21555 old_cppflags="$CPPFLAGS"
21556 old_ldflags="$LDFLAGS"
21559 # Check whether --with-freetds was given.
21560 if test "${with_freetds+set}" = set; then :
21561 withval=$with_freetds;
21562 if test "$withval" = "yes"; then
21563 for ac_header in sybdb.h
21565 ac_fn_c_check_header_mongrel "$LINENO" "sybdb.h" "ac_cv_header_sybdb_h" "$ac_includes_default"
21566 if test "x$ac_cv_header_sybdb_h" = xyes; then :
21567 cat >>confdefs.h <<_ACEOF
21568 #define HAVE_SYBDB_H 1
21570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tdsdbopen in -lsybdb" >&5
21571 $as_echo_n "checking for tdsdbopen in -lsybdb... " >&6; }
21572 if ${ac_cv_lib_sybdb_tdsdbopen+:} false; then :
21573 $as_echo_n "(cached) " >&6
21575 ac_check_lib_save_LIBS=$LIBS
21576 LIBS="-lsybdb $LIBS"
21577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21578 /* end confdefs.h. */
21580 /* Override any GCC internal prototype to avoid an error.
21581 Use char because int might match the return type of a GCC
21582 builtin and then its argument prototype would still apply. */
21590 return tdsdbopen ();
21595 if ac_fn_c_try_link "$LINENO"; then :
21596 ac_cv_lib_sybdb_tdsdbopen=yes
21598 ac_cv_lib_sybdb_tdsdbopen=no
21600 rm -f core conftest.err conftest.$ac_objext \
21601 conftest$ac_exeext conftest.$ac_ext
21602 LIBS=$ac_check_lib_save_LIBS
21604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sybdb_tdsdbopen" >&5
21605 $as_echo "$ac_cv_lib_sybdb_tdsdbopen" >&6; }
21606 if test "x$ac_cv_lib_sybdb_tdsdbopen" = xyes; then :
21614 if test "$apu_have_freetds" = "0"; then
21615 for ac_header in freetds/sybdb.h
21617 ac_fn_c_check_header_mongrel "$LINENO" "freetds/sybdb.h" "ac_cv_header_freetds_sybdb_h" "$ac_includes_default"
21618 if test "x$ac_cv_header_freetds_sybdb_h" = xyes; then :
21619 cat >>confdefs.h <<_ACEOF
21620 #define HAVE_FREETDS_SYBDB_H 1
21622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tdsdbopen in -lsybdb" >&5
21623 $as_echo_n "checking for tdsdbopen in -lsybdb... " >&6; }
21624 if ${ac_cv_lib_sybdb_tdsdbopen+:} false; then :
21625 $as_echo_n "(cached) " >&6
21627 ac_check_lib_save_LIBS=$LIBS
21628 LIBS="-lsybdb $LIBS"
21629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21630 /* end confdefs.h. */
21632 /* Override any GCC internal prototype to avoid an error.
21633 Use char because int might match the return type of a GCC
21634 builtin and then its argument prototype would still apply. */
21642 return tdsdbopen ();
21647 if ac_fn_c_try_link "$LINENO"; then :
21648 ac_cv_lib_sybdb_tdsdbopen=yes
21650 ac_cv_lib_sybdb_tdsdbopen=no
21652 rm -f core conftest.err conftest.$ac_objext \
21653 conftest$ac_exeext conftest.$ac_ext
21654 LIBS=$ac_check_lib_save_LIBS
21656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sybdb_tdsdbopen" >&5
21657 $as_echo "$ac_cv_lib_sybdb_tdsdbopen" >&6; }
21658 if test "x$ac_cv_lib_sybdb_tdsdbopen" = xyes; then :
21667 elif test "$withval" = "no"; then
21670 sybdb_CPPFLAGS="-I$withval/include"
21671 sybdb_LDFLAGS="-L$withval/lib "
21674 if test "x$CPPFLAGS" = "x"; then
21675 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"$sybdb_CPPFLAGS\""
21676 CPPFLAGS="$sybdb_CPPFLAGS"
21678 apr_addto_bugger="$sybdb_CPPFLAGS"
21679 for i in $apr_addto_bugger; do
21680 apr_addto_duplicate="0"
21681 for j in $CPPFLAGS; do
21682 if test "x$i" = "x$j"; then
21683 apr_addto_duplicate="1"
21687 if test $apr_addto_duplicate = "0"; then
21688 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
21689 CPPFLAGS="$CPPFLAGS $i"
21695 if test "x$LDFLAGS" = "x"; then
21696 test "x$silent" != "xyes" && echo " setting LDFLAGS to \"$sybdb_LDFLAGS\""
21697 LDFLAGS="$sybdb_LDFLAGS"
21699 apr_addto_bugger="$sybdb_LDFLAGS"
21700 for i in $apr_addto_bugger; do
21701 apr_addto_duplicate="0"
21702 for j in $LDFLAGS; do
21703 if test "x$i" = "x$j"; then
21704 apr_addto_duplicate="1"
21708 if test $apr_addto_duplicate = "0"; then
21709 test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS"
21710 LDFLAGS="$LDFLAGS $i"
21716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetds in $withval" >&5
21717 $as_echo "$as_me: checking for freetds in $withval" >&6;}
21718 for ac_header in sybdb.h
21720 ac_fn_c_check_header_mongrel "$LINENO" "sybdb.h" "ac_cv_header_sybdb_h" "$ac_includes_default"
21721 if test "x$ac_cv_header_sybdb_h" = xyes; then :
21722 cat >>confdefs.h <<_ACEOF
21723 #define HAVE_SYBDB_H 1
21725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tdsdbopen in -lsybdb" >&5
21726 $as_echo_n "checking for tdsdbopen in -lsybdb... " >&6; }
21727 if ${ac_cv_lib_sybdb_tdsdbopen+:} false; then :
21728 $as_echo_n "(cached) " >&6
21730 ac_check_lib_save_LIBS=$LIBS
21731 LIBS="-lsybdb $LIBS"
21732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21733 /* end confdefs.h. */
21735 /* Override any GCC internal prototype to avoid an error.
21736 Use char because int might match the return type of a GCC
21737 builtin and then its argument prototype would still apply. */
21745 return tdsdbopen ();
21750 if ac_fn_c_try_link "$LINENO"; then :
21751 ac_cv_lib_sybdb_tdsdbopen=yes
21753 ac_cv_lib_sybdb_tdsdbopen=no
21755 rm -f core conftest.err conftest.$ac_objext \
21756 conftest$ac_exeext conftest.$ac_ext
21757 LIBS=$ac_check_lib_save_LIBS
21759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sybdb_tdsdbopen" >&5
21760 $as_echo "$ac_cv_lib_sybdb_tdsdbopen" >&6; }
21761 if test "x$ac_cv_lib_sybdb_tdsdbopen" = xyes; then :
21769 if test "$apu_have_freetds" = "0"; then
21770 for ac_header in freetds/sybdb.h
21772 ac_fn_c_check_header_mongrel "$LINENO" "freetds/sybdb.h" "ac_cv_header_freetds_sybdb_h" "$ac_includes_default"
21773 if test "x$ac_cv_header_freetds_sybdb_h" = xyes; then :
21774 cat >>confdefs.h <<_ACEOF
21775 #define HAVE_FREETDS_SYBDB_H 1
21777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tdsdbopen in -lsybdb" >&5
21778 $as_echo_n "checking for tdsdbopen in -lsybdb... " >&6; }
21779 if ${ac_cv_lib_sybdb_tdsdbopen+:} false; then :
21780 $as_echo_n "(cached) " >&6
21782 ac_check_lib_save_LIBS=$LIBS
21783 LIBS="-lsybdb $LIBS"
21784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21785 /* end confdefs.h. */
21787 /* Override any GCC internal prototype to avoid an error.
21788 Use char because int might match the return type of a GCC
21789 builtin and then its argument prototype would still apply. */
21797 return tdsdbopen ();
21802 if ac_fn_c_try_link "$LINENO"; then :
21803 ac_cv_lib_sybdb_tdsdbopen=yes
21805 ac_cv_lib_sybdb_tdsdbopen=no
21807 rm -f core conftest.err conftest.$ac_objext \
21808 conftest$ac_exeext conftest.$ac_ext
21809 LIBS=$ac_check_lib_save_LIBS
21811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sybdb_tdsdbopen" >&5
21812 $as_echo "$ac_cv_lib_sybdb_tdsdbopen" >&6; }
21813 if test "x$ac_cv_lib_sybdb_tdsdbopen" = xyes; then :
21822 if test "$apu_have_freetds" != "0"; then
21824 if test "x$APRUTIL_PRIV_INCLUDES" = "x"; then
21825 test "x$silent" != "xyes" && echo " setting APRUTIL_PRIV_INCLUDES to \"-I$withval/include\""
21826 APRUTIL_PRIV_INCLUDES="-I$withval/include"
21828 apr_addto_bugger="-I$withval/include"
21829 for i in $apr_addto_bugger; do
21830 apr_addto_duplicate="0"
21831 for j in $APRUTIL_PRIV_INCLUDES; do
21832 if test "x$i" = "x$j"; then
21833 apr_addto_duplicate="1"
21837 if test $apr_addto_duplicate = "0"; then
21838 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_PRIV_INCLUDES"
21839 APRUTIL_PRIV_INCLUDES="$APRUTIL_PRIV_INCLUDES $i"
21849 for ac_header in sybdb.h
21851 ac_fn_c_check_header_mongrel "$LINENO" "sybdb.h" "ac_cv_header_sybdb_h" "$ac_includes_default"
21852 if test "x$ac_cv_header_sybdb_h" = xyes; then :
21853 cat >>confdefs.h <<_ACEOF
21854 #define HAVE_SYBDB_H 1
21856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tdsdbopen in -lsybdb" >&5
21857 $as_echo_n "checking for tdsdbopen in -lsybdb... " >&6; }
21858 if ${ac_cv_lib_sybdb_tdsdbopen+:} false; then :
21859 $as_echo_n "(cached) " >&6
21861 ac_check_lib_save_LIBS=$LIBS
21862 LIBS="-lsybdb $LIBS"
21863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21864 /* end confdefs.h. */
21866 /* Override any GCC internal prototype to avoid an error.
21867 Use char because int might match the return type of a GCC
21868 builtin and then its argument prototype would still apply. */
21876 return tdsdbopen ();
21881 if ac_fn_c_try_link "$LINENO"; then :
21882 ac_cv_lib_sybdb_tdsdbopen=yes
21884 ac_cv_lib_sybdb_tdsdbopen=no
21886 rm -f core conftest.err conftest.$ac_objext \
21887 conftest$ac_exeext conftest.$ac_ext
21888 LIBS=$ac_check_lib_save_LIBS
21890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sybdb_tdsdbopen" >&5
21891 $as_echo "$ac_cv_lib_sybdb_tdsdbopen" >&6; }
21892 if test "x$ac_cv_lib_sybdb_tdsdbopen" = xyes; then :
21900 if test "$apu_have_freetds" = "0"; then
21901 for ac_header in freetds/sybdb.h
21903 ac_fn_c_check_header_mongrel "$LINENO" "freetds/sybdb.h" "ac_cv_header_freetds_sybdb_h" "$ac_includes_default"
21904 if test "x$ac_cv_header_freetds_sybdb_h" = xyes; then :
21905 cat >>confdefs.h <<_ACEOF
21906 #define HAVE_FREETDS_SYBDB_H 1
21908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tdsdbopen in -lsybdb" >&5
21909 $as_echo_n "checking for tdsdbopen in -lsybdb... " >&6; }
21910 if ${ac_cv_lib_sybdb_tdsdbopen+:} false; then :
21911 $as_echo_n "(cached) " >&6
21913 ac_check_lib_save_LIBS=$LIBS
21914 LIBS="-lsybdb $LIBS"
21915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21916 /* end confdefs.h. */
21918 /* Override any GCC internal prototype to avoid an error.
21919 Use char because int might match the return type of a GCC
21920 builtin and then its argument prototype would still apply. */
21928 return tdsdbopen ();
21933 if ac_fn_c_try_link "$LINENO"; then :
21934 ac_cv_lib_sybdb_tdsdbopen=yes
21936 ac_cv_lib_sybdb_tdsdbopen=no
21938 rm -f core conftest.err conftest.$ac_objext \
21939 conftest$ac_exeext conftest.$ac_ext
21940 LIBS=$ac_check_lib_save_LIBS
21942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sybdb_tdsdbopen" >&5
21943 $as_echo "$ac_cv_lib_sybdb_tdsdbopen" >&6; }
21944 if test "x$ac_cv_lib_sybdb_tdsdbopen" = xyes; then :
21959 if test "$apu_have_freetds" = "1"; then
21961 if test "x$LDADD_dbd_freetds" = "x"; then
21962 test "x$silent" != "xyes" && echo " setting LDADD_dbd_freetds to \"$sybdb_LDFLAGS -lsybdb\""
21963 LDADD_dbd_freetds="$sybdb_LDFLAGS -lsybdb"
21965 apr_addto_bugger="$sybdb_LDFLAGS -lsybdb"
21966 for i in $apr_addto_bugger; do
21967 apr_addto_duplicate="0"
21968 for j in $LDADD_dbd_freetds; do
21969 if test "x$i" = "x$j"; then
21970 apr_addto_duplicate="1"
21974 if test $apr_addto_duplicate = "0"; then
21975 test "x$silent" != "xyes" && echo " adding \"$i\" to LDADD_dbd_freetds"
21976 LDADD_dbd_freetds="$LDADD_dbd_freetds $i"
21985 CPPFLAGS="$old_cppflags"
21986 LDFLAGS="$old_ldflags"
21992 old_cppflags="$CPPFLAGS"
21993 old_ldflags="$LDFLAGS"
21996 # Check whether --with-odbc was given.
21997 if test "${with_odbc+set}" = set; then :
21998 withval=$with_odbc;
21999 if test "$withval" = "yes"; then
22000 # Extract the first word of "odbc_config", so it can be a program name with args.
22001 set dummy odbc_config; ac_word=$2
22002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22003 $as_echo_n "checking for $ac_word... " >&6; }
22004 if ${ac_cv_path_ODBC_CONFIG+:} false; then :
22005 $as_echo_n "(cached) " >&6
22007 case $ODBC_CONFIG in
22009 ac_cv_path_ODBC_CONFIG="$ODBC_CONFIG" # Let the user override the test with a path.
22012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22013 for as_dir in $PATH
22016 test -z "$as_dir" && as_dir=.
22017 for ac_exec_ext in '' $ac_executable_extensions; do
22018 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22019 ac_cv_path_ODBC_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22030 ODBC_CONFIG=$ac_cv_path_ODBC_CONFIG
22031 if test -n "$ODBC_CONFIG"; then
22032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ODBC_CONFIG" >&5
22033 $as_echo "$ODBC_CONFIG" >&6; }
22035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22036 $as_echo "no" >&6; }
22040 if test "x$ODBC_CONFIG" != 'x'; then
22041 odbc_CPPFLAGS="-I`$ODBC_CONFIG --include-prefix`"
22042 odbc_LDFLAGS="-L`$ODBC_CONFIG --lib-prefix`"
22043 odbc_LIBS="`$ODBC_CONFIG --libs`"
22046 if test "x$CPPFLAGS" = "x"; then
22047 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"$odbc_CPPFLAGS\""
22048 CPPFLAGS="$odbc_CPPFLAGS"
22050 apr_addto_bugger="$odbc_CPPFLAGS"
22051 for i in $apr_addto_bugger; do
22052 apr_addto_duplicate="0"
22053 for j in $CPPFLAGS; do
22054 if test "x$i" = "x$j"; then
22055 apr_addto_duplicate="1"
22059 if test $apr_addto_duplicate = "0"; then
22060 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
22061 CPPFLAGS="$CPPFLAGS $i"
22067 if test "x$LDFLAGS" = "x"; then
22068 test "x$silent" != "xyes" && echo " setting LDFLAGS to \"$odbc_LDFLAGS\""
22069 LDFLAGS="$odbc_LDFLAGS"
22071 apr_addto_bugger="$odbc_LDFLAGS"
22072 for i in $apr_addto_bugger; do
22073 apr_addto_duplicate="0"
22074 for j in $LDFLAGS; do
22075 if test "x$i" = "x$j"; then
22076 apr_addto_duplicate="1"
22080 if test $apr_addto_duplicate = "0"; then
22081 test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS"
22082 LDFLAGS="$LDFLAGS $i"
22088 if test "x$LIBS" = "x"; then
22089 test "x$silent" != "xyes" && echo " setting LIBS to \"$odbc_LIBS\""
22092 apr_addto_bugger="$odbc_LIBS"
22093 for i in $apr_addto_bugger; do
22094 apr_addto_duplicate="0"
22096 if test "x$i" = "x$j"; then
22097 apr_addto_duplicate="1"
22101 if test $apr_addto_duplicate = "0"; then
22102 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
22110 for ac_header in sql.h
22112 ac_fn_c_check_header_mongrel "$LINENO" "sql.h" "ac_cv_header_sql_h" "$ac_includes_default"
22113 if test "x$ac_cv_header_sql_h" = xyes; then :
22114 cat >>confdefs.h <<_ACEOF
22115 #define HAVE_SQL_H 1
22117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLAllocHandle in -lodbc" >&5
22118 $as_echo_n "checking for SQLAllocHandle in -lodbc... " >&6; }
22119 if ${ac_cv_lib_odbc_SQLAllocHandle+:} false; then :
22120 $as_echo_n "(cached) " >&6
22122 ac_check_lib_save_LIBS=$LIBS
22123 LIBS="-lodbc $LIBS"
22124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22125 /* end confdefs.h. */
22127 /* Override any GCC internal prototype to avoid an error.
22128 Use char because int might match the return type of a GCC
22129 builtin and then its argument prototype would still apply. */
22133 char SQLAllocHandle ();
22137 return SQLAllocHandle ();
22142 if ac_fn_c_try_link "$LINENO"; then :
22143 ac_cv_lib_odbc_SQLAllocHandle=yes
22145 ac_cv_lib_odbc_SQLAllocHandle=no
22147 rm -f core conftest.err conftest.$ac_objext \
22148 conftest$ac_exeext conftest.$ac_ext
22149 LIBS=$ac_check_lib_save_LIBS
22151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_odbc_SQLAllocHandle" >&5
22152 $as_echo "$ac_cv_lib_odbc_SQLAllocHandle" >&6; }
22153 if test "x$ac_cv_lib_odbc_SQLAllocHandle" = xyes; then :
22161 if test "$apu_have_odbc" = "0"; then
22162 for ac_header in odbc/sql.h
22164 ac_fn_c_check_header_mongrel "$LINENO" "odbc/sql.h" "ac_cv_header_odbc_sql_h" "$ac_includes_default"
22165 if test "x$ac_cv_header_odbc_sql_h" = xyes; then :
22166 cat >>confdefs.h <<_ACEOF
22167 #define HAVE_ODBC_SQL_H 1
22169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLAllocHandle in -lodbc" >&5
22170 $as_echo_n "checking for SQLAllocHandle in -lodbc... " >&6; }
22171 if ${ac_cv_lib_odbc_SQLAllocHandle+:} false; then :
22172 $as_echo_n "(cached) " >&6
22174 ac_check_lib_save_LIBS=$LIBS
22175 LIBS="-lodbc $LIBS"
22176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22177 /* end confdefs.h. */
22179 /* Override any GCC internal prototype to avoid an error.
22180 Use char because int might match the return type of a GCC
22181 builtin and then its argument prototype would still apply. */
22185 char SQLAllocHandle ();
22189 return SQLAllocHandle ();
22194 if ac_fn_c_try_link "$LINENO"; then :
22195 ac_cv_lib_odbc_SQLAllocHandle=yes
22197 ac_cv_lib_odbc_SQLAllocHandle=no
22199 rm -f core conftest.err conftest.$ac_objext \
22200 conftest$ac_exeext conftest.$ac_ext
22201 LIBS=$ac_check_lib_save_LIBS
22203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_odbc_SQLAllocHandle" >&5
22204 $as_echo "$ac_cv_lib_odbc_SQLAllocHandle" >&6; }
22205 if test "x$ac_cv_lib_odbc_SQLAllocHandle" = xyes; then :
22214 if test "$apu_have_odbc" != "0" && test "x$ODBC_CONFIG" != 'x'; then
22216 if test "x$APRUTIL_PRIV_INCLUDES" = "x"; then
22217 test "x$silent" != "xyes" && echo " setting APRUTIL_PRIV_INCLUDES to \"$odbc_CPPFLAGS\""
22218 APRUTIL_PRIV_INCLUDES="$odbc_CPPFLAGS"
22220 apr_addto_bugger="$odbc_CPPFLAGS"
22221 for i in $apr_addto_bugger; do
22222 apr_addto_duplicate="0"
22223 for j in $APRUTIL_PRIV_INCLUDES; do
22224 if test "x$i" = "x$j"; then
22225 apr_addto_duplicate="1"
22229 if test $apr_addto_duplicate = "0"; then
22230 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_PRIV_INCLUDES"
22231 APRUTIL_PRIV_INCLUDES="$APRUTIL_PRIV_INCLUDES $i"
22237 elif test "$withval" = "no"; then
22240 # Extract the first word of "odbc_config", so it can be a program name with args.
22241 set dummy odbc_config; ac_word=$2
22242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22243 $as_echo_n "checking for $ac_word... " >&6; }
22244 if ${ac_cv_path_ODBC_CONFIG+:} false; then :
22245 $as_echo_n "(cached) " >&6
22247 case $ODBC_CONFIG in
22249 ac_cv_path_ODBC_CONFIG="$ODBC_CONFIG" # Let the user override the test with a path.
22252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22253 for as_dir in $withval/bin
22256 test -z "$as_dir" && as_dir=.
22257 for ac_exec_ext in '' $ac_executable_extensions; do
22258 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22259 ac_cv_path_ODBC_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22270 ODBC_CONFIG=$ac_cv_path_ODBC_CONFIG
22271 if test -n "$ODBC_CONFIG"; then
22272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ODBC_CONFIG" >&5
22273 $as_echo "$ODBC_CONFIG" >&6; }
22275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22276 $as_echo "no" >&6; }
22280 if test "x$ODBC_CONFIG" != 'x'; then
22281 odbc_CPPFLAGS="-I`$ODBC_CONFIG --include-prefix`"
22282 odbc_LDFLAGS="-L`$ODBC_CONFIG --lib-prefix`"
22283 odbc_LIBS="`$ODBC_CONFIG --libs`"
22285 if test -f "$withval" && test -x "$withval"; then
22286 odbc_CPPFLAGS="-I`$withval --include-prefix`"
22287 odbc_LDFLAGS="-L`$withval --lib-prefix`"
22288 odbc_LIBS="`$withval --libs`"
22290 odbc_CPPFLAGS="-I$withval/include"
22291 odbc_LDFLAGS="-L$withval/lib "
22296 if test "x$CPPFLAGS" = "x"; then
22297 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"$odbc_CPPFLAGS\""
22298 CPPFLAGS="$odbc_CPPFLAGS"
22300 apr_addto_bugger="$odbc_CPPFLAGS"
22301 for i in $apr_addto_bugger; do
22302 apr_addto_duplicate="0"
22303 for j in $CPPFLAGS; do
22304 if test "x$i" = "x$j"; then
22305 apr_addto_duplicate="1"
22309 if test $apr_addto_duplicate = "0"; then
22310 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
22311 CPPFLAGS="$CPPFLAGS $i"
22317 if test "x$LDFLAGS" = "x"; then
22318 test "x$silent" != "xyes" && echo " setting LDFLAGS to \"$odbc_LDFLAGS\""
22319 LDFLAGS="$odbc_LDFLAGS"
22321 apr_addto_bugger="$odbc_LDFLAGS"
22322 for i in $apr_addto_bugger; do
22323 apr_addto_duplicate="0"
22324 for j in $LDFLAGS; do
22325 if test "x$i" = "x$j"; then
22326 apr_addto_duplicate="1"
22330 if test $apr_addto_duplicate = "0"; then
22331 test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS"
22332 LDFLAGS="$LDFLAGS $i"
22338 if test "x$LIBS" = "x"; then
22339 test "x$silent" != "xyes" && echo " setting LIBS to \"$odbc_LIBS\""
22342 apr_addto_bugger="$odbc_LIBS"
22343 for i in $apr_addto_bugger; do
22344 apr_addto_duplicate="0"
22346 if test "x$i" = "x$j"; then
22347 apr_addto_duplicate="1"
22351 if test $apr_addto_duplicate = "0"; then
22352 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
22359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for odbc in $withval" >&5
22360 $as_echo "$as_me: checking for odbc in $withval" >&6;}
22361 for ac_header in sql.h
22363 ac_fn_c_check_header_mongrel "$LINENO" "sql.h" "ac_cv_header_sql_h" "$ac_includes_default"
22364 if test "x$ac_cv_header_sql_h" = xyes; then :
22365 cat >>confdefs.h <<_ACEOF
22366 #define HAVE_SQL_H 1
22368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLAllocHandle in -lodbc" >&5
22369 $as_echo_n "checking for SQLAllocHandle in -lodbc... " >&6; }
22370 if ${ac_cv_lib_odbc_SQLAllocHandle+:} false; then :
22371 $as_echo_n "(cached) " >&6
22373 ac_check_lib_save_LIBS=$LIBS
22374 LIBS="-lodbc $LIBS"
22375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22376 /* end confdefs.h. */
22378 /* Override any GCC internal prototype to avoid an error.
22379 Use char because int might match the return type of a GCC
22380 builtin and then its argument prototype would still apply. */
22384 char SQLAllocHandle ();
22388 return SQLAllocHandle ();
22393 if ac_fn_c_try_link "$LINENO"; then :
22394 ac_cv_lib_odbc_SQLAllocHandle=yes
22396 ac_cv_lib_odbc_SQLAllocHandle=no
22398 rm -f core conftest.err conftest.$ac_objext \
22399 conftest$ac_exeext conftest.$ac_ext
22400 LIBS=$ac_check_lib_save_LIBS
22402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_odbc_SQLAllocHandle" >&5
22403 $as_echo "$ac_cv_lib_odbc_SQLAllocHandle" >&6; }
22404 if test "x$ac_cv_lib_odbc_SQLAllocHandle" = xyes; then :
22412 if test "$apu_have_odbc" = "0"; then
22413 for ac_header in odbc/sql.h
22415 ac_fn_c_check_header_mongrel "$LINENO" "odbc/sql.h" "ac_cv_header_odbc_sql_h" "$ac_includes_default"
22416 if test "x$ac_cv_header_odbc_sql_h" = xyes; then :
22417 cat >>confdefs.h <<_ACEOF
22418 #define HAVE_ODBC_SQL_H 1
22420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLAllocHandle in -lodbc" >&5
22421 $as_echo_n "checking for SQLAllocHandle in -lodbc... " >&6; }
22422 if ${ac_cv_lib_odbc_SQLAllocHandle+:} false; then :
22423 $as_echo_n "(cached) " >&6
22425 ac_check_lib_save_LIBS=$LIBS
22426 LIBS="-lodbc $LIBS"
22427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22428 /* end confdefs.h. */
22430 /* Override any GCC internal prototype to avoid an error.
22431 Use char because int might match the return type of a GCC
22432 builtin and then its argument prototype would still apply. */
22436 char SQLAllocHandle ();
22440 return SQLAllocHandle ();
22445 if ac_fn_c_try_link "$LINENO"; then :
22446 ac_cv_lib_odbc_SQLAllocHandle=yes
22448 ac_cv_lib_odbc_SQLAllocHandle=no
22450 rm -f core conftest.err conftest.$ac_objext \
22451 conftest$ac_exeext conftest.$ac_ext
22452 LIBS=$ac_check_lib_save_LIBS
22454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_odbc_SQLAllocHandle" >&5
22455 $as_echo "$ac_cv_lib_odbc_SQLAllocHandle" >&6; }
22456 if test "x$ac_cv_lib_odbc_SQLAllocHandle" = xyes; then :
22465 if test "$apu_have_odbc" != "0" && test "x$ODBC_CONFIG" != 'x'; then
22467 if test "x$APRUTIL_PRIV_INCLUDES" = "x"; then
22468 test "x$silent" != "xyes" && echo " setting APRUTIL_PRIV_INCLUDES to \"$odbc_CPPFLAGS\""
22469 APRUTIL_PRIV_INCLUDES="$odbc_CPPFLAGS"
22471 apr_addto_bugger="$odbc_CPPFLAGS"
22472 for i in $apr_addto_bugger; do
22473 apr_addto_duplicate="0"
22474 for j in $APRUTIL_PRIV_INCLUDES; do
22475 if test "x$i" = "x$j"; then
22476 apr_addto_duplicate="1"
22480 if test $apr_addto_duplicate = "0"; then
22481 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_PRIV_INCLUDES"
22482 APRUTIL_PRIV_INCLUDES="$APRUTIL_PRIV_INCLUDES $i"
22492 # Extract the first word of "odbc_config", so it can be a program name with args.
22493 set dummy odbc_config; ac_word=$2
22494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22495 $as_echo_n "checking for $ac_word... " >&6; }
22496 if ${ac_cv_path_ODBC_CONFIG+:} false; then :
22497 $as_echo_n "(cached) " >&6
22499 case $ODBC_CONFIG in
22501 ac_cv_path_ODBC_CONFIG="$ODBC_CONFIG" # Let the user override the test with a path.
22504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22505 for as_dir in $PATH
22508 test -z "$as_dir" && as_dir=.
22509 for ac_exec_ext in '' $ac_executable_extensions; do
22510 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22511 ac_cv_path_ODBC_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22522 ODBC_CONFIG=$ac_cv_path_ODBC_CONFIG
22523 if test -n "$ODBC_CONFIG"; then
22524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ODBC_CONFIG" >&5
22525 $as_echo "$ODBC_CONFIG" >&6; }
22527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22528 $as_echo "no" >&6; }
22532 if test "x$ODBC_CONFIG" != 'x'; then
22533 odbc_CPPFLAGS="-I`$ODBC_CONFIG --include-prefix`"
22534 odbc_LDFLAGS="-L`$ODBC_CONFIG --lib-prefix`"
22535 odbc_LIBS="`$ODBC_CONFIG --libs`"
22538 if test "x$CPPFLAGS" = "x"; then
22539 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"$odbc_CPPFLAGS\""
22540 CPPFLAGS="$odbc_CPPFLAGS"
22542 apr_addto_bugger="$odbc_CPPFLAGS"
22543 for i in $apr_addto_bugger; do
22544 apr_addto_duplicate="0"
22545 for j in $CPPFLAGS; do
22546 if test "x$i" = "x$j"; then
22547 apr_addto_duplicate="1"
22551 if test $apr_addto_duplicate = "0"; then
22552 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
22553 CPPFLAGS="$CPPFLAGS $i"
22559 if test "x$LDFLAGS" = "x"; then
22560 test "x$silent" != "xyes" && echo " setting LDFLAGS to \"$odbc_LDFLAGS\""
22561 LDFLAGS="$odbc_LDFLAGS"
22563 apr_addto_bugger="$odbc_LDFLAGS"
22564 for i in $apr_addto_bugger; do
22565 apr_addto_duplicate="0"
22566 for j in $LDFLAGS; do
22567 if test "x$i" = "x$j"; then
22568 apr_addto_duplicate="1"
22572 if test $apr_addto_duplicate = "0"; then
22573 test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS"
22574 LDFLAGS="$LDFLAGS $i"
22580 if test "x$LIBS" = "x"; then
22581 test "x$silent" != "xyes" && echo " setting LIBS to \"$odbc_LIBS\""
22584 apr_addto_bugger="$odbc_LIBS"
22585 for i in $apr_addto_bugger; do
22586 apr_addto_duplicate="0"
22588 if test "x$i" = "x$j"; then
22589 apr_addto_duplicate="1"
22593 if test $apr_addto_duplicate = "0"; then
22594 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
22602 for ac_header in sql.h
22604 ac_fn_c_check_header_mongrel "$LINENO" "sql.h" "ac_cv_header_sql_h" "$ac_includes_default"
22605 if test "x$ac_cv_header_sql_h" = xyes; then :
22606 cat >>confdefs.h <<_ACEOF
22607 #define HAVE_SQL_H 1
22609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLAllocHandle in -lodbc" >&5
22610 $as_echo_n "checking for SQLAllocHandle in -lodbc... " >&6; }
22611 if ${ac_cv_lib_odbc_SQLAllocHandle+:} false; then :
22612 $as_echo_n "(cached) " >&6
22614 ac_check_lib_save_LIBS=$LIBS
22615 LIBS="-lodbc $LIBS"
22616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22617 /* end confdefs.h. */
22619 /* Override any GCC internal prototype to avoid an error.
22620 Use char because int might match the return type of a GCC
22621 builtin and then its argument prototype would still apply. */
22625 char SQLAllocHandle ();
22629 return SQLAllocHandle ();
22634 if ac_fn_c_try_link "$LINENO"; then :
22635 ac_cv_lib_odbc_SQLAllocHandle=yes
22637 ac_cv_lib_odbc_SQLAllocHandle=no
22639 rm -f core conftest.err conftest.$ac_objext \
22640 conftest$ac_exeext conftest.$ac_ext
22641 LIBS=$ac_check_lib_save_LIBS
22643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_odbc_SQLAllocHandle" >&5
22644 $as_echo "$ac_cv_lib_odbc_SQLAllocHandle" >&6; }
22645 if test "x$ac_cv_lib_odbc_SQLAllocHandle" = xyes; then :
22653 if test "$apu_have_odbc" = "0"; then
22654 for ac_header in odbc/sql.h
22656 ac_fn_c_check_header_mongrel "$LINENO" "odbc/sql.h" "ac_cv_header_odbc_sql_h" "$ac_includes_default"
22657 if test "x$ac_cv_header_odbc_sql_h" = xyes; then :
22658 cat >>confdefs.h <<_ACEOF
22659 #define HAVE_ODBC_SQL_H 1
22661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLAllocHandle in -lodbc" >&5
22662 $as_echo_n "checking for SQLAllocHandle in -lodbc... " >&6; }
22663 if ${ac_cv_lib_odbc_SQLAllocHandle+:} false; then :
22664 $as_echo_n "(cached) " >&6
22666 ac_check_lib_save_LIBS=$LIBS
22667 LIBS="-lodbc $LIBS"
22668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22669 /* end confdefs.h. */
22671 /* Override any GCC internal prototype to avoid an error.
22672 Use char because int might match the return type of a GCC
22673 builtin and then its argument prototype would still apply. */
22677 char SQLAllocHandle ();
22681 return SQLAllocHandle ();
22686 if ac_fn_c_try_link "$LINENO"; then :
22687 ac_cv_lib_odbc_SQLAllocHandle=yes
22689 ac_cv_lib_odbc_SQLAllocHandle=no
22691 rm -f core conftest.err conftest.$ac_objext \
22692 conftest$ac_exeext conftest.$ac_ext
22693 LIBS=$ac_check_lib_save_LIBS
22695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_odbc_SQLAllocHandle" >&5
22696 $as_echo "$ac_cv_lib_odbc_SQLAllocHandle" >&6; }
22697 if test "x$ac_cv_lib_odbc_SQLAllocHandle" = xyes; then :
22706 if test "$apu_have_odbc" != "0" && test "x$ODBC_CONFIG" != 'x'; then
22708 if test "x$APRUTIL_PRIV_INCLUDES" = "x"; then
22709 test "x$silent" != "xyes" && echo " setting APRUTIL_PRIV_INCLUDES to \"$odbc_CPPFLAGS\""
22710 APRUTIL_PRIV_INCLUDES="$odbc_CPPFLAGS"
22712 apr_addto_bugger="$odbc_CPPFLAGS"
22713 for i in $apr_addto_bugger; do
22714 apr_addto_duplicate="0"
22715 for j in $APRUTIL_PRIV_INCLUDES; do
22716 if test "x$i" = "x$j"; then
22717 apr_addto_duplicate="1"
22721 if test $apr_addto_duplicate = "0"; then
22722 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_PRIV_INCLUDES"
22723 APRUTIL_PRIV_INCLUDES="$APRUTIL_PRIV_INCLUDES $i"
22733 if test "$apu_have_odbc" = "1"; then
22735 if test "x$LDADD_dbd_odbc" = "x"; then
22736 test "x$silent" != "xyes" && echo " setting LDADD_dbd_odbc to \"$odbc_LDFLAGS -lodbc $odbc_LIBS\""
22737 LDADD_dbd_odbc="$odbc_LDFLAGS -lodbc $odbc_LIBS"
22739 apr_addto_bugger="$odbc_LDFLAGS -lodbc $odbc_LIBS"
22740 for i in $apr_addto_bugger; do
22741 apr_addto_duplicate="0"
22742 for j in $LDADD_dbd_odbc; do
22743 if test "x$i" = "x$j"; then
22744 apr_addto_duplicate="1"
22748 if test $apr_addto_duplicate = "0"; then
22749 test "x$silent" != "xyes" && echo " adding \"$i\" to LDADD_dbd_odbc"
22750 LDADD_dbd_odbc="$LDADD_dbd_odbc $i"
22759 CPPFLAGS="$old_cppflags"
22760 LDFLAGS="$old_ldflags"
22763 test $apu_have_oracle = 1 && apu_dbd_tests="$apu_dbd_tests oracle"
22764 test $apu_have_pgsql = 1 && apu_dbd_tests="$apu_dbd_tests pgsql"
22765 test $apu_have_mysql = 1 && apu_dbd_tests="$apu_dbd_tests mysql"
22766 test $apu_have_sqlite2 = 1 && apu_dbd_tests="$apu_dbd_tests sqlite2"
22767 test $apu_have_sqlite3 = 1 && apu_dbd_tests="$apu_dbd_tests sqlite3"
22768 test $apu_have_freetds = 1 && apu_dbd_tests="$apu_dbd_tests freetds"
22769 test $apu_have_odbc = 1 && apu_dbd_tests="$apu_dbd_tests odbc"
22774 save_cppflags="$CPPFLAGS"
22775 save_ldflags="$LDFLAGS"
22779 # Default: will use either external or bundled expat.
22780 apu_try_external_expat=1
22781 apu_try_builtin_expat=1
22784 # Check whether --with-expat was given.
22785 if test "${with_expat+set}" = set; then :
22786 withval=$with_expat;
22787 if test "$withval" = "yes"; then
22788 as_fn_error $? "a directory must be specified for --with-expat" "$LINENO" 5
22789 elif test "$withval" = "no"; then
22790 as_fn_error $? "Expat cannot be disabled (at this time)" "$LINENO" 5
22791 elif test "$withval" = "builtin"; then
22792 apu_try_external_expat=0
22794 # Add given path to standard search paths if appropriate:
22795 if test "$withval" != "/usr"; then
22797 if test "x$LDFLAGS" = "x"; then
22798 test "x$silent" != "xyes" && echo " setting LDFLAGS to \"-L$withval/lib\""
22799 LDFLAGS="-L$withval/lib"
22801 apr_addto_bugger="-L$withval/lib"
22802 for i in $apr_addto_bugger; do
22803 apr_addto_duplicate="0"
22804 for j in $LDFLAGS; do
22805 if test "x$i" = "x$j"; then
22806 apr_addto_duplicate="1"
22810 if test $apr_addto_duplicate = "0"; then
22811 test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS"
22812 LDFLAGS="$LDFLAGS $i"
22818 if test "x$CPPFLAGS" = "x"; then
22819 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-I$withval/include\""
22820 CPPFLAGS="-I$withval/include"
22822 apr_addto_bugger="-I$withval/include"
22823 for i in $apr_addto_bugger; do
22824 apr_addto_duplicate="0"
22825 for j in $CPPFLAGS; do
22826 if test "x$i" = "x$j"; then
22827 apr_addto_duplicate="1"
22831 if test $apr_addto_duplicate = "0"; then
22832 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
22833 CPPFLAGS="$CPPFLAGS $i"
22839 if test "x$APRUTIL_INCLUDES" = "x"; then
22840 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$withval/include\""
22841 APRUTIL_INCLUDES="-I$withval/include"
22843 apr_addto_bugger="-I$withval/include"
22844 for i in $apr_addto_bugger; do
22845 apr_addto_duplicate="0"
22846 for j in $APRUTIL_INCLUDES; do
22847 if test "x$i" = "x$j"; then
22848 apr_addto_duplicate="1"
22852 if test $apr_addto_duplicate = "0"; then
22853 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES"
22854 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
22860 if test "x$APRUTIL_LDFLAGS" = "x"; then
22861 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$withval/lib\""
22862 APRUTIL_LDFLAGS="-L$withval/lib"
22864 apr_addto_bugger="-L$withval/lib"
22865 for i in $apr_addto_bugger; do
22866 apr_addto_duplicate="0"
22867 for j in $APRUTIL_LDFLAGS; do
22868 if test "x$i" = "x$j"; then
22869 apr_addto_duplicate="1"
22873 if test $apr_addto_duplicate = "0"; then
22874 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS"
22875 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
22881 # ...and refuse to fall back on the builtin expat.
22882 apu_try_builtin_expat=0
22888 if test $apu_try_external_expat = 1; then
22892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Expat 1.95.x" >&5
22893 $as_echo_n "checking Expat 1.95.x... " >&6; }
22894 if ${apu_cv_expat_system+:} false; then :
22895 $as_echo_n "(cached) " >&6
22898 apu_expat_LIBS=$LIBS
22899 LIBS="$LIBS -lexpat"
22900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22901 /* end confdefs.h. */
22902 #include <stdlib.h>
22907 XML_ParserCreate(NULL);
22912 if ac_fn_c_try_link "$LINENO"; then :
22913 apu_cv_expat_system=yes
22915 apu_cv_expat_system=no
22917 rm -f core conftest.err conftest.$ac_objext \
22918 conftest$ac_exeext conftest.$ac_ext
22919 LIBS=$apu_expat_LIBS
22922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apu_cv_expat_system" >&5
22923 $as_echo "$apu_cv_expat_system" >&6; }
22925 if test $apu_cv_expat_system = yes; then
22927 $as_echo "#define HAVE_EXPAT_H 1" >>confdefs.h
22929 apu_expat_libs="-lexpat"
22938 if test $apu_has_expat = 0; then
22940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking old Debian-packaged expat" >&5
22941 $as_echo_n "checking old Debian-packaged expat... " >&6; }
22942 if ${apu_cv_expat_debian+:} false; then :
22943 $as_echo_n "(cached) " >&6
22946 apu_expat_LIBS=$LIBS
22947 LIBS="$LIBS -lxmlparse -lxmltok"
22948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22949 /* end confdefs.h. */
22950 #include <stdlib.h>
22951 #include <xmltok/xmlparse.h>
22955 XML_ParserCreate(NULL);
22960 if ac_fn_c_try_link "$LINENO"; then :
22961 apu_cv_expat_debian=yes
22963 apu_cv_expat_debian=no
22965 rm -f core conftest.err conftest.$ac_objext \
22966 conftest$ac_exeext conftest.$ac_ext
22967 LIBS=$apu_expat_LIBS
22970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apu_cv_expat_debian" >&5
22971 $as_echo "$apu_cv_expat_debian" >&6; }
22973 if test $apu_cv_expat_debian = yes; then
22975 $as_echo "#define HAVE_XMLTOK_XMLPARSE_H 1" >>confdefs.h
22977 apu_expat_libs="-lxmlparse -lxmltok"
22987 if test $apu_has_expat = 0; then
22989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking old FreeBSD-packaged expat" >&5
22990 $as_echo_n "checking old FreeBSD-packaged expat... " >&6; }
22991 if ${apu_cv_expat_freebsd+:} false; then :
22992 $as_echo_n "(cached) " >&6
22995 apu_expat_LIBS=$LIBS
22996 LIBS="$LIBS -lexpat"
22997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22998 /* end confdefs.h. */
22999 #include <stdlib.h>
23000 #include <xml/xmlparse.h>
23004 XML_ParserCreate(NULL);
23009 if ac_fn_c_try_link "$LINENO"; then :
23010 apu_cv_expat_freebsd=yes
23012 apu_cv_expat_freebsd=no
23014 rm -f core conftest.err conftest.$ac_objext \
23015 conftest$ac_exeext conftest.$ac_ext
23016 LIBS=$apu_expat_LIBS
23019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apu_cv_expat_freebsd" >&5
23020 $as_echo "$apu_cv_expat_freebsd" >&6; }
23022 if test $apu_cv_expat_freebsd = yes; then
23024 $as_echo "#define HAVE_XML_XMLPARSE_H 1" >>confdefs.h
23026 apu_expat_libs="-lexpat"
23036 if test $apu_has_expat = 0; then
23038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Expat 1.0/1.1" >&5
23039 $as_echo_n "checking Expat 1.0/1.1... " >&6; }
23040 if ${apu_cv_expat_1011+:} false; then :
23041 $as_echo_n "(cached) " >&6
23044 apu_expat_LIBS=$LIBS
23045 LIBS="$LIBS -lexpat"
23046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23047 /* end confdefs.h. */
23048 #include <stdlib.h>
23049 #include <xmlparse/xmlparse.h>
23053 XML_ParserCreate(NULL);
23058 if ac_fn_c_try_link "$LINENO"; then :
23059 apu_cv_expat_1011=yes
23061 apu_cv_expat_1011=no
23063 rm -f core conftest.err conftest.$ac_objext \
23064 conftest$ac_exeext conftest.$ac_ext
23065 LIBS=$apu_expat_LIBS
23068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apu_cv_expat_1011" >&5
23069 $as_echo "$apu_cv_expat_1011" >&6; }
23071 if test $apu_cv_expat_1011 = yes; then
23073 $as_echo "#define HAVE_XMLPARSE_XMLPARSE_H 1" >>confdefs.h
23075 apu_expat_libs="-lexpat"
23085 if test $apu_has_expat = 0; then
23087 if test "x$LDFLAGS" = "x"; then
23088 test "x$silent" != "xyes" && echo " setting LDFLAGS to \"-L/usr/local/lib\""
23089 LDFLAGS="-L/usr/local/lib"
23091 apr_addto_bugger="-L/usr/local/lib"
23092 for i in $apr_addto_bugger; do
23093 apr_addto_duplicate="0"
23094 for j in $LDFLAGS; do
23095 if test "x$i" = "x$j"; then
23096 apr_addto_duplicate="1"
23100 if test $apr_addto_duplicate = "0"; then
23101 test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS"
23102 LDFLAGS="$LDFLAGS $i"
23108 if test "x$CPPFLAGS" = "x"; then
23109 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-I/usr/local/include\""
23110 CPPFLAGS="-I/usr/local/include"
23112 apr_addto_bugger="-I/usr/local/include"
23113 for i in $apr_addto_bugger; do
23114 apr_addto_duplicate="0"
23115 for j in $CPPFLAGS; do
23116 if test "x$i" = "x$j"; then
23117 apr_addto_duplicate="1"
23121 if test $apr_addto_duplicate = "0"; then
23122 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
23123 CPPFLAGS="$CPPFLAGS $i"
23130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Expat 1.95.x in /usr/local" >&5
23131 $as_echo_n "checking Expat 1.95.x in /usr/local... " >&6; }
23132 if ${apu_cv_expat_usrlocal+:} false; then :
23133 $as_echo_n "(cached) " >&6
23136 apu_expat_LIBS=$LIBS
23137 LIBS="$LIBS -lexpat"
23138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23139 /* end confdefs.h. */
23140 #include <stdlib.h>
23145 XML_ParserCreate(NULL);
23150 if ac_fn_c_try_link "$LINENO"; then :
23151 apu_cv_expat_usrlocal=yes
23153 apu_cv_expat_usrlocal=no
23155 rm -f core conftest.err conftest.$ac_objext \
23156 conftest$ac_exeext conftest.$ac_ext
23157 LIBS=$apu_expat_LIBS
23160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apu_cv_expat_usrlocal" >&5
23161 $as_echo "$apu_cv_expat_usrlocal" >&6; }
23163 if test $apu_cv_expat_usrlocal = yes; then
23165 $as_echo "#define HAVE_EXPAT_H 1" >>confdefs.h
23167 apu_expat_libs="-lexpat"
23170 if test "x$APRUTIL_INCLUDES" = "x"; then
23171 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I/usr/local/include\""
23172 APRUTIL_INCLUDES="-I/usr/local/include"
23174 apr_addto_bugger="-I/usr/local/include"
23175 for i in $apr_addto_bugger; do
23176 apr_addto_duplicate="0"
23177 for j in $APRUTIL_INCLUDES; do
23178 if test "x$i" = "x$j"; then
23179 apr_addto_duplicate="1"
23183 if test $apr_addto_duplicate = "0"; then
23184 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES"
23185 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
23191 if test "x$APRUTIL_LDFLAGS" = "x"; then
23192 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L/usr/local/lib\""
23193 APRUTIL_LDFLAGS="-L/usr/local/lib"
23195 apr_addto_bugger="-L/usr/local/lib"
23196 for i in $apr_addto_bugger; do
23197 apr_addto_duplicate="0"
23198 for j in $APRUTIL_LDFLAGS; do
23199 if test "x$i" = "x$j"; then
23200 apr_addto_duplicate="1"
23204 if test $apr_addto_duplicate = "0"; then
23205 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS"
23206 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
23215 if test "x$LDFLAGS" = "x-L/usr/local/lib"; then
23216 test "x$silent" != "xyes" && echo " nulling LDFLAGS"
23221 for i in $LDFLAGS; do
23222 if test "x$i" != "x-L/usr/local/lib"; then
23223 apr_new_bugger="$apr_new_bugger $i"
23228 if test $apr_removed = "1"; then
23229 test "x$silent" != "xyes" && echo " removed \"-L/usr/local/lib\" from LDFLAGS"
23230 LDFLAGS=$apr_new_bugger
23235 if test "x$CPPFLAGS" = "x-I/usr/local/include"; then
23236 test "x$silent" != "xyes" && echo " nulling CPPFLAGS"
23241 for i in $CPPFLAGS; do
23242 if test "x$i" != "x-I/usr/local/include"; then
23243 apr_new_bugger="$apr_new_bugger $i"
23248 if test $apr_removed = "1"; then
23249 test "x$silent" != "xyes" && echo " removed \"-I/usr/local/include\" from CPPFLAGS"
23250 CPPFLAGS=$apr_new_bugger
23261 if test "${apu_has_expat}${apu_try_builtin_expat}" = "01"; then
23262 bundled_subdir="xml/expat"
23264 # save our work to this point; this allows the sub-package to use it
23265 cat >confcache <<\_ACEOF
23266 # This file is a shell script that caches the results of configure
23267 # tests run on this system so they can be shared between configure
23268 # scripts and configure runs, see configure's option --config-cache.
23269 # It is not useful on other systems. If it contains results you don't
23270 # want to keep, you may remove or edit it.
23272 # config.status only pays attention to the cache file if you give it
23273 # the --recheck option to rerun configure.
23275 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23276 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23277 # following values.
23281 # The following way of writing the cache mishandles newlines in values,
23282 # but we know of no workaround that is simple, portable, and efficient.
23283 # So, we kill variables containing newlines.
23284 # Ultrix sh set writes to stderr and can't be redirected directly,
23285 # and sets the high bit in the cache file unless we assign to the vars.
23287 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23288 eval ac_val=\$$ac_var
23292 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
23293 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
23296 _ | IFS | as_nl) ;; #(
23297 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
23298 *) { eval $ac_var=; unset $ac_var;} ;;
23304 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23305 *${as_nl}ac_space=\ *)
23306 # `set' does not quote correctly, so add quotes: double-quote
23307 # substitution turns \\\\ into \\, and sed turns \\ into \.
23310 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23313 # `set' quotes correctly as required by POSIX, so do not add quotes.
23314 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23323 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23325 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23327 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23328 if test -w "$cache_file"; then
23329 if test "x$cache_file" != "x/dev/null"; then
23330 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
23331 $as_echo "$as_me: updating cache $cache_file" >&6;}
23332 if test ! -f "$cache_file" || test -h "$cache_file"; then
23333 cat confcache >"$cache_file"
23335 case $cache_file in #(
23337 mv -f confcache "$cache_file"$$ &&
23338 mv -f "$cache_file"$$ "$cache_file" ;; #(
23340 mv -f confcache "$cache_file" ;;
23345 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
23346 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23351 echo "configuring package in $bundled_subdir now"
23353 apr_config_subdirs="$bundled_subdir"
23354 test -d $bundled_subdir || $mkdir_p $bundled_subdir
23355 ac_abs_srcdir=`(cd $srcdir/$bundled_subdir && pwd)`
23358 # A "../" for each directory in /$config_subdirs.
23359 ac_dots=`echo $apr_config_subdirs|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
23361 # Make the cache file pathname absolute for the subdirs
23362 # required to correctly handle subdirs that might actually
23364 case "$cache_file" in
23365 /*) # already absolute
23366 ac_sub_cache_file=$cache_file ;;
23367 *) # Was relative path.
23368 ac_sub_cache_file="$ac_popdir/$cache_file" ;;
23371 apr_configure_args=$ac_configure_args
23373 test "x$silent" = "xyes" && apr_configure_args="$apr_configure_args --silent"
23375 apr_configure_args="--disable-option-checking $apr_configure_args"
23377 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
23379 echo "$bundled_subdir configured properly"
23381 echo "configure failed for $bundled_subdir"
23387 # grab any updates from the sub-package
23388 if test -r "$cache_file"; then
23389 # Some versions of bash will fail to source /dev/null (special files
23390 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
23391 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
23392 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
23393 $as_echo "$as_me: loading cache $cache_file" >&6;}
23394 case $cache_file in
23395 [\\/]* | ?:[\\/]* ) . "$cache_file";;
23396 *) . "./$cache_file";;
23400 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
23401 $as_echo "$as_me: creating cache $cache_file" >&6;}
23407 if test "x$APRUTIL_INCLUDES" = "x"; then
23408 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$abs_srcdir/$bundled_subdir/lib\""
23409 APRUTIL_INCLUDES="-I$abs_srcdir/$bundled_subdir/lib"
23411 apr_addto_bugger="-I$abs_srcdir/$bundled_subdir/lib"
23412 for i in $apr_addto_bugger; do
23413 apr_addto_duplicate="0"
23414 for j in $APRUTIL_INCLUDES; do
23415 if test "x$i" = "x$j"; then
23416 apr_addto_duplicate="1"
23420 if test $apr_addto_duplicate = "0"; then
23421 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES"
23422 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
23428 if test "x$LDFLAGS" = "x"; then
23429 test "x$silent" != "xyes" && echo " setting LDFLAGS to \"-L$top_builddir/$bundled_subdir/lib\""
23430 LDFLAGS="-L$top_builddir/$bundled_subdir/lib"
23432 apr_addto_bugger="-L$top_builddir/$bundled_subdir/lib"
23433 for i in $apr_addto_bugger; do
23434 apr_addto_duplicate="0"
23435 for j in $LDFLAGS; do
23436 if test "x$i" = "x$j"; then
23437 apr_addto_duplicate="1"
23441 if test $apr_addto_duplicate = "0"; then
23442 test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS"
23443 LDFLAGS="$LDFLAGS $i"
23448 apu_expat_libs="$top_builddir/$bundled_subdir/libexpat.la"
23452 if test "x$APRUTIL_EXPORT_LIBS" = "x"; then
23453 test "x$silent" != "xyes" && echo " setting APRUTIL_EXPORT_LIBS to \"$apu_expat_libs\""
23454 APRUTIL_EXPORT_LIBS="$apu_expat_libs"
23456 apr_addto_bugger="$apu_expat_libs"
23457 for i in $apr_addto_bugger; do
23458 apr_addto_duplicate="0"
23459 for j in $APRUTIL_EXPORT_LIBS; do
23460 if test "x$i" = "x$j"; then
23461 apr_addto_duplicate="1"
23465 if test $apr_addto_duplicate = "0"; then
23466 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_EXPORT_LIBS"
23467 APRUTIL_EXPORT_LIBS="$APRUTIL_EXPORT_LIBS $i"
23473 if test "x$APRUTIL_LIBS" = "x"; then
23474 test "x$silent" != "xyes" && echo " setting APRUTIL_LIBS to \"$apu_expat_libs\""
23475 APRUTIL_LIBS="$apu_expat_libs"
23477 apr_addto_bugger="$apu_expat_libs"
23478 for i in $apr_addto_bugger; do
23479 apr_addto_duplicate="0"
23480 for j in $APRUTIL_LIBS; do
23481 if test "x$i" = "x$j"; then
23482 apr_addto_duplicate="1"
23486 if test $apr_addto_duplicate = "0"; then
23487 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LIBS"
23488 APRUTIL_LIBS="$APRUTIL_LIBS $i"
23494 APR_XML_DIR=$bundled_subdir
23497 CPPFLAGS=$save_cppflags
23498 LDFLAGS=$save_ldflags
23502 apu_iconv_dir="unknown"
23506 # Check whether --with-iconv was given.
23507 if test "${with_iconv+set}" = set; then :
23508 withval=$with_iconv; apu_iconv_dir="$withval"
23509 if test "$apu_iconv_dir" = "no"; then
23513 elif test "$apu_iconv_dir" != "yes"; then
23514 if test -f "$apu_iconv_dir/include/apr-1/api_version.h"; then
23518 if test "x$APRUTIL_INCLUDES" = "x"; then
23519 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$apu_iconv_dir/include/apr-1\""
23520 APRUTIL_INCLUDES="-I$apu_iconv_dir/include/apr-1"
23522 apr_addto_bugger="-I$apu_iconv_dir/include/apr-1"
23523 for i in $apr_addto_bugger; do
23524 apr_addto_duplicate="0"
23525 for j in $APRUTIL_INCLUDES; do
23526 if test "x$i" = "x$j"; then
23527 apr_addto_duplicate="1"
23531 if test $apr_addto_duplicate = "0"; then
23532 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES"
23533 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
23539 if test "x$APRUTIL_LIBS" = "x"; then
23540 test "x$silent" != "xyes" && echo " setting APRUTIL_LIBS to \"$apu_iconv_dir/lib/libapriconv-1.la\""
23541 APRUTIL_LIBS="$apu_iconv_dir/lib/libapriconv-1.la"
23543 apr_addto_bugger="$apu_iconv_dir/lib/libapriconv-1.la"
23544 for i in $apr_addto_bugger; do
23545 apr_addto_duplicate="0"
23546 for j in $APRUTIL_LIBS; do
23547 if test "x$i" = "x$j"; then
23548 apr_addto_duplicate="1"
23552 if test $apr_addto_duplicate = "0"; then
23553 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LIBS"
23554 APRUTIL_LIBS="$APRUTIL_LIBS $i"
23559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using apr-iconv" >&5
23560 $as_echo "using apr-iconv" >&6; }
23561 elif test -f "$apu_iconv_dir/include/iconv.h"; then
23565 if test "x$CPPFLAGS" = "x"; then
23566 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-I$apu_iconv_dir/include\""
23567 CPPFLAGS="-I$apu_iconv_dir/include"
23569 apr_addto_bugger="-I$apu_iconv_dir/include"
23570 for i in $apr_addto_bugger; do
23571 apr_addto_duplicate="0"
23572 for j in $CPPFLAGS; do
23573 if test "x$i" = "x$j"; then
23574 apr_addto_duplicate="1"
23578 if test $apr_addto_duplicate = "0"; then
23579 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
23580 CPPFLAGS="$CPPFLAGS $i"
23586 if test "x$LDFLAGS" = "x"; then
23587 test "x$silent" != "xyes" && echo " setting LDFLAGS to \"-L$apu_iconv_dir/lib\""
23588 LDFLAGS="-L$apu_iconv_dir/lib"
23590 apr_addto_bugger="-L$apu_iconv_dir/lib"
23591 for i in $apr_addto_bugger; do
23592 apr_addto_duplicate="0"
23593 for j in $LDFLAGS; do
23594 if test "x$i" = "x$j"; then
23595 apr_addto_duplicate="1"
23599 if test $apr_addto_duplicate = "0"; then
23600 test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS"
23601 LDFLAGS="$LDFLAGS $i"
23612 if test "$want_iconv" = "1" -a "$have_apr_iconv" != "1"; then
23613 ac_fn_c_check_header_mongrel "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
23614 if test "x$ac_cv_header_iconv_h" = xyes; then :
23617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23618 /* end confdefs.h. */
23620 #include <stdlib.h>
23627 iconv_t cd = iconv_open("", "");
23628 iconv(cd, NULL, NULL, NULL, NULL);
23634 if ac_fn_c_try_link "$LINENO"; then :
23640 if test "x$LIBS" = "x"; then
23641 test "x$silent" != "xyes" && echo " setting LIBS to \"-liconv\""
23644 apr_addto_bugger="-liconv"
23645 for i in $apr_addto_bugger; do
23646 apr_addto_duplicate="0"
23648 if test "x$i" = "x$j"; then
23649 apr_addto_duplicate="1"
23653 if test $apr_addto_duplicate = "0"; then
23654 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
23662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23663 /* end confdefs.h. */
23665 #include <stdlib.h>
23672 iconv_t cd = iconv_open("", "");
23673 iconv(cd, NULL, NULL, NULL, NULL);
23679 if ac_fn_c_try_link "$LINENO"; then :
23682 if test "x$APRUTIL_LIBS" = "x"; then
23683 test "x$silent" != "xyes" && echo " setting APRUTIL_LIBS to \"-liconv\""
23684 APRUTIL_LIBS="-liconv"
23686 apr_addto_bugger="-liconv"
23687 for i in $apr_addto_bugger; do
23688 apr_addto_duplicate="0"
23689 for j in $APRUTIL_LIBS; do
23690 if test "x$i" = "x$j"; then
23691 apr_addto_duplicate="1"
23695 if test $apr_addto_duplicate = "0"; then
23696 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LIBS"
23697 APRUTIL_LIBS="$APRUTIL_LIBS $i"
23703 if test "x$APRUTIL_EXPORT_LIBS" = "x"; then
23704 test "x$silent" != "xyes" && echo " setting APRUTIL_EXPORT_LIBS to \"-liconv\""
23705 APRUTIL_EXPORT_LIBS="-liconv"
23707 apr_addto_bugger="-liconv"
23708 for i in $apr_addto_bugger; do
23709 apr_addto_duplicate="0"
23710 for j in $APRUTIL_EXPORT_LIBS; do
23711 if test "x$i" = "x$j"; then
23712 apr_addto_duplicate="1"
23716 if test $apr_addto_duplicate = "0"; then
23717 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_EXPORT_LIBS"
23718 APRUTIL_EXPORT_LIBS="$APRUTIL_EXPORT_LIBS $i"
23727 rm -f core conftest.err conftest.$ac_objext \
23728 conftest$ac_exeext conftest.$ac_ext
23732 if test "x$LIBS" = "x-liconv"; then
23733 test "x$silent" != "xyes" && echo " nulling LIBS"
23739 if test "x$i" != "x-liconv"; then
23740 apr_new_bugger="$apr_new_bugger $i"
23745 if test $apr_removed = "1"; then
23746 test "x$silent" != "xyes" && echo " removed \"-liconv\" from LIBS"
23747 LIBS=$apr_new_bugger
23754 rm -f core conftest.err conftest.$ac_objext \
23755 conftest$ac_exeext conftest.$ac_ext
23765 if test "$want_iconv" = "1" -a "$apu_iconv_dir" != "unknown"; then
23766 if test "$have_iconv" != "1"; then
23767 if test "$have_apr_iconv" != "1"; then
23768 as_fn_error $? "iconv support requested, but not found" "$LINENO" 5
23772 if test "x$CPPFLAGS" = "x-I$apu_iconv_dir/include"; then
23773 test "x$silent" != "xyes" && echo " nulling CPPFLAGS"
23778 for i in $CPPFLAGS; do
23779 if test "x$i" != "x-I$apu_iconv_dir/include"; then
23780 apr_new_bugger="$apr_new_bugger $i"
23785 if test $apr_removed = "1"; then
23786 test "x$silent" != "xyes" && echo " removed \"-I$apu_iconv_dir/include\" from CPPFLAGS"
23787 CPPFLAGS=$apr_new_bugger
23792 if test "x$LDFLAGS" = "x-L$apu_iconv_dir/lib"; then
23793 test "x$silent" != "xyes" && echo " nulling LDFLAGS"
23798 for i in $LDFLAGS; do
23799 if test "x$i" != "x-L$apu_iconv_dir/lib"; then
23800 apr_new_bugger="$apr_new_bugger $i"
23805 if test $apr_removed = "1"; then
23806 test "x$silent" != "xyes" && echo " removed \"-L$apu_iconv_dir/lib\" from LDFLAGS"
23807 LDFLAGS=$apr_new_bugger
23812 if test "x$APRUTIL_INCLUDES" = "x"; then
23813 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$apu_iconv_dir/include\""
23814 APRUTIL_INCLUDES="-I$apu_iconv_dir/include"
23816 apr_addto_bugger="-I$apu_iconv_dir/include"
23817 for i in $apr_addto_bugger; do
23818 apr_addto_duplicate="0"
23819 for j in $APRUTIL_INCLUDES; do
23820 if test "x$i" = "x$j"; then
23821 apr_addto_duplicate="1"
23825 if test $apr_addto_duplicate = "0"; then
23826 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES"
23827 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
23833 if test "x$APRUTIL_LDFLAGS" = "x"; then
23834 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$apu_iconv_dir/lib\""
23835 APRUTIL_LDFLAGS="-L$apu_iconv_dir/lib"
23837 apr_addto_bugger="-L$apu_iconv_dir/lib"
23838 for i in $apr_addto_bugger; do
23839 apr_addto_duplicate="0"
23840 for j in $APRUTIL_LDFLAGS; do
23841 if test "x$i" = "x$j"; then
23842 apr_addto_duplicate="1"
23846 if test $apr_addto_duplicate = "0"; then
23847 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS"
23848 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
23855 if test "$have_iconv" = "1"; then
23857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of inbuf parameter to iconv" >&5
23858 $as_echo_n "checking for type of inbuf parameter to iconv... " >&6; }
23859 if test "x$apu_iconv_inbuf_const" = "x"; then
23860 apr_save_CFLAGS=$CFLAGS
23861 CFLAGS="$CFLAGS $CFLAGS_WARN"
23862 if test "$ac_cv_c_compiler_gnu" = "yes"; then
23863 CFLAGS="$CFLAGS -Werror"
23865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23866 /* end confdefs.h. */
23867 #include "confdefs.h"
23870 #include <stddef.h>
23873 int main(int argc, const char *const *argv) {
23875 iconv(0,(char **)0,(size_t *)0,(char **)0,(size_t *)0);
23880 if ac_fn_c_try_compile "$LINENO"; then :
23881 apu_iconv_inbuf_const="0"
23883 apu_iconv_inbuf_const="1"
23885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23886 CFLAGS=$apr_save_CFLAGS
23889 if test "$apu_iconv_inbuf_const" = "1"; then
23891 $as_echo "#define APU_ICONV_INBUF_CONST 1" >>confdefs.h
23893 msg="const char **"
23897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5
23898 $as_echo "$msg" >&6; }
23903 for ac_header in iconv.h langinfo.h
23905 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23906 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23907 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23908 cat >>confdefs.h <<_ACEOF
23909 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23916 for aprt_i in iconv.h langinfo.h
23918 ac_safe=`echo "$aprt_i" | sed 'y%./+-%__p_%'`
23919 aprt_2=`echo "$aprt_i" | sed -e 's%/%_%g' -e 's/\.//g' -e 's/-//g'`
23920 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
23928 for ac_func in nl_langinfo
23930 ac_fn_c_check_func "$LINENO" "nl_langinfo" "ac_cv_func_nl_langinfo"
23931 if test "x$ac_cv_func_nl_langinfo" = xyes; then :
23932 cat >>confdefs.h <<_ACEOF
23933 #define HAVE_NL_LANGINFO 1
23939 for aprt_j in nl_langinfo
23941 aprt_3="have_$aprt_j"
23942 if eval "test \"`echo '$ac_cv_func_'$aprt_j`\" = yes"; then
23950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CODESET in langinfo.h" >&5
23951 $as_echo_n "checking for CODESET in langinfo.h... " >&6; }
23952 if ${ac_cv_define_CODESET+:} false; then :
23953 $as_echo_n "(cached) " >&6
23956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23957 /* end confdefs.h. */
23959 #include <langinfo.h>
23965 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23966 $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
23967 ac_cv_define_CODESET=yes
23969 ac_cv_define_CODESET=no
23975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_CODESET" >&5
23976 $as_echo "$ac_cv_define_CODESET" >&6; }
23977 if test "$ac_cv_define_CODESET" = "yes"; then
23979 $as_echo "#define HAVE_CODESET 1" >>confdefs.h
23990 # Check whether --enable-util-dso was given.
23991 if test "${enable_util_dso+set}" = set; then :
23992 enableval=$enable_util_dso;
23996 if test "$enable_util_dso" = "no"; then
23999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether APR has DSO support" >&5
24000 $as_echo_n "checking whether APR has DSO support... " >&6; }
24001 if ${apu_cv_aprdso+:} false; then :
24002 $as_echo_n "(cached) " >&6
24004 apu_save_CPPFLAGS=$CPPFLAGS
24005 CPPFLAGS="$CPPFLAGS $APR_INCLUDES"
24006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24007 /* end confdefs.h. */
24014 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24015 $EGREP "yes" >/dev/null 2>&1; then :
24022 CPPFLAGS=$apu_save_CPPFLAGS
24024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apu_cv_aprdso" >&5
24025 $as_echo "$apu_cv_aprdso" >&6; }
24027 if test $apu_cv_aprdso = yes; then
24034 if test "$apu_dso_build" = "0"; then
24036 # Statically link the drivers:
24038 test $apu_have_openssl = 1 && objs="$objs crypto/apr_crypto_openssl.lo"
24039 test $apu_have_nss = 1 && objs="$objs crypto/apr_crypto_nss.lo"
24040 test $apu_have_oracle = 1 && objs="$objs dbd/apr_dbd_oracle.lo"
24041 test $apu_have_pgsql = 1 && objs="$objs dbd/apr_dbd_pgsql.lo"
24042 test $apu_have_mysql = 1 && objs="$objs dbd/apr_dbd_mysql.lo"
24043 test $apu_have_sqlite2 = 1 && objs="$objs dbd/apr_dbd_sqlite2.lo"
24044 test $apu_have_sqlite3 = 1 && objs="$objs dbd/apr_dbd_sqlite3.lo"
24045 test $apu_have_freetds = 1 && objs="$objs dbd/apr_dbd_freetds.lo"
24046 test $apu_have_odbc = 1 && objs="$objs dbd/apr_dbd_odbc.lo"
24047 test $apu_have_db = 1 && objs="$objs dbm/apr_dbm_berkeleydb.lo"
24048 test $apu_have_gdbm = 1 && objs="$objs dbm/apr_dbm_gdbm.lo"
24049 test $apu_have_ndbm = 1 && objs="$objs dbm/apr_dbm_ndbm.lo"
24050 test $apu_has_ldap = 1 && objs="$objs ldap/apr_ldap_init.lo"
24051 test $apu_has_ldap = 1 && objs="$objs ldap/apr_ldap_option.lo"
24052 test $apu_has_ldap = 1 && objs="$objs ldap/apr_ldap_rebind.lo"
24053 EXTRA_OBJECTS="$EXTRA_OBJECTS $objs"
24055 # Use libtool *.la for mysql if available
24056 if test $apu_have_mysql = 1; then
24057 for flag in $LDADD_dbd_mysql
24059 dir=`echo $flag | grep "^-L" | sed s:-L::`
24060 if test "x$dir" != 'x'; then
24061 if test -f "$dir/libmysqlclient_r.la"; then
24062 LDADD_dbd_mysql=$dir/libmysqlclient_r.la
24069 APRUTIL_LIBS="$APRUTIL_LIBS $LDADD_crypto_openssl $LDADD_crypto_nss"
24070 APRUTIL_LIBS="$APRUTIL_LIBS $LDADD_dbd_pgsql $LDADD_dbd_sqlite2 $LDADD_dbd_sqlite3 $LDADD_dbd_oracle $LDADD_dbd_mysql $LDADD_dbd_freetds $LDADD_dbd_odbc"
24071 APRUTIL_LIBS="$APRUTIL_LIBS $LDADD_dbm_db $LDADD_dbm_gdbm $LDADD_dbm_ndbm"
24072 APRUTIL_LIBS="$APRUTIL_LIBS $LDADD_ldap"
24073 APRUTIL_EXPORT_LIBS="$APRUTIL_EXPORT_LIBS $LDADD_crypto_openssl $LDADD_crypto_nss"
24074 APRUTIL_EXPORT_LIBS="$APRUTIL_EXPORT_LIBS $LDADD_dbd_pgsql $LDADD_dbd_sqlite2 $LDADD_dbd_sqlite3 $LDADD_dbd_oracle $LDADD_dbd_mysql $LDADD_dbd_freetds $LDADD_dbd_odbc"
24075 APRUTIL_EXPORT_LIBS="$APRUTIL_EXPORT_LIBS $LDADD_dbm_db $LDADD_dbm_gdbm $LDADD_dbm_ndbm"
24076 APRUTIL_EXPORT_LIBS="$APRUTIL_EXPORT_LIBS $LDADD_ldap"
24080 # Build the drivers as loadable modules:
24082 test $apu_have_openssl = 1 && dsos="$dsos crypto/apr_crypto_openssl.la"
24083 test $apu_have_nss = 1 && dsos="$dsos crypto/apr_crypto_nss.la"
24084 test $apu_have_oracle = 1 && dsos="$dsos dbd/apr_dbd_oracle.la"
24085 test $apu_have_pgsql = 1 && dsos="$dsos dbd/apr_dbd_pgsql.la"
24086 test $apu_have_mysql = 1 && dsos="$dsos dbd/apr_dbd_mysql.la"
24087 test $apu_have_sqlite2 = 1 && dsos="$dsos dbd/apr_dbd_sqlite2.la"
24088 test $apu_have_sqlite3 = 1 && dsos="$dsos dbd/apr_dbd_sqlite3.la"
24089 test $apu_have_freetds = 1 && dsos="$dsos dbd/apr_dbd_freetds.la"
24090 test $apu_have_odbc = 1 && dsos="$dsos dbd/apr_dbd_odbc.la"
24091 test $apu_have_db = 1 && dsos="$dsos dbm/apr_dbm_db.la"
24092 test $apu_have_gdbm = 1 && dsos="$dsos dbm/apr_dbm_gdbm.la"
24093 test $apu_have_ndbm = 1 && dsos="$dsos dbm/apr_dbm_ndbm.la"
24094 test $apu_has_ldap = 1 && dsos="$dsos ldap/apr_ldap.la"
24096 if test -n "$dsos"; then
24097 APU_MODULES="$APU_MODULES $dsos"
24103 cat >>confdefs.h <<_ACEOF
24104 #define APU_DSO_BUILD $apu_dso_build
24109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
24110 $as_echo_n "checking for library containing crypt... " >&6; }
24111 if ${ac_cv_search_crypt+:} false; then :
24112 $as_echo_n "(cached) " >&6
24114 ac_func_search_save_LIBS=$LIBS
24115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24116 /* end confdefs.h. */
24118 /* Override any GCC internal prototype to avoid an error.
24119 Use char because int might match the return type of a GCC
24120 builtin and then its argument prototype would still apply. */
24133 for ac_lib in '' crypt ufc; do
24134 if test -z "$ac_lib"; then
24135 ac_res="none required"
24138 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24140 if ac_fn_c_try_link "$LINENO"; then :
24141 ac_cv_search_crypt=$ac_res
24143 rm -f core conftest.err conftest.$ac_objext \
24145 if ${ac_cv_search_crypt+:} false; then :
24149 if ${ac_cv_search_crypt+:} false; then :
24152 ac_cv_search_crypt=no
24154 rm conftest.$ac_ext
24155 LIBS=$ac_func_search_save_LIBS
24157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
24158 $as_echo "$ac_cv_search_crypt" >&6; }
24159 ac_res=$ac_cv_search_crypt
24160 if test "$ac_res" != no; then :
24161 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if system crypt() function is threadsafe" >&5
24166 $as_echo_n "checking if system crypt() function is threadsafe... " >&6; }
24167 if test "x$apu_crypt_threadsafe" = "x1"; then
24169 $as_echo "#define APU_CRYPT_THREADSAFE 1" >>confdefs.h
24175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5
24176 $as_echo "$msg" >&6; }
24178 for ac_func in crypt_r
24180 ac_fn_c_check_func "$LINENO" "crypt_r" "ac_cv_func_crypt_r"
24181 if test "x$ac_cv_func_crypt_r" = xyes; then :
24182 cat >>confdefs.h <<_ACEOF
24183 #define HAVE_CRYPT_R 1
24191 if test "$crypt_r" = "1"; then
24194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking style of crypt_r" >&5
24195 $as_echo_n "checking style of crypt_r... " >&6; }
24196 if ${apr_cv_crypt_r_style+:} false; then :
24197 $as_echo_n "(cached) " >&6
24199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24200 /* end confdefs.h. */
24206 crypt_r("passwd", "hash", &buffer);
24211 if ac_fn_c_try_compile "$LINENO"; then :
24212 apr_cv_crypt_r_style=cryptd
24214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24215 /* end confdefs.h. */
24220 struct crypt_data buffer;
24221 crypt_r("passwd", "hash", &buffer);
24226 if ac_fn_c_try_compile "$LINENO"; then :
24227 apr_cv_crypt_r_style=struct_crypt_data
24229 apr_cv_crypt_r_style=none
24231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_crypt_r_style" >&5
24236 $as_echo "$apr_cv_crypt_r_style" >&6; }
24238 if test "$apr_cv_crypt_r_style" = "cryptd"; then
24240 $as_echo "#define CRYPT_R_CRYPTD 1" >>confdefs.h
24242 elif test "$apr_cv_crypt_r_style" = "struct_crypt_data"; then
24244 $as_echo "#define CRYPT_R_STRUCT_CRYPT_DATA 1" >>confdefs.h
24251 lib_target=$APR_LIB_TARGET
24255 APRUTIL_LIBNAME="aprutil${libsuffix}"
24258 # Set up destination directory for DSOs.
24259 APU_DSO_LIBDIR="\${libdir}/apr-util-${APRUTIL_MAJOR_VERSION}"
24260 # Set APU_HAVE_MODULES appropriately for the Makefile
24261 if test -n "$APU_MODULES"; then
24262 APU_HAVE_MODULES=yes
24264 APU_HAVE_MODULES=no
24266 # Define expanded libdir for apu_config.h
24269 ap_cur="$APU_DSO_LIBDIR"
24270 while test "x${ap_cur}" != "x${ap_last}";
24272 ap_last="${ap_cur}"
24273 ap_cur=`eval "echo ${ap_cur}"`
24275 abs_dso_libdir="${ap_cur}"
24278 cat >>confdefs.h <<_ACEOF
24279 #define APU_DSO_LIBDIR "$abs_dso_libdir"
24288 if test "x$APRUTIL_LIBS" = "x"; then
24289 test "x$silent" != "xyes" && echo " setting APRUTIL_LIBS to \"$APR_LIBS\""
24290 APRUTIL_LIBS="$APR_LIBS"
24292 apr_addto_bugger="$APR_LIBS"
24293 for i in $apr_addto_bugger; do
24294 apr_addto_duplicate="0"
24295 for j in $APRUTIL_LIBS; do
24296 if test "x$i" = "x$j"; then
24297 apr_addto_duplicate="1"
24301 if test $apr_addto_duplicate = "0"; then
24302 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LIBS"
24303 APRUTIL_LIBS="$APRUTIL_LIBS $i"
24316 if test ! -d ./build; then
24321 sed -e 's/-DAPR_DECLARE_EXPORT/-DAPU_DECLARE_EXPORT/' \
24322 -e 's/-DAPR_DECLARE_STATIC/-DAPU_DECLARE_STATIC -DAPR_DECLARE_STATIC/' \
24323 < $APR_BUILD_DIR/apr_rules.mk > $abs_builddir/build/rules.mk
24326 cp $APR_BUILD_DIR/apr_rules.mk $abs_builddir/build/rules.mk
24330 case "$host_alias" in
24332 # Check whether they've installed GNU make
24333 if make --version > /dev/null 2>&1; then
24334 INCLUDE_RULES="include $abs_builddir/build/rules.mk"
24335 INCLUDE_OUTPUTS="include $abs_srcdir/build-outputs.mk"
24337 INCLUDE_RULES=".include \"$abs_builddir/build/rules.mk\""
24338 INCLUDE_OUTPUTS=".include \"$abs_srcdir/build-outputs.mk\""
24342 INCLUDE_RULES="include $abs_builddir/build/rules.mk"
24343 INCLUDE_OUTPUTS="include $abs_srcdir/build-outputs.mk"
24349 for d in include include/private; do
24350 test -d $top_builddir/$d || mkdir $top_builddir/$d
24353 ac_config_files="$ac_config_files Makefile export_vars.sh build/pkg/pkginfo apr-util.pc apu-$APRUTIL_MAJOR_VERSION-config:apu-config.in include/private/apu_select_dbm.h include/apr_ldap.h include/apu.h include/apu_want.h"
24356 ac_config_commands="$ac_config_commands default"
24359 if test -d $srcdir/test; then
24360 ac_config_files="$ac_config_files test/Makefile"
24364 cat >confcache <<\_ACEOF
24365 # This file is a shell script that caches the results of configure
24366 # tests run on this system so they can be shared between configure
24367 # scripts and configure runs, see configure's option --config-cache.
24368 # It is not useful on other systems. If it contains results you don't
24369 # want to keep, you may remove or edit it.
24371 # config.status only pays attention to the cache file if you give it
24372 # the --recheck option to rerun configure.
24374 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24375 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24376 # following values.
24380 # The following way of writing the cache mishandles newlines in values,
24381 # but we know of no workaround that is simple, portable, and efficient.
24382 # So, we kill variables containing newlines.
24383 # Ultrix sh set writes to stderr and can't be redirected directly,
24384 # and sets the high bit in the cache file unless we assign to the vars.
24386 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24387 eval ac_val=\$$ac_var
24391 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
24392 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
24395 _ | IFS | as_nl) ;; #(
24396 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
24397 *) { eval $ac_var=; unset $ac_var;} ;;
24403 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24404 *${as_nl}ac_space=\ *)
24405 # `set' does not quote correctly, so add quotes: double-quote
24406 # substitution turns \\\\ into \\, and sed turns \\ into \.
24409 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24412 # `set' quotes correctly as required by POSIX, so do not add quotes.
24413 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24422 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24424 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24426 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24427 if test -w "$cache_file"; then
24428 if test "x$cache_file" != "x/dev/null"; then
24429 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
24430 $as_echo "$as_me: updating cache $cache_file" >&6;}
24431 if test ! -f "$cache_file" || test -h "$cache_file"; then
24432 cat confcache >"$cache_file"
24434 case $cache_file in #(
24436 mv -f confcache "$cache_file"$$ &&
24437 mv -f "$cache_file"$$ "$cache_file" ;; #(
24439 mv -f confcache "$cache_file" ;;
24444 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
24445 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24450 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24451 # Let make expand exec_prefix.
24452 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24454 DEFS=-DHAVE_CONFIG_H
24459 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24460 # 1. Remove the extension, and $U if already installed.
24461 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24462 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
24463 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24464 # will be set to the directory where LIBOBJS objects are built.
24465 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24466 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
24468 LIBOBJS=$ac_libobjs
24470 LTLIBOBJS=$ac_ltlibobjs
24474 : "${CONFIG_STATUS=./config.status}"
24476 ac_clean_files_save=$ac_clean_files
24477 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24478 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
24479 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
24481 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
24483 # Generated by $as_me.
24484 # Run this file to recreate the current configuration.
24485 # Compiler output produced by configure, useful for debugging
24486 # configure, is in config.log if it exists.
24489 ac_cs_recheck=false
24492 SHELL=\${CONFIG_SHELL-$SHELL}
24495 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
24496 ## -------------------- ##
24497 ## M4sh Initialization. ##
24498 ## -------------------- ##
24500 # Be more Bourne compatible
24501 DUALCASE=1; export DUALCASE # for MKS sh
24502 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24505 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24506 # is contrary to our usage. Disable this feature.
24507 alias -g '${1+"$@"}'='"$@"'
24508 setopt NO_GLOB_SUBST
24510 case `(set -o) 2>/dev/null` in #(
24522 # Printing a long string crashes Solaris 7 /usr/bin/printf.
24523 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
24524 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
24525 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
24526 # Prefer a ksh shell builtin over an external printf program on Solaris,
24527 # but without wasting forks for bash or zsh.
24528 if test -z "$BASH_VERSION$ZSH_VERSION" \
24529 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
24530 as_echo='print -r --'
24531 as_echo_n='print -rn --'
24532 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
24533 as_echo='printf %s\n'
24534 as_echo_n='printf %s'
24536 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
24537 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
24538 as_echo_n='/usr/ucb/echo -n'
24540 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
24541 as_echo_n_body='eval
24545 expr "X$arg" : "X\\(.*\\)$as_nl";
24546 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
24548 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
24550 export as_echo_n_body
24551 as_echo_n='sh -c $as_echo_n_body as_echo'
24553 export as_echo_body
24554 as_echo='sh -c $as_echo_body as_echo'
24557 # The user is always right.
24558 if test "${PATH_SEPARATOR+set}" != set; then
24560 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
24561 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
24568 # We need space, tab and new line, in precisely that order. Quoting is
24569 # there to prevent editors from complaining about space-tab.
24570 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24571 # splitting by setting IFS to empty value.)
24574 # Find who we are. Look in the path if we contain no directory separator.
24577 *[\\/]* ) as_myself=$0 ;;
24578 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24579 for as_dir in $PATH
24582 test -z "$as_dir" && as_dir=.
24583 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24589 # We did not find ourselves, most probably we were run as `sh COMMAND'
24590 # in which case we are not to be found in the path.
24591 if test "x$as_myself" = x; then
24594 if test ! -f "$as_myself"; then
24595 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24599 # Unset variables that we do not need and which cause bugs (e.g. in
24600 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
24601 # suppresses any "Segmentation fault" message there. '((' could
24602 # trigger a bug in pdksh 5.2.14.
24603 for as_var in BASH_ENV ENV MAIL MAILPATH
24604 do eval test x\${$as_var+set} = xset \
24605 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
24618 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
24621 # as_fn_error STATUS ERROR [LINENO LOG_FD]
24622 # ----------------------------------------
24623 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
24624 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
24625 # script with STATUS, using 1 if that was 0.
24628 as_status=$1; test $as_status -eq 0 && as_status=1
24630 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
24631 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
24633 $as_echo "$as_me: error: $2" >&2
24634 as_fn_exit $as_status
24638 # as_fn_set_status STATUS
24639 # -----------------------
24640 # Set $? to STATUS, without forking.
24641 as_fn_set_status ()
24644 } # as_fn_set_status
24646 # as_fn_exit STATUS
24647 # -----------------
24648 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
24652 as_fn_set_status $1
24658 # Portably unset VAR.
24661 { eval $1=; unset $1;}
24663 as_unset=as_fn_unset
24664 # as_fn_append VAR VALUE
24665 # ----------------------
24666 # Append the text in VALUE to the end of the definition contained in VAR. Take
24667 # advantage of any shell optimizations that allow amortized linear growth over
24668 # repeated appends, instead of the typical quadratic growth present in naive
24670 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
24671 eval 'as_fn_append ()
24682 # as_fn_arith ARG...
24683 # ------------------
24684 # Perform arithmetic evaluation on the ARGs, and store the result in the
24685 # global $as_val. Take advantage of shells that can avoid forks. The arguments
24686 # must be portable across $(()) and expr.
24687 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
24688 eval 'as_fn_arith ()
24695 as_val=`expr "$@" || test $? -eq 1`
24700 if expr a : '\(a\)' >/dev/null 2>&1 &&
24701 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24707 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24708 as_basename=basename
24713 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24719 as_me=`$as_basename -- "$0" ||
24720 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24721 X"$0" : 'X\(//\)$' \| \
24722 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24724 sed '/^.*\/\([^/][^/]*\)\/*$/{
24738 # Avoid depending upon Character Ranges.
24739 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24740 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24741 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24742 as_cr_digits='0123456789'
24743 as_cr_alnum=$as_cr_Letters$as_cr_digits
24745 ECHO_C= ECHO_N= ECHO_T=
24746 case `echo -n x` in #(((((
24748 case `echo 'xy\c'` in
24749 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24751 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
24758 rm -f conf$$ conf$$.exe conf$$.file
24759 if test -d conf$$.dir; then
24760 rm -f conf$$.dir/conf$$.file
24763 mkdir conf$$.dir 2>/dev/null
24765 if (echo >conf$$.file) 2>/dev/null; then
24766 if ln -s conf$$.file conf$$ 2>/dev/null; then
24768 # ... but there are two gotchas:
24769 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24770 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24771 # In both cases, we have to default to `cp -pR'.
24772 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24774 elif ln conf$$.file conf$$ 2>/dev/null; then
24782 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24783 rmdir conf$$.dir 2>/dev/null
24788 # Create "$as_dir" as a directory, including parents if necessary.
24793 -*) as_dir=./$as_dir;;
24795 test -d "$as_dir" || eval $as_mkdir_p || {
24799 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
24800 *) as_qdir=$as_dir;;
24802 as_dirs="'$as_qdir' $as_dirs"
24803 as_dir=`$as_dirname -- "$as_dir" ||
24804 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24805 X"$as_dir" : 'X\(//\)[^/]' \| \
24806 X"$as_dir" : 'X\(//\)$' \| \
24807 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24808 $as_echo X"$as_dir" |
24809 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24813 /^X\(\/\/\)[^/].*/{
24826 test -d "$as_dir" && break
24828 test -z "$as_dirs" || eval "mkdir $as_dirs"
24829 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
24833 if mkdir -p . 2>/dev/null; then
24834 as_mkdir_p='mkdir -p "$as_dir"'
24836 test -d ./-p && rmdir ./-p
24841 # as_fn_executable_p FILE
24842 # -----------------------
24843 # Test if FILE is an executable regular file.
24844 as_fn_executable_p ()
24846 test -f "$1" && test -x "$1"
24847 } # as_fn_executable_p
24848 as_test_x='test -x'
24849 as_executable_p=as_fn_executable_p
24851 # Sed expression to map a string onto a valid CPP name.
24852 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24854 # Sed expression to map a string onto a valid variable name.
24855 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24859 ## ----------------------------------- ##
24860 ## Main body of $CONFIG_STATUS script. ##
24861 ## ----------------------------------- ##
24863 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
24865 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24866 # Save the log message, to keep $0 and so on meaningful, and to
24867 # report actual input values of CONFIG_FILES etc. instead of their
24868 # values after options handling.
24870 This file was extended by $as_me, which was
24871 generated by GNU Autoconf 2.69. Invocation command line was
24873 CONFIG_FILES = $CONFIG_FILES
24874 CONFIG_HEADERS = $CONFIG_HEADERS
24875 CONFIG_LINKS = $CONFIG_LINKS
24876 CONFIG_COMMANDS = $CONFIG_COMMANDS
24879 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24884 case $ac_config_files in *"
24885 "*) set x $ac_config_files; shift; ac_config_files=$*;;
24888 case $ac_config_headers in *"
24889 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
24893 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24894 # Files that config.status was made for.
24895 config_files="$ac_config_files"
24896 config_headers="$ac_config_headers"
24897 config_commands="$ac_config_commands"
24901 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24903 \`$as_me' instantiates files and other configuration actions
24904 from templates according to the current configuration. Unless the files
24905 and actions are specified as TAGs, all are instantiated by default.
24907 Usage: $0 [OPTION]... [TAG]...
24909 -h, --help print this help, then exit
24910 -V, --version print version number and configuration settings, then exit
24911 --config print configuration, then exit
24912 -q, --quiet, --silent
24913 do not print progress messages
24914 -d, --debug don't remove temporary files
24915 --recheck update $as_me by reconfiguring in the same conditions
24916 --file=FILE[:TEMPLATE]
24917 instantiate the configuration file FILE
24918 --header=FILE[:TEMPLATE]
24919 instantiate the configuration header FILE
24921 Configuration files:
24924 Configuration headers:
24927 Configuration commands:
24930 Report bugs to the package provider."
24933 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24934 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
24937 configured by $0, generated by GNU Autoconf 2.69,
24938 with options \\"\$ac_cs_config\\"
24940 Copyright (C) 2012 Free Software Foundation, Inc.
24941 This config.status script is free software; the Free Software Foundation
24942 gives unlimited permission to copy, distribute and modify it."
24947 test -n "\$AWK" || AWK=awk
24950 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24951 # The default lists apply if the user does not specify any file.
24957 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24958 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24962 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24974 # Handling of the options.
24975 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24977 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24978 $as_echo "$ac_cs_version"; exit ;;
24979 --config | --confi | --conf | --con | --co | --c )
24980 $as_echo "$ac_cs_config"; exit ;;
24981 --debug | --debu | --deb | --de | --d | -d )
24983 --file | --fil | --fi | --f )
24986 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
24987 '') as_fn_error $? "missing file argument" ;;
24989 as_fn_append CONFIG_FILES " '$ac_optarg'"
24990 ac_need_defaults=false;;
24991 --header | --heade | --head | --hea )
24994 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
24996 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
24997 ac_need_defaults=false;;
24999 # Conflict between --help and --header
25000 as_fn_error $? "ambiguous option: \`$1'
25001 Try \`$0 --help' for more information.";;
25002 --help | --hel | -h )
25003 $as_echo "$ac_cs_usage"; exit ;;
25004 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25005 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25008 # This is an error.
25009 -*) as_fn_error $? "unrecognized option: \`$1'
25010 Try \`$0 --help' for more information." ;;
25012 *) as_fn_append ac_config_targets " $1"
25013 ac_need_defaults=false ;;
25019 ac_configure_extra_args=
25021 if $ac_cs_silent; then
25023 ac_configure_extra_args="$ac_configure_extra_args --silent"
25027 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25028 if \$ac_cs_recheck; then
25029 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25031 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
25032 CONFIG_SHELL='$SHELL'
25033 export CONFIG_SHELL
25038 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25042 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25043 ## Running $as_me. ##
25049 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25054 APRUTIL_MAJOR_VERSION=$APRUTIL_MAJOR_VERSION
25059 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25061 # Handling of arguments.
25062 for ac_config_target in $ac_config_targets
25064 case $ac_config_target in
25065 "include/private/apu_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/private/apu_config.h" ;;
25066 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
25067 "export_vars.sh") CONFIG_FILES="$CONFIG_FILES export_vars.sh" ;;
25068 "build/pkg/pkginfo") CONFIG_FILES="$CONFIG_FILES build/pkg/pkginfo" ;;
25069 "apr-util.pc") CONFIG_FILES="$CONFIG_FILES apr-util.pc" ;;
25070 "apu-$APRUTIL_MAJOR_VERSION-config") CONFIG_FILES="$CONFIG_FILES apu-$APRUTIL_MAJOR_VERSION-config:apu-config.in" ;;
25071 "include/private/apu_select_dbm.h") CONFIG_FILES="$CONFIG_FILES include/private/apu_select_dbm.h" ;;
25072 "include/apr_ldap.h") CONFIG_FILES="$CONFIG_FILES include/apr_ldap.h" ;;
25073 "include/apu.h") CONFIG_FILES="$CONFIG_FILES include/apu.h" ;;
25074 "include/apu_want.h") CONFIG_FILES="$CONFIG_FILES include/apu_want.h" ;;
25075 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
25076 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
25078 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
25083 # If the user did not use the arguments to specify the items to instantiate,
25084 # then the envvar interface is used. Set only those that are not.
25085 # We use the long form for the default assignment because of an extremely
25086 # bizarre bug on SunOS 4.1.3.
25087 if $ac_need_defaults; then
25088 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25089 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25090 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25093 # Have a temporary directory for convenience. Make it in the build tree
25094 # simply because there is no reason against having it here, and in addition,
25095 # creating and moving files from /tmp can sometimes cause problems.
25096 # Hook for its removal unless debugging.
25097 # Note that there is a small window in which the directory will not be cleaned:
25098 # after its creation but before its name has been assigned to `$tmp'.
25102 trap 'exit_status=$?
25103 : "${ac_tmp:=$tmp}"
25104 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
25106 trap 'as_fn_exit 1' 1 2 13 15
25108 # Create a (secure) tmp directory for tmp files.
25111 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25115 tmp=./conf$$-$RANDOM
25116 (umask 077 && mkdir "$tmp")
25117 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
25120 # Set up the scripts for CONFIG_FILES section.
25121 # No need to generate them if there are no CONFIG_FILES.
25122 # This happens for instance with `./config.status config.h'.
25123 if test -n "$CONFIG_FILES"; then
25126 ac_cr=`echo X | tr X '\015'`
25127 # On cygwin, bash can eat \r inside `` if the user requested igncr.
25128 # But we know of no other shell where ac_cr would be empty at this
25129 # point, so we can use a bashism as a fallback.
25130 if test "x$ac_cr" = x; then
25131 eval ac_cr=\$\'\\r\'
25133 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
25134 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
25137 ac_cs_awk_cr=$ac_cr
25140 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
25145 echo "cat >conf$$subs.awk <<_ACEOF" &&
25146 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
25148 } >conf$$subs.sh ||
25149 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
25150 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
25152 for ac_last_try in false false false false false :; do
25153 . ./conf$$subs.sh ||
25154 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
25156 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
25157 if test $ac_delim_n = $ac_delim_num; then
25159 elif $ac_last_try; then
25160 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
25162 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25165 rm -f conf$$subs.sh
25167 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25168 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
25172 s/^/S["/; s/!.*/"]=/
25182 s/\(.\{148\}\)..*/\1/
25184 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
25189 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25196 s/\(.\{148\}\)..*/\1/
25198 s/["\\]/\\&/g; s/^/"/; s/$/"/
25202 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25207 ' <conf$$subs.awk | sed '
25212 ' >>$CONFIG_STATUS || ac_write_fail=1
25213 rm -f conf$$subs.awk
25214 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25216 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
25217 for (key in S) S_is_set[key] = 1
25223 nfields = split(line, field, "@")
25225 len = length(field[1])
25226 for (i = 2; i < nfields; i++) {
25228 keylen = length(key)
25229 if (S_is_set[key]) {
25231 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
25232 len += length(value) + length(field[++i])
25243 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25244 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
25245 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
25248 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
25249 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
25252 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
25253 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
25254 # trailing colons and then remove the whole line if VPATH becomes empty
25255 # (actually we leave an empty line to preserve line numbers).
25256 if test "x$srcdir" = x.; then
25257 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
25275 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25276 fi # test -n "$CONFIG_FILES"
25278 # Set up the scripts for CONFIG_HEADERS section.
25279 # No need to generate them if there are no CONFIG_HEADERS.
25280 # This happens for instance with `./config.status Makefile'.
25281 if test -n "$CONFIG_HEADERS"; then
25282 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
25286 # Transform confdefs.h into an awk script `defines.awk', embedded as
25287 # here-document in config.status, that substitutes the proper values into
25288 # config.h.in to produce config.h.
25290 # Create a delimiter string that does not exist in confdefs.h, to ease
25291 # handling of long lines.
25293 for ac_last_try in false false :; do
25294 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
25295 if test -z "$ac_tt"; then
25297 elif $ac_last_try; then
25298 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
25300 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25304 # For the awk script, D is an array of macro values keyed by name,
25305 # likewise P contains macro parameters if any. Preserve backslash
25306 # newline sequences.
25308 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25310 s/.\{148\}/&'"$ac_delim"'/g
25313 s/^[ ]*#[ ]*define[ ][ ]*/ /
25320 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
25322 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
25326 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
25327 D["\1"]=" \3\\\\\\n"\\/p
25329 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
25334 s/.\{148\}/&'"$ac_delim"'/g
25339 s/["\\]/\\&/g; s/^/"/; s/$/"/p
25342 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
25344 ' <confdefs.h | sed '
25345 s/'"$ac_delim"'/"\\\
25346 "/g' >>$CONFIG_STATUS || ac_write_fail=1
25348 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25349 for (key in D) D_is_set[key] = 1
25352 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
25354 split(line, arg, " ")
25355 if (arg[1] == "#") {
25359 defundef = substr(arg[1], 2)
25362 split(mac1, mac2, "(") #)
25364 prefix = substr(line, 1, index(line, defundef) - 1)
25365 if (D_is_set[macro]) {
25366 # Preserve the white space surrounding the "#".
25367 print prefix "define", macro P[macro] D[macro]
25370 # Replace #undef with comments. This is necessary, for example,
25371 # in the case of _POSIX_SOURCE, which is predefined and required
25372 # on some systems where configure will not decide to define it.
25373 if (defundef == "undef") {
25374 print "/*", prefix defundef, macro, "*/"
25382 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25383 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
25384 fi # test -n "$CONFIG_HEADERS"
25387 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
25392 :[FHLC]) ac_mode=$ac_tag; continue;;
25394 case $ac_mode$ac_tag in
25396 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
25397 :[FH]-) ac_tag=-:-;;
25398 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25415 -) ac_f="$ac_tmp/stdin";;
25416 *) # Look for the file first in the build tree, then in the source tree
25417 # (if the path is not absolute). The absolute path cannot be DOS-style,
25418 # because $ac_f cannot contain `:'.
25422 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25424 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
25426 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
25427 as_fn_append ac_file_inputs " '$ac_f'"
25430 # Let's still pretend it is `configure' which instantiates (i.e., don't
25431 # use $as_me), people would be surprised to read:
25432 # /* config.h. Generated by config.status. */
25433 configure_input='Generated from '`
25434 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
25436 if test x"$ac_file" != x-; then
25437 configure_input="$ac_file. $configure_input"
25438 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
25439 $as_echo "$as_me: creating $ac_file" >&6;}
25441 # Neutralize special characters interpreted by sed in replacement strings.
25442 case $configure_input in #(
25443 *\&* | *\|* | *\\* )
25444 ac_sed_conf_input=`$as_echo "$configure_input" |
25445 sed 's/[\\\\&|]/\\\\&/g'`;; #(
25446 *) ac_sed_conf_input=$configure_input;;
25450 *:-:* | *:-) cat >"$ac_tmp/stdin" \
25451 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
25456 ac_dir=`$as_dirname -- "$ac_file" ||
25457 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25458 X"$ac_file" : 'X\(//\)[^/]' \| \
25459 X"$ac_file" : 'X\(//\)$' \| \
25460 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25461 $as_echo X"$ac_file" |
25462 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25466 /^X\(\/\/\)[^/].*/{
25479 as_dir="$ac_dir"; as_fn_mkdir_p
25483 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25485 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
25486 # A ".." for each directory in $ac_dir_suffix.
25487 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
25488 case $ac_top_builddir_sub in
25489 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25490 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25493 ac_abs_top_builddir=$ac_pwd
25494 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25495 # for backward compatibility:
25496 ac_top_builddir=$ac_top_build_prefix
25499 .) # We are building in place.
25501 ac_top_srcdir=$ac_top_builddir_sub
25502 ac_abs_top_srcdir=$ac_pwd ;;
25503 [\\/]* | ?:[\\/]* ) # Absolute name.
25504 ac_srcdir=$srcdir$ac_dir_suffix;
25505 ac_top_srcdir=$srcdir
25506 ac_abs_top_srcdir=$srcdir ;;
25507 *) # Relative name.
25508 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25509 ac_top_srcdir=$ac_top_build_prefix$srcdir
25510 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25512 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25522 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25523 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25527 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25528 # If the template does not know about datarootdir, expand it.
25529 # FIXME: This hack should be removed a few years after 2.60.
25530 ac_datarootdir_hack=; ac_datarootdir_seen=
25541 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
25542 *datarootdir*) ac_datarootdir_seen=yes;;
25543 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25544 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25545 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25547 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25548 ac_datarootdir_hack='
25549 s&@datadir@&$datadir&g
25550 s&@docdir@&$docdir&g
25551 s&@infodir@&$infodir&g
25552 s&@localedir@&$localedir&g
25553 s&@mandir@&$mandir&g
25554 s&\\\${datarootdir}&$datarootdir&g' ;;
25558 # Neutralize VPATH when `$srcdir' = `.'.
25559 # Shell code in configure.ac might set extrasub.
25560 # FIXME: do we really want to maintain this feature?
25561 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25562 ac_sed_extra="$ac_vpsub
25565 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25567 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25568 s|@configure_input@|$ac_sed_conf_input|;t t
25569 s&@top_builddir@&$ac_top_builddir_sub&;t t
25570 s&@top_build_prefix@&$ac_top_build_prefix&;t t
25571 s&@srcdir@&$ac_srcdir&;t t
25572 s&@abs_srcdir@&$ac_abs_srcdir&;t t
25573 s&@top_srcdir@&$ac_top_srcdir&;t t
25574 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25575 s&@builddir@&$ac_builddir&;t t
25576 s&@abs_builddir@&$ac_abs_builddir&;t t
25577 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25578 s&@INSTALL@&$ac_INSTALL&;t t
25579 $ac_datarootdir_hack
25581 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
25582 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
25584 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25585 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
25586 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
25587 "$ac_tmp/out"`; test -z "$ac_out"; } &&
25588 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25589 which seems to be undefined. Please make sure it is defined" >&5
25590 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25591 which seems to be undefined. Please make sure it is defined" >&2;}
25593 rm -f "$ac_tmp/stdin"
25595 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
25596 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
25598 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
25604 if test x"$ac_file" != x-; then
25606 $as_echo "/* $configure_input */" \
25607 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
25608 } >"$ac_tmp/config.h" \
25609 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
25610 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
25611 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
25612 $as_echo "$as_me: $ac_file is unchanged" >&6;}
25615 mv "$ac_tmp/config.h" "$ac_file" \
25616 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
25619 $as_echo "/* $configure_input */" \
25620 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
25621 || as_fn_error $? "could not create -" "$LINENO" 5
25625 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
25626 $as_echo "$as_me: executing $ac_file commands" >&6;}
25631 case $ac_file$ac_mode in
25633 chmod +x apu-$APRUTIL_MAJOR_VERSION-config
25642 ac_clean_files=$ac_clean_files_save
25644 test $ac_write_fail = 0 ||
25645 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
25648 # configure is writing to config.log, and then calls config.status.
25649 # config.status does its own redirection, appending to config.log.
25650 # Unfortunately, on DOS this fails, as config.log is still kept open
25651 # by configure, so config.status won't be able to write to it; its
25652 # output is simply discarded. So we exec the FD to /dev/null,
25653 # effectively closing config.log, so it can be properly (re)opened and
25654 # appended to by config.status. When coming back to configure, we
25655 # need to make the FD available again.
25656 if test "$no_create" != yes; then
25658 ac_config_status_args=
25659 test "$silent" = yes &&
25660 ac_config_status_args="$ac_config_status_args --quiet"
25662 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25664 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25665 # would make configure fail if this is the last instruction.
25666 $ac_cs_success || as_fn_exit 1
25668 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
25669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
25670 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}