2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.59.
5
# Copyright (C) 2003 Free Software Foundation, Inc.
6
# This configure script is free software; the Free Software Foundation
7
# gives unlimited permission to copy, distribute and modify it.
8
## --------------------- ##
9
## M4sh Initialization. ##
10
## --------------------- ##
12
# Be Bourne compatible
13
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17
# is contrary to our usage. Disable this feature.
18
alias -g '${1+"$@"}'='"$@"'
19
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22
DUALCASE=1; export DUALCASE # for MKS sh
24
# Support unset when possible.
25
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32
# Work around bugs in pre-3.0 UWIN ksh.
33
$as_unset ENV MAIL MAILPATH
40
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45
eval $as_var=C; export $as_var
51
# Required to use basename.
52
if expr a : '\(a\)' >/dev/null 2>&1; then
58
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65
# Name of the executable.
66
as_me=`$as_basename "$0" ||
67
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68
X"$0" : 'X\(//\)$' \| \
69
X"$0" : 'X\(/\)$' \| \
70
. : '\(.\)' 2>/dev/null ||
72
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73
/^X\/\(\/\/\)$/{ s//\1/; q; }
74
/^X\/\(\/\).*/{ s//\1/; q; }
78
# PATH needs CR, and LINENO needs CR and PATH.
79
# Avoid depending upon Character Ranges.
80
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83
as_cr_digits='0123456789'
84
as_cr_alnum=$as_cr_Letters$as_cr_digits
86
# The user is always right.
87
if test "${PATH_SEPARATOR+set}" != set; then
88
echo "#! /bin/sh" >conf$$.sh
89
echo "exit 0" >>conf$$.sh
91
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103
test "x$as_lineno_1" != "x$as_lineno_2" &&
104
test "x$as_lineno_3" = "x$as_lineno_2" || {
105
# Find who we are. Look in the path if we contain no path at all
108
*[\\/]* ) as_myself=$0 ;;
109
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113
test -z "$as_dir" && as_dir=.
114
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119
# We did not find ourselves, most probably we were run as `sh COMMAND'
120
# in which case we are not to be found in the path.
121
if test "x$as_myself" = x; then
124
if test ! -f "$as_myself"; then
125
{ echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126
{ (exit 1); exit 1; }; }
128
case $CONFIG_SHELL in
130
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134
test -z "$as_dir" && as_dir=.
135
for as_base in sh bash ksh sh5; do
138
if ("$as_dir/$as_base" -c '
141
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142
test "x$as_lineno_1" != "x$as_lineno_2" &&
143
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146
CONFIG_SHELL=$as_dir/$as_base
148
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157
# uniformly replaced by the line number. The first 'sed' inserts a
158
# line-number line before each line; the second 'sed' does the real
159
# work. The second script uses 'N' to pair each line-number line
160
# with the numbered line, and appends trailing '-' during
161
# substitution so that $LINENO is not a special case at line end.
162
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164
sed '=' <$as_myself |
169
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172
s,^['$as_cr_digits']*\n,,
174
chmod +x $as_me.lineno ||
175
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176
{ (exit 1); exit 1; }; }
178
# Don't try to exec as it changes $[0], causing all sort of problems
179
# (the dirname of $[0] is not the place where we might find the
180
# original and so on. Autoconf is especially sensible to this).
182
# Exit status is that of the last command.
187
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188
*c*,-n*) ECHO_N= ECHO_C='
190
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194
if expr a : '\(a\)' >/dev/null 2>&1; then
200
rm -f conf$$ conf$$.exe conf$$.file
202
if ln -s conf$$.file conf$$ 2>/dev/null; then
203
# We could just check for DJGPP; but this test a) works b) is more generic
204
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205
if test -f conf$$.exe; then
206
# Don't use ln at all; we don't have any links
211
elif ln conf$$.file conf$$ 2>/dev/null; then
216
rm -f conf$$ conf$$.exe conf$$.file
218
if mkdir -p . 2>/dev/null; then
221
test -d ./-p && rmdir ./-p
225
as_executable_p="test -f"
227
# Sed expression to map a string onto a valid CPP name.
228
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230
# Sed expression to map a string onto a valid variable name.
231
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235
# We need space, tab and new line, in precisely that order.
245
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246
# so uname gets run too.
247
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
254
ac_default_prefix=/usr/local
255
ac_config_libobj_dir=.
260
SHELL=${CONFIG_SHELL-/bin/sh}
262
# Maximum number of lines to put in a shell here document.
263
# This variable seems obsolete. It should probably be removed, and
264
# only ac_max_sed_lines should be used.
265
: ${ac_max_here_lines=38}
267
# Identity of this package.
274
ac_unique_file="export_vars.sh.in"
275
# Factoring default headers for most tests.
276
ac_includes_default="\
279
# include <sys/types.h>
282
# include <sys/stat.h>
293
# if !STDC_HEADERS && HAVE_MEMORY_H
299
# include <strings.h>
302
# include <inttypes.h>
312
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS APU_CONFIG_LOCATION build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA top_builddir abs_srcdir abs_builddir APRUTIL_DOTTED_VERSION APRUTIL_MAJOR_VERSION APR_INCLUDES APR_LIBS APR_BUILD_DIR APR_ICONV_DIR CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP ldap_h lber_h ldap_ssl_h apu_has_ldapssl_client_init apu_has_ldapssl_client_deinit apu_has_ldapssl_add_trusted_cert apu_has_ldap_start_tls_s apu_has_ldapssl_init apu_has_ldap_sslinit apu_has_ldapssl_install_routines apu_has_ldap apu_has_ldap_openldap apu_has_ldap_solaris apu_has_ldap_novell apu_has_ldap_microsoft apu_has_ldap_netscape apu_has_ldap_mozilla apu_has_ldap_other apu_use_sdbm apu_use_gdbm apu_use_ndbm apu_use_db apu_have_sdbm apu_have_gdbm apu_have_ndbm apu_have_db apu_db_header apu_db_version apu_have_pgsql apu_have_mysql apu_have_sqlite3 apu_have_sqlite2 APR_XML_SUBDIRS APR_XML_DIR APR_XML_EXPAT_OLD have_iconv have_apr_iconv so_ext lib_target APRUTIL_LIBNAME APRUTIL_EXPORT_LIBS APRUTIL_PRIV_INCLUDES APRUTIL_INCLUDES APRUTIL_LDFLAGS APRUTIL_LIBS INCLUDE_RULES INCLUDE_OUTPUTS LIBOBJS LTLIBOBJS'
315
# Initialize some variables set by options.
317
ac_init_version=false
318
# The variables have the same names as the options, with
319
# dashes changed to underlines.
327
program_transform_name=s,x,x,
335
# Installation directory options.
336
# These are left unexpanded so users can "make install exec_prefix=/foo"
337
# and all the variables that are supposed to be based on exec_prefix
338
# by default will actually change.
339
# Use braces instead of parens because sh, perl, etc. also accept them.
340
bindir='${exec_prefix}/bin'
341
sbindir='${exec_prefix}/sbin'
342
libexecdir='${exec_prefix}/libexec'
343
datadir='${prefix}/share'
344
sysconfdir='${prefix}/etc'
345
sharedstatedir='${prefix}/com'
346
localstatedir='${prefix}/var'
347
libdir='${exec_prefix}/lib'
348
includedir='${prefix}/include'
349
oldincludedir='/usr/include'
350
infodir='${prefix}/info'
351
mandir='${prefix}/man'
356
# If the previous option needs an argument, assign it.
357
if test -n "$ac_prev"; then
358
eval "$ac_prev=\$ac_option"
363
ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365
# Accept the important Cygnus configure options, so we can diagnose typos.
369
-bindir | --bindir | --bindi | --bind | --bin | --bi)
371
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374
-build | --build | --buil | --bui | --bu)
375
ac_prev=build_alias ;;
376
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
377
build_alias=$ac_optarg ;;
379
-cache-file | --cache-file | --cache-fil | --cache-fi \
380
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381
ac_prev=cache_file ;;
382
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384
cache_file=$ac_optarg ;;
387
cache_file=config.cache ;;
389
-datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391
-datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393
datadir=$ac_optarg ;;
395
-disable-* | --disable-*)
396
ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397
# Reject names that are not valid shell variable names.
398
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
400
{ (exit 1); exit 1; }; }
401
ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402
eval "enable_$ac_feature=no" ;;
404
-enable-* | --enable-*)
405
ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406
# Reject names that are not valid shell variable names.
407
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
409
{ (exit 1); exit 1; }; }
410
ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415
eval "enable_$ac_feature='$ac_optarg'" ;;
417
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419
| --exec | --exe | --ex)
420
ac_prev=exec_prefix ;;
421
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423
| --exec=* | --exe=* | --ex=*)
424
exec_prefix=$ac_optarg ;;
426
-gas | --gas | --ga | --g)
427
# Obsolete; use --with-gas.
430
-help | --help | --hel | --he | -h)
432
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433
ac_init_help=recursive ;;
434
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435
ac_init_help=short ;;
437
-host | --host | --hos | --ho)
438
ac_prev=host_alias ;;
439
-host=* | --host=* | --hos=* | --ho=*)
440
host_alias=$ac_optarg ;;
442
-includedir | --includedir | --includedi | --included | --include \
443
| --includ | --inclu | --incl | --inc)
444
ac_prev=includedir ;;
445
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446
| --includ=* | --inclu=* | --incl=* | --inc=*)
447
includedir=$ac_optarg ;;
449
-infodir | --infodir | --infodi | --infod | --info | --inf)
451
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452
infodir=$ac_optarg ;;
454
-libdir | --libdir | --libdi | --libd)
456
-libdir=* | --libdir=* | --libdi=* | --libd=*)
459
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460
| --libexe | --libex | --libe)
461
ac_prev=libexecdir ;;
462
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463
| --libexe=* | --libex=* | --libe=*)
464
libexecdir=$ac_optarg ;;
466
-localstatedir | --localstatedir | --localstatedi | --localstated \
467
| --localstate | --localstat | --localsta | --localst \
468
| --locals | --local | --loca | --loc | --lo)
469
ac_prev=localstatedir ;;
470
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471
| --localstate=* | --localstat=* | --localsta=* | --localst=* \
472
| --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473
localstatedir=$ac_optarg ;;
475
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
481
# Obsolete; use --without-fp.
484
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
485
| --no-cr | --no-c | -n)
488
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
489
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494
| --oldin | --oldi | --old | --ol | --o)
495
ac_prev=oldincludedir ;;
496
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499
oldincludedir=$ac_optarg ;;
501
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506
-program-prefix | --program-prefix | --program-prefi | --program-pref \
507
| --program-pre | --program-pr | --program-p)
508
ac_prev=program_prefix ;;
509
-program-prefix=* | --program-prefix=* | --program-prefi=* \
510
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511
program_prefix=$ac_optarg ;;
513
-program-suffix | --program-suffix | --program-suffi | --program-suff \
514
| --program-suf | --program-su | --program-s)
515
ac_prev=program_suffix ;;
516
-program-suffix=* | --program-suffix=* | --program-suffi=* \
517
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518
program_suffix=$ac_optarg ;;
520
-program-transform-name | --program-transform-name \
521
| --program-transform-nam | --program-transform-na \
522
| --program-transform-n | --program-transform- \
523
| --program-transform | --program-transfor \
524
| --program-transfo | --program-transf \
525
| --program-trans | --program-tran \
526
| --progr-tra | --program-tr | --program-t)
527
ac_prev=program_transform_name ;;
528
-program-transform-name=* | --program-transform-name=* \
529
| --program-transform-nam=* | --program-transform-na=* \
530
| --program-transform-n=* | --program-transform-=* \
531
| --program-transform=* | --program-transfor=* \
532
| --program-transfo=* | --program-transf=* \
533
| --program-trans=* | --program-tran=* \
534
| --progr-tra=* | --program-tr=* | --program-t=*)
535
program_transform_name=$ac_optarg ;;
537
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
538
| -silent | --silent | --silen | --sile | --sil)
541
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545
sbindir=$ac_optarg ;;
547
-sharedstatedir | --sharedstatedir | --sharedstatedi \
548
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549
| --sharedst | --shareds | --shared | --share | --shar \
551
ac_prev=sharedstatedir ;;
552
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556
sharedstatedir=$ac_optarg ;;
558
-site | --site | --sit)
560
-site=* | --site=* | --sit=*)
563
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569
| --syscon | --sysco | --sysc | --sys | --sy)
570
ac_prev=sysconfdir ;;
571
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573
sysconfdir=$ac_optarg ;;
575
-target | --target | --targe | --targ | --tar | --ta | --t)
576
ac_prev=target_alias ;;
577
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578
target_alias=$ac_optarg ;;
580
-v | -verbose | --verbose | --verbos | --verbo | --verb)
583
-version | --version | --versio | --versi | --vers | -V)
587
ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588
# Reject names that are not valid shell variable names.
589
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590
{ echo "$as_me: error: invalid package name: $ac_package" >&2
591
{ (exit 1); exit 1; }; }
592
ac_package=`echo $ac_package| sed 's/-/_/g'`
594
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597
eval "with_$ac_package='$ac_optarg'" ;;
599
-without-* | --without-*)
600
ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601
# Reject names that are not valid shell variable names.
602
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603
{ echo "$as_me: error: invalid package name: $ac_package" >&2
604
{ (exit 1); exit 1; }; }
605
ac_package=`echo $ac_package | sed 's/-/_/g'`
606
eval "with_$ac_package=no" ;;
609
# Obsolete; use --with-x.
612
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613
| --x-incl | --x-inc | --x-in | --x-i)
614
ac_prev=x_includes ;;
615
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617
x_includes=$ac_optarg ;;
619
-x-libraries | --x-libraries | --x-librarie | --x-librari \
620
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621
ac_prev=x_libraries ;;
622
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624
x_libraries=$ac_optarg ;;
626
-*) { echo "$as_me: error: unrecognized option: $ac_option
627
Try \`$0 --help' for more information." >&2
628
{ (exit 1); exit 1; }; }
632
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633
# Reject names that are not valid shell variable names.
634
expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635
{ echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636
{ (exit 1); exit 1; }; }
637
ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638
eval "$ac_envvar='$ac_optarg'"
642
# FIXME: should be removed in autoconf 3.0.
643
echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645
echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
652
if test -n "$ac_prev"; then
653
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654
{ echo "$as_me: error: missing argument to $ac_option" >&2
655
{ (exit 1); exit 1; }; }
658
# Be sure to have absolute paths.
659
for ac_var in exec_prefix prefix
661
eval ac_val=$`echo $ac_var`
663
[\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665
{ (exit 1); exit 1; }; };;
669
# Be sure to have absolute paths.
670
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671
localstatedir libdir includedir oldincludedir infodir mandir
673
eval ac_val=$`echo $ac_var`
675
[\\/$]* | ?:[\\/]* ) ;;
676
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677
{ (exit 1); exit 1; }; };;
681
# There might be people who depend on the old broken behavior: `$host'
682
# used to hold the argument of --host etc.
683
# FIXME: To remove some day.
688
# FIXME: To remove some day.
689
if test "x$host_alias" != x; then
690
if test "x$build_alias" = x; then
691
cross_compiling=maybe
692
echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693
If a cross compiler is detected then cross compile mode will be used." >&2
694
elif test "x$build_alias" != "x$host_alias"; then
700
test -n "$host_alias" && ac_tool_prefix=$host_alias-
702
test "$silent" = yes && exec 6>/dev/null
705
# Find the source files, if location was not specified.
706
if test -z "$srcdir"; then
707
ac_srcdir_defaulted=yes
708
# Try the directory containing this script, then its parent.
709
ac_confdir=`(dirname "$0") 2>/dev/null ||
710
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711
X"$0" : 'X\(//\)[^/]' \| \
712
X"$0" : 'X\(//\)$' \| \
713
X"$0" : 'X\(/\)' \| \
714
. : '\(.\)' 2>/dev/null ||
716
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
718
/^X\(\/\/\)$/{ s//\1/; q; }
719
/^X\(\/\).*/{ s//\1/; q; }
722
if test ! -r $srcdir/$ac_unique_file; then
726
ac_srcdir_defaulted=no
728
if test ! -r $srcdir/$ac_unique_file; then
729
if test "$ac_srcdir_defaulted" = yes; then
730
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731
{ (exit 1); exit 1; }; }
733
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734
{ (exit 1); exit 1; }; }
737
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738
{ echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739
{ (exit 1); exit 1; }; }
740
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741
ac_env_build_alias_set=${build_alias+set}
742
ac_env_build_alias_value=$build_alias
743
ac_cv_env_build_alias_set=${build_alias+set}
744
ac_cv_env_build_alias_value=$build_alias
745
ac_env_host_alias_set=${host_alias+set}
746
ac_env_host_alias_value=$host_alias
747
ac_cv_env_host_alias_set=${host_alias+set}
748
ac_cv_env_host_alias_value=$host_alias
749
ac_env_target_alias_set=${target_alias+set}
750
ac_env_target_alias_value=$target_alias
751
ac_cv_env_target_alias_set=${target_alias+set}
752
ac_cv_env_target_alias_value=$target_alias
753
ac_env_CC_set=${CC+set}
755
ac_cv_env_CC_set=${CC+set}
756
ac_cv_env_CC_value=$CC
757
ac_env_CFLAGS_set=${CFLAGS+set}
758
ac_env_CFLAGS_value=$CFLAGS
759
ac_cv_env_CFLAGS_set=${CFLAGS+set}
760
ac_cv_env_CFLAGS_value=$CFLAGS
761
ac_env_LDFLAGS_set=${LDFLAGS+set}
762
ac_env_LDFLAGS_value=$LDFLAGS
763
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764
ac_cv_env_LDFLAGS_value=$LDFLAGS
765
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766
ac_env_CPPFLAGS_value=$CPPFLAGS
767
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769
ac_env_CPP_set=${CPP+set}
770
ac_env_CPP_value=$CPP
771
ac_cv_env_CPP_set=${CPP+set}
772
ac_cv_env_CPP_value=$CPP
775
# Report the --help message.
777
if test "$ac_init_help" = "long"; then
778
# Omit some internal or obsolete options to make the list less imposing.
779
# This message is too long to be a string in the A/UX 3.1 sh.
781
\`configure' configures this package to adapt to many kinds of systems.
783
Usage: $0 [OPTION]... [VAR=VALUE]...
785
To assign environment variables (e.g., CC, CFLAGS...), specify them as
786
VAR=VALUE. See below for descriptions of some of the useful variables.
788
Defaults for the options are specified in brackets.
791
-h, --help display this help and exit
792
--help=short display options specific to this package
793
--help=recursive display the short help of all the included packages
794
-V, --version display version information and exit
795
-q, --quiet, --silent do not print \`checking...' messages
796
--cache-file=FILE cache test results in FILE [disabled]
797
-C, --config-cache alias for \`--cache-file=config.cache'
798
-n, --no-create do not create output files
799
--srcdir=DIR find the sources in DIR [configure dir or \`..']
804
Installation directories:
805
--prefix=PREFIX install architecture-independent files in PREFIX
807
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
810
By default, \`make install' will install all the files in
811
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813
for instance \`--prefix=\$HOME'.
815
For better control, use the options below.
817
Fine tuning of the installation directories:
818
--bindir=DIR user executables [EPREFIX/bin]
819
--sbindir=DIR system admin executables [EPREFIX/sbin]
820
--libexecdir=DIR program executables [EPREFIX/libexec]
821
--datadir=DIR read-only architecture-independent data [PREFIX/share]
822
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
825
--libdir=DIR object code libraries [EPREFIX/lib]
826
--includedir=DIR C header files [PREFIX/include]
827
--oldincludedir=DIR C header files for non-gcc [/usr/include]
828
--infodir=DIR info documentation [PREFIX/info]
829
--mandir=DIR man documentation [PREFIX/man]
835
--build=BUILD configure for building on BUILD [guessed]
836
--host=HOST cross-compile to build programs to run on HOST [BUILD]
837
--target=TARGET configure for building compilers for TARGET [HOST]
841
if test -n "$ac_init_help"; then
846
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
847
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
848
--enable-layout=LAYOUT
851
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
852
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
853
--with-apr=PATH prefix for installed APR, path to APR build tree,
854
or the full path to apr-config
855
--with-ldap-include=path path to ldap include files with trailing slash
856
--with-ldap-lib=path path to ldap lib file
857
--with-ldap=library ldap library to use
859
--with-dbm=DBM choose the DBM type to use.
860
DBM={sdbm,gdbm,ndbm,db,db1,db185,db2,db3,db4,db41,db42,db43,db44}
863
--with-gdbm=DIR specify GDBM location
867
Find the NDBM header and library in \`PATH/include' and
868
\`PATH/lib'. If PATH is of the form \`HEADER:LIB', then search
869
for header files in HEADER, and the library in LIB. If you omit
870
the \`=PATH' part completely, the configure script will search
871
for NDBM in a number of standard places.
874
--with-berkeley-db=PATH
875
Find the Berkeley DB header and library in \`PATH/include' and
876
\`PATH/lib'. If PATH is of the form \`HEADER:LIB', then search
877
for header files in HEADER, and the library in LIB. If you omit
878
the \`=PATH' part completely, the configure script will search
879
for Berkeley DB in a number of standard places.
882
--with-pgsql=DIR specify PostgreSQL location
885
--with-mysql=DIR **** SEE INSTALL.MySQL ****
893
--with-expat=DIR specify Expat location or 'builtin'
894
--with-iconv=DIR path to iconv installation
896
Some influential environment variables:
897
CC C compiler command
898
CFLAGS C compiler flags
899
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
900
nonstandard directory <lib dir>
901
CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
902
headers in a nonstandard directory <include dir>
905
Use these variables to override the choices made by `configure' or to help
906
it to find libraries and programs with nonstandard names/locations.
911
if test "$ac_init_help" = "recursive"; then
912
# If there are subdirs, report their specific --help.
914
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
915
test -d $ac_dir || continue
918
if test "$ac_dir" != .; then
919
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
920
# A "../" for each directory in $ac_dir_suffix.
921
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
923
ac_dir_suffix= ac_top_builddir=
927
.) # No --srcdir option. We are building in place.
929
if test -z "$ac_top_builddir"; then
932
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
934
[\\/]* | ?:[\\/]* ) # Absolute path.
935
ac_srcdir=$srcdir$ac_dir_suffix;
936
ac_top_srcdir=$srcdir ;;
938
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
939
ac_top_srcdir=$ac_top_builddir$srcdir ;;
942
# Do not use `cd foo && pwd` to compute absolute paths, because
943
# the directories may not exist.
945
.) ac_abs_builddir="$ac_dir";;
948
.) ac_abs_builddir=`pwd`;;
949
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
950
*) ac_abs_builddir=`pwd`/"$ac_dir";;
953
case $ac_abs_builddir in
954
.) ac_abs_top_builddir=${ac_top_builddir}.;;
956
case ${ac_top_builddir}. in
957
.) ac_abs_top_builddir=$ac_abs_builddir;;
958
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
959
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
962
case $ac_abs_builddir in
963
.) ac_abs_srcdir=$ac_srcdir;;
966
.) ac_abs_srcdir=$ac_abs_builddir;;
967
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
968
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
971
case $ac_abs_builddir in
972
.) ac_abs_top_srcdir=$ac_top_srcdir;;
974
case $ac_top_srcdir in
975
.) ac_abs_top_srcdir=$ac_abs_builddir;;
976
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
977
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
982
# Check for guested configure; otherwise get Cygnus style configure.
983
if test -f $ac_srcdir/configure.gnu; then
985
$SHELL $ac_srcdir/configure.gnu --help=recursive
986
elif test -f $ac_srcdir/configure; then
988
$SHELL $ac_srcdir/configure --help=recursive
989
elif test -f $ac_srcdir/configure.ac ||
990
test -f $ac_srcdir/configure.in; then
994
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1000
test -n "$ac_init_help" && exit 0
1001
if $ac_init_version; then
1004
Copyright (C) 2003 Free Software Foundation, Inc.
1005
This configure script is free software; the Free Software Foundation
1006
gives unlimited permission to copy, distribute and modify it.
1012
This file contains any messages produced by compilers while
1013
running configure, to aid debugging if configure makes a mistake.
1015
It was created by $as_me, which was
1016
generated by GNU Autoconf 2.59. Invocation command line was
1027
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1028
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1029
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1030
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1031
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1033
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1034
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1036
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1037
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1038
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1039
hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1040
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1041
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1042
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1046
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1050
test -z "$as_dir" && as_dir=.
1051
echo "PATH: $as_dir"
1066
# Keep a trace of the command line.
1067
# Strip out --no-create and --no-recursion so they do not pile up.
1068
# Strip out --silent because we don't want to record it for future runs.
1069
# Also quote any args containing shell meta-characters.
1070
# Make two passes to allow for proper duplicate-argument suppression.
1075
ac_must_keep_next=false
1081
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1082
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1083
| -silent | --silent | --silen | --sile | --sil)
1085
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1086
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1089
1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1091
ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1092
if test $ac_must_keep_next = true; then
1093
ac_must_keep_next=false # Got value, back to normal.
1096
*=* | --config-cache | -C | -disable-* | --disable-* \
1097
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1098
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1099
| -with-* | --with-* | -without-* | --without-* | --x)
1100
case "$ac_configure_args0 " in
1101
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1104
-* ) ac_must_keep_next=true ;;
1107
ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1108
# Get rid of the leading space.
1114
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1115
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1117
# When interrupted or exit'd, cleanup temporary files, and complete
1118
# config.log. We remove comments because anyway the quotes in there
1119
# would cause problems or look ugly.
1120
# WARNING: Be sure not to use single quotes in there, as some shells,
1121
# such as our DU 5.0 friend, will then `close' the trap.
1122
trap 'exit_status=$?
1123
# Save into config.log some information that might help in debugging.
1128
## ---------------- ##
1129
## Cache variables. ##
1130
## ---------------- ##
1133
# The following way of writing the cache mishandles newlines in values,
1136
case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1139
"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1140
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1144
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1151
## ----------------- ##
1152
## Output variables. ##
1153
## ----------------- ##
1156
for ac_var in $ac_subst_vars
1158
eval ac_val=$`echo $ac_var`
1159
echo "$ac_var='"'"'$ac_val'"'"'"
1163
if test -n "$ac_subst_files"; then
1170
for ac_var in $ac_subst_files
1172
eval ac_val=$`echo $ac_var`
1173
echo "$ac_var='"'"'$ac_val'"'"'"
1178
if test -s confdefs.h; then
1185
sed "/^$/d" confdefs.h | sort
1188
test "$ac_signal" != 0 &&
1189
echo "$as_me: caught signal $ac_signal"
1190
echo "$as_me: exit $exit_status"
1192
rm -f core *.core &&
1193
rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1196
for ac_signal in 1 2 13 15; do
1197
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1201
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1202
rm -rf conftest* confdefs.h
1203
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1206
# Predefined preprocessor variables.
1208
cat >>confdefs.h <<_ACEOF
1209
#define PACKAGE_NAME "$PACKAGE_NAME"
1213
cat >>confdefs.h <<_ACEOF
1214
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1218
cat >>confdefs.h <<_ACEOF
1219
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1223
cat >>confdefs.h <<_ACEOF
1224
#define PACKAGE_STRING "$PACKAGE_STRING"
1228
cat >>confdefs.h <<_ACEOF
1229
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1233
# Let the site file select an alternate cache file if it wants to.
1234
# Prefer explicitly selected file to automatically selected ones.
1235
if test -z "$CONFIG_SITE"; then
1236
if test "x$prefix" != xNONE; then
1237
CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1239
CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1242
for ac_site_file in $CONFIG_SITE; do
1243
if test -r "$ac_site_file"; then
1244
{ echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1245
echo "$as_me: loading site script $ac_site_file" >&6;}
1246
sed 's/^/| /' "$ac_site_file" >&5
1251
if test -r "$cache_file"; then
1252
# Some versions of bash will fail to source /dev/null (special
1253
# files actually), so we avoid doing that.
1254
if test -f "$cache_file"; then
1255
{ echo "$as_me:$LINENO: loading cache $cache_file" >&5
1256
echo "$as_me: loading cache $cache_file" >&6;}
1258
[\\/]* | ?:[\\/]* ) . $cache_file;;
1259
*) . ./$cache_file;;
1263
{ echo "$as_me:$LINENO: creating cache $cache_file" >&5
1264
echo "$as_me: creating cache $cache_file" >&6;}
1268
# Check that the precious variables saved in the cache have kept the same
1270
ac_cache_corrupted=false
1271
for ac_var in `(set) 2>&1 |
1272
sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1273
eval ac_old_set=\$ac_cv_env_${ac_var}_set
1274
eval ac_new_set=\$ac_env_${ac_var}_set
1275
eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1276
eval ac_new_val="\$ac_env_${ac_var}_value"
1277
case $ac_old_set,$ac_new_set in
1279
{ echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1280
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1281
ac_cache_corrupted=: ;;
1283
{ echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1284
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1285
ac_cache_corrupted=: ;;
1288
if test "x$ac_old_val" != "x$ac_new_val"; then
1289
{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1290
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1291
{ echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1292
echo "$as_me: former value: $ac_old_val" >&2;}
1293
{ echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1294
echo "$as_me: current value: $ac_new_val" >&2;}
1295
ac_cache_corrupted=:
1298
# Pass precious variables to config.status.
1299
if test "$ac_new_set" = set; then
1301
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1302
ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1303
*) ac_arg=$ac_var=$ac_new_val ;;
1305
case " $ac_configure_args " in
1306
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1307
*) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1311
if $ac_cache_corrupted; then
1312
{ echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1313
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1314
{ { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1315
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1316
{ (exit 1); exit 1; }; }
1320
ac_cpp='$CPP $CPPFLAGS'
1321
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1322
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1323
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1344
ac_config_headers="$ac_config_headers include/private/apu_config.h"
1347
for ac_dir in build $srcdir/build; do
1348
if test -f $ac_dir/install-sh; then
1350
ac_install_sh="$ac_aux_dir/install-sh -c"
1352
elif test -f $ac_dir/install.sh; then
1354
ac_install_sh="$ac_aux_dir/install.sh -c"
1356
elif test -f $ac_dir/shtool; then
1358
ac_install_sh="$ac_aux_dir/shtool install -c"
1362
if test -z "$ac_aux_dir"; then
1363
{ { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build $srcdir/build" >&5
1364
echo "$as_me: error: cannot find install-sh or install.sh in build $srcdir/build" >&2;}
1365
{ (exit 1); exit 1; }; }
1367
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1368
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1369
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1536
cat >config.nice<<EOF
1539
# Created by configure
1542
if test -n "$CC"; then
1543
echo "CC=\"$CC\"; export CC" >> config.nice
1545
if test -n "$CFLAGS"; then
1546
echo "CFLAGS=\"$CFLAGS\"; export CFLAGS" >> config.nice
1548
if test -n "$CPPFLAGS"; then
1549
echo "CPPFLAGS=\"$CPPFLAGS\"; export CPPFLAGS" >> config.nice
1551
if test -n "$LDFLAGS"; then
1552
echo "LDFLAGS=\"$LDFLAGS\"; export LDFLAGS" >> config.nice
1554
if test -n "$LTFLAGS"; then
1555
echo "LTFLAGS=\"$LTFLAGS\"; export LTFLAGS" >> config.nice
1557
if test -n "$LIBS"; then
1558
echo "LIBS=\"$LIBS\"; export LIBS" >> config.nice
1560
if test -n "$INCLUDES"; then
1561
echo "INCLUDES=\"$INCLUDES\"; export INCLUDES" >> config.nice
1563
if test -n "$NOTEST_CFLAGS"; then
1564
echo "NOTEST_CFLAGS=\"$NOTEST_CFLAGS\"; export NOTEST_CFLAGS" >> config.nice
1566
if test -n "$NOTEST_CPPFLAGS"; then
1567
echo "NOTEST_CPPFLAGS=\"$NOTEST_CPPFLAGS\"; export NOTEST_CPPFLAGS" >> config.nice
1569
if test -n "$NOTEST_LDFLAGS"; then
1570
echo "NOTEST_LDFLAGS=\"$NOTEST_LDFLAGS\"; export NOTEST_LDFLAGS" >> config.nice
1572
if test -n "$NOTEST_LIBS"; then
1573
echo "NOTEST_LIBS=\"$NOTEST_LIBS\"; export NOTEST_LIBS" >> config.nice
1576
for arg in $0 "$@"; do
1580
while test "x${ap_cur}" != "x${ap_last}";
1583
ap_cur=`eval "echo ${ap_cur}"`
1587
echo "\"$arg\" \\" >> config.nice
1589
echo '"$@"' >> config.nice
1590
chmod +x config.nice
1594
abs_srcdir=`(cd $srcdir && pwd)`
1597
if test "$abs_builddir" != "$abs_srcdir"; then
1599
APU_CONFIG_LOCATION=build
1601
APU_CONFIG_LOCATION=source
1606
# Make sure we can run config.sub.
1607
$ac_config_sub sun4 >/dev/null 2>&1 ||
1608
{ { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1609
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1610
{ (exit 1); exit 1; }; }
1612
echo "$as_me:$LINENO: checking build system type" >&5
1613
echo $ECHO_N "checking build system type... $ECHO_C" >&6
1614
if test "${ac_cv_build+set}" = set; then
1615
echo $ECHO_N "(cached) $ECHO_C" >&6
1617
ac_cv_build_alias=$build_alias
1618
test -z "$ac_cv_build_alias" &&
1619
ac_cv_build_alias=`$ac_config_guess`
1620
test -z "$ac_cv_build_alias" &&
1621
{ { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1622
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1623
{ (exit 1); exit 1; }; }
1624
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1625
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1626
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1627
{ (exit 1); exit 1; }; }
1630
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1631
echo "${ECHO_T}$ac_cv_build" >&6
1633
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1634
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1635
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1638
echo "$as_me:$LINENO: checking host system type" >&5
1639
echo $ECHO_N "checking host system type... $ECHO_C" >&6
1640
if test "${ac_cv_host+set}" = set; then
1641
echo $ECHO_N "(cached) $ECHO_C" >&6
1643
ac_cv_host_alias=$host_alias
1644
test -z "$ac_cv_host_alias" &&
1645
ac_cv_host_alias=$ac_cv_build_alias
1646
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1647
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1648
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1649
{ (exit 1); exit 1; }; }
1652
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1653
echo "${ECHO_T}$ac_cv_host" >&6
1655
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1656
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1657
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1660
echo "$as_me:$LINENO: checking target system type" >&5
1661
echo $ECHO_N "checking target system type... $ECHO_C" >&6
1662
if test "${ac_cv_target+set}" = set; then
1663
echo $ECHO_N "(cached) $ECHO_C" >&6
1665
ac_cv_target_alias=$target_alias
1666
test "x$ac_cv_target_alias" = "x" &&
1667
ac_cv_target_alias=$ac_cv_host_alias
1668
ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1669
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1670
echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1671
{ (exit 1); exit 1; }; }
1674
echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1675
echo "${ECHO_T}$ac_cv_target" >&6
1676
target=$ac_cv_target
1677
target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1678
target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1679
target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1682
# The aliases save the names the user supplied, while $host etc.
1683
# will get canonicalized.
1684
test -n "$target_alias" &&
1685
test "$program_prefix$program_suffix$program_transform_name" = \
1687
program_prefix=${target_alias}-
1689
# Find a good install program. We prefer a C program (faster),
1690
# so one script is as good as another. But avoid the broken or
1691
# incompatible versions:
1692
# SysV /etc/install, /usr/sbin/install
1693
# SunOS /usr/etc/install
1694
# IRIX /sbin/install
1696
# AmigaOS /C/install, which installs bootblocks on floppy discs
1697
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1698
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1699
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1700
# OS/2's system install, which has a completely different semantic
1701
# ./install, which can be erroneously created by make from ./install.sh.
1702
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1703
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1704
if test -z "$INSTALL"; then
1705
if test "${ac_cv_path_install+set}" = set; then
1706
echo $ECHO_N "(cached) $ECHO_C" >&6
1708
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1712
test -z "$as_dir" && as_dir=.
1713
# Account for people who put trailing slashes in PATH elements.
1715
./ | .// | /cC/* | \
1716
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1717
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1720
# OSF1 and SCO ODT 3.0 have their own names for install.
1721
# Don't use installbsd from OSF since it installs stuff as root
1723
for ac_prog in ginstall scoinst install; do
1724
for ac_exec_ext in '' $ac_executable_extensions; do
1725
if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1726
if test $ac_prog = install &&
1727
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1728
# AIX install. It has an incompatible calling convention.
1730
elif test $ac_prog = install &&
1731
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1732
# program-specific install script used by HP pwplus--don't use.
1735
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1747
if test "${ac_cv_path_install+set}" = set; then
1748
INSTALL=$ac_cv_path_install
1750
# As a last resort, use the slow shell script. We don't cache a
1751
# path for INSTALL within a source directory, because that will
1752
# break other packages using the cache if that directory is
1753
# removed, or if the path is relative.
1754
INSTALL=$ac_install_sh
1757
echo "$as_me:$LINENO: result: $INSTALL" >&5
1758
echo "${ECHO_T}$INSTALL" >&6
1760
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1761
# It thinks the first close brace ends the variable substitution.
1762
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1764
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1766
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1769
top_builddir="$abs_builddir"
1775
echo "$as_me:$LINENO: checking for working mkdir -p" >&5
1776
echo $ECHO_N "checking for working mkdir -p... $ECHO_C" >&6
1777
if test "${ac_cv_mkdir_p+set}" = set; then
1778
echo $ECHO_N "(cached) $ECHO_C" >&6
1781
test -d conftestdir && rm -rf conftestdir
1782
mkdir -p conftestdir/somedir >/dev/null 2>&1
1783
if test -d conftestdir/somedir; then
1791
echo "$as_me:$LINENO: result: $ac_cv_mkdir_p" >&5
1792
echo "${ECHO_T}$ac_cv_mkdir_p" >&6
1793
if test "$ac_cv_mkdir_p" = "yes"; then
1796
mkdir_p="$abs_srcdir/build/mkdir.sh"
1800
get_version="$abs_srcdir/build/get-version.sh"
1801
version_hdr="$abs_srcdir/include/apu_version.h"
1802
APRUTIL_MAJOR_VERSION="`$get_version major $version_hdr APU`"
1803
APRUTIL_DOTTED_VERSION="`$get_version all $version_hdr APU`"
1808
echo "APR-util Version: ${APRUTIL_DOTTED_VERSION}"
1811
# Check whether --enable-layout or --disable-layout was given.
1812
if test "${enable_layout+set}" = set; then
1813
enableval="$enable_layout"
1819
if test -z "$LAYOUT"; then
1823
if test ! -f $srcdir/config.layout; then
1824
echo "** Error: Layout file $srcdir/config.layout not found"
1825
echo "** Error: Cannot use undefined layout '$LAYOUT'"
1828
# Catch layout names including a slash which will otherwise
1829
# confuse the heck out of the sed script.
1832
echo "** Error: $LAYOUT is not a valid layout name"
1835
pldconf=./config.pld
1837
sed -e "1s/[ ]*<[lL]ayout[ ]*$LAYOUT[ ]*>[ ]*//;1t" \
1838
-e "1,/[ ]*<[lL]ayout[ ]*$LAYOUT[ ]*>[ ]*/d" \
1839
-e '/[ ]*<\/Layout>[ ]*/,$d' \
1841
-e "s/:[ ]*/=\'/g" \
1843
$srcdir/config.layout > $pldconf
1845
if test ! -s $pldconf; then
1846
echo "** Error: unable to find layout $layout_name"
1851
for var in prefix exec_prefix bindir sbindir libexecdir mandir \
1852
sysconfdir datadir includedir localstatedir runtimedir \
1853
logfiledir libdir installbuilddir libsuffix ; do
1854
eval "val=\"\$$var\""
1857
val=`echo $val | sed -e 's;\+$;;'`
1858
eval "$var=\"\$val\""
1865
val=`echo $val | sed -e 's:\(.\)/*$:\1:'`
1866
val=`echo $val | sed -e 's:[\$]\([a-z_]*\):$\1:g'`
1867
if test "$autosuffix" = "yes"; then
1868
if echo $val | grep apache >/dev/null; then
1873
if test "$addtarget" = "yes"; then
1882
echo "$as_me:$LINENO: checking for chosen layout" >&5
1883
echo $ECHO_N "checking for chosen layout... $ECHO_C" >&6
1884
echo "$as_me:$LINENO: result: $layout_name" >&5
1885
echo "${ECHO_T}$layout_name" >&6
1891
# If the previous option needs an argument, assign it.
1892
if test -n "$ac_prev"; then
1893
eval "$ac_prev=\$ac_option"
1898
ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
1902
-bindir | --bindir | --bindi | --bind | --bin | --bi)
1904
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1905
bindir="$ac_optarg" ;;
1907
-datadir | --datadir | --datadi | --datad | --data | --dat | --da)
1909
-datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
1911
datadir="$ac_optarg" ;;
1913
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1914
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1915
| --exec | --exe | --ex)
1916
ac_prev=exec_prefix ;;
1917
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1918
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1919
| --exec=* | --exe=* | --ex=*)
1920
exec_prefix="$ac_optarg" ;;
1922
-includedir | --includedir | --includedi | --included | --include \
1923
| --includ | --inclu | --incl | --inc)
1924
ac_prev=includedir ;;
1925
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1926
| --includ=* | --inclu=* | --incl=* | --inc=*)
1927
includedir="$ac_optarg" ;;
1929
-infodir | --infodir | --infodi | --infod | --info | --inf)
1931
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1932
infodir="$ac_optarg" ;;
1934
-libdir | --libdir | --libdi | --libd)
1936
-libdir=* | --libdir=* | --libdi=* | --libd=*)
1937
libdir="$ac_optarg" ;;
1939
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1940
| --libexe | --libex | --libe)
1941
ac_prev=libexecdir ;;
1942
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1943
| --libexe=* | --libex=* | --libe=*)
1944
libexecdir="$ac_optarg" ;;
1946
-localstatedir | --localstatedir | --localstatedi | --localstated \
1947
| --localstate | --localstat | --localsta | --localst \
1948
| --locals | --local | --loca | --loc | --lo)
1949
ac_prev=localstatedir ;;
1950
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1951
| --localstate=* | --localstat=* | --localsta=* | --localst=* \
1952
| --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
1953
localstatedir="$ac_optarg" ;;
1955
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1957
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1958
mandir="$ac_optarg" ;;
1960
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1962
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1963
prefix="$ac_optarg" ;;
1965
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1967
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1969
sbindir="$ac_optarg" ;;
1971
-sharedstatedir | --sharedstatedir | --sharedstatedi \
1972
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1973
| --sharedst | --shareds | --shared | --share | --shar \
1975
ac_prev=sharedstatedir ;;
1976
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1977
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1978
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1980
sharedstatedir="$ac_optarg" ;;
1982
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1983
| --syscon | --sysco | --sysc | --sys | --sy)
1984
ac_prev=sysconfdir ;;
1985
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1986
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1987
sysconfdir="$ac_optarg" ;;
1992
# Be sure to have absolute paths.
1993
for ac_var in exec_prefix prefix
1995
eval ac_val=$`echo $ac_var`
1997
[\\/$]* | ?:[\\/]* | NONE | '' ) ;;
1998
*) { { echo "$as_me:$LINENO: error: expected an absolute path for --$ac_var: $ac_val" >&5
1999
echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2;}
2000
{ (exit 1); exit 1; }; };;
2007
if test "x$apu_preload_done" != "xyes" ; then
2008
apu_preload_done="yes"
2010
echo "Applying apr-util hints file rules for $host"
2015
if test -z "$apu_crypt_threadsafe"; then
2016
test "x$silent" != "xyes" && echo " setting apu_crypt_threadsafe to \"1\""
2017
apu_crypt_threadsafe="1"
2023
if test -z "$apu_crypt_threadsafe"; then
2024
test "x$silent" != "xyes" && echo " setting apu_crypt_threadsafe to \"1\""
2025
apu_crypt_threadsafe="1"
2029
*-ibm-aix4*|*-ibm-aix5.1*)
2031
if test -z "$apu_iconv_inbuf_const"; then
2032
test "x$silent" != "xyes" && echo " setting apu_iconv_inbuf_const to \"1\""
2033
apu_iconv_inbuf_const="1"
2039
if test -z "$apu_crypt_threadsafe"; then
2040
test "x$silent" != "xyes" && echo " setting apu_crypt_threadsafe to \"1\""
2041
apu_crypt_threadsafe="1"
2047
if test -z "$apu_iconv_inbuf_const"; then
2048
test "x$silent" != "xyes" && echo " setting apu_iconv_inbuf_const to \"1\""
2049
apu_iconv_inbuf_const="1"
2053
if test -z "$apu_crypt_threadsafe"; then
2054
test "x$silent" != "xyes" && echo " setting apu_crypt_threadsafe to \"1\""
2055
apu_crypt_threadsafe="1"
2061
if test -z "$apu_db_xtra_libs"; then
2062
test "x$silent" != "xyes" && echo " setting apu_db_xtra_libs to \"-lsocket\""
2063
apu_db_xtra_libs="-lsocket"
2074
APRUTIL_PRIV_INCLUDES="-I$top_builddir/include -I$top_builddir/include/private"
2075
if test -n "$USE_VPATH"; then
2076
APRUTIL_PRIV_INCLUDES="$APRUTIL_PRIV_INCLUDES -I$abs_srcdir/include/private -I$abs_srcdir/include"
2084
if test "$target_os" = "os2-emx"; then
2085
# Scripts don't pass test -x on OS/2
2091
acceptable_majors="1"
2093
apr_temp_acceptable_apr_config=""
2094
for apr_temp_major in $acceptable_majors
2096
case $apr_temp_major in
2098
apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-config"
2101
apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-$apr_temp_major-config"
2106
echo "$as_me:$LINENO: checking for APR" >&5
2107
echo $ECHO_N "checking for APR... $ECHO_C" >&6
2109
# Check whether --with-apr or --without-apr was given.
2110
if test "${with_apr+set}" = set; then
2113
if test "$withval" = "no" || test "$withval" = "yes"; then
2114
{ { echo "$as_me:$LINENO: error: --with-apr requires a directory or file to be provided" >&5
2115
echo "$as_me: error: --with-apr requires a directory or file to be provided" >&2;}
2116
{ (exit 1); exit 1; }; }
2119
for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config
2121
for lookdir in "$withval/bin" "$withval"
2123
if $TEST_X "$lookdir/$apr_temp_apr_config_file"; then
2125
apr_config="$lookdir/$apr_temp_apr_config_file"
2131
if test "$apr_found" != "yes" && $TEST_X "$withval" && $withval --help > /dev/null 2>&1 ; then
2133
apr_config="$withval"
2136
if test "$apr_found" != "yes"; then
2137
{ { echo "$as_me:$LINENO: error: the --with-apr parameter is incorrect. It must specify an install prefix, a build directory, or an apr-config file." >&5
2138
echo "$as_me: error: the --with-apr parameter is incorrect. It must specify an install prefix, a build directory, or an apr-config file." >&2;}
2139
{ (exit 1); exit 1; }; }
2144
if test -n "" && test "" = "1"; then
2145
for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config
2147
if $apr_temp_apr_config_file --help > /dev/null 2>&1 ; then
2149
apr_config="$apr_temp_apr_config_file"
2152
for lookdir in /usr /usr/local /usr/local/apr /opt/apr /usr/local/apache2; do
2153
if $TEST_X "$lookdir/bin/$apr_temp_apr_config_file"; then
2155
apr_config="$lookdir/bin/$apr_temp_apr_config_file"
2162
if test "$apr_found" = "no" && test -d ""; then
2163
apr_temp_abs_srcdir="`cd && pwd`"
2164
apr_found="reconfig"
2165
apr_bundled_major="`sed -n '/#define.*APR_MAJOR_VERSION/s/^[^0-9]*\([0-9]*\).*$/\1/p' \"/include/apr_version.h\"`"
2166
case $apr_bundled_major in
2168
{ { echo "$as_me:$LINENO: error: failed to find major version of bundled APR" >&5
2169
echo "$as_me: error: failed to find major version of bundled APR" >&2;}
2170
{ (exit 1); exit 1; }; }
2173
apr_temp_apr_config_file="apr-config"
2176
apr_temp_apr_config_file="apr-$apr_bundled_major-config"
2180
apr_config="/$apr_temp_apr_config_file"
2182
apr_config="/$apr_temp_apr_config_file"
2188
echo "$as_me:$LINENO: result: $apr_found" >&5
2189
echo "${ECHO_T}$apr_found" >&6
2191
if test "$apr_found" = "no"; then
2192
{ { echo "$as_me:$LINENO: error: APR could not be located. Please use the --with-apr option." >&5
2193
echo "$as_me: error: APR could not be located. Please use the --with-apr option." >&2;}
2194
{ (exit 1); exit 1; }; }
2197
APR_BUILD_DIR="`$apr_config --installbuilddir`"
2199
APR_BUILD_DIR="`cd $APR_BUILD_DIR && pwd`"
2201
APR_INCLUDES="`$apr_config --includes`"
2202
APR_LIBS="`$apr_config --link-libtool --libs`"
2203
APR_SO_EXT="`$apr_config --apr-so-ext`"
2204
APR_LIB_TARGET="`$apr_config --apr-lib-target`"
2212
if test -z "$CC"; then
2213
test "x$silent" != "xyes" && echo " setting CC to \"`$apr_config --cc`\""
2214
CC="`$apr_config --cc`"
2218
if test -z "$CPP"; then
2219
test "x$silent" != "xyes" && echo " setting CPP to \"`$apr_config --cpp`\""
2220
CPP="`$apr_config --cpp`"
2224
if test "x$CFLAGS" = "x"; then
2225
test "x$silent" != "xyes" && echo " setting CFLAGS to \"`$apr_config --cflags`\""
2226
CFLAGS="`$apr_config --cflags`"
2228
apr_addto_bugger="`$apr_config --cflags`"
2229
for i in $apr_addto_bugger; do
2230
apr_addto_duplicate="0"
2231
for j in $CFLAGS; do
2232
if test "x$i" = "x$j"; then
2233
apr_addto_duplicate="1"
2237
if test $apr_addto_duplicate = "0"; then
2238
test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
2245
if test "x$CPPFLAGS" = "x"; then
2246
test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"`$apr_config --cppflags`\""
2247
CPPFLAGS="`$apr_config --cppflags`"
2249
apr_addto_bugger="`$apr_config --cppflags`"
2250
for i in $apr_addto_bugger; do
2251
apr_addto_duplicate="0"
2252
for j in $CPPFLAGS; do
2253
if test "x$i" = "x$j"; then
2254
apr_addto_duplicate="1"
2258
if test $apr_addto_duplicate = "0"; then
2259
test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
2260
CPPFLAGS="$CPPFLAGS $i"
2266
if test -d ../apr-iconv; then
2268
# save our work to this point; this allows the sub-package to use it
2269
cat >confcache <<\_ACEOF
2270
# This file is a shell script that caches the results of configure
2271
# tests run on this system so they can be shared between configure
2272
# scripts and configure runs, see configure's option --config-cache.
2273
# It is not useful on other systems. If it contains results you don't
2274
# want to keep, you may remove or edit it.
2276
# config.status only pays attention to the cache file if you give it
2277
# the --recheck option to rerun configure.
2279
# `ac_cv_env_foo' variables (set or unset) will be overridden when
2280
# loading this file, other *unset* `ac_cv_foo' will be assigned the
2285
# The following way of writing the cache mishandles newlines in values,
2286
# but we know of no workaround that is simple, portable, and efficient.
2287
# So, don't put newlines in cache variables' values.
2288
# Ultrix sh set writes to stderr and can't be redirected directly,
2289
# and sets the high bit in the cache file unless we assign to the vars.
2292
case `(ac_space=' '; set | grep ac_space) 2>&1` in
2294
# `set' does not quote correctly, so add quotes (double-quote
2295
# substitution turns \\\\ into \\, and sed turns \\ into \).
2298
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
2301
# `set' quotes correctly as required by POSIX, so do not add quotes.
2303
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
2310
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
2312
/^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
2314
if diff $cache_file confcache >/dev/null 2>&1; then :; else
2315
if test -w $cache_file; then
2316
test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
2317
cat confcache >$cache_file
2319
echo "not updating unwritable cache $cache_file"
2324
echo "configuring package in ../apr-iconv now"
2326
apr_config_subdirs="../apr-iconv"
2327
test -d ../apr-iconv || $mkdir_p ../apr-iconv
2328
ac_abs_srcdir=`(cd $srcdir/../apr-iconv && pwd)`
2331
# A "../" for each directory in /$config_subdirs.
2332
ac_dots=`echo $apr_config_subdirs|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
2334
# Make the cache file pathname absolute for the subdirs
2335
# required to correctly handle subdirs that might actually
2337
case "$cache_file" in
2338
/*) # already absolute
2339
ac_sub_cache_file=$cache_file ;;
2340
*) # Was relative path.
2341
ac_sub_cache_file="$ac_popdir/$cache_file" ;;
2347
for apr_configure_arg in $ac_configure_args
2349
case "$apr_configure_arg" in
2350
--enable-layout=*|\'--enable-layout=*)
2353
apr_configure_args="$apr_configure_args$apr_sep'$apr_configure_arg'"
2358
# autoconf doesn't add --silent to ac_configure_args; explicitly pass it
2359
test "x$silent" = "xyes" && apr_configure_args="$apr_configure_args --silent"
2361
if eval $SHELL $ac_abs_srcdir/configure $apr_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_abs_srcdir $apache_apr_flags --prefix=$prefix --exec-prefix=$exec_prefix --libdir=$libdir --includedir=$includedir --bindir=$bindir --datadir=$datadir --with-installbuilddir=$installbuilddir
2363
echo "../apr-iconv configured properly"
2365
echo "configure failed for ../apr-iconv"
2371
# grab any updates from the sub-package
2372
if test -r "$cache_file"; then
2373
# Some versions of bash will fail to source /dev/null (special
2374
# files actually), so we avoid doing that.
2375
if test -f "$cache_file"; then
2376
{ echo "$as_me:$LINENO: loading cache $cache_file" >&5
2377
echo "$as_me: loading cache $cache_file" >&6;}
2379
[\\/]* | ?:[\\/]* ) . $cache_file;;
2380
*) . ./$cache_file;;
2384
{ echo "$as_me:$LINENO: creating cache $cache_file" >&5
2385
echo "$as_me: creating cache $cache_file" >&6;}
2390
APRUTIL_EXPORT_LIBS="$abs_srcdir/../apr-iconv/lib/libapriconv.la $APRUTIL_EXPORT_LIBS"
2391
APRUTIL_INCLUDES="-I$abs_srcdir/../apr-iconv/include $APRUTIL_INCLUDES"
2392
APR_ICONV_DIR=../apr-iconv
2399
ac_cpp='$CPP $CPPFLAGS'
2400
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2401
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2402
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2403
if test -n "$ac_tool_prefix"; then
2404
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2405
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2406
echo "$as_me:$LINENO: checking for $ac_word" >&5
2407
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2408
if test "${ac_cv_prog_CC+set}" = set; then
2409
echo $ECHO_N "(cached) $ECHO_C" >&6
2411
if test -n "$CC"; then
2412
ac_cv_prog_CC="$CC" # Let the user override the test.
2414
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2418
test -z "$as_dir" && as_dir=.
2419
for ac_exec_ext in '' $ac_executable_extensions; do
2420
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2421
ac_cv_prog_CC="${ac_tool_prefix}gcc"
2422
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2431
if test -n "$CC"; then
2432
echo "$as_me:$LINENO: result: $CC" >&5
2433
echo "${ECHO_T}$CC" >&6
2435
echo "$as_me:$LINENO: result: no" >&5
2436
echo "${ECHO_T}no" >&6
2440
if test -z "$ac_cv_prog_CC"; then
2442
# Extract the first word of "gcc", so it can be a program name with args.
2443
set dummy gcc; ac_word=$2
2444
echo "$as_me:$LINENO: checking for $ac_word" >&5
2445
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2446
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2447
echo $ECHO_N "(cached) $ECHO_C" >&6
2449
if test -n "$ac_ct_CC"; then
2450
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2452
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2456
test -z "$as_dir" && as_dir=.
2457
for ac_exec_ext in '' $ac_executable_extensions; do
2458
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2459
ac_cv_prog_ac_ct_CC="gcc"
2460
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2468
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2469
if test -n "$ac_ct_CC"; then
2470
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2471
echo "${ECHO_T}$ac_ct_CC" >&6
2473
echo "$as_me:$LINENO: result: no" >&5
2474
echo "${ECHO_T}no" >&6
2482
if test -z "$CC"; then
2483
if test -n "$ac_tool_prefix"; then
2484
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2485
set dummy ${ac_tool_prefix}cc; ac_word=$2
2486
echo "$as_me:$LINENO: checking for $ac_word" >&5
2487
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2488
if test "${ac_cv_prog_CC+set}" = set; then
2489
echo $ECHO_N "(cached) $ECHO_C" >&6
2491
if test -n "$CC"; then
2492
ac_cv_prog_CC="$CC" # Let the user override the test.
2494
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2498
test -z "$as_dir" && as_dir=.
2499
for ac_exec_ext in '' $ac_executable_extensions; do
2500
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2501
ac_cv_prog_CC="${ac_tool_prefix}cc"
2502
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2511
if test -n "$CC"; then
2512
echo "$as_me:$LINENO: result: $CC" >&5
2513
echo "${ECHO_T}$CC" >&6
2515
echo "$as_me:$LINENO: result: no" >&5
2516
echo "${ECHO_T}no" >&6
2520
if test -z "$ac_cv_prog_CC"; then
2522
# Extract the first word of "cc", so it can be a program name with args.
2523
set dummy cc; ac_word=$2
2524
echo "$as_me:$LINENO: checking for $ac_word" >&5
2525
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2526
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2527
echo $ECHO_N "(cached) $ECHO_C" >&6
2529
if test -n "$ac_ct_CC"; then
2530
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2532
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2536
test -z "$as_dir" && as_dir=.
2537
for ac_exec_ext in '' $ac_executable_extensions; do
2538
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2539
ac_cv_prog_ac_ct_CC="cc"
2540
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2548
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2549
if test -n "$ac_ct_CC"; then
2550
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2551
echo "${ECHO_T}$ac_ct_CC" >&6
2553
echo "$as_me:$LINENO: result: no" >&5
2554
echo "${ECHO_T}no" >&6
2563
if test -z "$CC"; then
2564
# Extract the first word of "cc", so it can be a program name with args.
2565
set dummy cc; ac_word=$2
2566
echo "$as_me:$LINENO: checking for $ac_word" >&5
2567
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2568
if test "${ac_cv_prog_CC+set}" = set; then
2569
echo $ECHO_N "(cached) $ECHO_C" >&6
2571
if test -n "$CC"; then
2572
ac_cv_prog_CC="$CC" # Let the user override the test.
2575
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2579
test -z "$as_dir" && as_dir=.
2580
for ac_exec_ext in '' $ac_executable_extensions; do
2581
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2582
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2583
ac_prog_rejected=yes
2587
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2593
if test $ac_prog_rejected = yes; then
2594
# We found a bogon in the path, so make sure we never use it.
2595
set dummy $ac_cv_prog_CC
2597
if test $# != 0; then
2598
# We chose a different compiler from the bogus one.
2599
# However, it has the same basename, so the bogon will be chosen
2600
# first if we set CC to just the basename; use the full file name.
2602
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2608
if test -n "$CC"; then
2609
echo "$as_me:$LINENO: result: $CC" >&5
2610
echo "${ECHO_T}$CC" >&6
2612
echo "$as_me:$LINENO: result: no" >&5
2613
echo "${ECHO_T}no" >&6
2617
if test -z "$CC"; then
2618
if test -n "$ac_tool_prefix"; then
2621
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2622
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2623
echo "$as_me:$LINENO: checking for $ac_word" >&5
2624
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2625
if test "${ac_cv_prog_CC+set}" = set; then
2626
echo $ECHO_N "(cached) $ECHO_C" >&6
2628
if test -n "$CC"; then
2629
ac_cv_prog_CC="$CC" # Let the user override the test.
2631
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2635
test -z "$as_dir" && as_dir=.
2636
for ac_exec_ext in '' $ac_executable_extensions; do
2637
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2638
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2639
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2648
if test -n "$CC"; then
2649
echo "$as_me:$LINENO: result: $CC" >&5
2650
echo "${ECHO_T}$CC" >&6
2652
echo "$as_me:$LINENO: result: no" >&5
2653
echo "${ECHO_T}no" >&6
2656
test -n "$CC" && break
2659
if test -z "$CC"; then
2663
# Extract the first word of "$ac_prog", so it can be a program name with args.
2664
set dummy $ac_prog; ac_word=$2
2665
echo "$as_me:$LINENO: checking for $ac_word" >&5
2666
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2667
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2668
echo $ECHO_N "(cached) $ECHO_C" >&6
2670
if test -n "$ac_ct_CC"; then
2671
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2673
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2677
test -z "$as_dir" && as_dir=.
2678
for ac_exec_ext in '' $ac_executable_extensions; do
2679
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2680
ac_cv_prog_ac_ct_CC="$ac_prog"
2681
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2689
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2690
if test -n "$ac_ct_CC"; then
2691
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2692
echo "${ECHO_T}$ac_ct_CC" >&6
2694
echo "$as_me:$LINENO: result: no" >&5
2695
echo "${ECHO_T}no" >&6
2698
test -n "$ac_ct_CC" && break
2707
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2708
See \`config.log' for more details." >&5
2709
echo "$as_me: error: no acceptable C compiler found in \$PATH
2710
See \`config.log' for more details." >&2;}
2711
{ (exit 1); exit 1; }; }
2713
# Provide some information about the compiler.
2714
echo "$as_me:$LINENO:" \
2715
"checking for C compiler version" >&5
2716
ac_compiler=`set X $ac_compile; echo $2`
2717
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2718
(eval $ac_compiler --version </dev/null >&5) 2>&5
2720
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721
(exit $ac_status); }
2722
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2723
(eval $ac_compiler -v </dev/null >&5) 2>&5
2725
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726
(exit $ac_status); }
2727
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2728
(eval $ac_compiler -V </dev/null >&5) 2>&5
2730
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731
(exit $ac_status); }
2733
cat >conftest.$ac_ext <<_ACEOF
2736
cat confdefs.h >>conftest.$ac_ext
2737
cat >>conftest.$ac_ext <<_ACEOF
2738
/* end confdefs.h. */
2748
ac_clean_files_save=$ac_clean_files
2749
ac_clean_files="$ac_clean_files a.out a.exe b.out"
2750
# Try to create an executable without -o first, disregard a.out.
2751
# It will help us diagnose broken compilers, and finding out an intuition
2753
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2754
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2755
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2756
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2757
(eval $ac_link_default) 2>&5
2759
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2760
(exit $ac_status); }; then
2761
# Find the output, starting from the most likely. This scheme is
2762
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2765
# Be careful to initialize this variable, since it used to be cached.
2766
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2768
# b.out is created by i960 compilers.
2769
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2771
test -f "$ac_file" || continue
2773
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2776
# This is the source file.
2779
# We found the default executable, but exeext='' is most
2783
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2784
# FIXME: I believe we export ac_cv_exeext for Libtool,
2785
# but it would be cool to find out if it's true. Does anybody
2786
# maintain Libtool? --akim.
2794
echo "$as_me: failed program was:" >&5
2795
sed 's/^/| /' conftest.$ac_ext >&5
2797
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2798
See \`config.log' for more details." >&5
2799
echo "$as_me: error: C compiler cannot create executables
2800
See \`config.log' for more details." >&2;}
2801
{ (exit 77); exit 77; }; }
2804
ac_exeext=$ac_cv_exeext
2805
echo "$as_me:$LINENO: result: $ac_file" >&5
2806
echo "${ECHO_T}$ac_file" >&6
2808
# Check the compiler produces executables we can run. If not, either
2809
# the compiler is broken, or we cross compile.
2810
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2811
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2812
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2813
# If not cross compiling, check that we can run a simple program.
2814
if test "$cross_compiling" != yes; then
2815
if { ac_try='./$ac_file'
2816
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2819
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2820
(exit $ac_status); }; }; then
2823
if test "$cross_compiling" = maybe; then
2826
{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2827
If you meant to cross compile, use \`--host'.
2828
See \`config.log' for more details." >&5
2829
echo "$as_me: error: cannot run C compiled programs.
2830
If you meant to cross compile, use \`--host'.
2831
See \`config.log' for more details." >&2;}
2832
{ (exit 1); exit 1; }; }
2836
echo "$as_me:$LINENO: result: yes" >&5
2837
echo "${ECHO_T}yes" >&6
2839
rm -f a.out a.exe conftest$ac_cv_exeext b.out
2840
ac_clean_files=$ac_clean_files_save
2841
# Check the compiler produces executables we can run. If not, either
2842
# the compiler is broken, or we cross compile.
2843
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2844
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2845
echo "$as_me:$LINENO: result: $cross_compiling" >&5
2846
echo "${ECHO_T}$cross_compiling" >&6
2848
echo "$as_me:$LINENO: checking for suffix of executables" >&5
2849
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2850
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2851
(eval $ac_link) 2>&5
2853
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2854
(exit $ac_status); }; then
2855
# If both `conftest.exe' and `conftest' are `present' (well, observable)
2856
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2857
# work properly (i.e., refer to `conftest.exe'), while it won't with
2859
for ac_file in conftest.exe conftest conftest.*; do
2860
test -f "$ac_file" || continue
2862
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2863
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2870
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2871
See \`config.log' for more details." >&5
2872
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2873
See \`config.log' for more details." >&2;}
2874
{ (exit 1); exit 1; }; }
2877
rm -f conftest$ac_cv_exeext
2878
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2879
echo "${ECHO_T}$ac_cv_exeext" >&6
2881
rm -f conftest.$ac_ext
2882
EXEEXT=$ac_cv_exeext
2884
echo "$as_me:$LINENO: checking for suffix of object files" >&5
2885
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2886
if test "${ac_cv_objext+set}" = set; then
2887
echo $ECHO_N "(cached) $ECHO_C" >&6
2889
cat >conftest.$ac_ext <<_ACEOF
2892
cat confdefs.h >>conftest.$ac_ext
2893
cat >>conftest.$ac_ext <<_ACEOF
2894
/* end confdefs.h. */
2904
rm -f conftest.o conftest.obj
2905
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2906
(eval $ac_compile) 2>&5
2908
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2909
(exit $ac_status); }; then
2910
for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2912
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2913
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2918
echo "$as_me: failed program was:" >&5
2919
sed 's/^/| /' conftest.$ac_ext >&5
2921
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2922
See \`config.log' for more details." >&5
2923
echo "$as_me: error: cannot compute suffix of object files: cannot compile
2924
See \`config.log' for more details." >&2;}
2925
{ (exit 1); exit 1; }; }
2928
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2930
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2931
echo "${ECHO_T}$ac_cv_objext" >&6
2932
OBJEXT=$ac_cv_objext
2934
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2935
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2936
if test "${ac_cv_c_compiler_gnu+set}" = set; then
2937
echo $ECHO_N "(cached) $ECHO_C" >&6
2939
cat >conftest.$ac_ext <<_ACEOF
2942
cat confdefs.h >>conftest.$ac_ext
2943
cat >>conftest.$ac_ext <<_ACEOF
2944
/* end confdefs.h. */
2957
rm -f conftest.$ac_objext
2958
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2959
(eval $ac_compile) 2>conftest.er1
2961
grep -v '^ *+' conftest.er1 >conftest.err
2963
cat conftest.err >&5
2964
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2965
(exit $ac_status); } &&
2966
{ ac_try='test -z "$ac_c_werror_flag"
2967
|| test ! -s conftest.err'
2968
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2971
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2972
(exit $ac_status); }; } &&
2973
{ ac_try='test -s conftest.$ac_objext'
2974
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2977
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2978
(exit $ac_status); }; }; then
2981
echo "$as_me: failed program was:" >&5
2982
sed 's/^/| /' conftest.$ac_ext >&5
2986
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2987
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2990
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2991
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2992
GCC=`test $ac_compiler_gnu = yes && echo yes`
2993
ac_test_CFLAGS=${CFLAGS+set}
2994
ac_save_CFLAGS=$CFLAGS
2996
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2997
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2998
if test "${ac_cv_prog_cc_g+set}" = set; then
2999
echo $ECHO_N "(cached) $ECHO_C" >&6
3001
cat >conftest.$ac_ext <<_ACEOF
3004
cat confdefs.h >>conftest.$ac_ext
3005
cat >>conftest.$ac_ext <<_ACEOF
3006
/* end confdefs.h. */
3016
rm -f conftest.$ac_objext
3017
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3018
(eval $ac_compile) 2>conftest.er1
3020
grep -v '^ *+' conftest.er1 >conftest.err
3022
cat conftest.err >&5
3023
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3024
(exit $ac_status); } &&
3025
{ ac_try='test -z "$ac_c_werror_flag"
3026
|| test ! -s conftest.err'
3027
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3030
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3031
(exit $ac_status); }; } &&
3032
{ ac_try='test -s conftest.$ac_objext'
3033
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3036
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037
(exit $ac_status); }; }; then
3040
echo "$as_me: failed program was:" >&5
3041
sed 's/^/| /' conftest.$ac_ext >&5
3045
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3047
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3048
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3049
if test "$ac_test_CFLAGS" = set; then
3050
CFLAGS=$ac_save_CFLAGS
3051
elif test $ac_cv_prog_cc_g = yes; then
3052
if test "$GCC" = yes; then
3058
if test "$GCC" = yes; then
3064
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3065
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3066
if test "${ac_cv_prog_cc_stdc+set}" = set; then
3067
echo $ECHO_N "(cached) $ECHO_C" >&6
3069
ac_cv_prog_cc_stdc=no
3071
cat >conftest.$ac_ext <<_ACEOF
3074
cat confdefs.h >>conftest.$ac_ext
3075
cat >>conftest.$ac_ext <<_ACEOF
3076
/* end confdefs.h. */
3079
#include <sys/types.h>
3080
#include <sys/stat.h>
3081
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3082
struct buf { int x; };
3083
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3084
static char *e (p, i)
3090
static char *f (char * (*g) (char **, int), char **p, ...)
3095
s = g (p, va_arg (v,int));
3100
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3101
function prototypes and stuff, but not '\xHH' hex character constants.
3102
These don't provoke an error unfortunately, instead are silently treated
3103
as 'x'. The following induces an error, until -std1 is added to get
3104
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3105
array size at least. It's necessary to write '\x00'==0 to get something
3106
that's true only with -std1. */
3107
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3109
int test (int i, double x);
3110
struct s1 {int (*f) (int a);};
3111
struct s2 {int (*f) (double a);};
3112
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3118
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3123
# Don't try gcc -ansi; that turns off useful extensions and
3124
# breaks some systems' header files.
3125
# AIX -qlanglvl=ansi
3126
# Ultrix and OSF/1 -std1
3127
# HP-UX 10.20 and later -Ae
3128
# HP-UX older versions -Aa -D_HPUX_SOURCE
3129
# SVR4 -Xc -D__EXTENSIONS__
3130
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3132
CC="$ac_save_CC $ac_arg"
3133
rm -f conftest.$ac_objext
3134
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3135
(eval $ac_compile) 2>conftest.er1
3137
grep -v '^ *+' conftest.er1 >conftest.err
3139
cat conftest.err >&5
3140
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3141
(exit $ac_status); } &&
3142
{ ac_try='test -z "$ac_c_werror_flag"
3143
|| test ! -s conftest.err'
3144
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3147
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148
(exit $ac_status); }; } &&
3149
{ ac_try='test -s conftest.$ac_objext'
3150
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3153
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154
(exit $ac_status); }; }; then
3155
ac_cv_prog_cc_stdc=$ac_arg
3158
echo "$as_me: failed program was:" >&5
3159
sed 's/^/| /' conftest.$ac_ext >&5
3162
rm -f conftest.err conftest.$ac_objext
3164
rm -f conftest.$ac_ext conftest.$ac_objext
3169
case "x$ac_cv_prog_cc_stdc" in
3171
echo "$as_me:$LINENO: result: none needed" >&5
3172
echo "${ECHO_T}none needed" >&6 ;;
3174
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3175
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3176
CC="$CC $ac_cv_prog_cc_stdc" ;;
3179
# Some people use a C++ compiler to compile C. Since we use `exit',
3180
# in C++ we need to declare it. In case someone uses the same compiler
3181
# for both compiling C and C++ we need to have the C++ compiler decide
3182
# the declaration of exit, since it's the most demanding environment.
3183
cat >conftest.$ac_ext <<_ACEOF
3188
rm -f conftest.$ac_objext
3189
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3190
(eval $ac_compile) 2>conftest.er1
3192
grep -v '^ *+' conftest.er1 >conftest.err
3194
cat conftest.err >&5
3195
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3196
(exit $ac_status); } &&
3197
{ ac_try='test -z "$ac_c_werror_flag"
3198
|| test ! -s conftest.err'
3199
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3202
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3203
(exit $ac_status); }; } &&
3204
{ ac_try='test -s conftest.$ac_objext'
3205
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3208
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3209
(exit $ac_status); }; }; then
3210
for ac_declaration in \
3212
'extern "C" void std::exit (int) throw (); using std::exit;' \
3213
'extern "C" void std::exit (int); using std::exit;' \
3214
'extern "C" void exit (int) throw ();' \
3215
'extern "C" void exit (int);' \
3218
cat >conftest.$ac_ext <<_ACEOF
3221
cat confdefs.h >>conftest.$ac_ext
3222
cat >>conftest.$ac_ext <<_ACEOF
3223
/* end confdefs.h. */
3234
rm -f conftest.$ac_objext
3235
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3236
(eval $ac_compile) 2>conftest.er1
3238
grep -v '^ *+' conftest.er1 >conftest.err
3240
cat conftest.err >&5
3241
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3242
(exit $ac_status); } &&
3243
{ ac_try='test -z "$ac_c_werror_flag"
3244
|| test ! -s conftest.err'
3245
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3248
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3249
(exit $ac_status); }; } &&
3250
{ ac_try='test -s conftest.$ac_objext'
3251
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3254
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3255
(exit $ac_status); }; }; then
3258
echo "$as_me: failed program was:" >&5
3259
sed 's/^/| /' conftest.$ac_ext >&5
3263
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3264
cat >conftest.$ac_ext <<_ACEOF
3267
cat confdefs.h >>conftest.$ac_ext
3268
cat >>conftest.$ac_ext <<_ACEOF
3269
/* end confdefs.h. */
3279
rm -f conftest.$ac_objext
3280
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3281
(eval $ac_compile) 2>conftest.er1
3283
grep -v '^ *+' conftest.er1 >conftest.err
3285
cat conftest.err >&5
3286
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3287
(exit $ac_status); } &&
3288
{ ac_try='test -z "$ac_c_werror_flag"
3289
|| test ! -s conftest.err'
3290
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3293
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3294
(exit $ac_status); }; } &&
3295
{ ac_try='test -s conftest.$ac_objext'
3296
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3299
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3300
(exit $ac_status); }; }; then
3303
echo "$as_me: failed program was:" >&5
3304
sed 's/^/| /' conftest.$ac_ext >&5
3307
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3310
if test -n "$ac_declaration"; then
3311
echo '#ifdef __cplusplus' >>confdefs.h
3312
echo $ac_declaration >>confdefs.h
3313
echo '#endif' >>confdefs.h
3317
echo "$as_me: failed program was:" >&5
3318
sed 's/^/| /' conftest.$ac_ext >&5
3321
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3323
ac_cpp='$CPP $CPPFLAGS'
3324
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3325
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3326
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3330
ac_cpp='$CPP $CPPFLAGS'
3331
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3332
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3333
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3334
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3335
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3336
# On Suns, sometimes $CPP names a directory.
3337
if test -n "$CPP" && test -d "$CPP"; then
3340
if test -z "$CPP"; then
3341
if test "${ac_cv_prog_CPP+set}" = set; then
3342
echo $ECHO_N "(cached) $ECHO_C" >&6
3344
# Double quotes because CPP needs to be expanded
3345
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3348
for ac_c_preproc_warn_flag in '' yes
3350
# Use a header file that comes with gcc, so configuring glibc
3351
# with a fresh cross-compiler works.
3352
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3353
# <limits.h> exists even on freestanding compilers.
3354
# On the NeXT, cc -E runs the code through the compiler's parser,
3355
# not just through cpp. "Syntax error" is here to catch this case.
3356
cat >conftest.$ac_ext <<_ACEOF
3359
cat confdefs.h >>conftest.$ac_ext
3360
cat >>conftest.$ac_ext <<_ACEOF
3361
/* end confdefs.h. */
3363
# include <limits.h>
3365
# include <assert.h>
3369
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3370
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3372
grep -v '^ *+' conftest.er1 >conftest.err
3374
cat conftest.err >&5
3375
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3376
(exit $ac_status); } >/dev/null; then
3377
if test -s conftest.err; then
3378
ac_cpp_err=$ac_c_preproc_warn_flag
3379
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3386
if test -z "$ac_cpp_err"; then
3389
echo "$as_me: failed program was:" >&5
3390
sed 's/^/| /' conftest.$ac_ext >&5
3392
# Broken: fails on valid input.
3395
rm -f conftest.err conftest.$ac_ext
3397
# OK, works on sane cases. Now check whether non-existent headers
3398
# can be detected and how.
3399
cat >conftest.$ac_ext <<_ACEOF
3402
cat confdefs.h >>conftest.$ac_ext
3403
cat >>conftest.$ac_ext <<_ACEOF
3404
/* end confdefs.h. */
3405
#include <ac_nonexistent.h>
3407
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3408
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3410
grep -v '^ *+' conftest.er1 >conftest.err
3412
cat conftest.err >&5
3413
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3414
(exit $ac_status); } >/dev/null; then
3415
if test -s conftest.err; then
3416
ac_cpp_err=$ac_c_preproc_warn_flag
3417
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3424
if test -z "$ac_cpp_err"; then
3425
# Broken: success on invalid input.
3428
echo "$as_me: failed program was:" >&5
3429
sed 's/^/| /' conftest.$ac_ext >&5
3431
# Passes both tests.
3435
rm -f conftest.err conftest.$ac_ext
3438
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3439
rm -f conftest.err conftest.$ac_ext
3440
if $ac_preproc_ok; then
3452
echo "$as_me:$LINENO: result: $CPP" >&5
3453
echo "${ECHO_T}$CPP" >&6
3455
for ac_c_preproc_warn_flag in '' yes
3457
# Use a header file that comes with gcc, so configuring glibc
3458
# with a fresh cross-compiler works.
3459
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3460
# <limits.h> exists even on freestanding compilers.
3461
# On the NeXT, cc -E runs the code through the compiler's parser,
3462
# not just through cpp. "Syntax error" is here to catch this case.
3463
cat >conftest.$ac_ext <<_ACEOF
3466
cat confdefs.h >>conftest.$ac_ext
3467
cat >>conftest.$ac_ext <<_ACEOF
3468
/* end confdefs.h. */
3470
# include <limits.h>
3472
# include <assert.h>
3476
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3477
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3479
grep -v '^ *+' conftest.er1 >conftest.err
3481
cat conftest.err >&5
3482
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3483
(exit $ac_status); } >/dev/null; then
3484
if test -s conftest.err; then
3485
ac_cpp_err=$ac_c_preproc_warn_flag
3486
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3493
if test -z "$ac_cpp_err"; then
3496
echo "$as_me: failed program was:" >&5
3497
sed 's/^/| /' conftest.$ac_ext >&5
3499
# Broken: fails on valid input.
3502
rm -f conftest.err conftest.$ac_ext
3504
# OK, works on sane cases. Now check whether non-existent headers
3505
# can be detected and how.
3506
cat >conftest.$ac_ext <<_ACEOF
3509
cat confdefs.h >>conftest.$ac_ext
3510
cat >>conftest.$ac_ext <<_ACEOF
3511
/* end confdefs.h. */
3512
#include <ac_nonexistent.h>
3514
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3515
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3517
grep -v '^ *+' conftest.er1 >conftest.err
3519
cat conftest.err >&5
3520
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3521
(exit $ac_status); } >/dev/null; then
3522
if test -s conftest.err; then
3523
ac_cpp_err=$ac_c_preproc_warn_flag
3524
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3531
if test -z "$ac_cpp_err"; then
3532
# Broken: success on invalid input.
3535
echo "$as_me: failed program was:" >&5
3536
sed 's/^/| /' conftest.$ac_ext >&5
3538
# Passes both tests.
3542
rm -f conftest.err conftest.$ac_ext
3545
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3546
rm -f conftest.err conftest.$ac_ext
3547
if $ac_preproc_ok; then
3550
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3551
See \`config.log' for more details." >&5
3552
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3553
See \`config.log' for more details." >&2;}
3554
{ (exit 1); exit 1; }; }
3558
ac_cpp='$CPP $CPPFLAGS'
3559
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3560
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3561
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3564
echo "$as_me:$LINENO: checking for egrep" >&5
3565
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3566
if test "${ac_cv_prog_egrep+set}" = set; then
3567
echo $ECHO_N "(cached) $ECHO_C" >&6
3569
if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3570
then ac_cv_prog_egrep='grep -E'
3571
else ac_cv_prog_egrep='egrep'
3574
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3575
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3576
EGREP=$ac_cv_prog_egrep
3579
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3580
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3581
if test "${ac_cv_header_stdc+set}" = set; then
3582
echo $ECHO_N "(cached) $ECHO_C" >&6
3584
cat >conftest.$ac_ext <<_ACEOF
3587
cat confdefs.h >>conftest.$ac_ext
3588
cat >>conftest.$ac_ext <<_ACEOF
3589
/* end confdefs.h. */
3603
rm -f conftest.$ac_objext
3604
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3605
(eval $ac_compile) 2>conftest.er1
3607
grep -v '^ *+' conftest.er1 >conftest.err
3609
cat conftest.err >&5
3610
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3611
(exit $ac_status); } &&
3612
{ ac_try='test -z "$ac_c_werror_flag"
3613
|| test ! -s conftest.err'
3614
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3617
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3618
(exit $ac_status); }; } &&
3619
{ ac_try='test -s conftest.$ac_objext'
3620
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3623
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3624
(exit $ac_status); }; }; then
3625
ac_cv_header_stdc=yes
3627
echo "$as_me: failed program was:" >&5
3628
sed 's/^/| /' conftest.$ac_ext >&5
3630
ac_cv_header_stdc=no
3632
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3634
if test $ac_cv_header_stdc = yes; then
3635
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3636
cat >conftest.$ac_ext <<_ACEOF
3639
cat confdefs.h >>conftest.$ac_ext
3640
cat >>conftest.$ac_ext <<_ACEOF
3641
/* end confdefs.h. */
3645
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3646
$EGREP "memchr" >/dev/null 2>&1; then
3649
ac_cv_header_stdc=no
3655
if test $ac_cv_header_stdc = yes; then
3656
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3657
cat >conftest.$ac_ext <<_ACEOF
3660
cat confdefs.h >>conftest.$ac_ext
3661
cat >>conftest.$ac_ext <<_ACEOF
3662
/* end confdefs.h. */
3666
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3667
$EGREP "free" >/dev/null 2>&1; then
3670
ac_cv_header_stdc=no
3676
if test $ac_cv_header_stdc = yes; then
3677
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3678
if test "$cross_compiling" = yes; then
3681
cat >conftest.$ac_ext <<_ACEOF
3684
cat confdefs.h >>conftest.$ac_ext
3685
cat >>conftest.$ac_ext <<_ACEOF
3686
/* end confdefs.h. */
3688
#if ((' ' & 0x0FF) == 0x020)
3689
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3690
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3692
# define ISLOWER(c) \
3693
(('a' <= (c) && (c) <= 'i') \
3694
|| ('j' <= (c) && (c) <= 'r') \
3695
|| ('s' <= (c) && (c) <= 'z'))
3696
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3699
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3704
for (i = 0; i < 256; i++)
3705
if (XOR (islower (i), ISLOWER (i))
3706
|| toupper (i) != TOUPPER (i))
3711
rm -f conftest$ac_exeext
3712
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3713
(eval $ac_link) 2>&5
3715
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3716
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3717
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3720
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3721
(exit $ac_status); }; }; then
3724
echo "$as_me: program exited with status $ac_status" >&5
3725
echo "$as_me: failed program was:" >&5
3726
sed 's/^/| /' conftest.$ac_ext >&5
3729
ac_cv_header_stdc=no
3731
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3735
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3736
echo "${ECHO_T}$ac_cv_header_stdc" >&6
3737
if test $ac_cv_header_stdc = yes; then
3739
cat >>confdefs.h <<\_ACEOF
3740
#define STDC_HEADERS 1
3745
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3755
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3756
inttypes.h stdint.h unistd.h
3758
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3759
echo "$as_me:$LINENO: checking for $ac_header" >&5
3760
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3761
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3762
echo $ECHO_N "(cached) $ECHO_C" >&6
3764
cat >conftest.$ac_ext <<_ACEOF
3767
cat confdefs.h >>conftest.$ac_ext
3768
cat >>conftest.$ac_ext <<_ACEOF
3769
/* end confdefs.h. */
3770
$ac_includes_default
3772
#include <$ac_header>
3774
rm -f conftest.$ac_objext
3775
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3776
(eval $ac_compile) 2>conftest.er1
3778
grep -v '^ *+' conftest.er1 >conftest.err
3780
cat conftest.err >&5
3781
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3782
(exit $ac_status); } &&
3783
{ ac_try='test -z "$ac_c_werror_flag"
3784
|| test ! -s conftest.err'
3785
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3788
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3789
(exit $ac_status); }; } &&
3790
{ ac_try='test -s conftest.$ac_objext'
3791
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3794
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3795
(exit $ac_status); }; }; then
3796
eval "$as_ac_Header=yes"
3798
echo "$as_me: failed program was:" >&5
3799
sed 's/^/| /' conftest.$ac_ext >&5
3801
eval "$as_ac_Header=no"
3803
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3805
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3806
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3807
if test `eval echo '${'$as_ac_Header'}'` = yes; then
3808
cat >>confdefs.h <<_ACEOF
3809
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3819
echo $ac_n "${nl}checking for ldap support..."
3822
apu_has_ldapssl_client_init="0"
3823
apu_has_ldapssl_client_deinit="0"
3824
apu_has_ldapssl_add_trusted_cert="0"
3825
apu_has_ldap_start_tls_s="0"
3826
apu_has_ldapssl_init="0"
3827
apu_has_ldap_sslinit="0"
3828
apu_has_ldapssl_install_routines="0"
3829
apu_has_ldap_openldap="0"
3830
apu_has_ldap_solaris="0"
3831
apu_has_ldap_novell="0"
3832
apu_has_ldap_microsoft="0"
3833
apu_has_ldap_netscape="0"
3834
apu_has_ldap_mozilla="0"
3835
apu_has_ldap_other="0"
3838
# Check whether --with-ldap-include or --without-ldap-include was given.
3839
if test "${with_ldap_include+set}" = set; then
3840
withval="$with_ldap_include"
3844
# Check whether --with-ldap-lib or --without-ldap-lib was given.
3845
if test "${with_ldap_lib+set}" = set; then
3846
withval="$with_ldap_lib"
3850
# Check whether --with-ldap or --without-ldap was given.
3851
if test "${with_ldap+set}" = set; then
3852
withval="$with_ldap"
3854
save_cppflags="$CPPFLAGS"
3855
save_ldflags="$LDFLAGS"
3857
if test -n "$with_ldap_include"; then
3858
CPPFLAGS="$CPPFLAGS -I$with_ldap_include"
3860
if test "x$APRUTIL_INCLUDES" = "x"; then
3861
test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$with_ldap_include\""
3862
APRUTIL_INCLUDES="-I$with_ldap_include"
3864
apr_addto_bugger="-I$with_ldap_include"
3865
for i in $apr_addto_bugger; do
3866
apr_addto_duplicate="0"
3867
for j in $APRUTIL_INCLUDES; do
3868
if test "x$i" = "x$j"; then
3869
apr_addto_duplicate="1"
3873
if test $apr_addto_duplicate = "0"; then
3874
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES"
3875
APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
3881
if test -n "$with_ldap_lib"; then
3882
LDFLAGS="$LDFLAGS -L$with_ldap_lib"
3884
if test "x$APRUTIL_LDFLAGS" = "x"; then
3885
test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$with_ldap_lib\""
3886
APRUTIL_LDFLAGS="-L$with_ldap_lib"
3888
apr_addto_bugger="-L$with_ldap_lib"
3889
for i in $apr_addto_bugger; do
3890
apr_addto_duplicate="0"
3891
for j in $APRUTIL_LDFLAGS; do
3892
if test "x$i" = "x$j"; then
3893
apr_addto_duplicate="1"
3897
if test $apr_addto_duplicate = "0"; then
3898
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS"
3899
APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
3907
if test "$LIBLDAP" = "yes"; then
3909
if test ${apu_has_ldap} != "1"; then
3911
extralib="-lnspr4 -lplc4 -lplds4 -liutil50 -llber50 -lldif50 -lnss3 -lprldap50 -lssl3 -lssldap50"
3912
unset ac_cv_lib_${ldaplib}_ldap_init
3913
unset ac_cv_lib_${ldaplib}___ldap_init
3914
as_ac_Lib=`echo "ac_cv_lib_${ldaplib}''_ldap_init" | $as_tr_sh`
3915
echo "$as_me:$LINENO: checking for ldap_init in -l${ldaplib}" >&5
3916
echo $ECHO_N "checking for ldap_init in -l${ldaplib}... $ECHO_C" >&6
3917
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
3918
echo $ECHO_N "(cached) $ECHO_C" >&6
3920
ac_check_lib_save_LIBS=$LIBS
3921
LIBS="-l${ldaplib} ${extralib} $LIBS"
3922
cat >conftest.$ac_ext <<_ACEOF
3925
cat confdefs.h >>conftest.$ac_ext
3926
cat >>conftest.$ac_ext <<_ACEOF
3927
/* end confdefs.h. */
3929
/* Override any gcc2 internal prototype to avoid an error. */
3933
/* We use char because int might match the return type of a gcc2
3934
builtin and then its argument prototype would still apply. */
3944
rm -f conftest.$ac_objext conftest$ac_exeext
3945
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3946
(eval $ac_link) 2>conftest.er1
3948
grep -v '^ *+' conftest.er1 >conftest.err
3950
cat conftest.err >&5
3951
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3952
(exit $ac_status); } &&
3953
{ ac_try='test -z "$ac_c_werror_flag"
3954
|| test ! -s conftest.err'
3955
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3958
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3959
(exit $ac_status); }; } &&
3960
{ ac_try='test -s conftest$ac_exeext'
3961
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3964
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3965
(exit $ac_status); }; }; then
3966
eval "$as_ac_Lib=yes"
3968
echo "$as_me: failed program was:" >&5
3969
sed 's/^/| /' conftest.$ac_ext >&5
3971
eval "$as_ac_Lib=no"
3973
rm -f conftest.err conftest.$ac_objext \
3974
conftest$ac_exeext conftest.$ac_ext
3975
LIBS=$ac_check_lib_save_LIBS
3977
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
3978
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
3979
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
3982
if test "x$APRUTIL_EXPORT_LIBS" = "x"; then
3983
test "x$silent" != "xyes" && echo " setting APRUTIL_EXPORT_LIBS to \"-l${ldaplib} ${extralib}\""
3984
APRUTIL_EXPORT_LIBS="-l${ldaplib} ${extralib}"
3986
apr_addto_bugger="-l${ldaplib} ${extralib}"
3987
for i in $apr_addto_bugger; do
3988
apr_addto_duplicate="0"
3989
for j in $APRUTIL_EXPORT_LIBS; do
3990
if test "x$i" = "x$j"; then
3991
apr_addto_duplicate="1"
3995
if test $apr_addto_duplicate = "0"; then
3996
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_EXPORT_LIBS"
3997
APRUTIL_EXPORT_LIBS="$APRUTIL_EXPORT_LIBS $i"
4003
if test "x$APRUTIL_LIBS" = "x"; then
4004
test "x$silent" != "xyes" && echo " setting APRUTIL_LIBS to \"-l${ldaplib} ${extralib}\""
4005
APRUTIL_LIBS="-l${ldaplib} ${extralib}"
4007
apr_addto_bugger="-l${ldaplib} ${extralib}"
4008
for i in $apr_addto_bugger; do
4009
apr_addto_duplicate="0"
4010
for j in $APRUTIL_LIBS; do
4011
if test "x$i" = "x$j"; then
4012
apr_addto_duplicate="1"
4016
if test $apr_addto_duplicate = "0"; then
4017
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LIBS"
4018
APRUTIL_LIBS="$APRUTIL_LIBS $i"
4023
as_ac_Lib=`echo "ac_cv_lib_${ldaplib}''_ldapssl_client_init" | $as_tr_sh`
4024
echo "$as_me:$LINENO: checking for ldapssl_client_init in -l${ldaplib}" >&5
4025
echo $ECHO_N "checking for ldapssl_client_init in -l${ldaplib}... $ECHO_C" >&6
4026
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
4027
echo $ECHO_N "(cached) $ECHO_C" >&6
4029
ac_check_lib_save_LIBS=$LIBS
4030
LIBS="-l${ldaplib} ${extralib} $LIBS"
4031
cat >conftest.$ac_ext <<_ACEOF
4034
cat confdefs.h >>conftest.$ac_ext
4035
cat >>conftest.$ac_ext <<_ACEOF
4036
/* end confdefs.h. */
4038
/* Override any gcc2 internal prototype to avoid an error. */
4042
/* We use char because int might match the return type of a gcc2
4043
builtin and then its argument prototype would still apply. */
4044
char ldapssl_client_init ();
4048
ldapssl_client_init ();
4053
rm -f conftest.$ac_objext conftest$ac_exeext
4054
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4055
(eval $ac_link) 2>conftest.er1
4057
grep -v '^ *+' conftest.er1 >conftest.err
4059
cat conftest.err >&5
4060
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4061
(exit $ac_status); } &&
4062
{ ac_try='test -z "$ac_c_werror_flag"
4063
|| test ! -s conftest.err'
4064
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4067
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4068
(exit $ac_status); }; } &&
4069
{ ac_try='test -s conftest$ac_exeext'
4070
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4073
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4074
(exit $ac_status); }; }; then
4075
eval "$as_ac_Lib=yes"
4077
echo "$as_me: failed program was:" >&5
4078
sed 's/^/| /' conftest.$ac_ext >&5
4080
eval "$as_ac_Lib=no"
4082
rm -f conftest.err conftest.$ac_objext \
4083
conftest$ac_exeext conftest.$ac_ext
4084
LIBS=$ac_check_lib_save_LIBS
4086
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
4087
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
4088
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
4089
apu_has_ldapssl_client_init="1"
4092
as_ac_Lib=`echo "ac_cv_lib_${ldaplib}''_ldapssl_client_deinit" | $as_tr_sh`
4093
echo "$as_me:$LINENO: checking for ldapssl_client_deinit in -l${ldaplib}" >&5
4094
echo $ECHO_N "checking for ldapssl_client_deinit in -l${ldaplib}... $ECHO_C" >&6
4095
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
4096
echo $ECHO_N "(cached) $ECHO_C" >&6
4098
ac_check_lib_save_LIBS=$LIBS
4099
LIBS="-l${ldaplib} ${extralib} $LIBS"
4100
cat >conftest.$ac_ext <<_ACEOF
4103
cat confdefs.h >>conftest.$ac_ext
4104
cat >>conftest.$ac_ext <<_ACEOF
4105
/* end confdefs.h. */
4107
/* Override any gcc2 internal prototype to avoid an error. */
4111
/* We use char because int might match the return type of a gcc2
4112
builtin and then its argument prototype would still apply. */
4113
char ldapssl_client_deinit ();
4117
ldapssl_client_deinit ();
4122
rm -f conftest.$ac_objext conftest$ac_exeext
4123
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4124
(eval $ac_link) 2>conftest.er1
4126
grep -v '^ *+' conftest.er1 >conftest.err
4128
cat conftest.err >&5
4129
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4130
(exit $ac_status); } &&
4131
{ ac_try='test -z "$ac_c_werror_flag"
4132
|| test ! -s conftest.err'
4133
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4136
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4137
(exit $ac_status); }; } &&
4138
{ ac_try='test -s conftest$ac_exeext'
4139
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4142
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4143
(exit $ac_status); }; }; then
4144
eval "$as_ac_Lib=yes"
4146
echo "$as_me: failed program was:" >&5
4147
sed 's/^/| /' conftest.$ac_ext >&5
4149
eval "$as_ac_Lib=no"
4151
rm -f conftest.err conftest.$ac_objext \
4152
conftest$ac_exeext conftest.$ac_ext
4153
LIBS=$ac_check_lib_save_LIBS
4155
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
4156
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
4157
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
4158
apu_has_ldapssl_client_deinit="1"
4161
as_ac_Lib=`echo "ac_cv_lib_${ldaplib}''_ldapssl_add_trusted_cert" | $as_tr_sh`
4162
echo "$as_me:$LINENO: checking for ldapssl_add_trusted_cert in -l${ldaplib}" >&5
4163
echo $ECHO_N "checking for ldapssl_add_trusted_cert in -l${ldaplib}... $ECHO_C" >&6
4164
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
4165
echo $ECHO_N "(cached) $ECHO_C" >&6
4167
ac_check_lib_save_LIBS=$LIBS
4168
LIBS="-l${ldaplib} ${extralib} $LIBS"
4169
cat >conftest.$ac_ext <<_ACEOF
4172
cat confdefs.h >>conftest.$ac_ext
4173
cat >>conftest.$ac_ext <<_ACEOF
4174
/* end confdefs.h. */
4176
/* Override any gcc2 internal prototype to avoid an error. */
4180
/* We use char because int might match the return type of a gcc2
4181
builtin and then its argument prototype would still apply. */
4182
char ldapssl_add_trusted_cert ();
4186
ldapssl_add_trusted_cert ();
4191
rm -f conftest.$ac_objext conftest$ac_exeext
4192
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4193
(eval $ac_link) 2>conftest.er1
4195
grep -v '^ *+' conftest.er1 >conftest.err
4197
cat conftest.err >&5
4198
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4199
(exit $ac_status); } &&
4200
{ ac_try='test -z "$ac_c_werror_flag"
4201
|| test ! -s conftest.err'
4202
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4205
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4206
(exit $ac_status); }; } &&
4207
{ ac_try='test -s conftest$ac_exeext'
4208
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4211
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4212
(exit $ac_status); }; }; then
4213
eval "$as_ac_Lib=yes"
4215
echo "$as_me: failed program was:" >&5
4216
sed 's/^/| /' conftest.$ac_ext >&5
4218
eval "$as_ac_Lib=no"
4220
rm -f conftest.err conftest.$ac_objext \
4221
conftest$ac_exeext conftest.$ac_ext
4222
LIBS=$ac_check_lib_save_LIBS
4224
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
4225
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
4226
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
4227
apu_has_ldapssl_add_trusted_cert="1"
4230
as_ac_Lib=`echo "ac_cv_lib_${ldaplib}''_ldap_start_tls_s" | $as_tr_sh`
4231
echo "$as_me:$LINENO: checking for ldap_start_tls_s in -l${ldaplib}" >&5
4232
echo $ECHO_N "checking for ldap_start_tls_s in -l${ldaplib}... $ECHO_C" >&6
4233
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
4234
echo $ECHO_N "(cached) $ECHO_C" >&6
4236
ac_check_lib_save_LIBS=$LIBS
4237
LIBS="-l${ldaplib} ${extralib} $LIBS"
4238
cat >conftest.$ac_ext <<_ACEOF
4241
cat confdefs.h >>conftest.$ac_ext
4242
cat >>conftest.$ac_ext <<_ACEOF
4243
/* end confdefs.h. */
4245
/* Override any gcc2 internal prototype to avoid an error. */
4249
/* We use char because int might match the return type of a gcc2
4250
builtin and then its argument prototype would still apply. */
4251
char ldap_start_tls_s ();
4255
ldap_start_tls_s ();
4260
rm -f conftest.$ac_objext conftest$ac_exeext
4261
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4262
(eval $ac_link) 2>conftest.er1
4264
grep -v '^ *+' conftest.er1 >conftest.err
4266
cat conftest.err >&5
4267
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4268
(exit $ac_status); } &&
4269
{ ac_try='test -z "$ac_c_werror_flag"
4270
|| test ! -s conftest.err'
4271
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4274
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4275
(exit $ac_status); }; } &&
4276
{ ac_try='test -s conftest$ac_exeext'
4277
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4280
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4281
(exit $ac_status); }; }; then
4282
eval "$as_ac_Lib=yes"
4284
echo "$as_me: failed program was:" >&5
4285
sed 's/^/| /' conftest.$ac_ext >&5
4287
eval "$as_ac_Lib=no"
4289
rm -f conftest.err conftest.$ac_objext \
4290
conftest$ac_exeext conftest.$ac_ext
4291
LIBS=$ac_check_lib_save_LIBS
4293
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
4294
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
4295
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
4296
apu_has_ldap_start_tls_s="1"
4299
as_ac_Lib=`echo "ac_cv_lib_${ldaplib}''_ldap_sslinit" | $as_tr_sh`
4300
echo "$as_me:$LINENO: checking for ldap_sslinit in -l${ldaplib}" >&5
4301
echo $ECHO_N "checking for ldap_sslinit in -l${ldaplib}... $ECHO_C" >&6
4302
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
4303
echo $ECHO_N "(cached) $ECHO_C" >&6
4305
ac_check_lib_save_LIBS=$LIBS
4306
LIBS="-l${ldaplib} ${extralib} $LIBS"
4307
cat >conftest.$ac_ext <<_ACEOF
4310
cat confdefs.h >>conftest.$ac_ext
4311
cat >>conftest.$ac_ext <<_ACEOF
4312
/* end confdefs.h. */
4314
/* Override any gcc2 internal prototype to avoid an error. */
4318
/* We use char because int might match the return type of a gcc2
4319
builtin and then its argument prototype would still apply. */
4320
char ldap_sslinit ();
4329
rm -f conftest.$ac_objext conftest$ac_exeext
4330
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4331
(eval $ac_link) 2>conftest.er1
4333
grep -v '^ *+' conftest.er1 >conftest.err
4335
cat conftest.err >&5
4336
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4337
(exit $ac_status); } &&
4338
{ ac_try='test -z "$ac_c_werror_flag"
4339
|| test ! -s conftest.err'
4340
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4343
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4344
(exit $ac_status); }; } &&
4345
{ ac_try='test -s conftest$ac_exeext'
4346
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4349
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4350
(exit $ac_status); }; }; then
4351
eval "$as_ac_Lib=yes"
4353
echo "$as_me: failed program was:" >&5
4354
sed 's/^/| /' conftest.$ac_ext >&5
4356
eval "$as_ac_Lib=no"
4358
rm -f conftest.err conftest.$ac_objext \
4359
conftest$ac_exeext conftest.$ac_ext
4360
LIBS=$ac_check_lib_save_LIBS
4362
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
4363
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
4364
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
4365
apu_has_ldap_sslinit="1"
4368
as_ac_Lib=`echo "ac_cv_lib_${ldaplib}''_ldapssl_init" | $as_tr_sh`
4369
echo "$as_me:$LINENO: checking for ldapssl_init in -l${ldaplib}" >&5
4370
echo $ECHO_N "checking for ldapssl_init in -l${ldaplib}... $ECHO_C" >&6
4371
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
4372
echo $ECHO_N "(cached) $ECHO_C" >&6
4374
ac_check_lib_save_LIBS=$LIBS
4375
LIBS="-l${ldaplib} ${extralib} $LIBS"
4376
cat >conftest.$ac_ext <<_ACEOF
4379
cat confdefs.h >>conftest.$ac_ext
4380
cat >>conftest.$ac_ext <<_ACEOF
4381
/* end confdefs.h. */
4383
/* Override any gcc2 internal prototype to avoid an error. */
4387
/* We use char because int might match the return type of a gcc2
4388
builtin and then its argument prototype would still apply. */
4389
char ldapssl_init ();
4398
rm -f conftest.$ac_objext conftest$ac_exeext
4399
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4400
(eval $ac_link) 2>conftest.er1
4402
grep -v '^ *+' conftest.er1 >conftest.err
4404
cat conftest.err >&5
4405
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4406
(exit $ac_status); } &&
4407
{ ac_try='test -z "$ac_c_werror_flag"
4408
|| test ! -s conftest.err'
4409
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4412
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4413
(exit $ac_status); }; } &&
4414
{ ac_try='test -s conftest$ac_exeext'
4415
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4418
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4419
(exit $ac_status); }; }; then
4420
eval "$as_ac_Lib=yes"
4422
echo "$as_me: failed program was:" >&5
4423
sed 's/^/| /' conftest.$ac_ext >&5
4425
eval "$as_ac_Lib=no"
4427
rm -f conftest.err conftest.$ac_objext \
4428
conftest$ac_exeext conftest.$ac_ext
4429
LIBS=$ac_check_lib_save_LIBS
4431
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
4432
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
4433
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
4434
apu_has_ldapssl_init="1"
4437
as_ac_Lib=`echo "ac_cv_lib_${ldaplib}''_ldapssl_install_routines" | $as_tr_sh`
4438
echo "$as_me:$LINENO: checking for ldapssl_install_routines in -l${ldaplib}" >&5
4439
echo $ECHO_N "checking for ldapssl_install_routines in -l${ldaplib}... $ECHO_C" >&6
4440
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
4441
echo $ECHO_N "(cached) $ECHO_C" >&6
4443
ac_check_lib_save_LIBS=$LIBS
4444
LIBS="-l${ldaplib} ${extralib} $LIBS"
4445
cat >conftest.$ac_ext <<_ACEOF
4448
cat confdefs.h >>conftest.$ac_ext
4449
cat >>conftest.$ac_ext <<_ACEOF
4450
/* end confdefs.h. */
4452
/* Override any gcc2 internal prototype to avoid an error. */
4456
/* We use char because int might match the return type of a gcc2
4457
builtin and then its argument prototype would still apply. */
4458
char ldapssl_install_routines ();
4462
ldapssl_install_routines ();
4467
rm -f conftest.$ac_objext conftest$ac_exeext
4468
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4469
(eval $ac_link) 2>conftest.er1
4471
grep -v '^ *+' conftest.er1 >conftest.err
4473
cat conftest.err >&5
4474
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4475
(exit $ac_status); } &&
4476
{ ac_try='test -z "$ac_c_werror_flag"
4477
|| test ! -s conftest.err'
4478
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4481
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4482
(exit $ac_status); }; } &&
4483
{ ac_try='test -s conftest$ac_exeext'
4484
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4487
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4488
(exit $ac_status); }; }; then
4489
eval "$as_ac_Lib=yes"
4491
echo "$as_me: failed program was:" >&5
4492
sed 's/^/| /' conftest.$ac_ext >&5
4494
eval "$as_ac_Lib=no"
4496
rm -f conftest.err conftest.$ac_objext \
4497
conftest$ac_exeext conftest.$ac_ext
4498
LIBS=$ac_check_lib_save_LIBS
4500
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
4501
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
4502
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
4503
apu_has_ldapssl_install_routines="1"
4513
if test ${apu_has_ldap} != "1"; then
4515
extralib="-lnspr3 -lplc3 -lplds3"
4516
unset ac_cv_lib_${ldaplib}_ldap_init
4517
unset ac_cv_lib_${ldaplib}___ldap_init
4518
as_ac_Lib=`echo "ac_cv_lib_${ldaplib}''_ldap_init" | $as_tr_sh`
4519
echo "$as_me:$LINENO: checking for ldap_init in -l${ldaplib}" >&5
4520
echo $ECHO_N "checking for ldap_init in -l${ldaplib}... $ECHO_C" >&6
4521
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
4522
echo $ECHO_N "(cached) $ECHO_C" >&6
4524
ac_check_lib_save_LIBS=$LIBS
4525
LIBS="-l${ldaplib} ${extralib} $LIBS"
4526
cat >conftest.$ac_ext <<_ACEOF
4529
cat confdefs.h >>conftest.$ac_ext
4530
cat >>conftest.$ac_ext <<_ACEOF
4531
/* end confdefs.h. */
4533
/* Override any gcc2 internal prototype to avoid an error. */
4537
/* We use char because int might match the return type of a gcc2
4538
builtin and then its argument prototype would still apply. */
4548
rm -f conftest.$ac_objext conftest$ac_exeext
4549
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4550
(eval $ac_link) 2>conftest.er1
4552
grep -v '^ *+' conftest.er1 >conftest.err
4554
cat conftest.err >&5
4555
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4556
(exit $ac_status); } &&
4557
{ ac_try='test -z "$ac_c_werror_flag"
4558
|| test ! -s conftest.err'
4559
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4562
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4563
(exit $ac_status); }; } &&
4564
{ ac_try='test -s conftest$ac_exeext'
4565
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4568
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4569
(exit $ac_status); }; }; then
4570
eval "$as_ac_Lib=yes"
4572
echo "$as_me: failed program was:" >&5
4573
sed 's/^/| /' conftest.$ac_ext >&5
4575
eval "$as_ac_Lib=no"
4577
rm -f conftest.err conftest.$ac_objext \
4578
conftest$ac_exeext conftest.$ac_ext
4579
LIBS=$ac_check_lib_save_LIBS
4581
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
4582
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
4583
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
4586
if test "x$APRUTIL_EXPORT_LIBS" = "x"; then
4587
test "x$silent" != "xyes" && echo " setting APRUTIL_EXPORT_LIBS to \"-l${ldaplib} ${extralib}\""
4588
APRUTIL_EXPORT_LIBS="-l${ldaplib} ${extralib}"
4590
apr_addto_bugger="-l${ldaplib} ${extralib}"
4591
for i in $apr_addto_bugger; do
4592
apr_addto_duplicate="0"
4593
for j in $APRUTIL_EXPORT_LIBS; do
4594
if test "x$i" = "x$j"; then
4595
apr_addto_duplicate="1"
4599
if test $apr_addto_duplicate = "0"; then
4600
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_EXPORT_LIBS"
4601
APRUTIL_EXPORT_LIBS="$APRUTIL_EXPORT_LIBS $i"
4607
if test "x$APRUTIL_LIBS" = "x"; then
4608
test "x$silent" != "xyes" && echo " setting APRUTIL_LIBS to \"-l${ldaplib} ${extralib}\""
4609
APRUTIL_LIBS="-l${ldaplib} ${extralib}"
4611
apr_addto_bugger="-l${ldaplib} ${extralib}"
4612
for i in $apr_addto_bugger; do
4613
apr_addto_duplicate="0"
4614
for j in $APRUTIL_LIBS; do
4615
if test "x$i" = "x$j"; then
4616
apr_addto_duplicate="1"
4620
if test $apr_addto_duplicate = "0"; then
4621
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LIBS"
4622
APRUTIL_LIBS="$APRUTIL_LIBS $i"
4627
as_ac_Lib=`echo "ac_cv_lib_${ldaplib}''_ldapssl_client_init" | $as_tr_sh`
4628
echo "$as_me:$LINENO: checking for ldapssl_client_init in -l${ldaplib}" >&5
4629
echo $ECHO_N "checking for ldapssl_client_init in -l${ldaplib}... $ECHO_C" >&6
4630
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
4631
echo $ECHO_N "(cached) $ECHO_C" >&6
4633
ac_check_lib_save_LIBS=$LIBS
4634
LIBS="-l${ldaplib} ${extralib} $LIBS"
4635
cat >conftest.$ac_ext <<_ACEOF
4638
cat confdefs.h >>conftest.$ac_ext
4639
cat >>conftest.$ac_ext <<_ACEOF
4640
/* end confdefs.h. */
4642
/* Override any gcc2 internal prototype to avoid an error. */
4646
/* We use char because int might match the return type of a gcc2
4647
builtin and then its argument prototype would still apply. */
4648
char ldapssl_client_init ();
4652
ldapssl_client_init ();
4657
rm -f conftest.$ac_objext conftest$ac_exeext
4658
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4659
(eval $ac_link) 2>conftest.er1
4661
grep -v '^ *+' conftest.er1 >conftest.err
4663
cat conftest.err >&5
4664
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4665
(exit $ac_status); } &&
4666
{ ac_try='test -z "$ac_c_werror_flag"
4667
|| test ! -s conftest.err'
4668
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4671
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4672
(exit $ac_status); }; } &&
4673
{ ac_try='test -s conftest$ac_exeext'
4674
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4677
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4678
(exit $ac_status); }; }; then
4679
eval "$as_ac_Lib=yes"
4681
echo "$as_me: failed program was:" >&5
4682
sed 's/^/| /' conftest.$ac_ext >&5
4684
eval "$as_ac_Lib=no"
4686
rm -f conftest.err conftest.$ac_objext \
4687
conftest$ac_exeext conftest.$ac_ext
4688
LIBS=$ac_check_lib_save_LIBS
4690
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
4691
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
4692
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
4693
apu_has_ldapssl_client_init="1"
4696
as_ac_Lib=`echo "ac_cv_lib_${ldaplib}''_ldapssl_client_deinit" | $as_tr_sh`
4697
echo "$as_me:$LINENO: checking for ldapssl_client_deinit in -l${ldaplib}" >&5
4698
echo $ECHO_N "checking for ldapssl_client_deinit in -l${ldaplib}... $ECHO_C" >&6
4699
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
4700
echo $ECHO_N "(cached) $ECHO_C" >&6
4702
ac_check_lib_save_LIBS=$LIBS
4703
LIBS="-l${ldaplib} ${extralib} $LIBS"
4704
cat >conftest.$ac_ext <<_ACEOF
4707
cat confdefs.h >>conftest.$ac_ext
4708
cat >>conftest.$ac_ext <<_ACEOF
4709
/* end confdefs.h. */
4711
/* Override any gcc2 internal prototype to avoid an error. */
4715
/* We use char because int might match the return type of a gcc2
4716
builtin and then its argument prototype would still apply. */
4717
char ldapssl_client_deinit ();
4721
ldapssl_client_deinit ();
4726
rm -f conftest.$ac_objext conftest$ac_exeext
4727
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4728
(eval $ac_link) 2>conftest.er1
4730
grep -v '^ *+' conftest.er1 >conftest.err
4732
cat conftest.err >&5
4733
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4734
(exit $ac_status); } &&
4735
{ ac_try='test -z "$ac_c_werror_flag"
4736
|| test ! -s conftest.err'
4737
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4740
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4741
(exit $ac_status); }; } &&
4742
{ ac_try='test -s conftest$ac_exeext'
4743
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4746
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4747
(exit $ac_status); }; }; then
4748
eval "$as_ac_Lib=yes"
4750
echo "$as_me: failed program was:" >&5
4751
sed 's/^/| /' conftest.$ac_ext >&5
4753
eval "$as_ac_Lib=no"
4755
rm -f conftest.err conftest.$ac_objext \
4756
conftest$ac_exeext conftest.$ac_ext
4757
LIBS=$ac_check_lib_save_LIBS
4759
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
4760
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
4761
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
4762
apu_has_ldapssl_client_deinit="1"
4765
as_ac_Lib=`echo "ac_cv_lib_${ldaplib}''_ldapssl_add_trusted_cert" | $as_tr_sh`
4766
echo "$as_me:$LINENO: checking for ldapssl_add_trusted_cert in -l${ldaplib}" >&5
4767
echo $ECHO_N "checking for ldapssl_add_trusted_cert in -l${ldaplib}... $ECHO_C" >&6
4768
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
4769
echo $ECHO_N "(cached) $ECHO_C" >&6
4771
ac_check_lib_save_LIBS=$LIBS
4772
LIBS="-l${ldaplib} ${extralib} $LIBS"
4773
cat >conftest.$ac_ext <<_ACEOF
4776
cat confdefs.h >>conftest.$ac_ext
4777
cat >>conftest.$ac_ext <<_ACEOF
4778
/* end confdefs.h. */
4780
/* Override any gcc2 internal prototype to avoid an error. */
4784
/* We use char because int might match the return type of a gcc2
4785
builtin and then its argument prototype would still apply. */
4786
char ldapssl_add_trusted_cert ();
4790
ldapssl_add_trusted_cert ();
4795
rm -f conftest.$ac_objext conftest$ac_exeext
4796
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4797
(eval $ac_link) 2>conftest.er1
4799
grep -v '^ *+' conftest.er1 >conftest.err
4801
cat conftest.err >&5
4802
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4803
(exit $ac_status); } &&
4804
{ ac_try='test -z "$ac_c_werror_flag"
4805
|| test ! -s conftest.err'
4806
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4809
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4810
(exit $ac_status); }; } &&
4811
{ ac_try='test -s conftest$ac_exeext'
4812
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4815
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4816
(exit $ac_status); }; }; then
4817
eval "$as_ac_Lib=yes"
4819
echo "$as_me: failed program was:" >&5
4820
sed 's/^/| /' conftest.$ac_ext >&5
4822
eval "$as_ac_Lib=no"
4824
rm -f conftest.err conftest.$ac_objext \
4825
conftest$ac_exeext conftest.$ac_ext
4826
LIBS=$ac_check_lib_save_LIBS
4828
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
4829
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
4830
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
4831
apu_has_ldapssl_add_trusted_cert="1"
4834
as_ac_Lib=`echo "ac_cv_lib_${ldaplib}''_ldap_start_tls_s" | $as_tr_sh`
4835
echo "$as_me:$LINENO: checking for ldap_start_tls_s in -l${ldaplib}" >&5
4836
echo $ECHO_N "checking for ldap_start_tls_s in -l${ldaplib}... $ECHO_C" >&6
4837
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
4838
echo $ECHO_N "(cached) $ECHO_C" >&6
4840
ac_check_lib_save_LIBS=$LIBS
4841
LIBS="-l${ldaplib} ${extralib} $LIBS"
4842
cat >conftest.$ac_ext <<_ACEOF
4845
cat confdefs.h >>conftest.$ac_ext
4846
cat >>conftest.$ac_ext <<_ACEOF
4847
/* end confdefs.h. */
4849
/* Override any gcc2 internal prototype to avoid an error. */
4853
/* We use char because int might match the return type of a gcc2
4854
builtin and then its argument prototype would still apply. */
4855
char ldap_start_tls_s ();
4859
ldap_start_tls_s ();
4864
rm -f conftest.$ac_objext conftest$ac_exeext
4865
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4866
(eval $ac_link) 2>conftest.er1
4868
grep -v '^ *+' conftest.er1 >conftest.err
4870
cat conftest.err >&5
4871
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4872
(exit $ac_status); } &&
4873
{ ac_try='test -z "$ac_c_werror_flag"
4874
|| test ! -s conftest.err'
4875
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4878
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4879
(exit $ac_status); }; } &&
4880
{ ac_try='test -s conftest$ac_exeext'
4881
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4884
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4885
(exit $ac_status); }; }; then
4886
eval "$as_ac_Lib=yes"
4888
echo "$as_me: failed program was:" >&5
4889
sed 's/^/| /' conftest.$ac_ext >&5
4891
eval "$as_ac_Lib=no"
4893
rm -f conftest.err conftest.$ac_objext \
4894
conftest$ac_exeext conftest.$ac_ext
4895
LIBS=$ac_check_lib_save_LIBS
4897
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
4898
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
4899
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
4900
apu_has_ldap_start_tls_s="1"
4903
as_ac_Lib=`echo "ac_cv_lib_${ldaplib}''_ldap_sslinit" | $as_tr_sh`
4904
echo "$as_me:$LINENO: checking for ldap_sslinit in -l${ldaplib}" >&5
4905
echo $ECHO_N "checking for ldap_sslinit in -l${ldaplib}... $ECHO_C" >&6
4906
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
4907
echo $ECHO_N "(cached) $ECHO_C" >&6
4909
ac_check_lib_save_LIBS=$LIBS
4910
LIBS="-l${ldaplib} ${extralib} $LIBS"
4911
cat >conftest.$ac_ext <<_ACEOF
4914
cat confdefs.h >>conftest.$ac_ext
4915
cat >>conftest.$ac_ext <<_ACEOF
4916
/* end confdefs.h. */
4918
/* Override any gcc2 internal prototype to avoid an error. */
4922
/* We use char because int might match the return type of a gcc2
4923
builtin and then its argument prototype would still apply. */
4924
char ldap_sslinit ();
4933
rm -f conftest.$ac_objext conftest$ac_exeext
4934
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4935
(eval $ac_link) 2>conftest.er1
4937
grep -v '^ *+' conftest.er1 >conftest.err
4939
cat conftest.err >&5
4940
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4941
(exit $ac_status); } &&
4942
{ ac_try='test -z "$ac_c_werror_flag"
4943
|| test ! -s conftest.err'
4944
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4947
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4948
(exit $ac_status); }; } &&
4949
{ ac_try='test -s conftest$ac_exeext'
4950
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4953
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4954
(exit $ac_status); }; }; then
4955
eval "$as_ac_Lib=yes"
4957
echo "$as_me: failed program was:" >&5
4958
sed 's/^/| /' conftest.$ac_ext >&5
4960
eval "$as_ac_Lib=no"
4962
rm -f conftest.err conftest.$ac_objext \
4963
conftest$ac_exeext conftest.$ac_ext
4964
LIBS=$ac_check_lib_save_LIBS
4966
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
4967
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
4968
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
4969
apu_has_ldap_sslinit="1"
4972
as_ac_Lib=`echo "ac_cv_lib_${ldaplib}''_ldapssl_init" | $as_tr_sh`
4973
echo "$as_me:$LINENO: checking for ldapssl_init in -l${ldaplib}" >&5
4974
echo $ECHO_N "checking for ldapssl_init in -l${ldaplib}... $ECHO_C" >&6
4975
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
4976
echo $ECHO_N "(cached) $ECHO_C" >&6
4978
ac_check_lib_save_LIBS=$LIBS
4979
LIBS="-l${ldaplib} ${extralib} $LIBS"
4980
cat >conftest.$ac_ext <<_ACEOF
4983
cat confdefs.h >>conftest.$ac_ext
4984
cat >>conftest.$ac_ext <<_ACEOF
4985
/* end confdefs.h. */
4987
/* Override any gcc2 internal prototype to avoid an error. */
4991
/* We use char because int might match the return type of a gcc2
4992
builtin and then its argument prototype would still apply. */
4993
char ldapssl_init ();
5002
rm -f conftest.$ac_objext conftest$ac_exeext
5003
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5004
(eval $ac_link) 2>conftest.er1
5006
grep -v '^ *+' conftest.er1 >conftest.err
5008
cat conftest.err >&5
5009
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5010
(exit $ac_status); } &&
5011
{ ac_try='test -z "$ac_c_werror_flag"
5012
|| test ! -s conftest.err'
5013
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5016
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5017
(exit $ac_status); }; } &&
5018
{ ac_try='test -s conftest$ac_exeext'
5019
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5022
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5023
(exit $ac_status); }; }; then
5024
eval "$as_ac_Lib=yes"
5026
echo "$as_me: failed program was:" >&5
5027
sed 's/^/| /' conftest.$ac_ext >&5
5029
eval "$as_ac_Lib=no"
5031
rm -f conftest.err conftest.$ac_objext \
5032
conftest$ac_exeext conftest.$ac_ext
5033
LIBS=$ac_check_lib_save_LIBS
5035
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
5036
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
5037
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
5038
apu_has_ldapssl_init="1"
5041
as_ac_Lib=`echo "ac_cv_lib_${ldaplib}''_ldapssl_install_routines" | $as_tr_sh`
5042
echo "$as_me:$LINENO: checking for ldapssl_install_routines in -l${ldaplib}" >&5
5043
echo $ECHO_N "checking for ldapssl_install_routines in -l${ldaplib}... $ECHO_C" >&6
5044
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
5045
echo $ECHO_N "(cached) $ECHO_C" >&6
5047
ac_check_lib_save_LIBS=$LIBS
5048
LIBS="-l${ldaplib} ${extralib} $LIBS"
5049
cat >conftest.$ac_ext <<_ACEOF
5052
cat confdefs.h >>conftest.$ac_ext
5053
cat >>conftest.$ac_ext <<_ACEOF
5054
/* end confdefs.h. */
5056
/* Override any gcc2 internal prototype to avoid an error. */
5060
/* We use char because int might match the return type of a gcc2
5061
builtin and then its argument prototype would still apply. */
5062
char ldapssl_install_routines ();
5066
ldapssl_install_routines ();
5071
rm -f conftest.$ac_objext conftest$ac_exeext
5072
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5073
(eval $ac_link) 2>conftest.er1
5075
grep -v '^ *+' conftest.er1 >conftest.err
5077
cat conftest.err >&5
5078
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5079
(exit $ac_status); } &&
5080
{ ac_try='test -z "$ac_c_werror_flag"
5081
|| test ! -s conftest.err'
5082
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5085
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5086
(exit $ac_status); }; } &&
5087
{ ac_try='test -s conftest$ac_exeext'
5088
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5091
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5092
(exit $ac_status); }; }; then
5093
eval "$as_ac_Lib=yes"
5095
echo "$as_me: failed program was:" >&5
5096
sed 's/^/| /' conftest.$ac_ext >&5
5098
eval "$as_ac_Lib=no"
5100
rm -f conftest.err conftest.$ac_objext \
5101
conftest$ac_exeext conftest.$ac_ext
5102
LIBS=$ac_check_lib_save_LIBS
5104
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
5105
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
5106
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
5107
apu_has_ldapssl_install_routines="1"
5117
if test ${apu_has_ldap} != "1"; then
5120
unset ac_cv_lib_${ldaplib}_ldap_init
5121
unset ac_cv_lib_${ldaplib}___ldap_init
5122
as_ac_Lib=`echo "ac_cv_lib_${ldaplib}''_ldap_init" | $as_tr_sh`
5123
echo "$as_me:$LINENO: checking for ldap_init in -l${ldaplib}" >&5
5124
echo $ECHO_N "checking for ldap_init in -l${ldaplib}... $ECHO_C" >&6
5125
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
5126
echo $ECHO_N "(cached) $ECHO_C" >&6
5128
ac_check_lib_save_LIBS=$LIBS
5129
LIBS="-l${ldaplib} ${extralib} $LIBS"
5130
cat >conftest.$ac_ext <<_ACEOF
5133
cat confdefs.h >>conftest.$ac_ext
5134
cat >>conftest.$ac_ext <<_ACEOF
5135
/* end confdefs.h. */
5137
/* Override any gcc2 internal prototype to avoid an error. */
5141
/* We use char because int might match the return type of a gcc2
5142
builtin and then its argument prototype would still apply. */
5152
rm -f conftest.$ac_objext conftest$ac_exeext
5153
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5154
(eval $ac_link) 2>conftest.er1
5156
grep -v '^ *+' conftest.er1 >conftest.err
5158
cat conftest.err >&5
5159
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5160
(exit $ac_status); } &&
5161
{ ac_try='test -z "$ac_c_werror_flag"
5162
|| test ! -s conftest.err'
5163
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5166
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5167
(exit $ac_status); }; } &&
5168
{ ac_try='test -s conftest$ac_exeext'
5169
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5172
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5173
(exit $ac_status); }; }; then
5174
eval "$as_ac_Lib=yes"
5176
echo "$as_me: failed program was:" >&5
5177
sed 's/^/| /' conftest.$ac_ext >&5
5179
eval "$as_ac_Lib=no"
5181
rm -f conftest.err conftest.$ac_objext \
5182
conftest$ac_exeext conftest.$ac_ext
5183
LIBS=$ac_check_lib_save_LIBS
5185
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
5186
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
5187
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
5190
if test "x$APRUTIL_EXPORT_LIBS" = "x"; then
5191
test "x$silent" != "xyes" && echo " setting APRUTIL_EXPORT_LIBS to \"-l${ldaplib} ${extralib}\""
5192
APRUTIL_EXPORT_LIBS="-l${ldaplib} ${extralib}"
5194
apr_addto_bugger="-l${ldaplib} ${extralib}"
5195
for i in $apr_addto_bugger; do
5196
apr_addto_duplicate="0"
5197
for j in $APRUTIL_EXPORT_LIBS; do
5198
if test "x$i" = "x$j"; then
5199
apr_addto_duplicate="1"
5203
if test $apr_addto_duplicate = "0"; then
5204
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_EXPORT_LIBS"
5205
APRUTIL_EXPORT_LIBS="$APRUTIL_EXPORT_LIBS $i"
5211
if test "x$APRUTIL_LIBS" = "x"; then
5212
test "x$silent" != "xyes" && echo " setting APRUTIL_LIBS to \"-l${ldaplib} ${extralib}\""
5213
APRUTIL_LIBS="-l${ldaplib} ${extralib}"
5215
apr_addto_bugger="-l${ldaplib} ${extralib}"
5216
for i in $apr_addto_bugger; do
5217
apr_addto_duplicate="0"
5218
for j in $APRUTIL_LIBS; do
5219
if test "x$i" = "x$j"; then
5220
apr_addto_duplicate="1"
5224
if test $apr_addto_duplicate = "0"; then
5225
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LIBS"
5226
APRUTIL_LIBS="$APRUTIL_LIBS $i"
5231
as_ac_Lib=`echo "ac_cv_lib_${ldaplib}''_ldapssl_client_init" | $as_tr_sh`
5232
echo "$as_me:$LINENO: checking for ldapssl_client_init in -l${ldaplib}" >&5
5233
echo $ECHO_N "checking for ldapssl_client_init in -l${ldaplib}... $ECHO_C" >&6
5234
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
5235
echo $ECHO_N "(cached) $ECHO_C" >&6
5237
ac_check_lib_save_LIBS=$LIBS
5238
LIBS="-l${ldaplib} ${extralib} $LIBS"
5239
cat >conftest.$ac_ext <<_ACEOF
5242
cat confdefs.h >>conftest.$ac_ext
5243
cat >>conftest.$ac_ext <<_ACEOF
5244
/* end confdefs.h. */
5246
/* Override any gcc2 internal prototype to avoid an error. */
5250
/* We use char because int might match the return type of a gcc2
5251
builtin and then its argument prototype would still apply. */
5252
char ldapssl_client_init ();
5256
ldapssl_client_init ();
5261
rm -f conftest.$ac_objext conftest$ac_exeext
5262
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5263
(eval $ac_link) 2>conftest.er1
5265
grep -v '^ *+' conftest.er1 >conftest.err
5267
cat conftest.err >&5
5268
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5269
(exit $ac_status); } &&
5270
{ ac_try='test -z "$ac_c_werror_flag"
5271
|| test ! -s conftest.err'
5272
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5275
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5276
(exit $ac_status); }; } &&
5277
{ ac_try='test -s conftest$ac_exeext'
5278
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5281
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5282
(exit $ac_status); }; }; then
5283
eval "$as_ac_Lib=yes"
5285
echo "$as_me: failed program was:" >&5
5286
sed 's/^/| /' conftest.$ac_ext >&5
5288
eval "$as_ac_Lib=no"
5290
rm -f conftest.err conftest.$ac_objext \
5291
conftest$ac_exeext conftest.$ac_ext
5292
LIBS=$ac_check_lib_save_LIBS
5294
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
5295
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
5296
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
5297
apu_has_ldapssl_client_init="1"
5300
as_ac_Lib=`echo "ac_cv_lib_${ldaplib}''_ldapssl_client_deinit" | $as_tr_sh`
5301
echo "$as_me:$LINENO: checking for ldapssl_client_deinit in -l${ldaplib}" >&5
5302
echo $ECHO_N "checking for ldapssl_client_deinit in -l${ldaplib}... $ECHO_C" >&6
5303
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
5304
echo $ECHO_N "(cached) $ECHO_C" >&6
5306
ac_check_lib_save_LIBS=$LIBS
5307
LIBS="-l${ldaplib} ${extralib} $LIBS"
5308
cat >conftest.$ac_ext <<_ACEOF
5311
cat confdefs.h >>conftest.$ac_ext
5312
cat >>conftest.$ac_ext <<_ACEOF
5313
/* end confdefs.h. */
5315
/* Override any gcc2 internal prototype to avoid an error. */
5319
/* We use char because int might match the return type of a gcc2
5320
builtin and then its argument prototype would still apply. */
5321
char ldapssl_client_deinit ();
5325
ldapssl_client_deinit ();
5330
rm -f conftest.$ac_objext conftest$ac_exeext
5331
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5332
(eval $ac_link) 2>conftest.er1
5334
grep -v '^ *+' conftest.er1 >conftest.err
5336
cat conftest.err >&5
5337
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5338
(exit $ac_status); } &&
5339
{ ac_try='test -z "$ac_c_werror_flag"
5340
|| test ! -s conftest.err'
5341
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5344
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5345
(exit $ac_status); }; } &&
5346
{ ac_try='test -s conftest$ac_exeext'
5347
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5350
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5351
(exit $ac_status); }; }; then
5352
eval "$as_ac_Lib=yes"
5354
echo "$as_me: failed program was:" >&5
5355
sed 's/^/| /' conftest.$ac_ext >&5
5357
eval "$as_ac_Lib=no"
5359
rm -f conftest.err conftest.$ac_objext \
5360
conftest$ac_exeext conftest.$ac_ext
5361
LIBS=$ac_check_lib_save_LIBS
5363
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
5364
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
5365
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
5366
apu_has_ldapssl_client_deinit="1"
5369
as_ac_Lib=`echo "ac_cv_lib_${ldaplib}''_ldapssl_add_trusted_cert" | $as_tr_sh`
5370
echo "$as_me:$LINENO: checking for ldapssl_add_trusted_cert in -l${ldaplib}" >&5
5371
echo $ECHO_N "checking for ldapssl_add_trusted_cert in -l${ldaplib}... $ECHO_C" >&6
5372
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
5373
echo $ECHO_N "(cached) $ECHO_C" >&6
5375
ac_check_lib_save_LIBS=$LIBS
5376
LIBS="-l${ldaplib} ${extralib} $LIBS"
5377
cat >conftest.$ac_ext <<_ACEOF
5380
cat confdefs.h >>conftest.$ac_ext
5381
cat >>conftest.$ac_ext <<_ACEOF
5382
/* end confdefs.h. */
5384
/* Override any gcc2 internal prototype to avoid an error. */
5388
/* We use char because int might match the return type of a gcc2
5389
builtin and then its argument prototype would still apply. */
5390
char ldapssl_add_trusted_cert ();
5394
ldapssl_add_trusted_cert ();
5399
rm -f conftest.$ac_objext conftest$ac_exeext
5400
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5401
(eval $ac_link) 2>conftest.er1
5403
grep -v '^ *+' conftest.er1 >conftest.err
5405
cat conftest.err >&5
5406
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5407
(exit $ac_status); } &&
5408
{ ac_try='test -z "$ac_c_werror_flag"
5409
|| test ! -s conftest.err'
5410
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5413
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5414
(exit $ac_status); }; } &&
5415
{ ac_try='test -s conftest$ac_exeext'
5416
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5419
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5420
(exit $ac_status); }; }; then
5421
eval "$as_ac_Lib=yes"
5423
echo "$as_me: failed program was:" >&5
5424
sed 's/^/| /' conftest.$ac_ext >&5
5426
eval "$as_ac_Lib=no"
5428
rm -f conftest.err conftest.$ac_objext \
5429
conftest$ac_exeext conftest.$ac_ext
5430
LIBS=$ac_check_lib_save_LIBS
5432
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
5433
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
5434
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
5435
apu_has_ldapssl_add_trusted_cert="1"
5438
as_ac_Lib=`echo "ac_cv_lib_${ldaplib}''_ldap_start_tls_s" | $as_tr_sh`
5439
echo "$as_me:$LINENO: checking for ldap_start_tls_s in -l${ldaplib}" >&5
5440
echo $ECHO_N "checking for ldap_start_tls_s in -l${ldaplib}... $ECHO_C" >&6
5441
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
5442
echo $ECHO_N "(cached) $ECHO_C" >&6
5444
ac_check_lib_save_LIBS=$LIBS
5445
LIBS="-l${ldaplib} ${extralib} $LIBS"
5446
cat >conftest.$ac_ext <<_ACEOF
5449
cat confdefs.h >>conftest.$ac_ext
5450
cat >>conftest.$ac_ext <<_ACEOF
5451
/* end confdefs.h. */
5453
/* Override any gcc2 internal prototype to avoid an error. */
5457
/* We use char because int might match the return type of a gcc2
5458
builtin and then its argument prototype would still apply. */
5459
char ldap_start_tls_s ();
5463
ldap_start_tls_s ();
5468
rm -f conftest.$ac_objext conftest$ac_exeext
5469
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5470
(eval $ac_link) 2>conftest.er1
5472
grep -v '^ *+' conftest.er1 >conftest.err
5474
cat conftest.err >&5
5475
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5476
(exit $ac_status); } &&
5477
{ ac_try='test -z "$ac_c_werror_flag"
5478
|| test ! -s conftest.err'
5479
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5482
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5483
(exit $ac_status); }; } &&
5484
{ ac_try='test -s conftest$ac_exeext'
5485
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5488
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5489
(exit $ac_status); }; }; then
5490
eval "$as_ac_Lib=yes"
5492
echo "$as_me: failed program was:" >&5
5493
sed 's/^/| /' conftest.$ac_ext >&5
5495
eval "$as_ac_Lib=no"
5497
rm -f conftest.err conftest.$ac_objext \
5498
conftest$ac_exeext conftest.$ac_ext
5499
LIBS=$ac_check_lib_save_LIBS
5501
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
5502
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
5503
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
5504
apu_has_ldap_start_tls_s="1"
5507
as_ac_Lib=`echo "ac_cv_lib_${ldaplib}''_ldap_sslinit" | $as_tr_sh`
5508
echo "$as_me:$LINENO: checking for ldap_sslinit in -l${ldaplib}" >&5
5509
echo $ECHO_N "checking for ldap_sslinit in -l${ldaplib}... $ECHO_C" >&6
5510
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
5511
echo $ECHO_N "(cached) $ECHO_C" >&6
5513
ac_check_lib_save_LIBS=$LIBS
5514
LIBS="-l${ldaplib} ${extralib} $LIBS"
5515
cat >conftest.$ac_ext <<_ACEOF
5518
cat confdefs.h >>conftest.$ac_ext
5519
cat >>conftest.$ac_ext <<_ACEOF
5520
/* end confdefs.h. */
5522
/* Override any gcc2 internal prototype to avoid an error. */
5526
/* We use char because int might match the return type of a gcc2
5527
builtin and then its argument prototype would still apply. */
5528
char ldap_sslinit ();
5537
rm -f conftest.$ac_objext conftest$ac_exeext
5538
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5539
(eval $ac_link) 2>conftest.er1
5541
grep -v '^ *+' conftest.er1 >conftest.err
5543
cat conftest.err >&5
5544
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5545
(exit $ac_status); } &&
5546
{ ac_try='test -z "$ac_c_werror_flag"
5547
|| test ! -s conftest.err'
5548
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5551
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5552
(exit $ac_status); }; } &&
5553
{ ac_try='test -s conftest$ac_exeext'
5554
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5557
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5558
(exit $ac_status); }; }; then
5559
eval "$as_ac_Lib=yes"
5561
echo "$as_me: failed program was:" >&5
5562
sed 's/^/| /' conftest.$ac_ext >&5
5564
eval "$as_ac_Lib=no"
5566
rm -f conftest.err conftest.$ac_objext \
5567
conftest$ac_exeext conftest.$ac_ext
5568
LIBS=$ac_check_lib_save_LIBS
5570
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
5571
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
5572
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
5573
apu_has_ldap_sslinit="1"
5576
as_ac_Lib=`echo "ac_cv_lib_${ldaplib}''_ldapssl_init" | $as_tr_sh`
5577
echo "$as_me:$LINENO: checking for ldapssl_init in -l${ldaplib}" >&5
5578
echo $ECHO_N "checking for ldapssl_init in -l${ldaplib}... $ECHO_C" >&6
5579
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
5580
echo $ECHO_N "(cached) $ECHO_C" >&6
5582
ac_check_lib_save_LIBS=$LIBS
5583
LIBS="-l${ldaplib} ${extralib} $LIBS"
5584
cat >conftest.$ac_ext <<_ACEOF
5587
cat confdefs.h >>conftest.$ac_ext
5588
cat >>conftest.$ac_ext <<_ACEOF
5589
/* end confdefs.h. */
5591
/* Override any gcc2 internal prototype to avoid an error. */
5595
/* We use char because int might match the return type of a gcc2
5596
builtin and then its argument prototype would still apply. */
5597
char ldapssl_init ();
5606
rm -f conftest.$ac_objext conftest$ac_exeext
5607
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5608
(eval $ac_link) 2>conftest.er1
5610
grep -v '^ *+' conftest.er1 >conftest.err
5612
cat conftest.err >&5
5613
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5614
(exit $ac_status); } &&
5615
{ ac_try='test -z "$ac_c_werror_flag"
5616
|| test ! -s conftest.err'
5617
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5620
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5621
(exit $ac_status); }; } &&
5622
{ ac_try='test -s conftest$ac_exeext'
5623
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5626
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5627
(exit $ac_status); }; }; then
5628
eval "$as_ac_Lib=yes"
5630
echo "$as_me: failed program was:" >&5
5631
sed 's/^/| /' conftest.$ac_ext >&5
5633
eval "$as_ac_Lib=no"
5635
rm -f conftest.err conftest.$ac_objext \
5636
conftest$ac_exeext conftest.$ac_ext
5637
LIBS=$ac_check_lib_save_LIBS
5639
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
5640
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
5641
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
5642
apu_has_ldapssl_init="1"
5645
as_ac_Lib=`echo "ac_cv_lib_${ldaplib}''_ldapssl_install_routines" | $as_tr_sh`
5646
echo "$as_me:$LINENO: checking for ldapssl_install_routines in -l${ldaplib}" >&5
5647
echo $ECHO_N "checking for ldapssl_install_routines in -l${ldaplib}... $ECHO_C" >&6
5648
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
5649
echo $ECHO_N "(cached) $ECHO_C" >&6
5651
ac_check_lib_save_LIBS=$LIBS
5652
LIBS="-l${ldaplib} ${extralib} $LIBS"
5653
cat >conftest.$ac_ext <<_ACEOF
5656
cat confdefs.h >>conftest.$ac_ext
5657
cat >>conftest.$ac_ext <<_ACEOF
5658
/* end confdefs.h. */
5660
/* Override any gcc2 internal prototype to avoid an error. */
5664
/* We use char because int might match the return type of a gcc2
5665
builtin and then its argument prototype would still apply. */
5666
char ldapssl_install_routines ();
5670
ldapssl_install_routines ();
5675
rm -f conftest.$ac_objext conftest$ac_exeext
5676
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5677
(eval $ac_link) 2>conftest.er1
5679
grep -v '^ *+' conftest.er1 >conftest.err
5681
cat conftest.err >&5
5682
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5683
(exit $ac_status); } &&
5684
{ ac_try='test -z "$ac_c_werror_flag"
5685
|| test ! -s conftest.err'
5686
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5689
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5690
(exit $ac_status); }; } &&
5691
{ ac_try='test -s conftest$ac_exeext'
5692
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5695
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5696
(exit $ac_status); }; }; then
5697
eval "$as_ac_Lib=yes"
5699
echo "$as_me: failed program was:" >&5
5700
sed 's/^/| /' conftest.$ac_ext >&5
5702
eval "$as_ac_Lib=no"
5704
rm -f conftest.err conftest.$ac_objext \
5705
conftest$ac_exeext conftest.$ac_ext
5706
LIBS=$ac_check_lib_save_LIBS
5708
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
5709
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
5710
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
5711
apu_has_ldapssl_install_routines="1"
5721
if test ${apu_has_ldap} != "1"; then
5724
unset ac_cv_lib_${ldaplib}_ldap_init
5725
unset ac_cv_lib_${ldaplib}___ldap_init
5726
as_ac_Lib=`echo "ac_cv_lib_${ldaplib}''_ldap_init" | $as_tr_sh`
5727
echo "$as_me:$LINENO: checking for ldap_init in -l${ldaplib}" >&5
5728
echo $ECHO_N "checking for ldap_init in -l${ldaplib}... $ECHO_C" >&6
5729
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
5730
echo $ECHO_N "(cached) $ECHO_C" >&6
5732
ac_check_lib_save_LIBS=$LIBS
5733
LIBS="-l${ldaplib} ${extralib} $LIBS"
5734
cat >conftest.$ac_ext <<_ACEOF
5737
cat confdefs.h >>conftest.$ac_ext
5738
cat >>conftest.$ac_ext <<_ACEOF
5739
/* end confdefs.h. */
5741
/* Override any gcc2 internal prototype to avoid an error. */
5745
/* We use char because int might match the return type of a gcc2
5746
builtin and then its argument prototype would still apply. */
5756
rm -f conftest.$ac_objext conftest$ac_exeext
5757
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5758
(eval $ac_link) 2>conftest.er1
5760
grep -v '^ *+' conftest.er1 >conftest.err
5762
cat conftest.err >&5
5763
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5764
(exit $ac_status); } &&
5765
{ ac_try='test -z "$ac_c_werror_flag"
5766
|| test ! -s conftest.err'
5767
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5770
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5771
(exit $ac_status); }; } &&
5772
{ ac_try='test -s conftest$ac_exeext'
5773
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5776
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5777
(exit $ac_status); }; }; then
5778
eval "$as_ac_Lib=yes"
5780
echo "$as_me: failed program was:" >&5
5781
sed 's/^/| /' conftest.$ac_ext >&5
5783
eval "$as_ac_Lib=no"
5785
rm -f conftest.err conftest.$ac_objext \
5786
conftest$ac_exeext conftest.$ac_ext
5787
LIBS=$ac_check_lib_save_LIBS
5789
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
5790
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
5791
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
5794
if test "x$APRUTIL_EXPORT_LIBS" = "x"; then
5795
test "x$silent" != "xyes" && echo " setting APRUTIL_EXPORT_LIBS to \"-l${ldaplib} ${extralib}\""
5796
APRUTIL_EXPORT_LIBS="-l${ldaplib} ${extralib}"
5798
apr_addto_bugger="-l${ldaplib} ${extralib}"
5799
for i in $apr_addto_bugger; do
5800
apr_addto_duplicate="0"
5801
for j in $APRUTIL_EXPORT_LIBS; do
5802
if test "x$i" = "x$j"; then
5803
apr_addto_duplicate="1"
5807
if test $apr_addto_duplicate = "0"; then
5808
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_EXPORT_LIBS"
5809
APRUTIL_EXPORT_LIBS="$APRUTIL_EXPORT_LIBS $i"
5815
if test "x$APRUTIL_LIBS" = "x"; then
5816
test "x$silent" != "xyes" && echo " setting APRUTIL_LIBS to \"-l${ldaplib} ${extralib}\""
5817
APRUTIL_LIBS="-l${ldaplib} ${extralib}"
5819
apr_addto_bugger="-l${ldaplib} ${extralib}"
5820
for i in $apr_addto_bugger; do
5821
apr_addto_duplicate="0"
5822
for j in $APRUTIL_LIBS; do
5823
if test "x$i" = "x$j"; then
5824
apr_addto_duplicate="1"
5828
if test $apr_addto_duplicate = "0"; then
5829
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LIBS"
5830
APRUTIL_LIBS="$APRUTIL_LIBS $i"
5835
as_ac_Lib=`echo "ac_cv_lib_${ldaplib}''_ldapssl_client_init" | $as_tr_sh`
5836
echo "$as_me:$LINENO: checking for ldapssl_client_init in -l${ldaplib}" >&5
5837
echo $ECHO_N "checking for ldapssl_client_init in -l${ldaplib}... $ECHO_C" >&6
5838
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
5839
echo $ECHO_N "(cached) $ECHO_C" >&6
5841
ac_check_lib_save_LIBS=$LIBS
5842
LIBS="-l${ldaplib} ${extralib} $LIBS"
5843
cat >conftest.$ac_ext <<_ACEOF
5846
cat confdefs.h >>conftest.$ac_ext
5847
cat >>conftest.$ac_ext <<_ACEOF
5848
/* end confdefs.h. */
5850
/* Override any gcc2 internal prototype to avoid an error. */
5854
/* We use char because int might match the return type of a gcc2
5855
builtin and then its argument prototype would still apply. */
5856
char ldapssl_client_init ();
5860
ldapssl_client_init ();
5865
rm -f conftest.$ac_objext conftest$ac_exeext
5866
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5867
(eval $ac_link) 2>conftest.er1
5869
grep -v '^ *+' conftest.er1 >conftest.err
5871
cat conftest.err >&5
5872
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873
(exit $ac_status); } &&
5874
{ ac_try='test -z "$ac_c_werror_flag"
5875
|| test ! -s conftest.err'
5876
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5879
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5880
(exit $ac_status); }; } &&
5881
{ ac_try='test -s conftest$ac_exeext'
5882
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5885
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5886
(exit $ac_status); }; }; then
5887
eval "$as_ac_Lib=yes"
5889
echo "$as_me: failed program was:" >&5
5890
sed 's/^/| /' conftest.$ac_ext >&5
5892
eval "$as_ac_Lib=no"
5894
rm -f conftest.err conftest.$ac_objext \
5895
conftest$ac_exeext conftest.$ac_ext
5896
LIBS=$ac_check_lib_save_LIBS
5898
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
5899
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
5900
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
5901
apu_has_ldapssl_client_init="1"
5904
as_ac_Lib=`echo "ac_cv_lib_${ldaplib}''_ldapssl_client_deinit" | $as_tr_sh`
5905
echo "$as_me:$LINENO: checking for ldapssl_client_deinit in -l${ldaplib}" >&5
5906
echo $ECHO_N "checking for ldapssl_client_deinit in -l${ldaplib}... $ECHO_C" >&6
5907
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
5908
echo $ECHO_N "(cached) $ECHO_C" >&6
5910
ac_check_lib_save_LIBS=$LIBS
5911
LIBS="-l${ldaplib} ${extralib} $LIBS"
5912
cat >conftest.$ac_ext <<_ACEOF
5915
cat confdefs.h >>conftest.$ac_ext
5916
cat >>conftest.$ac_ext <<_ACEOF
5917
/* end confdefs.h. */
5919
/* Override any gcc2 internal prototype to avoid an error. */
5923
/* We use char because int might match the return type of a gcc2
5924
builtin and then its argument prototype would still apply. */
5925
char ldapssl_client_deinit ();
5929
ldapssl_client_deinit ();
5934
rm -f conftest.$ac_objext conftest$ac_exeext
5935
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5936
(eval $ac_link) 2>conftest.er1
5938
grep -v '^ *+' conftest.er1 >conftest.err
5940
cat conftest.err >&5
5941
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5942
(exit $ac_status); } &&
5943
{ ac_try='test -z "$ac_c_werror_flag"
5944
|| test ! -s conftest.err'
5945
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5948
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5949
(exit $ac_status); }; } &&
5950
{ ac_try='test -s conftest$ac_exeext'
5951
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5954
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5955
(exit $ac_status); }; }; then
5956
eval "$as_ac_Lib=yes"
5958
echo "$as_me: failed program was:" >&5
5959
sed 's/^/| /' conftest.$ac_ext >&5
5961
eval "$as_ac_Lib=no"
5963
rm -f conftest.err conftest.$ac_objext \
5964
conftest$ac_exeext conftest.$ac_ext
5965
LIBS=$ac_check_lib_save_LIBS
5967
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
5968
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
5969
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
5970
apu_has_ldapssl_client_deinit="1"
5973
as_ac_Lib=`echo "ac_cv_lib_${ldaplib}''_ldapssl_add_trusted_cert" | $as_tr_sh`
5974
echo "$as_me:$LINENO: checking for ldapssl_add_trusted_cert in -l${ldaplib}" >&5
5975
echo $ECHO_N "checking for ldapssl_add_trusted_cert in -l${ldaplib}... $ECHO_C" >&6
5976
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
5977
echo $ECHO_N "(cached) $ECHO_C" >&6
5979
ac_check_lib_save_LIBS=$LIBS
5980
LIBS="-l${ldaplib} ${extralib} $LIBS"
5981
cat >conftest.$ac_ext <<_ACEOF
5984
cat confdefs.h >>conftest.$ac_ext
5985
cat >>conftest.$ac_ext <<_ACEOF
5986
/* end confdefs.h. */
5988
/* Override any gcc2 internal prototype to avoid an error. */
5992
/* We use char because int might match the return type of a gcc2
5993
builtin and then its argument prototype would still apply. */
5994
char ldapssl_add_trusted_cert ();
5998
ldapssl_add_trusted_cert ();
6003
rm -f conftest.$ac_objext conftest$ac_exeext
6004
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6005
(eval $ac_link) 2>conftest.er1
6007
grep -v '^ *+' conftest.er1 >conftest.err
6009
cat conftest.err >&5
6010
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6011
(exit $ac_status); } &&
6012
{ ac_try='test -z "$ac_c_werror_flag"
6013
|| test ! -s conftest.err'
6014
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6017
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6018
(exit $ac_status); }; } &&
6019
{ ac_try='test -s conftest$ac_exeext'
6020
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6023
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6024
(exit $ac_status); }; }; then
6025
eval "$as_ac_Lib=yes"
6027
echo "$as_me: failed program was:" >&5
6028
sed 's/^/| /' conftest.$ac_ext >&5
6030
eval "$as_ac_Lib=no"
6032
rm -f conftest.err conftest.$ac_objext \
6033
conftest$ac_exeext conftest.$ac_ext
6034
LIBS=$ac_check_lib_save_LIBS
6036
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
6037
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
6038
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
6039
apu_has_ldapssl_add_trusted_cert="1"
6042
as_ac_Lib=`echo "ac_cv_lib_${ldaplib}''_ldap_start_tls_s" | $as_tr_sh`
6043
echo "$as_me:$LINENO: checking for ldap_start_tls_s in -l${ldaplib}" >&5
6044
echo $ECHO_N "checking for ldap_start_tls_s in -l${ldaplib}... $ECHO_C" >&6
6045
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
6046
echo $ECHO_N "(cached) $ECHO_C" >&6
6048
ac_check_lib_save_LIBS=$LIBS
6049
LIBS="-l${ldaplib} ${extralib} $LIBS"
6050
cat >conftest.$ac_ext <<_ACEOF
6053
cat confdefs.h >>conftest.$ac_ext
6054
cat >>conftest.$ac_ext <<_ACEOF
6055
/* end confdefs.h. */
6057
/* Override any gcc2 internal prototype to avoid an error. */
6061
/* We use char because int might match the return type of a gcc2
6062
builtin and then its argument prototype would still apply. */
6063
char ldap_start_tls_s ();
6067
ldap_start_tls_s ();
6072
rm -f conftest.$ac_objext conftest$ac_exeext
6073
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6074
(eval $ac_link) 2>conftest.er1
6076
grep -v '^ *+' conftest.er1 >conftest.err
6078
cat conftest.err >&5
6079
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6080
(exit $ac_status); } &&
6081
{ ac_try='test -z "$ac_c_werror_flag"
6082
|| test ! -s conftest.err'
6083
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6086
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6087
(exit $ac_status); }; } &&
6088
{ ac_try='test -s conftest$ac_exeext'
6089
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6092
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6093
(exit $ac_status); }; }; then
6094
eval "$as_ac_Lib=yes"
6096
echo "$as_me: failed program was:" >&5
6097
sed 's/^/| /' conftest.$ac_ext >&5
6099
eval "$as_ac_Lib=no"
6101
rm -f conftest.err conftest.$ac_objext \
6102
conftest$ac_exeext conftest.$ac_ext
6103
LIBS=$ac_check_lib_save_LIBS
6105
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
6106
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
6107
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
6108
apu_has_ldap_start_tls_s="1"
6111
as_ac_Lib=`echo "ac_cv_lib_${ldaplib}''_ldap_sslinit" | $as_tr_sh`
6112
echo "$as_me:$LINENO: checking for ldap_sslinit in -l${ldaplib}" >&5
6113
echo $ECHO_N "checking for ldap_sslinit in -l${ldaplib}... $ECHO_C" >&6
6114
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
6115
echo $ECHO_N "(cached) $ECHO_C" >&6
6117
ac_check_lib_save_LIBS=$LIBS
6118
LIBS="-l${ldaplib} ${extralib} $LIBS"
6119
cat >conftest.$ac_ext <<_ACEOF
6122
cat confdefs.h >>conftest.$ac_ext
6123
cat >>conftest.$ac_ext <<_ACEOF
6124
/* end confdefs.h. */
6126
/* Override any gcc2 internal prototype to avoid an error. */
6130
/* We use char because int might match the return type of a gcc2
6131
builtin and then its argument prototype would still apply. */
6132
char ldap_sslinit ();
6141
rm -f conftest.$ac_objext conftest$ac_exeext
6142
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6143
(eval $ac_link) 2>conftest.er1
6145
grep -v '^ *+' conftest.er1 >conftest.err
6147
cat conftest.err >&5
6148
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6149
(exit $ac_status); } &&
6150
{ ac_try='test -z "$ac_c_werror_flag"
6151
|| test ! -s conftest.err'
6152
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6155
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6156
(exit $ac_status); }; } &&
6157
{ ac_try='test -s conftest$ac_exeext'
6158
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6161
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6162
(exit $ac_status); }; }; then
6163
eval "$as_ac_Lib=yes"
6165
echo "$as_me: failed program was:" >&5
6166
sed 's/^/| /' conftest.$ac_ext >&5
6168
eval "$as_ac_Lib=no"
6170
rm -f conftest.err conftest.$ac_objext \
6171
conftest$ac_exeext conftest.$ac_ext
6172
LIBS=$ac_check_lib_save_LIBS
6174
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
6175
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
6176
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
6177
apu_has_ldap_sslinit="1"
6180
as_ac_Lib=`echo "ac_cv_lib_${ldaplib}''_ldapssl_init" | $as_tr_sh`
6181
echo "$as_me:$LINENO: checking for ldapssl_init in -l${ldaplib}" >&5
6182
echo $ECHO_N "checking for ldapssl_init in -l${ldaplib}... $ECHO_C" >&6
6183
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
6184
echo $ECHO_N "(cached) $ECHO_C" >&6
6186
ac_check_lib_save_LIBS=$LIBS
6187
LIBS="-l${ldaplib} ${extralib} $LIBS"
6188
cat >conftest.$ac_ext <<_ACEOF
6191
cat confdefs.h >>conftest.$ac_ext
6192
cat >>conftest.$ac_ext <<_ACEOF
6193
/* end confdefs.h. */
6195
/* Override any gcc2 internal prototype to avoid an error. */
6199
/* We use char because int might match the return type of a gcc2
6200
builtin and then its argument prototype would still apply. */
6201
char ldapssl_init ();
6210
rm -f conftest.$ac_objext conftest$ac_exeext
6211
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6212
(eval $ac_link) 2>conftest.er1
6214
grep -v '^ *+' conftest.er1 >conftest.err
6216
cat conftest.err >&5
6217
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6218
(exit $ac_status); } &&
6219
{ ac_try='test -z "$ac_c_werror_flag"
6220
|| test ! -s conftest.err'
6221
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6224
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6225
(exit $ac_status); }; } &&
6226
{ ac_try='test -s conftest$ac_exeext'
6227
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6230
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6231
(exit $ac_status); }; }; then
6232
eval "$as_ac_Lib=yes"
6234
echo "$as_me: failed program was:" >&5
6235
sed 's/^/| /' conftest.$ac_ext >&5
6237
eval "$as_ac_Lib=no"
6239
rm -f conftest.err conftest.$ac_objext \
6240
conftest$ac_exeext conftest.$ac_ext
6241
LIBS=$ac_check_lib_save_LIBS
6243
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
6244
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
6245
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
6246
apu_has_ldapssl_init="1"
6249
as_ac_Lib=`echo "ac_cv_lib_${ldaplib}''_ldapssl_install_routines" | $as_tr_sh`
6250
echo "$as_me:$LINENO: checking for ldapssl_install_routines in -l${ldaplib}" >&5
6251
echo $ECHO_N "checking for ldapssl_install_routines in -l${ldaplib}... $ECHO_C" >&6
6252
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
6253
echo $ECHO_N "(cached) $ECHO_C" >&6
6255
ac_check_lib_save_LIBS=$LIBS
6256
LIBS="-l${ldaplib} ${extralib} $LIBS"
6257
cat >conftest.$ac_ext <<_ACEOF
6260
cat confdefs.h >>conftest.$ac_ext
6261
cat >>conftest.$ac_ext <<_ACEOF
6262
/* end confdefs.h. */
6264
/* Override any gcc2 internal prototype to avoid an error. */
6268
/* We use char because int might match the return type of a gcc2
6269
builtin and then its argument prototype would still apply. */
6270
char ldapssl_install_routines ();
6274
ldapssl_install_routines ();
6279
rm -f conftest.$ac_objext conftest$ac_exeext
6280
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6281
(eval $ac_link) 2>conftest.er1
6283
grep -v '^ *+' conftest.er1 >conftest.err
6285
cat conftest.err >&5
6286
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6287
(exit $ac_status); } &&
6288
{ ac_try='test -z "$ac_c_werror_flag"
6289
|| test ! -s conftest.err'
6290
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6293
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6294
(exit $ac_status); }; } &&
6295
{ ac_try='test -s conftest$ac_exeext'
6296
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6299
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6300
(exit $ac_status); }; }; then
6301
eval "$as_ac_Lib=yes"
6303
echo "$as_me: failed program was:" >&5
6304
sed 's/^/| /' conftest.$ac_ext >&5
6306
eval "$as_ac_Lib=no"
6308
rm -f conftest.err conftest.$ac_objext \
6309
conftest$ac_exeext conftest.$ac_ext
6310
LIBS=$ac_check_lib_save_LIBS
6312
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
6313
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
6314
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
6315
apu_has_ldapssl_install_routines="1"
6325
if test ${apu_has_ldap} != "1"; then
6328
unset ac_cv_lib_${ldaplib}_ldap_init
6329
unset ac_cv_lib_${ldaplib}___ldap_init
6330
as_ac_Lib=`echo "ac_cv_lib_${ldaplib}''_ldap_init" | $as_tr_sh`
6331
echo "$as_me:$LINENO: checking for ldap_init in -l${ldaplib}" >&5
6332
echo $ECHO_N "checking for ldap_init in -l${ldaplib}... $ECHO_C" >&6
6333
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
6334
echo $ECHO_N "(cached) $ECHO_C" >&6
6336
ac_check_lib_save_LIBS=$LIBS
6337
LIBS="-l${ldaplib} ${extralib} $LIBS"
6338
cat >conftest.$ac_ext <<_ACEOF
6341
cat confdefs.h >>conftest.$ac_ext
6342
cat >>conftest.$ac_ext <<_ACEOF
6343
/* end confdefs.h. */
6345
/* Override any gcc2 internal prototype to avoid an error. */
6349
/* We use char because int might match the return type of a gcc2
6350
builtin and then its argument prototype would still apply. */
6360
rm -f conftest.$ac_objext conftest$ac_exeext
6361
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6362
(eval $ac_link) 2>conftest.er1
6364
grep -v '^ *+' conftest.er1 >conftest.err
6366
cat conftest.err >&5
6367
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6368
(exit $ac_status); } &&
6369
{ ac_try='test -z "$ac_c_werror_flag"
6370
|| test ! -s conftest.err'
6371
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6374
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6375
(exit $ac_status); }; } &&
6376
{ ac_try='test -s conftest$ac_exeext'
6377
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6380
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6381
(exit $ac_status); }; }; then
6382
eval "$as_ac_Lib=yes"
6384
echo "$as_me: failed program was:" >&5
6385
sed 's/^/| /' conftest.$ac_ext >&5
6387
eval "$as_ac_Lib=no"
6389
rm -f conftest.err conftest.$ac_objext \
6390
conftest$ac_exeext conftest.$ac_ext
6391
LIBS=$ac_check_lib_save_LIBS
6393
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
6394
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
6395
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
6398
if test "x$APRUTIL_EXPORT_LIBS" = "x"; then
6399
test "x$silent" != "xyes" && echo " setting APRUTIL_EXPORT_LIBS to \"-l${ldaplib} ${extralib}\""
6400
APRUTIL_EXPORT_LIBS="-l${ldaplib} ${extralib}"
6402
apr_addto_bugger="-l${ldaplib} ${extralib}"
6403
for i in $apr_addto_bugger; do
6404
apr_addto_duplicate="0"
6405
for j in $APRUTIL_EXPORT_LIBS; do
6406
if test "x$i" = "x$j"; then
6407
apr_addto_duplicate="1"
6411
if test $apr_addto_duplicate = "0"; then
6412
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_EXPORT_LIBS"
6413
APRUTIL_EXPORT_LIBS="$APRUTIL_EXPORT_LIBS $i"
6419
if test "x$APRUTIL_LIBS" = "x"; then
6420
test "x$silent" != "xyes" && echo " setting APRUTIL_LIBS to \"-l${ldaplib} ${extralib}\""
6421
APRUTIL_LIBS="-l${ldaplib} ${extralib}"
6423
apr_addto_bugger="-l${ldaplib} ${extralib}"
6424
for i in $apr_addto_bugger; do
6425
apr_addto_duplicate="0"
6426
for j in $APRUTIL_LIBS; do
6427
if test "x$i" = "x$j"; then
6428
apr_addto_duplicate="1"
6432
if test $apr_addto_duplicate = "0"; then
6433
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LIBS"
6434
APRUTIL_LIBS="$APRUTIL_LIBS $i"
6439
as_ac_Lib=`echo "ac_cv_lib_${ldaplib}''_ldapssl_client_init" | $as_tr_sh`
6440
echo "$as_me:$LINENO: checking for ldapssl_client_init in -l${ldaplib}" >&5
6441
echo $ECHO_N "checking for ldapssl_client_init in -l${ldaplib}... $ECHO_C" >&6
6442
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
6443
echo $ECHO_N "(cached) $ECHO_C" >&6
6445
ac_check_lib_save_LIBS=$LIBS
6446
LIBS="-l${ldaplib} ${extralib} $LIBS"
6447
cat >conftest.$ac_ext <<_ACEOF
6450
cat confdefs.h >>conftest.$ac_ext
6451
cat >>conftest.$ac_ext <<_ACEOF
6452
/* end confdefs.h. */
6454
/* Override any gcc2 internal prototype to avoid an error. */
6458
/* We use char because int might match the return type of a gcc2
6459
builtin and then its argument prototype would still apply. */
6460
char ldapssl_client_init ();
6464
ldapssl_client_init ();
6469
rm -f conftest.$ac_objext conftest$ac_exeext
6470
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6471
(eval $ac_link) 2>conftest.er1
6473
grep -v '^ *+' conftest.er1 >conftest.err
6475
cat conftest.err >&5
6476
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6477
(exit $ac_status); } &&
6478
{ ac_try='test -z "$ac_c_werror_flag"
6479
|| test ! -s conftest.err'
6480
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6483
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6484
(exit $ac_status); }; } &&
6485
{ ac_try='test -s conftest$ac_exeext'
6486
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6489
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6490
(exit $ac_status); }; }; then
6491
eval "$as_ac_Lib=yes"
6493
echo "$as_me: failed program was:" >&5
6494
sed 's/^/| /' conftest.$ac_ext >&5
6496
eval "$as_ac_Lib=no"
6498
rm -f conftest.err conftest.$ac_objext \
6499
conftest$ac_exeext conftest.$ac_ext
6500
LIBS=$ac_check_lib_save_LIBS
6502
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
6503
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
6504
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
6505
apu_has_ldapssl_client_init="1"
6508
as_ac_Lib=`echo "ac_cv_lib_${ldaplib}''_ldapssl_client_deinit" | $as_tr_sh`
6509
echo "$as_me:$LINENO: checking for ldapssl_client_deinit in -l${ldaplib}" >&5
6510
echo $ECHO_N "checking for ldapssl_client_deinit in -l${ldaplib}... $ECHO_C" >&6
6511
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
6512
echo $ECHO_N "(cached) $ECHO_C" >&6
6514
ac_check_lib_save_LIBS=$LIBS
6515
LIBS="-l${ldaplib} ${extralib} $LIBS"
6516
cat >conftest.$ac_ext <<_ACEOF
6519
cat confdefs.h >>conftest.$ac_ext
6520
cat >>conftest.$ac_ext <<_ACEOF
6521
/* end confdefs.h. */
6523
/* Override any gcc2 internal prototype to avoid an error. */
6527
/* We use char because int might match the return type of a gcc2
6528
builtin and then its argument prototype would still apply. */
6529
char ldapssl_client_deinit ();
6533
ldapssl_client_deinit ();
6538
rm -f conftest.$ac_objext conftest$ac_exeext
6539
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6540
(eval $ac_link) 2>conftest.er1
6542
grep -v '^ *+' conftest.er1 >conftest.err
6544
cat conftest.err >&5
6545
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6546
(exit $ac_status); } &&
6547
{ ac_try='test -z "$ac_c_werror_flag"
6548
|| test ! -s conftest.err'
6549
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6552
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6553
(exit $ac_status); }; } &&
6554
{ ac_try='test -s conftest$ac_exeext'
6555
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6558
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6559
(exit $ac_status); }; }; then
6560
eval "$as_ac_Lib=yes"
6562
echo "$as_me: failed program was:" >&5
6563
sed 's/^/| /' conftest.$ac_ext >&5
6565
eval "$as_ac_Lib=no"
6567
rm -f conftest.err conftest.$ac_objext \
6568
conftest$ac_exeext conftest.$ac_ext
6569
LIBS=$ac_check_lib_save_LIBS
6571
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
6572
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
6573
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
6574
apu_has_ldapssl_client_deinit="1"
6577
as_ac_Lib=`echo "ac_cv_lib_${ldaplib}''_ldapssl_add_trusted_cert" | $as_tr_sh`
6578
echo "$as_me:$LINENO: checking for ldapssl_add_trusted_cert in -l${ldaplib}" >&5
6579
echo $ECHO_N "checking for ldapssl_add_trusted_cert in -l${ldaplib}... $ECHO_C" >&6
6580
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
6581
echo $ECHO_N "(cached) $ECHO_C" >&6
6583
ac_check_lib_save_LIBS=$LIBS
6584
LIBS="-l${ldaplib} ${extralib} $LIBS"
6585
cat >conftest.$ac_ext <<_ACEOF
6588
cat confdefs.h >>conftest.$ac_ext
6589
cat >>conftest.$ac_ext <<_ACEOF
6590
/* end confdefs.h. */
6592
/* Override any gcc2 internal prototype to avoid an error. */
6596
/* We use char because int might match the return type of a gcc2
6597
builtin and then its argument prototype would still apply. */
6598
char ldapssl_add_trusted_cert ();
6602
ldapssl_add_trusted_cert ();
6607
rm -f conftest.$ac_objext conftest$ac_exeext
6608
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6609
(eval $ac_link) 2>conftest.er1
6611
grep -v '^ *+' conftest.er1 >conftest.err
6613
cat conftest.err >&5
6614
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6615
(exit $ac_status); } &&
6616
{ ac_try='test -z "$ac_c_werror_flag"
6617
|| test ! -s conftest.err'
6618
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6621
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6622
(exit $ac_status); }; } &&
6623
{ ac_try='test -s conftest$ac_exeext'
6624
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6627
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6628
(exit $ac_status); }; }; then
6629
eval "$as_ac_Lib=yes"
6631
echo "$as_me: failed program was:" >&5
6632
sed 's/^/| /' conftest.$ac_ext >&5
6634
eval "$as_ac_Lib=no"
6636
rm -f conftest.err conftest.$ac_objext \
6637
conftest$ac_exeext conftest.$ac_ext
6638
LIBS=$ac_check_lib_save_LIBS
6640
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
6641
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
6642
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
6643
apu_has_ldapssl_add_trusted_cert="1"
6646
as_ac_Lib=`echo "ac_cv_lib_${ldaplib}''_ldap_start_tls_s" | $as_tr_sh`
6647
echo "$as_me:$LINENO: checking for ldap_start_tls_s in -l${ldaplib}" >&5
6648
echo $ECHO_N "checking for ldap_start_tls_s in -l${ldaplib}... $ECHO_C" >&6
6649
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
6650
echo $ECHO_N "(cached) $ECHO_C" >&6
6652
ac_check_lib_save_LIBS=$LIBS
6653
LIBS="-l${ldaplib} ${extralib} $LIBS"
6654
cat >conftest.$ac_ext <<_ACEOF
6657
cat confdefs.h >>conftest.$ac_ext
6658
cat >>conftest.$ac_ext <<_ACEOF
6659
/* end confdefs.h. */
6661
/* Override any gcc2 internal prototype to avoid an error. */
6665
/* We use char because int might match the return type of a gcc2
6666
builtin and then its argument prototype would still apply. */
6667
char ldap_start_tls_s ();
6671
ldap_start_tls_s ();
6676
rm -f conftest.$ac_objext conftest$ac_exeext
6677
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6678
(eval $ac_link) 2>conftest.er1
6680
grep -v '^ *+' conftest.er1 >conftest.err
6682
cat conftest.err >&5
6683
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6684
(exit $ac_status); } &&
6685
{ ac_try='test -z "$ac_c_werror_flag"
6686
|| test ! -s conftest.err'
6687
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6690
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6691
(exit $ac_status); }; } &&
6692
{ ac_try='test -s conftest$ac_exeext'
6693
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6696
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6697
(exit $ac_status); }; }; then
6698
eval "$as_ac_Lib=yes"
6700
echo "$as_me: failed program was:" >&5
6701
sed 's/^/| /' conftest.$ac_ext >&5
6703
eval "$as_ac_Lib=no"
6705
rm -f conftest.err conftest.$ac_objext \
6706
conftest$ac_exeext conftest.$ac_ext
6707
LIBS=$ac_check_lib_save_LIBS
6709
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
6710
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
6711
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
6712
apu_has_ldap_start_tls_s="1"
6715
as_ac_Lib=`echo "ac_cv_lib_${ldaplib}''_ldap_sslinit" | $as_tr_sh`
6716
echo "$as_me:$LINENO: checking for ldap_sslinit in -l${ldaplib}" >&5
6717
echo $ECHO_N "checking for ldap_sslinit in -l${ldaplib}... $ECHO_C" >&6
6718
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
6719
echo $ECHO_N "(cached) $ECHO_C" >&6
6721
ac_check_lib_save_LIBS=$LIBS
6722
LIBS="-l${ldaplib} ${extralib} $LIBS"
6723
cat >conftest.$ac_ext <<_ACEOF
6726
cat confdefs.h >>conftest.$ac_ext
6727
cat >>conftest.$ac_ext <<_ACEOF
6728
/* end confdefs.h. */
6730
/* Override any gcc2 internal prototype to avoid an error. */
6734
/* We use char because int might match the return type of a gcc2
6735
builtin and then its argument prototype would still apply. */
6736
char ldap_sslinit ();
6745
rm -f conftest.$ac_objext conftest$ac_exeext
6746
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6747
(eval $ac_link) 2>conftest.er1
6749
grep -v '^ *+' conftest.er1 >conftest.err
6751
cat conftest.err >&5
6752
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6753
(exit $ac_status); } &&
6754
{ ac_try='test -z "$ac_c_werror_flag"
6755
|| test ! -s conftest.err'
6756
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6759
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6760
(exit $ac_status); }; } &&
6761
{ ac_try='test -s conftest$ac_exeext'
6762
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6765
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6766
(exit $ac_status); }; }; then
6767
eval "$as_ac_Lib=yes"
6769
echo "$as_me: failed program was:" >&5
6770
sed 's/^/| /' conftest.$ac_ext >&5
6772
eval "$as_ac_Lib=no"
6774
rm -f conftest.err conftest.$ac_objext \
6775
conftest$ac_exeext conftest.$ac_ext
6776
LIBS=$ac_check_lib_save_LIBS
6778
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
6779
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
6780
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
6781
apu_has_ldap_sslinit="1"
6784
as_ac_Lib=`echo "ac_cv_lib_${ldaplib}''_ldapssl_init" | $as_tr_sh`
6785
echo "$as_me:$LINENO: checking for ldapssl_init in -l${ldaplib}" >&5
6786
echo $ECHO_N "checking for ldapssl_init in -l${ldaplib}... $ECHO_C" >&6
6787
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
6788
echo $ECHO_N "(cached) $ECHO_C" >&6
6790
ac_check_lib_save_LIBS=$LIBS
6791
LIBS="-l${ldaplib} ${extralib} $LIBS"
6792
cat >conftest.$ac_ext <<_ACEOF
6795
cat confdefs.h >>conftest.$ac_ext
6796
cat >>conftest.$ac_ext <<_ACEOF
6797
/* end confdefs.h. */
6799
/* Override any gcc2 internal prototype to avoid an error. */
6803
/* We use char because int might match the return type of a gcc2
6804
builtin and then its argument prototype would still apply. */
6805
char ldapssl_init ();
6814
rm -f conftest.$ac_objext conftest$ac_exeext
6815
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6816
(eval $ac_link) 2>conftest.er1
6818
grep -v '^ *+' conftest.er1 >conftest.err
6820
cat conftest.err >&5
6821
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6822
(exit $ac_status); } &&
6823
{ ac_try='test -z "$ac_c_werror_flag"
6824
|| test ! -s conftest.err'
6825
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6828
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6829
(exit $ac_status); }; } &&
6830
{ ac_try='test -s conftest$ac_exeext'
6831
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6834
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6835
(exit $ac_status); }; }; then
6836
eval "$as_ac_Lib=yes"
6838
echo "$as_me: failed program was:" >&5
6839
sed 's/^/| /' conftest.$ac_ext >&5
6841
eval "$as_ac_Lib=no"
6843
rm -f conftest.err conftest.$ac_objext \
6844
conftest$ac_exeext conftest.$ac_ext
6845
LIBS=$ac_check_lib_save_LIBS
6847
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
6848
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
6849
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
6850
apu_has_ldapssl_init="1"
6853
as_ac_Lib=`echo "ac_cv_lib_${ldaplib}''_ldapssl_install_routines" | $as_tr_sh`
6854
echo "$as_me:$LINENO: checking for ldapssl_install_routines in -l${ldaplib}" >&5
6855
echo $ECHO_N "checking for ldapssl_install_routines in -l${ldaplib}... $ECHO_C" >&6
6856
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
6857
echo $ECHO_N "(cached) $ECHO_C" >&6
6859
ac_check_lib_save_LIBS=$LIBS
6860
LIBS="-l${ldaplib} ${extralib} $LIBS"
6861
cat >conftest.$ac_ext <<_ACEOF
6864
cat confdefs.h >>conftest.$ac_ext
6865
cat >>conftest.$ac_ext <<_ACEOF
6866
/* end confdefs.h. */
6868
/* Override any gcc2 internal prototype to avoid an error. */
6872
/* We use char because int might match the return type of a gcc2
6873
builtin and then its argument prototype would still apply. */
6874
char ldapssl_install_routines ();
6878
ldapssl_install_routines ();
6883
rm -f conftest.$ac_objext conftest$ac_exeext
6884
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6885
(eval $ac_link) 2>conftest.er1
6887
grep -v '^ *+' conftest.er1 >conftest.err
6889
cat conftest.err >&5
6890
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6891
(exit $ac_status); } &&
6892
{ ac_try='test -z "$ac_c_werror_flag"
6893
|| test ! -s conftest.err'
6894
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6897
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6898
(exit $ac_status); }; } &&
6899
{ ac_try='test -s conftest$ac_exeext'
6900
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6903
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6904
(exit $ac_status); }; }; then
6905
eval "$as_ac_Lib=yes"
6907
echo "$as_me: failed program was:" >&5
6908
sed 's/^/| /' conftest.$ac_ext >&5
6910
eval "$as_ac_Lib=no"
6912
rm -f conftest.err conftest.$ac_objext \
6913
conftest$ac_exeext conftest.$ac_ext
6914
LIBS=$ac_check_lib_save_LIBS
6916
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
6917
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
6918
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
6919
apu_has_ldapssl_install_routines="1"
6929
if test ${apu_has_ldap} != "1"; then
6931
extralib="-lldapx -lldapssl -lldapgss -lgssapi_krb5"
6932
unset ac_cv_lib_${ldaplib}_ldap_init
6933
unset ac_cv_lib_${ldaplib}___ldap_init
6934
as_ac_Lib=`echo "ac_cv_lib_${ldaplib}''_ldap_init" | $as_tr_sh`
6935
echo "$as_me:$LINENO: checking for ldap_init in -l${ldaplib}" >&5
6936
echo $ECHO_N "checking for ldap_init in -l${ldaplib}... $ECHO_C" >&6
6937
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
6938
echo $ECHO_N "(cached) $ECHO_C" >&6
6940
ac_check_lib_save_LIBS=$LIBS
6941
LIBS="-l${ldaplib} ${extralib} $LIBS"
6942
cat >conftest.$ac_ext <<_ACEOF
6945
cat confdefs.h >>conftest.$ac_ext
6946
cat >>conftest.$ac_ext <<_ACEOF
6947
/* end confdefs.h. */
6949
/* Override any gcc2 internal prototype to avoid an error. */
6953
/* We use char because int might match the return type of a gcc2
6954
builtin and then its argument prototype would still apply. */
6964
rm -f conftest.$ac_objext conftest$ac_exeext
6965
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6966
(eval $ac_link) 2>conftest.er1
6968
grep -v '^ *+' conftest.er1 >conftest.err
6970
cat conftest.err >&5
6971
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6972
(exit $ac_status); } &&
6973
{ ac_try='test -z "$ac_c_werror_flag"
6974
|| test ! -s conftest.err'
6975
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6978
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6979
(exit $ac_status); }; } &&
6980
{ ac_try='test -s conftest$ac_exeext'
6981
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6984
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6985
(exit $ac_status); }; }; then
6986
eval "$as_ac_Lib=yes"
6988
echo "$as_me: failed program was:" >&5
6989
sed 's/^/| /' conftest.$ac_ext >&5
6991
eval "$as_ac_Lib=no"
6993
rm -f conftest.err conftest.$ac_objext \
6994
conftest$ac_exeext conftest.$ac_ext
6995
LIBS=$ac_check_lib_save_LIBS
6997
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
6998
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
6999
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
7002
if test "x$APRUTIL_EXPORT_LIBS" = "x"; then
7003
test "x$silent" != "xyes" && echo " setting APRUTIL_EXPORT_LIBS to \"-l${ldaplib} ${extralib}\""
7004
APRUTIL_EXPORT_LIBS="-l${ldaplib} ${extralib}"
7006
apr_addto_bugger="-l${ldaplib} ${extralib}"
7007
for i in $apr_addto_bugger; do
7008
apr_addto_duplicate="0"
7009
for j in $APRUTIL_EXPORT_LIBS; do
7010
if test "x$i" = "x$j"; then
7011
apr_addto_duplicate="1"
7015
if test $apr_addto_duplicate = "0"; then
7016
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_EXPORT_LIBS"
7017
APRUTIL_EXPORT_LIBS="$APRUTIL_EXPORT_LIBS $i"
7023
if test "x$APRUTIL_LIBS" = "x"; then
7024
test "x$silent" != "xyes" && echo " setting APRUTIL_LIBS to \"-l${ldaplib} ${extralib}\""
7025
APRUTIL_LIBS="-l${ldaplib} ${extralib}"
7027
apr_addto_bugger="-l${ldaplib} ${extralib}"
7028
for i in $apr_addto_bugger; do
7029
apr_addto_duplicate="0"
7030
for j in $APRUTIL_LIBS; do
7031
if test "x$i" = "x$j"; then
7032
apr_addto_duplicate="1"
7036
if test $apr_addto_duplicate = "0"; then
7037
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LIBS"
7038
APRUTIL_LIBS="$APRUTIL_LIBS $i"
7043
as_ac_Lib=`echo "ac_cv_lib_${ldaplib}''_ldapssl_client_init" | $as_tr_sh`
7044
echo "$as_me:$LINENO: checking for ldapssl_client_init in -l${ldaplib}" >&5
7045
echo $ECHO_N "checking for ldapssl_client_init in -l${ldaplib}... $ECHO_C" >&6
7046
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
7047
echo $ECHO_N "(cached) $ECHO_C" >&6
7049
ac_check_lib_save_LIBS=$LIBS
7050
LIBS="-l${ldaplib} ${extralib} $LIBS"
7051
cat >conftest.$ac_ext <<_ACEOF
7054
cat confdefs.h >>conftest.$ac_ext
7055
cat >>conftest.$ac_ext <<_ACEOF
7056
/* end confdefs.h. */
7058
/* Override any gcc2 internal prototype to avoid an error. */
7062
/* We use char because int might match the return type of a gcc2
7063
builtin and then its argument prototype would still apply. */
7064
char ldapssl_client_init ();
7068
ldapssl_client_init ();
7073
rm -f conftest.$ac_objext conftest$ac_exeext
7074
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7075
(eval $ac_link) 2>conftest.er1
7077
grep -v '^ *+' conftest.er1 >conftest.err
7079
cat conftest.err >&5
7080
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7081
(exit $ac_status); } &&
7082
{ ac_try='test -z "$ac_c_werror_flag"
7083
|| test ! -s conftest.err'
7084
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7087
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7088
(exit $ac_status); }; } &&
7089
{ ac_try='test -s conftest$ac_exeext'
7090
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7093
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7094
(exit $ac_status); }; }; then
7095
eval "$as_ac_Lib=yes"
7097
echo "$as_me: failed program was:" >&5
7098
sed 's/^/| /' conftest.$ac_ext >&5
7100
eval "$as_ac_Lib=no"
7102
rm -f conftest.err conftest.$ac_objext \
7103
conftest$ac_exeext conftest.$ac_ext
7104
LIBS=$ac_check_lib_save_LIBS
7106
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
7107
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
7108
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
7109
apu_has_ldapssl_client_init="1"
7112
as_ac_Lib=`echo "ac_cv_lib_${ldaplib}''_ldapssl_client_deinit" | $as_tr_sh`
7113
echo "$as_me:$LINENO: checking for ldapssl_client_deinit in -l${ldaplib}" >&5
7114
echo $ECHO_N "checking for ldapssl_client_deinit in -l${ldaplib}... $ECHO_C" >&6
7115
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
7116
echo $ECHO_N "(cached) $ECHO_C" >&6
7118
ac_check_lib_save_LIBS=$LIBS
7119
LIBS="-l${ldaplib} ${extralib} $LIBS"
7120
cat >conftest.$ac_ext <<_ACEOF
7123
cat confdefs.h >>conftest.$ac_ext
7124
cat >>conftest.$ac_ext <<_ACEOF
7125
/* end confdefs.h. */
7127
/* Override any gcc2 internal prototype to avoid an error. */
7131
/* We use char because int might match the return type of a gcc2
7132
builtin and then its argument prototype would still apply. */
7133
char ldapssl_client_deinit ();
7137
ldapssl_client_deinit ();
7142
rm -f conftest.$ac_objext conftest$ac_exeext
7143
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7144
(eval $ac_link) 2>conftest.er1
7146
grep -v '^ *+' conftest.er1 >conftest.err
7148
cat conftest.err >&5
7149
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7150
(exit $ac_status); } &&
7151
{ ac_try='test -z "$ac_c_werror_flag"
7152
|| test ! -s conftest.err'
7153
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7156
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7157
(exit $ac_status); }; } &&
7158
{ ac_try='test -s conftest$ac_exeext'
7159
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7162
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7163
(exit $ac_status); }; }; then
7164
eval "$as_ac_Lib=yes"
7166
echo "$as_me: failed program was:" >&5
7167
sed 's/^/| /' conftest.$ac_ext >&5
7169
eval "$as_ac_Lib=no"
7171
rm -f conftest.err conftest.$ac_objext \
7172
conftest$ac_exeext conftest.$ac_ext
7173
LIBS=$ac_check_lib_save_LIBS
7175
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
7176
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
7177
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
7178
apu_has_ldapssl_client_deinit="1"
7181
as_ac_Lib=`echo "ac_cv_lib_${ldaplib}''_ldapssl_add_trusted_cert" | $as_tr_sh`
7182
echo "$as_me:$LINENO: checking for ldapssl_add_trusted_cert in -l${ldaplib}" >&5
7183
echo $ECHO_N "checking for ldapssl_add_trusted_cert in -l${ldaplib}... $ECHO_C" >&6
7184
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
7185
echo $ECHO_N "(cached) $ECHO_C" >&6
7187
ac_check_lib_save_LIBS=$LIBS
7188
LIBS="-l${ldaplib} ${extralib} $LIBS"
7189
cat >conftest.$ac_ext <<_ACEOF
7192
cat confdefs.h >>conftest.$ac_ext
7193
cat >>conftest.$ac_ext <<_ACEOF
7194
/* end confdefs.h. */
7196
/* Override any gcc2 internal prototype to avoid an error. */
7200
/* We use char because int might match the return type of a gcc2
7201
builtin and then its argument prototype would still apply. */
7202
char ldapssl_add_trusted_cert ();
7206
ldapssl_add_trusted_cert ();
7211
rm -f conftest.$ac_objext conftest$ac_exeext
7212
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7213
(eval $ac_link) 2>conftest.er1
7215
grep -v '^ *+' conftest.er1 >conftest.err
7217
cat conftest.err >&5
7218
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7219
(exit $ac_status); } &&
7220
{ ac_try='test -z "$ac_c_werror_flag"
7221
|| test ! -s conftest.err'
7222
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7225
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7226
(exit $ac_status); }; } &&
7227
{ ac_try='test -s conftest$ac_exeext'
7228
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7231
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7232
(exit $ac_status); }; }; then
7233
eval "$as_ac_Lib=yes"
7235
echo "$as_me: failed program was:" >&5
7236
sed 's/^/| /' conftest.$ac_ext >&5
7238
eval "$as_ac_Lib=no"
7240
rm -f conftest.err conftest.$ac_objext \
7241
conftest$ac_exeext conftest.$ac_ext
7242
LIBS=$ac_check_lib_save_LIBS
7244
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
7245
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
7246
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
7247
apu_has_ldapssl_add_trusted_cert="1"
7250
as_ac_Lib=`echo "ac_cv_lib_${ldaplib}''_ldap_start_tls_s" | $as_tr_sh`
7251
echo "$as_me:$LINENO: checking for ldap_start_tls_s in -l${ldaplib}" >&5
7252
echo $ECHO_N "checking for ldap_start_tls_s in -l${ldaplib}... $ECHO_C" >&6
7253
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
7254
echo $ECHO_N "(cached) $ECHO_C" >&6
7256
ac_check_lib_save_LIBS=$LIBS
7257
LIBS="-l${ldaplib} ${extralib} $LIBS"
7258
cat >conftest.$ac_ext <<_ACEOF
7261
cat confdefs.h >>conftest.$ac_ext
7262
cat >>conftest.$ac_ext <<_ACEOF
7263
/* end confdefs.h. */
7265
/* Override any gcc2 internal prototype to avoid an error. */
7269
/* We use char because int might match the return type of a gcc2
7270
builtin and then its argument prototype would still apply. */
7271
char ldap_start_tls_s ();
7275
ldap_start_tls_s ();
7280
rm -f conftest.$ac_objext conftest$ac_exeext
7281
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7282
(eval $ac_link) 2>conftest.er1
7284
grep -v '^ *+' conftest.er1 >conftest.err
7286
cat conftest.err >&5
7287
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7288
(exit $ac_status); } &&
7289
{ ac_try='test -z "$ac_c_werror_flag"
7290
|| test ! -s conftest.err'
7291
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7294
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7295
(exit $ac_status); }; } &&
7296
{ ac_try='test -s conftest$ac_exeext'
7297
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7300
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7301
(exit $ac_status); }; }; then
7302
eval "$as_ac_Lib=yes"
7304
echo "$as_me: failed program was:" >&5
7305
sed 's/^/| /' conftest.$ac_ext >&5
7307
eval "$as_ac_Lib=no"
7309
rm -f conftest.err conftest.$ac_objext \
7310
conftest$ac_exeext conftest.$ac_ext
7311
LIBS=$ac_check_lib_save_LIBS
7313
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
7314
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
7315
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
7316
apu_has_ldap_start_tls_s="1"
7319
as_ac_Lib=`echo "ac_cv_lib_${ldaplib}''_ldap_sslinit" | $as_tr_sh`
7320
echo "$as_me:$LINENO: checking for ldap_sslinit in -l${ldaplib}" >&5
7321
echo $ECHO_N "checking for ldap_sslinit in -l${ldaplib}... $ECHO_C" >&6
7322
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
7323
echo $ECHO_N "(cached) $ECHO_C" >&6
7325
ac_check_lib_save_LIBS=$LIBS
7326
LIBS="-l${ldaplib} ${extralib} $LIBS"
7327
cat >conftest.$ac_ext <<_ACEOF
7330
cat confdefs.h >>conftest.$ac_ext
7331
cat >>conftest.$ac_ext <<_ACEOF
7332
/* end confdefs.h. */
7334
/* Override any gcc2 internal prototype to avoid an error. */
7338
/* We use char because int might match the return type of a gcc2
7339
builtin and then its argument prototype would still apply. */
7340
char ldap_sslinit ();
7349
rm -f conftest.$ac_objext conftest$ac_exeext
7350
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7351
(eval $ac_link) 2>conftest.er1
7353
grep -v '^ *+' conftest.er1 >conftest.err
7355
cat conftest.err >&5
7356
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7357
(exit $ac_status); } &&
7358
{ ac_try='test -z "$ac_c_werror_flag"
7359
|| test ! -s conftest.err'
7360
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7363
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7364
(exit $ac_status); }; } &&
7365
{ ac_try='test -s conftest$ac_exeext'
7366
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7369
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7370
(exit $ac_status); }; }; then
7371
eval "$as_ac_Lib=yes"
7373
echo "$as_me: failed program was:" >&5
7374
sed 's/^/| /' conftest.$ac_ext >&5
7376
eval "$as_ac_Lib=no"
7378
rm -f conftest.err conftest.$ac_objext \
7379
conftest$ac_exeext conftest.$ac_ext
7380
LIBS=$ac_check_lib_save_LIBS
7382
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
7383
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
7384
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
7385
apu_has_ldap_sslinit="1"
7388
as_ac_Lib=`echo "ac_cv_lib_${ldaplib}''_ldapssl_init" | $as_tr_sh`
7389
echo "$as_me:$LINENO: checking for ldapssl_init in -l${ldaplib}" >&5
7390
echo $ECHO_N "checking for ldapssl_init in -l${ldaplib}... $ECHO_C" >&6
7391
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
7392
echo $ECHO_N "(cached) $ECHO_C" >&6
7394
ac_check_lib_save_LIBS=$LIBS
7395
LIBS="-l${ldaplib} ${extralib} $LIBS"
7396
cat >conftest.$ac_ext <<_ACEOF
7399
cat confdefs.h >>conftest.$ac_ext
7400
cat >>conftest.$ac_ext <<_ACEOF
7401
/* end confdefs.h. */
7403
/* Override any gcc2 internal prototype to avoid an error. */
7407
/* We use char because int might match the return type of a gcc2
7408
builtin and then its argument prototype would still apply. */
7409
char ldapssl_init ();
7418
rm -f conftest.$ac_objext conftest$ac_exeext
7419
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7420
(eval $ac_link) 2>conftest.er1
7422
grep -v '^ *+' conftest.er1 >conftest.err
7424
cat conftest.err >&5
7425
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7426
(exit $ac_status); } &&
7427
{ ac_try='test -z "$ac_c_werror_flag"
7428
|| test ! -s conftest.err'
7429
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7432
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7433
(exit $ac_status); }; } &&
7434
{ ac_try='test -s conftest$ac_exeext'
7435
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7438
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7439
(exit $ac_status); }; }; then
7440
eval "$as_ac_Lib=yes"
7442
echo "$as_me: failed program was:" >&5
7443
sed 's/^/| /' conftest.$ac_ext >&5
7445
eval "$as_ac_Lib=no"
7447
rm -f conftest.err conftest.$ac_objext \
7448
conftest$ac_exeext conftest.$ac_ext
7449
LIBS=$ac_check_lib_save_LIBS
7451
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
7452
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
7453
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
7454
apu_has_ldapssl_init="1"
7457
as_ac_Lib=`echo "ac_cv_lib_${ldaplib}''_ldapssl_install_routines" | $as_tr_sh`
7458
echo "$as_me:$LINENO: checking for ldapssl_install_routines in -l${ldaplib}" >&5
7459
echo $ECHO_N "checking for ldapssl_install_routines in -l${ldaplib}... $ECHO_C" >&6
7460
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
7461
echo $ECHO_N "(cached) $ECHO_C" >&6
7463
ac_check_lib_save_LIBS=$LIBS
7464
LIBS="-l${ldaplib} ${extralib} $LIBS"
7465
cat >conftest.$ac_ext <<_ACEOF
7468
cat confdefs.h >>conftest.$ac_ext
7469
cat >>conftest.$ac_ext <<_ACEOF
7470
/* end confdefs.h. */
7472
/* Override any gcc2 internal prototype to avoid an error. */
7476
/* We use char because int might match the return type of a gcc2
7477
builtin and then its argument prototype would still apply. */
7478
char ldapssl_install_routines ();
7482
ldapssl_install_routines ();
7487
rm -f conftest.$ac_objext conftest$ac_exeext
7488
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7489
(eval $ac_link) 2>conftest.er1
7491
grep -v '^ *+' conftest.er1 >conftest.err
7493
cat conftest.err >&5
7494
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7495
(exit $ac_status); } &&
7496
{ ac_try='test -z "$ac_c_werror_flag"
7497
|| test ! -s conftest.err'
7498
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7501
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7502
(exit $ac_status); }; } &&
7503
{ ac_try='test -s conftest$ac_exeext'
7504
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7507
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7508
(exit $ac_status); }; }; then
7509
eval "$as_ac_Lib=yes"
7511
echo "$as_me: failed program was:" >&5
7512
sed 's/^/| /' conftest.$ac_ext >&5
7514
eval "$as_ac_Lib=no"
7516
rm -f conftest.err conftest.$ac_objext \
7517
conftest$ac_exeext conftest.$ac_ext
7518
LIBS=$ac_check_lib_save_LIBS
7520
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
7521
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
7522
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
7523
apu_has_ldapssl_install_routines="1"
7533
if test ${apu_has_ldap} != "1"; then
7535
extralib="-lldapx -lldapssl -lldapgss -lgss -lresolv -lsocket"
7536
unset ac_cv_lib_${ldaplib}_ldap_init
7537
unset ac_cv_lib_${ldaplib}___ldap_init
7538
as_ac_Lib=`echo "ac_cv_lib_${ldaplib}''_ldap_init" | $as_tr_sh`
7539
echo "$as_me:$LINENO: checking for ldap_init in -l${ldaplib}" >&5
7540
echo $ECHO_N "checking for ldap_init in -l${ldaplib}... $ECHO_C" >&6
7541
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
7542
echo $ECHO_N "(cached) $ECHO_C" >&6
7544
ac_check_lib_save_LIBS=$LIBS
7545
LIBS="-l${ldaplib} ${extralib} $LIBS"
7546
cat >conftest.$ac_ext <<_ACEOF
7549
cat confdefs.h >>conftest.$ac_ext
7550
cat >>conftest.$ac_ext <<_ACEOF
7551
/* end confdefs.h. */
7553
/* Override any gcc2 internal prototype to avoid an error. */
7557
/* We use char because int might match the return type of a gcc2
7558
builtin and then its argument prototype would still apply. */
7568
rm -f conftest.$ac_objext conftest$ac_exeext
7569
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7570
(eval $ac_link) 2>conftest.er1
7572
grep -v '^ *+' conftest.er1 >conftest.err
7574
cat conftest.err >&5
7575
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7576
(exit $ac_status); } &&
7577
{ ac_try='test -z "$ac_c_werror_flag"
7578
|| test ! -s conftest.err'
7579
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7582
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7583
(exit $ac_status); }; } &&
7584
{ ac_try='test -s conftest$ac_exeext'
7585
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7588
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7589
(exit $ac_status); }; }; then
7590
eval "$as_ac_Lib=yes"
7592
echo "$as_me: failed program was:" >&5
7593
sed 's/^/| /' conftest.$ac_ext >&5
7595
eval "$as_ac_Lib=no"
7597
rm -f conftest.err conftest.$ac_objext \
7598
conftest$ac_exeext conftest.$ac_ext
7599
LIBS=$ac_check_lib_save_LIBS
7601
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
7602
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
7603
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
7606
if test "x$APRUTIL_EXPORT_LIBS" = "x"; then
7607
test "x$silent" != "xyes" && echo " setting APRUTIL_EXPORT_LIBS to \"-l${ldaplib} ${extralib}\""
7608
APRUTIL_EXPORT_LIBS="-l${ldaplib} ${extralib}"
7610
apr_addto_bugger="-l${ldaplib} ${extralib}"
7611
for i in $apr_addto_bugger; do
7612
apr_addto_duplicate="0"
7613
for j in $APRUTIL_EXPORT_LIBS; do
7614
if test "x$i" = "x$j"; then
7615
apr_addto_duplicate="1"
7619
if test $apr_addto_duplicate = "0"; then
7620
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_EXPORT_LIBS"
7621
APRUTIL_EXPORT_LIBS="$APRUTIL_EXPORT_LIBS $i"
7627
if test "x$APRUTIL_LIBS" = "x"; then
7628
test "x$silent" != "xyes" && echo " setting APRUTIL_LIBS to \"-l${ldaplib} ${extralib}\""
7629
APRUTIL_LIBS="-l${ldaplib} ${extralib}"
7631
apr_addto_bugger="-l${ldaplib} ${extralib}"
7632
for i in $apr_addto_bugger; do
7633
apr_addto_duplicate="0"
7634
for j in $APRUTIL_LIBS; do
7635
if test "x$i" = "x$j"; then
7636
apr_addto_duplicate="1"
7640
if test $apr_addto_duplicate = "0"; then
7641
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LIBS"
7642
APRUTIL_LIBS="$APRUTIL_LIBS $i"
7647
as_ac_Lib=`echo "ac_cv_lib_${ldaplib}''_ldapssl_client_init" | $as_tr_sh`
7648
echo "$as_me:$LINENO: checking for ldapssl_client_init in -l${ldaplib}" >&5
7649
echo $ECHO_N "checking for ldapssl_client_init in -l${ldaplib}... $ECHO_C" >&6
7650
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
7651
echo $ECHO_N "(cached) $ECHO_C" >&6
7653
ac_check_lib_save_LIBS=$LIBS
7654
LIBS="-l${ldaplib} ${extralib} $LIBS"
7655
cat >conftest.$ac_ext <<_ACEOF
7658
cat confdefs.h >>conftest.$ac_ext
7659
cat >>conftest.$ac_ext <<_ACEOF
7660
/* end confdefs.h. */
7662
/* Override any gcc2 internal prototype to avoid an error. */
7666
/* We use char because int might match the return type of a gcc2
7667
builtin and then its argument prototype would still apply. */
7668
char ldapssl_client_init ();
7672
ldapssl_client_init ();
7677
rm -f conftest.$ac_objext conftest$ac_exeext
7678
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7679
(eval $ac_link) 2>conftest.er1
7681
grep -v '^ *+' conftest.er1 >conftest.err
7683
cat conftest.err >&5
7684
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7685
(exit $ac_status); } &&
7686
{ ac_try='test -z "$ac_c_werror_flag"
7687
|| test ! -s conftest.err'
7688
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7691
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7692
(exit $ac_status); }; } &&
7693
{ ac_try='test -s conftest$ac_exeext'
7694
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7697
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7698
(exit $ac_status); }; }; then
7699
eval "$as_ac_Lib=yes"
7701
echo "$as_me: failed program was:" >&5
7702
sed 's/^/| /' conftest.$ac_ext >&5
7704
eval "$as_ac_Lib=no"
7706
rm -f conftest.err conftest.$ac_objext \
7707
conftest$ac_exeext conftest.$ac_ext
7708
LIBS=$ac_check_lib_save_LIBS
7710
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
7711
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
7712
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
7713
apu_has_ldapssl_client_init="1"
7716
as_ac_Lib=`echo "ac_cv_lib_${ldaplib}''_ldapssl_client_deinit" | $as_tr_sh`
7717
echo "$as_me:$LINENO: checking for ldapssl_client_deinit in -l${ldaplib}" >&5
7718
echo $ECHO_N "checking for ldapssl_client_deinit in -l${ldaplib}... $ECHO_C" >&6
7719
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
7720
echo $ECHO_N "(cached) $ECHO_C" >&6
7722
ac_check_lib_save_LIBS=$LIBS
7723
LIBS="-l${ldaplib} ${extralib} $LIBS"
7724
cat >conftest.$ac_ext <<_ACEOF
7727
cat confdefs.h >>conftest.$ac_ext
7728
cat >>conftest.$ac_ext <<_ACEOF
7729
/* end confdefs.h. */
7731
/* Override any gcc2 internal prototype to avoid an error. */
7735
/* We use char because int might match the return type of a gcc2
7736
builtin and then its argument prototype would still apply. */
7737
char ldapssl_client_deinit ();
7741
ldapssl_client_deinit ();
7746
rm -f conftest.$ac_objext conftest$ac_exeext
7747
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7748
(eval $ac_link) 2>conftest.er1
7750
grep -v '^ *+' conftest.er1 >conftest.err
7752
cat conftest.err >&5
7753
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7754
(exit $ac_status); } &&
7755
{ ac_try='test -z "$ac_c_werror_flag"
7756
|| test ! -s conftest.err'
7757
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7760
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7761
(exit $ac_status); }; } &&
7762
{ ac_try='test -s conftest$ac_exeext'
7763
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7766
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7767
(exit $ac_status); }; }; then
7768
eval "$as_ac_Lib=yes"
7770
echo "$as_me: failed program was:" >&5
7771
sed 's/^/| /' conftest.$ac_ext >&5
7773
eval "$as_ac_Lib=no"
7775
rm -f conftest.err conftest.$ac_objext \
7776
conftest$ac_exeext conftest.$ac_ext
7777
LIBS=$ac_check_lib_save_LIBS
7779
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
7780
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
7781
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
7782
apu_has_ldapssl_client_deinit="1"
7785
as_ac_Lib=`echo "ac_cv_lib_${ldaplib}''_ldapssl_add_trusted_cert" | $as_tr_sh`
7786
echo "$as_me:$LINENO: checking for ldapssl_add_trusted_cert in -l${ldaplib}" >&5
7787
echo $ECHO_N "checking for ldapssl_add_trusted_cert in -l${ldaplib}... $ECHO_C" >&6
7788
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
7789
echo $ECHO_N "(cached) $ECHO_C" >&6
7791
ac_check_lib_save_LIBS=$LIBS
7792
LIBS="-l${ldaplib} ${extralib} $LIBS"
7793
cat >conftest.$ac_ext <<_ACEOF
7796
cat confdefs.h >>conftest.$ac_ext
7797
cat >>conftest.$ac_ext <<_ACEOF
7798
/* end confdefs.h. */
7800
/* Override any gcc2 internal prototype to avoid an error. */
7804
/* We use char because int might match the return type of a gcc2
7805
builtin and then its argument prototype would still apply. */
7806
char ldapssl_add_trusted_cert ();
7810
ldapssl_add_trusted_cert ();
7815
rm -f conftest.$ac_objext conftest$ac_exeext
7816
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7817
(eval $ac_link) 2>conftest.er1
7819
grep -v '^ *+' conftest.er1 >conftest.err
7821
cat conftest.err >&5
7822
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7823
(exit $ac_status); } &&
7824
{ ac_try='test -z "$ac_c_werror_flag"
7825
|| test ! -s conftest.err'
7826
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7829
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7830
(exit $ac_status); }; } &&
7831
{ ac_try='test -s conftest$ac_exeext'
7832
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7835
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7836
(exit $ac_status); }; }; then
7837
eval "$as_ac_Lib=yes"
7839
echo "$as_me: failed program was:" >&5
7840
sed 's/^/| /' conftest.$ac_ext >&5
7842
eval "$as_ac_Lib=no"
7844
rm -f conftest.err conftest.$ac_objext \
7845
conftest$ac_exeext conftest.$ac_ext
7846
LIBS=$ac_check_lib_save_LIBS
7848
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
7849
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
7850
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
7851
apu_has_ldapssl_add_trusted_cert="1"
7854
as_ac_Lib=`echo "ac_cv_lib_${ldaplib}''_ldap_start_tls_s" | $as_tr_sh`
7855
echo "$as_me:$LINENO: checking for ldap_start_tls_s in -l${ldaplib}" >&5
7856
echo $ECHO_N "checking for ldap_start_tls_s in -l${ldaplib}... $ECHO_C" >&6
7857
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
7858
echo $ECHO_N "(cached) $ECHO_C" >&6
7860
ac_check_lib_save_LIBS=$LIBS
7861
LIBS="-l${ldaplib} ${extralib} $LIBS"
7862
cat >conftest.$ac_ext <<_ACEOF
7865
cat confdefs.h >>conftest.$ac_ext
7866
cat >>conftest.$ac_ext <<_ACEOF
7867
/* end confdefs.h. */
7869
/* Override any gcc2 internal prototype to avoid an error. */
7873
/* We use char because int might match the return type of a gcc2
7874
builtin and then its argument prototype would still apply. */
7875
char ldap_start_tls_s ();
7879
ldap_start_tls_s ();
7884
rm -f conftest.$ac_objext conftest$ac_exeext
7885
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7886
(eval $ac_link) 2>conftest.er1
7888
grep -v '^ *+' conftest.er1 >conftest.err
7890
cat conftest.err >&5
7891
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7892
(exit $ac_status); } &&
7893
{ ac_try='test -z "$ac_c_werror_flag"
7894
|| test ! -s conftest.err'
7895
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7898
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7899
(exit $ac_status); }; } &&
7900
{ ac_try='test -s conftest$ac_exeext'
7901
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7904
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7905
(exit $ac_status); }; }; then
7906
eval "$as_ac_Lib=yes"
7908
echo "$as_me: failed program was:" >&5
7909
sed 's/^/| /' conftest.$ac_ext >&5
7911
eval "$as_ac_Lib=no"
7913
rm -f conftest.err conftest.$ac_objext \
7914
conftest$ac_exeext conftest.$ac_ext
7915
LIBS=$ac_check_lib_save_LIBS
7917
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
7918
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
7919
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
7920
apu_has_ldap_start_tls_s="1"
7923
as_ac_Lib=`echo "ac_cv_lib_${ldaplib}''_ldap_sslinit" | $as_tr_sh`
7924
echo "$as_me:$LINENO: checking for ldap_sslinit in -l${ldaplib}" >&5
7925
echo $ECHO_N "checking for ldap_sslinit in -l${ldaplib}... $ECHO_C" >&6
7926
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
7927
echo $ECHO_N "(cached) $ECHO_C" >&6
7929
ac_check_lib_save_LIBS=$LIBS
7930
LIBS="-l${ldaplib} ${extralib} $LIBS"
7931
cat >conftest.$ac_ext <<_ACEOF
7934
cat confdefs.h >>conftest.$ac_ext
7935
cat >>conftest.$ac_ext <<_ACEOF
7936
/* end confdefs.h. */
7938
/* Override any gcc2 internal prototype to avoid an error. */
7942
/* We use char because int might match the return type of a gcc2
7943
builtin and then its argument prototype would still apply. */
7944
char ldap_sslinit ();
7953
rm -f conftest.$ac_objext conftest$ac_exeext
7954
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7955
(eval $ac_link) 2>conftest.er1
7957
grep -v '^ *+' conftest.er1 >conftest.err
7959
cat conftest.err >&5
7960
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7961
(exit $ac_status); } &&
7962
{ ac_try='test -z "$ac_c_werror_flag"
7963
|| test ! -s conftest.err'
7964
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7967
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7968
(exit $ac_status); }; } &&
7969
{ ac_try='test -s conftest$ac_exeext'
7970
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7973
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7974
(exit $ac_status); }; }; then
7975
eval "$as_ac_Lib=yes"
7977
echo "$as_me: failed program was:" >&5
7978
sed 's/^/| /' conftest.$ac_ext >&5
7980
eval "$as_ac_Lib=no"
7982
rm -f conftest.err conftest.$ac_objext \
7983
conftest$ac_exeext conftest.$ac_ext
7984
LIBS=$ac_check_lib_save_LIBS
7986
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
7987
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
7988
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
7989
apu_has_ldap_sslinit="1"
7992
as_ac_Lib=`echo "ac_cv_lib_${ldaplib}''_ldapssl_init" | $as_tr_sh`
7993
echo "$as_me:$LINENO: checking for ldapssl_init in -l${ldaplib}" >&5
7994
echo $ECHO_N "checking for ldapssl_init in -l${ldaplib}... $ECHO_C" >&6
7995
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
7996
echo $ECHO_N "(cached) $ECHO_C" >&6
7998
ac_check_lib_save_LIBS=$LIBS
7999
LIBS="-l${ldaplib} ${extralib} $LIBS"
8000
cat >conftest.$ac_ext <<_ACEOF
8003
cat confdefs.h >>conftest.$ac_ext
8004
cat >>conftest.$ac_ext <<_ACEOF
8005
/* end confdefs.h. */
8007
/* Override any gcc2 internal prototype to avoid an error. */
8011
/* We use char because int might match the return type of a gcc2
8012
builtin and then its argument prototype would still apply. */
8013
char ldapssl_init ();
8022
rm -f conftest.$ac_objext conftest$ac_exeext
8023
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8024
(eval $ac_link) 2>conftest.er1
8026
grep -v '^ *+' conftest.er1 >conftest.err
8028
cat conftest.err >&5
8029
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8030
(exit $ac_status); } &&
8031
{ ac_try='test -z "$ac_c_werror_flag"
8032
|| test ! -s conftest.err'
8033
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8036
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8037
(exit $ac_status); }; } &&
8038
{ ac_try='test -s conftest$ac_exeext'
8039
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8042
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8043
(exit $ac_status); }; }; then
8044
eval "$as_ac_Lib=yes"
8046
echo "$as_me: failed program was:" >&5
8047
sed 's/^/| /' conftest.$ac_ext >&5
8049
eval "$as_ac_Lib=no"
8051
rm -f conftest.err conftest.$ac_objext \
8052
conftest$ac_exeext conftest.$ac_ext
8053
LIBS=$ac_check_lib_save_LIBS
8055
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
8056
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
8057
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
8058
apu_has_ldapssl_init="1"
8061
as_ac_Lib=`echo "ac_cv_lib_${ldaplib}''_ldapssl_install_routines" | $as_tr_sh`
8062
echo "$as_me:$LINENO: checking for ldapssl_install_routines in -l${ldaplib}" >&5
8063
echo $ECHO_N "checking for ldapssl_install_routines in -l${ldaplib}... $ECHO_C" >&6
8064
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
8065
echo $ECHO_N "(cached) $ECHO_C" >&6
8067
ac_check_lib_save_LIBS=$LIBS
8068
LIBS="-l${ldaplib} ${extralib} $LIBS"
8069
cat >conftest.$ac_ext <<_ACEOF
8072
cat confdefs.h >>conftest.$ac_ext
8073
cat >>conftest.$ac_ext <<_ACEOF
8074
/* end confdefs.h. */
8076
/* Override any gcc2 internal prototype to avoid an error. */
8080
/* We use char because int might match the return type of a gcc2
8081
builtin and then its argument prototype would still apply. */
8082
char ldapssl_install_routines ();
8086
ldapssl_install_routines ();
8091
rm -f conftest.$ac_objext conftest$ac_exeext
8092
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8093
(eval $ac_link) 2>conftest.er1
8095
grep -v '^ *+' conftest.er1 >conftest.err
8097
cat conftest.err >&5
8098
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8099
(exit $ac_status); } &&
8100
{ ac_try='test -z "$ac_c_werror_flag"
8101
|| test ! -s conftest.err'
8102
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8105
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8106
(exit $ac_status); }; } &&
8107
{ ac_try='test -s conftest$ac_exeext'
8108
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8111
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8112
(exit $ac_status); }; }; then
8113
eval "$as_ac_Lib=yes"
8115
echo "$as_me: failed program was:" >&5
8116
sed 's/^/| /' conftest.$ac_ext >&5
8118
eval "$as_ac_Lib=no"
8120
rm -f conftest.err conftest.$ac_objext \
8121
conftest$ac_exeext conftest.$ac_ext
8122
LIBS=$ac_check_lib_save_LIBS
8124
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
8125
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
8126
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
8127
apu_has_ldapssl_install_routines="1"
8137
if test ${apu_has_ldap} != "1"; then
8140
unset ac_cv_lib_${ldaplib}_ldap_init
8141
unset ac_cv_lib_${ldaplib}___ldap_init
8142
as_ac_Lib=`echo "ac_cv_lib_${ldaplib}''_ldap_init" | $as_tr_sh`
8143
echo "$as_me:$LINENO: checking for ldap_init in -l${ldaplib}" >&5
8144
echo $ECHO_N "checking for ldap_init in -l${ldaplib}... $ECHO_C" >&6
8145
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
8146
echo $ECHO_N "(cached) $ECHO_C" >&6
8148
ac_check_lib_save_LIBS=$LIBS
8149
LIBS="-l${ldaplib} ${extralib} $LIBS"
8150
cat >conftest.$ac_ext <<_ACEOF
8153
cat confdefs.h >>conftest.$ac_ext
8154
cat >>conftest.$ac_ext <<_ACEOF
8155
/* end confdefs.h. */
8157
/* Override any gcc2 internal prototype to avoid an error. */
8161
/* We use char because int might match the return type of a gcc2
8162
builtin and then its argument prototype would still apply. */
8172
rm -f conftest.$ac_objext conftest$ac_exeext
8173
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8174
(eval $ac_link) 2>conftest.er1
8176
grep -v '^ *+' conftest.er1 >conftest.err
8178
cat conftest.err >&5
8179
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8180
(exit $ac_status); } &&
8181
{ ac_try='test -z "$ac_c_werror_flag"
8182
|| test ! -s conftest.err'
8183
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8186
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8187
(exit $ac_status); }; } &&
8188
{ ac_try='test -s conftest$ac_exeext'
8189
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8192
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8193
(exit $ac_status); }; }; then
8194
eval "$as_ac_Lib=yes"
8196
echo "$as_me: failed program was:" >&5
8197
sed 's/^/| /' conftest.$ac_ext >&5
8199
eval "$as_ac_Lib=no"
8201
rm -f conftest.err conftest.$ac_objext \
8202
conftest$ac_exeext conftest.$ac_ext
8203
LIBS=$ac_check_lib_save_LIBS
8205
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
8206
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
8207
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
8210
if test "x$APRUTIL_EXPORT_LIBS" = "x"; then
8211
test "x$silent" != "xyes" && echo " setting APRUTIL_EXPORT_LIBS to \"-l${ldaplib} ${extralib}\""
8212
APRUTIL_EXPORT_LIBS="-l${ldaplib} ${extralib}"
8214
apr_addto_bugger="-l${ldaplib} ${extralib}"
8215
for i in $apr_addto_bugger; do
8216
apr_addto_duplicate="0"
8217
for j in $APRUTIL_EXPORT_LIBS; do
8218
if test "x$i" = "x$j"; then
8219
apr_addto_duplicate="1"
8223
if test $apr_addto_duplicate = "0"; then
8224
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_EXPORT_LIBS"
8225
APRUTIL_EXPORT_LIBS="$APRUTIL_EXPORT_LIBS $i"
8231
if test "x$APRUTIL_LIBS" = "x"; then
8232
test "x$silent" != "xyes" && echo " setting APRUTIL_LIBS to \"-l${ldaplib} ${extralib}\""
8233
APRUTIL_LIBS="-l${ldaplib} ${extralib}"
8235
apr_addto_bugger="-l${ldaplib} ${extralib}"
8236
for i in $apr_addto_bugger; do
8237
apr_addto_duplicate="0"
8238
for j in $APRUTIL_LIBS; do
8239
if test "x$i" = "x$j"; then
8240
apr_addto_duplicate="1"
8244
if test $apr_addto_duplicate = "0"; then
8245
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LIBS"
8246
APRUTIL_LIBS="$APRUTIL_LIBS $i"
8251
as_ac_Lib=`echo "ac_cv_lib_${ldaplib}''_ldapssl_client_init" | $as_tr_sh`
8252
echo "$as_me:$LINENO: checking for ldapssl_client_init in -l${ldaplib}" >&5
8253
echo $ECHO_N "checking for ldapssl_client_init in -l${ldaplib}... $ECHO_C" >&6
8254
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
8255
echo $ECHO_N "(cached) $ECHO_C" >&6
8257
ac_check_lib_save_LIBS=$LIBS
8258
LIBS="-l${ldaplib} ${extralib} $LIBS"
8259
cat >conftest.$ac_ext <<_ACEOF
8262
cat confdefs.h >>conftest.$ac_ext
8263
cat >>conftest.$ac_ext <<_ACEOF
8264
/* end confdefs.h. */
8266
/* Override any gcc2 internal prototype to avoid an error. */
8270
/* We use char because int might match the return type of a gcc2
8271
builtin and then its argument prototype would still apply. */
8272
char ldapssl_client_init ();
8276
ldapssl_client_init ();
8281
rm -f conftest.$ac_objext conftest$ac_exeext
8282
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8283
(eval $ac_link) 2>conftest.er1
8285
grep -v '^ *+' conftest.er1 >conftest.err
8287
cat conftest.err >&5
8288
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8289
(exit $ac_status); } &&
8290
{ ac_try='test -z "$ac_c_werror_flag"
8291
|| test ! -s conftest.err'
8292
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8295
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8296
(exit $ac_status); }; } &&
8297
{ ac_try='test -s conftest$ac_exeext'
8298
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8301
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8302
(exit $ac_status); }; }; then
8303
eval "$as_ac_Lib=yes"
8305
echo "$as_me: failed program was:" >&5
8306
sed 's/^/| /' conftest.$ac_ext >&5
8308
eval "$as_ac_Lib=no"
8310
rm -f conftest.err conftest.$ac_objext \
8311
conftest$ac_exeext conftest.$ac_ext
8312
LIBS=$ac_check_lib_save_LIBS
8314
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
8315
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
8316
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
8317
apu_has_ldapssl_client_init="1"
8320
as_ac_Lib=`echo "ac_cv_lib_${ldaplib}''_ldapssl_client_deinit" | $as_tr_sh`
8321
echo "$as_me:$LINENO: checking for ldapssl_client_deinit in -l${ldaplib}" >&5
8322
echo $ECHO_N "checking for ldapssl_client_deinit in -l${ldaplib}... $ECHO_C" >&6
8323
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
8324
echo $ECHO_N "(cached) $ECHO_C" >&6
8326
ac_check_lib_save_LIBS=$LIBS
8327
LIBS="-l${ldaplib} ${extralib} $LIBS"
8328
cat >conftest.$ac_ext <<_ACEOF
8331
cat confdefs.h >>conftest.$ac_ext
8332
cat >>conftest.$ac_ext <<_ACEOF
8333
/* end confdefs.h. */
8335
/* Override any gcc2 internal prototype to avoid an error. */
8339
/* We use char because int might match the return type of a gcc2
8340
builtin and then its argument prototype would still apply. */
8341
char ldapssl_client_deinit ();
8345
ldapssl_client_deinit ();
8350
rm -f conftest.$ac_objext conftest$ac_exeext
8351
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8352
(eval $ac_link) 2>conftest.er1
8354
grep -v '^ *+' conftest.er1 >conftest.err
8356
cat conftest.err >&5
8357
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8358
(exit $ac_status); } &&
8359
{ ac_try='test -z "$ac_c_werror_flag"
8360
|| test ! -s conftest.err'
8361
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8364
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8365
(exit $ac_status); }; } &&
8366
{ ac_try='test -s conftest$ac_exeext'
8367
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8370
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8371
(exit $ac_status); }; }; then
8372
eval "$as_ac_Lib=yes"
8374
echo "$as_me: failed program was:" >&5
8375
sed 's/^/| /' conftest.$ac_ext >&5
8377
eval "$as_ac_Lib=no"
8379
rm -f conftest.err conftest.$ac_objext \
8380
conftest$ac_exeext conftest.$ac_ext
8381
LIBS=$ac_check_lib_save_LIBS
8383
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
8384
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
8385
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
8386
apu_has_ldapssl_client_deinit="1"
8389
as_ac_Lib=`echo "ac_cv_lib_${ldaplib}''_ldapssl_add_trusted_cert" | $as_tr_sh`
8390
echo "$as_me:$LINENO: checking for ldapssl_add_trusted_cert in -l${ldaplib}" >&5
8391
echo $ECHO_N "checking for ldapssl_add_trusted_cert in -l${ldaplib}... $ECHO_C" >&6
8392
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
8393
echo $ECHO_N "(cached) $ECHO_C" >&6
8395
ac_check_lib_save_LIBS=$LIBS
8396
LIBS="-l${ldaplib} ${extralib} $LIBS"
8397
cat >conftest.$ac_ext <<_ACEOF
8400
cat confdefs.h >>conftest.$ac_ext
8401
cat >>conftest.$ac_ext <<_ACEOF
8402
/* end confdefs.h. */
8404
/* Override any gcc2 internal prototype to avoid an error. */
8408
/* We use char because int might match the return type of a gcc2
8409
builtin and then its argument prototype would still apply. */
8410
char ldapssl_add_trusted_cert ();
8414
ldapssl_add_trusted_cert ();
8419
rm -f conftest.$ac_objext conftest$ac_exeext
8420
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8421
(eval $ac_link) 2>conftest.er1
8423
grep -v '^ *+' conftest.er1 >conftest.err
8425
cat conftest.err >&5
8426
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8427
(exit $ac_status); } &&
8428
{ ac_try='test -z "$ac_c_werror_flag"
8429
|| test ! -s conftest.err'
8430
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8433
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8434
(exit $ac_status); }; } &&
8435
{ ac_try='test -s conftest$ac_exeext'
8436
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8439
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8440
(exit $ac_status); }; }; then
8441
eval "$as_ac_Lib=yes"
8443
echo "$as_me: failed program was:" >&5
8444
sed 's/^/| /' conftest.$ac_ext >&5
8446
eval "$as_ac_Lib=no"
8448
rm -f conftest.err conftest.$ac_objext \
8449
conftest$ac_exeext conftest.$ac_ext
8450
LIBS=$ac_check_lib_save_LIBS
8452
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
8453
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
8454
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
8455
apu_has_ldapssl_add_trusted_cert="1"
8458
as_ac_Lib=`echo "ac_cv_lib_${ldaplib}''_ldap_start_tls_s" | $as_tr_sh`
8459
echo "$as_me:$LINENO: checking for ldap_start_tls_s in -l${ldaplib}" >&5
8460
echo $ECHO_N "checking for ldap_start_tls_s in -l${ldaplib}... $ECHO_C" >&6
8461
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
8462
echo $ECHO_N "(cached) $ECHO_C" >&6
8464
ac_check_lib_save_LIBS=$LIBS
8465
LIBS="-l${ldaplib} ${extralib} $LIBS"
8466
cat >conftest.$ac_ext <<_ACEOF
8469
cat confdefs.h >>conftest.$ac_ext
8470
cat >>conftest.$ac_ext <<_ACEOF
8471
/* end confdefs.h. */
8473
/* Override any gcc2 internal prototype to avoid an error. */
8477
/* We use char because int might match the return type of a gcc2
8478
builtin and then its argument prototype would still apply. */
8479
char ldap_start_tls_s ();
8483
ldap_start_tls_s ();
8488
rm -f conftest.$ac_objext conftest$ac_exeext
8489
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8490
(eval $ac_link) 2>conftest.er1
8492
grep -v '^ *+' conftest.er1 >conftest.err
8494
cat conftest.err >&5
8495
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8496
(exit $ac_status); } &&
8497
{ ac_try='test -z "$ac_c_werror_flag"
8498
|| test ! -s conftest.err'
8499
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8502
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8503
(exit $ac_status); }; } &&
8504
{ ac_try='test -s conftest$ac_exeext'
8505
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8508
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8509
(exit $ac_status); }; }; then
8510
eval "$as_ac_Lib=yes"
8512
echo "$as_me: failed program was:" >&5
8513
sed 's/^/| /' conftest.$ac_ext >&5
8515
eval "$as_ac_Lib=no"
8517
rm -f conftest.err conftest.$ac_objext \
8518
conftest$ac_exeext conftest.$ac_ext
8519
LIBS=$ac_check_lib_save_LIBS
8521
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
8522
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
8523
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
8524
apu_has_ldap_start_tls_s="1"
8527
as_ac_Lib=`echo "ac_cv_lib_${ldaplib}''_ldap_sslinit" | $as_tr_sh`
8528
echo "$as_me:$LINENO: checking for ldap_sslinit in -l${ldaplib}" >&5
8529
echo $ECHO_N "checking for ldap_sslinit in -l${ldaplib}... $ECHO_C" >&6
8530
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
8531
echo $ECHO_N "(cached) $ECHO_C" >&6
8533
ac_check_lib_save_LIBS=$LIBS
8534
LIBS="-l${ldaplib} ${extralib} $LIBS"
8535
cat >conftest.$ac_ext <<_ACEOF
8538
cat confdefs.h >>conftest.$ac_ext
8539
cat >>conftest.$ac_ext <<_ACEOF
8540
/* end confdefs.h. */
8542
/* Override any gcc2 internal prototype to avoid an error. */
8546
/* We use char because int might match the return type of a gcc2
8547
builtin and then its argument prototype would still apply. */
8548
char ldap_sslinit ();
8557
rm -f conftest.$ac_objext conftest$ac_exeext
8558
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8559
(eval $ac_link) 2>conftest.er1
8561
grep -v '^ *+' conftest.er1 >conftest.err
8563
cat conftest.err >&5
8564
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8565
(exit $ac_status); } &&
8566
{ ac_try='test -z "$ac_c_werror_flag"
8567
|| test ! -s conftest.err'
8568
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8571
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8572
(exit $ac_status); }; } &&
8573
{ ac_try='test -s conftest$ac_exeext'
8574
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8577
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8578
(exit $ac_status); }; }; then
8579
eval "$as_ac_Lib=yes"
8581
echo "$as_me: failed program was:" >&5
8582
sed 's/^/| /' conftest.$ac_ext >&5
8584
eval "$as_ac_Lib=no"
8586
rm -f conftest.err conftest.$ac_objext \
8587
conftest$ac_exeext conftest.$ac_ext
8588
LIBS=$ac_check_lib_save_LIBS
8590
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
8591
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
8592
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
8593
apu_has_ldap_sslinit="1"
8596
as_ac_Lib=`echo "ac_cv_lib_${ldaplib}''_ldapssl_init" | $as_tr_sh`
8597
echo "$as_me:$LINENO: checking for ldapssl_init in -l${ldaplib}" >&5
8598
echo $ECHO_N "checking for ldapssl_init in -l${ldaplib}... $ECHO_C" >&6
8599
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
8600
echo $ECHO_N "(cached) $ECHO_C" >&6
8602
ac_check_lib_save_LIBS=$LIBS
8603
LIBS="-l${ldaplib} ${extralib} $LIBS"
8604
cat >conftest.$ac_ext <<_ACEOF
8607
cat confdefs.h >>conftest.$ac_ext
8608
cat >>conftest.$ac_ext <<_ACEOF
8609
/* end confdefs.h. */
8611
/* Override any gcc2 internal prototype to avoid an error. */
8615
/* We use char because int might match the return type of a gcc2
8616
builtin and then its argument prototype would still apply. */
8617
char ldapssl_init ();
8626
rm -f conftest.$ac_objext conftest$ac_exeext
8627
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8628
(eval $ac_link) 2>conftest.er1
8630
grep -v '^ *+' conftest.er1 >conftest.err
8632
cat conftest.err >&5
8633
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8634
(exit $ac_status); } &&
8635
{ ac_try='test -z "$ac_c_werror_flag"
8636
|| test ! -s conftest.err'
8637
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8640
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8641
(exit $ac_status); }; } &&
8642
{ ac_try='test -s conftest$ac_exeext'
8643
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8646
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8647
(exit $ac_status); }; }; then
8648
eval "$as_ac_Lib=yes"
8650
echo "$as_me: failed program was:" >&5
8651
sed 's/^/| /' conftest.$ac_ext >&5
8653
eval "$as_ac_Lib=no"
8655
rm -f conftest.err conftest.$ac_objext \
8656
conftest$ac_exeext conftest.$ac_ext
8657
LIBS=$ac_check_lib_save_LIBS
8659
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
8660
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
8661
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
8662
apu_has_ldapssl_init="1"
8665
as_ac_Lib=`echo "ac_cv_lib_${ldaplib}''_ldapssl_install_routines" | $as_tr_sh`
8666
echo "$as_me:$LINENO: checking for ldapssl_install_routines in -l${ldaplib}" >&5
8667
echo $ECHO_N "checking for ldapssl_install_routines in -l${ldaplib}... $ECHO_C" >&6
8668
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
8669
echo $ECHO_N "(cached) $ECHO_C" >&6
8671
ac_check_lib_save_LIBS=$LIBS
8672
LIBS="-l${ldaplib} ${extralib} $LIBS"
8673
cat >conftest.$ac_ext <<_ACEOF
8676
cat confdefs.h >>conftest.$ac_ext
8677
cat >>conftest.$ac_ext <<_ACEOF
8678
/* end confdefs.h. */
8680
/* Override any gcc2 internal prototype to avoid an error. */
8684
/* We use char because int might match the return type of a gcc2
8685
builtin and then its argument prototype would still apply. */
8686
char ldapssl_install_routines ();
8690
ldapssl_install_routines ();
8695
rm -f conftest.$ac_objext conftest$ac_exeext
8696
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8697
(eval $ac_link) 2>conftest.er1
8699
grep -v '^ *+' conftest.er1 >conftest.err
8701
cat conftest.err >&5
8702
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8703
(exit $ac_status); } &&
8704
{ ac_try='test -z "$ac_c_werror_flag"
8705
|| test ! -s conftest.err'
8706
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8709
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710
(exit $ac_status); }; } &&
8711
{ ac_try='test -s conftest$ac_exeext'
8712
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8715
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8716
(exit $ac_status); }; }; then
8717
eval "$as_ac_Lib=yes"
8719
echo "$as_me: failed program was:" >&5
8720
sed 's/^/| /' conftest.$ac_ext >&5
8722
eval "$as_ac_Lib=no"
8724
rm -f conftest.err conftest.$ac_objext \
8725
conftest$ac_exeext conftest.$ac_ext
8726
LIBS=$ac_check_lib_save_LIBS
8728
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
8729
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
8730
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
8731
apu_has_ldapssl_install_routines="1"
8741
if test ${apu_has_ldap} != "1"; then
8743
extralib="-llber -lresolv"
8744
unset ac_cv_lib_${ldaplib}_ldap_init
8745
unset ac_cv_lib_${ldaplib}___ldap_init
8746
as_ac_Lib=`echo "ac_cv_lib_${ldaplib}''_ldap_init" | $as_tr_sh`
8747
echo "$as_me:$LINENO: checking for ldap_init in -l${ldaplib}" >&5
8748
echo $ECHO_N "checking for ldap_init in -l${ldaplib}... $ECHO_C" >&6
8749
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
8750
echo $ECHO_N "(cached) $ECHO_C" >&6
8752
ac_check_lib_save_LIBS=$LIBS
8753
LIBS="-l${ldaplib} ${extralib} $LIBS"
8754
cat >conftest.$ac_ext <<_ACEOF
8757
cat confdefs.h >>conftest.$ac_ext
8758
cat >>conftest.$ac_ext <<_ACEOF
8759
/* end confdefs.h. */
8761
/* Override any gcc2 internal prototype to avoid an error. */
8765
/* We use char because int might match the return type of a gcc2
8766
builtin and then its argument prototype would still apply. */
8776
rm -f conftest.$ac_objext conftest$ac_exeext
8777
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8778
(eval $ac_link) 2>conftest.er1
8780
grep -v '^ *+' conftest.er1 >conftest.err
8782
cat conftest.err >&5
8783
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8784
(exit $ac_status); } &&
8785
{ ac_try='test -z "$ac_c_werror_flag"
8786
|| test ! -s conftest.err'
8787
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8790
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8791
(exit $ac_status); }; } &&
8792
{ ac_try='test -s conftest$ac_exeext'
8793
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8796
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8797
(exit $ac_status); }; }; then
8798
eval "$as_ac_Lib=yes"
8800
echo "$as_me: failed program was:" >&5
8801
sed 's/^/| /' conftest.$ac_ext >&5
8803
eval "$as_ac_Lib=no"
8805
rm -f conftest.err conftest.$ac_objext \
8806
conftest$ac_exeext conftest.$ac_ext
8807
LIBS=$ac_check_lib_save_LIBS
8809
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
8810
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
8811
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
8814
if test "x$APRUTIL_EXPORT_LIBS" = "x"; then
8815
test "x$silent" != "xyes" && echo " setting APRUTIL_EXPORT_LIBS to \"-l${ldaplib} ${extralib}\""
8816
APRUTIL_EXPORT_LIBS="-l${ldaplib} ${extralib}"
8818
apr_addto_bugger="-l${ldaplib} ${extralib}"
8819
for i in $apr_addto_bugger; do
8820
apr_addto_duplicate="0"
8821
for j in $APRUTIL_EXPORT_LIBS; do
8822
if test "x$i" = "x$j"; then
8823
apr_addto_duplicate="1"
8827
if test $apr_addto_duplicate = "0"; then
8828
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_EXPORT_LIBS"
8829
APRUTIL_EXPORT_LIBS="$APRUTIL_EXPORT_LIBS $i"
8835
if test "x$APRUTIL_LIBS" = "x"; then
8836
test "x$silent" != "xyes" && echo " setting APRUTIL_LIBS to \"-l${ldaplib} ${extralib}\""
8837
APRUTIL_LIBS="-l${ldaplib} ${extralib}"
8839
apr_addto_bugger="-l${ldaplib} ${extralib}"
8840
for i in $apr_addto_bugger; do
8841
apr_addto_duplicate="0"
8842
for j in $APRUTIL_LIBS; do
8843
if test "x$i" = "x$j"; then
8844
apr_addto_duplicate="1"
8848
if test $apr_addto_duplicate = "0"; then
8849
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LIBS"
8850
APRUTIL_LIBS="$APRUTIL_LIBS $i"
8855
as_ac_Lib=`echo "ac_cv_lib_${ldaplib}''_ldapssl_client_init" | $as_tr_sh`
8856
echo "$as_me:$LINENO: checking for ldapssl_client_init in -l${ldaplib}" >&5
8857
echo $ECHO_N "checking for ldapssl_client_init in -l${ldaplib}... $ECHO_C" >&6
8858
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
8859
echo $ECHO_N "(cached) $ECHO_C" >&6
8861
ac_check_lib_save_LIBS=$LIBS
8862
LIBS="-l${ldaplib} ${extralib} $LIBS"
8863
cat >conftest.$ac_ext <<_ACEOF
8866
cat confdefs.h >>conftest.$ac_ext
8867
cat >>conftest.$ac_ext <<_ACEOF
8868
/* end confdefs.h. */
8870
/* Override any gcc2 internal prototype to avoid an error. */
8874
/* We use char because int might match the return type of a gcc2
8875
builtin and then its argument prototype would still apply. */
8876
char ldapssl_client_init ();
8880
ldapssl_client_init ();
8885
rm -f conftest.$ac_objext conftest$ac_exeext
8886
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8887
(eval $ac_link) 2>conftest.er1
8889
grep -v '^ *+' conftest.er1 >conftest.err
8891
cat conftest.err >&5
8892
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8893
(exit $ac_status); } &&
8894
{ ac_try='test -z "$ac_c_werror_flag"
8895
|| test ! -s conftest.err'
8896
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8899
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8900
(exit $ac_status); }; } &&
8901
{ ac_try='test -s conftest$ac_exeext'
8902
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8905
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8906
(exit $ac_status); }; }; then
8907
eval "$as_ac_Lib=yes"
8909
echo "$as_me: failed program was:" >&5
8910
sed 's/^/| /' conftest.$ac_ext >&5
8912
eval "$as_ac_Lib=no"
8914
rm -f conftest.err conftest.$ac_objext \
8915
conftest$ac_exeext conftest.$ac_ext
8916
LIBS=$ac_check_lib_save_LIBS
8918
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
8919
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
8920
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
8921
apu_has_ldapssl_client_init="1"
8924
as_ac_Lib=`echo "ac_cv_lib_${ldaplib}''_ldapssl_client_deinit" | $as_tr_sh`
8925
echo "$as_me:$LINENO: checking for ldapssl_client_deinit in -l${ldaplib}" >&5
8926
echo $ECHO_N "checking for ldapssl_client_deinit in -l${ldaplib}... $ECHO_C" >&6
8927
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
8928
echo $ECHO_N "(cached) $ECHO_C" >&6
8930
ac_check_lib_save_LIBS=$LIBS
8931
LIBS="-l${ldaplib} ${extralib} $LIBS"
8932
cat >conftest.$ac_ext <<_ACEOF
8935
cat confdefs.h >>conftest.$ac_ext
8936
cat >>conftest.$ac_ext <<_ACEOF
8937
/* end confdefs.h. */
8939
/* Override any gcc2 internal prototype to avoid an error. */
8943
/* We use char because int might match the return type of a gcc2
8944
builtin and then its argument prototype would still apply. */
8945
char ldapssl_client_deinit ();
8949
ldapssl_client_deinit ();
8954
rm -f conftest.$ac_objext conftest$ac_exeext
8955
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8956
(eval $ac_link) 2>conftest.er1
8958
grep -v '^ *+' conftest.er1 >conftest.err
8960
cat conftest.err >&5
8961
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8962
(exit $ac_status); } &&
8963
{ ac_try='test -z "$ac_c_werror_flag"
8964
|| test ! -s conftest.err'
8965
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8968
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8969
(exit $ac_status); }; } &&
8970
{ ac_try='test -s conftest$ac_exeext'
8971
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8974
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8975
(exit $ac_status); }; }; then
8976
eval "$as_ac_Lib=yes"
8978
echo "$as_me: failed program was:" >&5
8979
sed 's/^/| /' conftest.$ac_ext >&5
8981
eval "$as_ac_Lib=no"
8983
rm -f conftest.err conftest.$ac_objext \
8984
conftest$ac_exeext conftest.$ac_ext
8985
LIBS=$ac_check_lib_save_LIBS
8987
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
8988
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
8989
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
8990
apu_has_ldapssl_client_deinit="1"
8993
as_ac_Lib=`echo "ac_cv_lib_${ldaplib}''_ldapssl_add_trusted_cert" | $as_tr_sh`
8994
echo "$as_me:$LINENO: checking for ldapssl_add_trusted_cert in -l${ldaplib}" >&5
8995
echo $ECHO_N "checking for ldapssl_add_trusted_cert in -l${ldaplib}... $ECHO_C" >&6
8996
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
8997
echo $ECHO_N "(cached) $ECHO_C" >&6
8999
ac_check_lib_save_LIBS=$LIBS
9000
LIBS="-l${ldaplib} ${extralib} $LIBS"
9001
cat >conftest.$ac_ext <<_ACEOF
9004
cat confdefs.h >>conftest.$ac_ext
9005
cat >>conftest.$ac_ext <<_ACEOF
9006
/* end confdefs.h. */
9008
/* Override any gcc2 internal prototype to avoid an error. */
9012
/* We use char because int might match the return type of a gcc2
9013
builtin and then its argument prototype would still apply. */
9014
char ldapssl_add_trusted_cert ();
9018
ldapssl_add_trusted_cert ();
9023
rm -f conftest.$ac_objext conftest$ac_exeext
9024
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9025
(eval $ac_link) 2>conftest.er1
9027
grep -v '^ *+' conftest.er1 >conftest.err
9029
cat conftest.err >&5
9030
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9031
(exit $ac_status); } &&
9032
{ ac_try='test -z "$ac_c_werror_flag"
9033
|| test ! -s conftest.err'
9034
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9037
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9038
(exit $ac_status); }; } &&
9039
{ ac_try='test -s conftest$ac_exeext'
9040
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9043
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9044
(exit $ac_status); }; }; then
9045
eval "$as_ac_Lib=yes"
9047
echo "$as_me: failed program was:" >&5
9048
sed 's/^/| /' conftest.$ac_ext >&5
9050
eval "$as_ac_Lib=no"
9052
rm -f conftest.err conftest.$ac_objext \
9053
conftest$ac_exeext conftest.$ac_ext
9054
LIBS=$ac_check_lib_save_LIBS
9056
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
9057
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
9058
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
9059
apu_has_ldapssl_add_trusted_cert="1"
9062
as_ac_Lib=`echo "ac_cv_lib_${ldaplib}''_ldap_start_tls_s" | $as_tr_sh`
9063
echo "$as_me:$LINENO: checking for ldap_start_tls_s in -l${ldaplib}" >&5
9064
echo $ECHO_N "checking for ldap_start_tls_s in -l${ldaplib}... $ECHO_C" >&6
9065
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
9066
echo $ECHO_N "(cached) $ECHO_C" >&6
9068
ac_check_lib_save_LIBS=$LIBS
9069
LIBS="-l${ldaplib} ${extralib} $LIBS"
9070
cat >conftest.$ac_ext <<_ACEOF
9073
cat confdefs.h >>conftest.$ac_ext
9074
cat >>conftest.$ac_ext <<_ACEOF
9075
/* end confdefs.h. */
9077
/* Override any gcc2 internal prototype to avoid an error. */
9081
/* We use char because int might match the return type of a gcc2
9082
builtin and then its argument prototype would still apply. */
9083
char ldap_start_tls_s ();
9087
ldap_start_tls_s ();
9092
rm -f conftest.$ac_objext conftest$ac_exeext
9093
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9094
(eval $ac_link) 2>conftest.er1
9096
grep -v '^ *+' conftest.er1 >conftest.err
9098
cat conftest.err >&5
9099
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9100
(exit $ac_status); } &&
9101
{ ac_try='test -z "$ac_c_werror_flag"
9102
|| test ! -s conftest.err'
9103
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9106
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9107
(exit $ac_status); }; } &&
9108
{ ac_try='test -s conftest$ac_exeext'
9109
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9112
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9113
(exit $ac_status); }; }; then
9114
eval "$as_ac_Lib=yes"
9116
echo "$as_me: failed program was:" >&5
9117
sed 's/^/| /' conftest.$ac_ext >&5
9119
eval "$as_ac_Lib=no"
9121
rm -f conftest.err conftest.$ac_objext \
9122
conftest$ac_exeext conftest.$ac_ext
9123
LIBS=$ac_check_lib_save_LIBS
9125
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
9126
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
9127
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
9128
apu_has_ldap_start_tls_s="1"
9131
as_ac_Lib=`echo "ac_cv_lib_${ldaplib}''_ldap_sslinit" | $as_tr_sh`
9132
echo "$as_me:$LINENO: checking for ldap_sslinit in -l${ldaplib}" >&5
9133
echo $ECHO_N "checking for ldap_sslinit in -l${ldaplib}... $ECHO_C" >&6
9134
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
9135
echo $ECHO_N "(cached) $ECHO_C" >&6
9137
ac_check_lib_save_LIBS=$LIBS
9138
LIBS="-l${ldaplib} ${extralib} $LIBS"
9139
cat >conftest.$ac_ext <<_ACEOF
9142
cat confdefs.h >>conftest.$ac_ext
9143
cat >>conftest.$ac_ext <<_ACEOF
9144
/* end confdefs.h. */
9146
/* Override any gcc2 internal prototype to avoid an error. */
9150
/* We use char because int might match the return type of a gcc2
9151
builtin and then its argument prototype would still apply. */
9152
char ldap_sslinit ();
9161
rm -f conftest.$ac_objext conftest$ac_exeext
9162
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9163
(eval $ac_link) 2>conftest.er1
9165
grep -v '^ *+' conftest.er1 >conftest.err
9167
cat conftest.err >&5
9168
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9169
(exit $ac_status); } &&
9170
{ ac_try='test -z "$ac_c_werror_flag"
9171
|| test ! -s conftest.err'
9172
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9175
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9176
(exit $ac_status); }; } &&
9177
{ ac_try='test -s conftest$ac_exeext'
9178
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9181
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9182
(exit $ac_status); }; }; then
9183
eval "$as_ac_Lib=yes"
9185
echo "$as_me: failed program was:" >&5
9186
sed 's/^/| /' conftest.$ac_ext >&5
9188
eval "$as_ac_Lib=no"
9190
rm -f conftest.err conftest.$ac_objext \
9191
conftest$ac_exeext conftest.$ac_ext
9192
LIBS=$ac_check_lib_save_LIBS
9194
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
9195
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
9196
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
9197
apu_has_ldap_sslinit="1"
9200
as_ac_Lib=`echo "ac_cv_lib_${ldaplib}''_ldapssl_init" | $as_tr_sh`
9201
echo "$as_me:$LINENO: checking for ldapssl_init in -l${ldaplib}" >&5
9202
echo $ECHO_N "checking for ldapssl_init in -l${ldaplib}... $ECHO_C" >&6
9203
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
9204
echo $ECHO_N "(cached) $ECHO_C" >&6
9206
ac_check_lib_save_LIBS=$LIBS
9207
LIBS="-l${ldaplib} ${extralib} $LIBS"
9208
cat >conftest.$ac_ext <<_ACEOF
9211
cat confdefs.h >>conftest.$ac_ext
9212
cat >>conftest.$ac_ext <<_ACEOF
9213
/* end confdefs.h. */
9215
/* Override any gcc2 internal prototype to avoid an error. */
9219
/* We use char because int might match the return type of a gcc2
9220
builtin and then its argument prototype would still apply. */
9221
char ldapssl_init ();
9230
rm -f conftest.$ac_objext conftest$ac_exeext
9231
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9232
(eval $ac_link) 2>conftest.er1
9234
grep -v '^ *+' conftest.er1 >conftest.err
9236
cat conftest.err >&5
9237
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9238
(exit $ac_status); } &&
9239
{ ac_try='test -z "$ac_c_werror_flag"
9240
|| test ! -s conftest.err'
9241
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9244
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9245
(exit $ac_status); }; } &&
9246
{ ac_try='test -s conftest$ac_exeext'
9247
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9250
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9251
(exit $ac_status); }; }; then
9252
eval "$as_ac_Lib=yes"
9254
echo "$as_me: failed program was:" >&5
9255
sed 's/^/| /' conftest.$ac_ext >&5
9257
eval "$as_ac_Lib=no"
9259
rm -f conftest.err conftest.$ac_objext \
9260
conftest$ac_exeext conftest.$ac_ext
9261
LIBS=$ac_check_lib_save_LIBS
9263
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
9264
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
9265
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
9266
apu_has_ldapssl_init="1"
9269
as_ac_Lib=`echo "ac_cv_lib_${ldaplib}''_ldapssl_install_routines" | $as_tr_sh`
9270
echo "$as_me:$LINENO: checking for ldapssl_install_routines in -l${ldaplib}" >&5
9271
echo $ECHO_N "checking for ldapssl_install_routines in -l${ldaplib}... $ECHO_C" >&6
9272
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
9273
echo $ECHO_N "(cached) $ECHO_C" >&6
9275
ac_check_lib_save_LIBS=$LIBS
9276
LIBS="-l${ldaplib} ${extralib} $LIBS"
9277
cat >conftest.$ac_ext <<_ACEOF
9280
cat confdefs.h >>conftest.$ac_ext
9281
cat >>conftest.$ac_ext <<_ACEOF
9282
/* end confdefs.h. */
9284
/* Override any gcc2 internal prototype to avoid an error. */
9288
/* We use char because int might match the return type of a gcc2
9289
builtin and then its argument prototype would still apply. */
9290
char ldapssl_install_routines ();
9294
ldapssl_install_routines ();
9299
rm -f conftest.$ac_objext conftest$ac_exeext
9300
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9301
(eval $ac_link) 2>conftest.er1
9303
grep -v '^ *+' conftest.er1 >conftest.err
9305
cat conftest.err >&5
9306
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9307
(exit $ac_status); } &&
9308
{ ac_try='test -z "$ac_c_werror_flag"
9309
|| test ! -s conftest.err'
9310
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9313
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9314
(exit $ac_status); }; } &&
9315
{ ac_try='test -s conftest$ac_exeext'
9316
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9319
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9320
(exit $ac_status); }; }; then
9321
eval "$as_ac_Lib=yes"
9323
echo "$as_me: failed program was:" >&5
9324
sed 's/^/| /' conftest.$ac_ext >&5
9326
eval "$as_ac_Lib=no"
9328
rm -f conftest.err conftest.$ac_objext \
9329
conftest$ac_exeext conftest.$ac_ext
9330
LIBS=$ac_check_lib_save_LIBS
9332
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
9333
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
9334
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
9335
apu_has_ldapssl_install_routines="1"
9345
if test ${apu_has_ldap} != "1"; then
9347
extralib="-llber -lresolv -lsocket -lnsl"
9348
unset ac_cv_lib_${ldaplib}_ldap_init
9349
unset ac_cv_lib_${ldaplib}___ldap_init
9350
as_ac_Lib=`echo "ac_cv_lib_${ldaplib}''_ldap_init" | $as_tr_sh`
9351
echo "$as_me:$LINENO: checking for ldap_init in -l${ldaplib}" >&5
9352
echo $ECHO_N "checking for ldap_init in -l${ldaplib}... $ECHO_C" >&6
9353
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
9354
echo $ECHO_N "(cached) $ECHO_C" >&6
9356
ac_check_lib_save_LIBS=$LIBS
9357
LIBS="-l${ldaplib} ${extralib} $LIBS"
9358
cat >conftest.$ac_ext <<_ACEOF
9361
cat confdefs.h >>conftest.$ac_ext
9362
cat >>conftest.$ac_ext <<_ACEOF
9363
/* end confdefs.h. */
9365
/* Override any gcc2 internal prototype to avoid an error. */
9369
/* We use char because int might match the return type of a gcc2
9370
builtin and then its argument prototype would still apply. */
9380
rm -f conftest.$ac_objext conftest$ac_exeext
9381
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9382
(eval $ac_link) 2>conftest.er1
9384
grep -v '^ *+' conftest.er1 >conftest.err
9386
cat conftest.err >&5
9387
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9388
(exit $ac_status); } &&
9389
{ ac_try='test -z "$ac_c_werror_flag"
9390
|| test ! -s conftest.err'
9391
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9394
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9395
(exit $ac_status); }; } &&
9396
{ ac_try='test -s conftest$ac_exeext'
9397
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9400
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9401
(exit $ac_status); }; }; then
9402
eval "$as_ac_Lib=yes"
9404
echo "$as_me: failed program was:" >&5
9405
sed 's/^/| /' conftest.$ac_ext >&5
9407
eval "$as_ac_Lib=no"
9409
rm -f conftest.err conftest.$ac_objext \
9410
conftest$ac_exeext conftest.$ac_ext
9411
LIBS=$ac_check_lib_save_LIBS
9413
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
9414
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
9415
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
9418
if test "x$APRUTIL_EXPORT_LIBS" = "x"; then
9419
test "x$silent" != "xyes" && echo " setting APRUTIL_EXPORT_LIBS to \"-l${ldaplib} ${extralib}\""
9420
APRUTIL_EXPORT_LIBS="-l${ldaplib} ${extralib}"
9422
apr_addto_bugger="-l${ldaplib} ${extralib}"
9423
for i in $apr_addto_bugger; do
9424
apr_addto_duplicate="0"
9425
for j in $APRUTIL_EXPORT_LIBS; do
9426
if test "x$i" = "x$j"; then
9427
apr_addto_duplicate="1"
9431
if test $apr_addto_duplicate = "0"; then
9432
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_EXPORT_LIBS"
9433
APRUTIL_EXPORT_LIBS="$APRUTIL_EXPORT_LIBS $i"
9439
if test "x$APRUTIL_LIBS" = "x"; then
9440
test "x$silent" != "xyes" && echo " setting APRUTIL_LIBS to \"-l${ldaplib} ${extralib}\""
9441
APRUTIL_LIBS="-l${ldaplib} ${extralib}"
9443
apr_addto_bugger="-l${ldaplib} ${extralib}"
9444
for i in $apr_addto_bugger; do
9445
apr_addto_duplicate="0"
9446
for j in $APRUTIL_LIBS; do
9447
if test "x$i" = "x$j"; then
9448
apr_addto_duplicate="1"
9452
if test $apr_addto_duplicate = "0"; then
9453
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LIBS"
9454
APRUTIL_LIBS="$APRUTIL_LIBS $i"
9459
as_ac_Lib=`echo "ac_cv_lib_${ldaplib}''_ldapssl_client_init" | $as_tr_sh`
9460
echo "$as_me:$LINENO: checking for ldapssl_client_init in -l${ldaplib}" >&5
9461
echo $ECHO_N "checking for ldapssl_client_init in -l${ldaplib}... $ECHO_C" >&6
9462
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
9463
echo $ECHO_N "(cached) $ECHO_C" >&6
9465
ac_check_lib_save_LIBS=$LIBS
9466
LIBS="-l${ldaplib} ${extralib} $LIBS"
9467
cat >conftest.$ac_ext <<_ACEOF
9470
cat confdefs.h >>conftest.$ac_ext
9471
cat >>conftest.$ac_ext <<_ACEOF
9472
/* end confdefs.h. */
9474
/* Override any gcc2 internal prototype to avoid an error. */
9478
/* We use char because int might match the return type of a gcc2
9479
builtin and then its argument prototype would still apply. */
9480
char ldapssl_client_init ();
9484
ldapssl_client_init ();
9489
rm -f conftest.$ac_objext conftest$ac_exeext
9490
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9491
(eval $ac_link) 2>conftest.er1
9493
grep -v '^ *+' conftest.er1 >conftest.err
9495
cat conftest.err >&5
9496
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9497
(exit $ac_status); } &&
9498
{ ac_try='test -z "$ac_c_werror_flag"
9499
|| test ! -s conftest.err'
9500
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9503
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9504
(exit $ac_status); }; } &&
9505
{ ac_try='test -s conftest$ac_exeext'
9506
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9509
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9510
(exit $ac_status); }; }; then
9511
eval "$as_ac_Lib=yes"
9513
echo "$as_me: failed program was:" >&5
9514
sed 's/^/| /' conftest.$ac_ext >&5
9516
eval "$as_ac_Lib=no"
9518
rm -f conftest.err conftest.$ac_objext \
9519
conftest$ac_exeext conftest.$ac_ext
9520
LIBS=$ac_check_lib_save_LIBS
9522
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
9523
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
9524
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
9525
apu_has_ldapssl_client_init="1"
9528
as_ac_Lib=`echo "ac_cv_lib_${ldaplib}''_ldapssl_client_deinit" | $as_tr_sh`
9529
echo "$as_me:$LINENO: checking for ldapssl_client_deinit in -l${ldaplib}" >&5
9530
echo $ECHO_N "checking for ldapssl_client_deinit in -l${ldaplib}... $ECHO_C" >&6
9531
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
9532
echo $ECHO_N "(cached) $ECHO_C" >&6
9534
ac_check_lib_save_LIBS=$LIBS
9535
LIBS="-l${ldaplib} ${extralib} $LIBS"
9536
cat >conftest.$ac_ext <<_ACEOF
9539
cat confdefs.h >>conftest.$ac_ext
9540
cat >>conftest.$ac_ext <<_ACEOF
9541
/* end confdefs.h. */
9543
/* Override any gcc2 internal prototype to avoid an error. */
9547
/* We use char because int might match the return type of a gcc2
9548
builtin and then its argument prototype would still apply. */
9549
char ldapssl_client_deinit ();
9553
ldapssl_client_deinit ();
9558
rm -f conftest.$ac_objext conftest$ac_exeext
9559
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9560
(eval $ac_link) 2>conftest.er1
9562
grep -v '^ *+' conftest.er1 >conftest.err
9564
cat conftest.err >&5
9565
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9566
(exit $ac_status); } &&
9567
{ ac_try='test -z "$ac_c_werror_flag"
9568
|| test ! -s conftest.err'
9569
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9572
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9573
(exit $ac_status); }; } &&
9574
{ ac_try='test -s conftest$ac_exeext'
9575
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9578
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9579
(exit $ac_status); }; }; then
9580
eval "$as_ac_Lib=yes"
9582
echo "$as_me: failed program was:" >&5
9583
sed 's/^/| /' conftest.$ac_ext >&5
9585
eval "$as_ac_Lib=no"
9587
rm -f conftest.err conftest.$ac_objext \
9588
conftest$ac_exeext conftest.$ac_ext
9589
LIBS=$ac_check_lib_save_LIBS
9591
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
9592
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
9593
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
9594
apu_has_ldapssl_client_deinit="1"
9597
as_ac_Lib=`echo "ac_cv_lib_${ldaplib}''_ldapssl_add_trusted_cert" | $as_tr_sh`
9598
echo "$as_me:$LINENO: checking for ldapssl_add_trusted_cert in -l${ldaplib}" >&5
9599
echo $ECHO_N "checking for ldapssl_add_trusted_cert in -l${ldaplib}... $ECHO_C" >&6
9600
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
9601
echo $ECHO_N "(cached) $ECHO_C" >&6
9603
ac_check_lib_save_LIBS=$LIBS
9604
LIBS="-l${ldaplib} ${extralib} $LIBS"
9605
cat >conftest.$ac_ext <<_ACEOF
9608
cat confdefs.h >>conftest.$ac_ext
9609
cat >>conftest.$ac_ext <<_ACEOF
9610
/* end confdefs.h. */
9612
/* Override any gcc2 internal prototype to avoid an error. */
9616
/* We use char because int might match the return type of a gcc2
9617
builtin and then its argument prototype would still apply. */
9618
char ldapssl_add_trusted_cert ();
9622
ldapssl_add_trusted_cert ();
9627
rm -f conftest.$ac_objext conftest$ac_exeext
9628
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9629
(eval $ac_link) 2>conftest.er1
9631
grep -v '^ *+' conftest.er1 >conftest.err
9633
cat conftest.err >&5
9634
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9635
(exit $ac_status); } &&
9636
{ ac_try='test -z "$ac_c_werror_flag"
9637
|| test ! -s conftest.err'
9638
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9641
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9642
(exit $ac_status); }; } &&
9643
{ ac_try='test -s conftest$ac_exeext'
9644
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9647
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9648
(exit $ac_status); }; }; then
9649
eval "$as_ac_Lib=yes"
9651
echo "$as_me: failed program was:" >&5
9652
sed 's/^/| /' conftest.$ac_ext >&5
9654
eval "$as_ac_Lib=no"
9656
rm -f conftest.err conftest.$ac_objext \
9657
conftest$ac_exeext conftest.$ac_ext
9658
LIBS=$ac_check_lib_save_LIBS
9660
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
9661
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
9662
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
9663
apu_has_ldapssl_add_trusted_cert="1"
9666
as_ac_Lib=`echo "ac_cv_lib_${ldaplib}''_ldap_start_tls_s" | $as_tr_sh`
9667
echo "$as_me:$LINENO: checking for ldap_start_tls_s in -l${ldaplib}" >&5
9668
echo $ECHO_N "checking for ldap_start_tls_s in -l${ldaplib}... $ECHO_C" >&6
9669
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
9670
echo $ECHO_N "(cached) $ECHO_C" >&6
9672
ac_check_lib_save_LIBS=$LIBS
9673
LIBS="-l${ldaplib} ${extralib} $LIBS"
9674
cat >conftest.$ac_ext <<_ACEOF
9677
cat confdefs.h >>conftest.$ac_ext
9678
cat >>conftest.$ac_ext <<_ACEOF
9679
/* end confdefs.h. */
9681
/* Override any gcc2 internal prototype to avoid an error. */
9685
/* We use char because int might match the return type of a gcc2
9686
builtin and then its argument prototype would still apply. */
9687
char ldap_start_tls_s ();
9691
ldap_start_tls_s ();
9696
rm -f conftest.$ac_objext conftest$ac_exeext
9697
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9698
(eval $ac_link) 2>conftest.er1
9700
grep -v '^ *+' conftest.er1 >conftest.err
9702
cat conftest.err >&5
9703
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9704
(exit $ac_status); } &&
9705
{ ac_try='test -z "$ac_c_werror_flag"
9706
|| test ! -s conftest.err'
9707
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9710
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9711
(exit $ac_status); }; } &&
9712
{ ac_try='test -s conftest$ac_exeext'
9713
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9716
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9717
(exit $ac_status); }; }; then
9718
eval "$as_ac_Lib=yes"
9720
echo "$as_me: failed program was:" >&5
9721
sed 's/^/| /' conftest.$ac_ext >&5
9723
eval "$as_ac_Lib=no"
9725
rm -f conftest.err conftest.$ac_objext \
9726
conftest$ac_exeext conftest.$ac_ext
9727
LIBS=$ac_check_lib_save_LIBS
9729
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
9730
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
9731
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
9732
apu_has_ldap_start_tls_s="1"
9735
as_ac_Lib=`echo "ac_cv_lib_${ldaplib}''_ldap_sslinit" | $as_tr_sh`
9736
echo "$as_me:$LINENO: checking for ldap_sslinit in -l${ldaplib}" >&5
9737
echo $ECHO_N "checking for ldap_sslinit in -l${ldaplib}... $ECHO_C" >&6
9738
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
9739
echo $ECHO_N "(cached) $ECHO_C" >&6
9741
ac_check_lib_save_LIBS=$LIBS
9742
LIBS="-l${ldaplib} ${extralib} $LIBS"
9743
cat >conftest.$ac_ext <<_ACEOF
9746
cat confdefs.h >>conftest.$ac_ext
9747
cat >>conftest.$ac_ext <<_ACEOF
9748
/* end confdefs.h. */
9750
/* Override any gcc2 internal prototype to avoid an error. */
9754
/* We use char because int might match the return type of a gcc2
9755
builtin and then its argument prototype would still apply. */
9756
char ldap_sslinit ();
9765
rm -f conftest.$ac_objext conftest$ac_exeext
9766
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9767
(eval $ac_link) 2>conftest.er1
9769
grep -v '^ *+' conftest.er1 >conftest.err
9771
cat conftest.err >&5
9772
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9773
(exit $ac_status); } &&
9774
{ ac_try='test -z "$ac_c_werror_flag"
9775
|| test ! -s conftest.err'
9776
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9779
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9780
(exit $ac_status); }; } &&
9781
{ ac_try='test -s conftest$ac_exeext'
9782
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9785
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9786
(exit $ac_status); }; }; then
9787
eval "$as_ac_Lib=yes"
9789
echo "$as_me: failed program was:" >&5
9790
sed 's/^/| /' conftest.$ac_ext >&5
9792
eval "$as_ac_Lib=no"
9794
rm -f conftest.err conftest.$ac_objext \
9795
conftest$ac_exeext conftest.$ac_ext
9796
LIBS=$ac_check_lib_save_LIBS
9798
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
9799
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
9800
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
9801
apu_has_ldap_sslinit="1"
9804
as_ac_Lib=`echo "ac_cv_lib_${ldaplib}''_ldapssl_init" | $as_tr_sh`
9805
echo "$as_me:$LINENO: checking for ldapssl_init in -l${ldaplib}" >&5
9806
echo $ECHO_N "checking for ldapssl_init in -l${ldaplib}... $ECHO_C" >&6
9807
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
9808
echo $ECHO_N "(cached) $ECHO_C" >&6
9810
ac_check_lib_save_LIBS=$LIBS
9811
LIBS="-l${ldaplib} ${extralib} $LIBS"
9812
cat >conftest.$ac_ext <<_ACEOF
9815
cat confdefs.h >>conftest.$ac_ext
9816
cat >>conftest.$ac_ext <<_ACEOF
9817
/* end confdefs.h. */
9819
/* Override any gcc2 internal prototype to avoid an error. */
9823
/* We use char because int might match the return type of a gcc2
9824
builtin and then its argument prototype would still apply. */
9825
char ldapssl_init ();
9834
rm -f conftest.$ac_objext conftest$ac_exeext
9835
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9836
(eval $ac_link) 2>conftest.er1
9838
grep -v '^ *+' conftest.er1 >conftest.err
9840
cat conftest.err >&5
9841
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9842
(exit $ac_status); } &&
9843
{ ac_try='test -z "$ac_c_werror_flag"
9844
|| test ! -s conftest.err'
9845
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9848
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9849
(exit $ac_status); }; } &&
9850
{ ac_try='test -s conftest$ac_exeext'
9851
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9854
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9855
(exit $ac_status); }; }; then
9856
eval "$as_ac_Lib=yes"
9858
echo "$as_me: failed program was:" >&5
9859
sed 's/^/| /' conftest.$ac_ext >&5
9861
eval "$as_ac_Lib=no"
9863
rm -f conftest.err conftest.$ac_objext \
9864
conftest$ac_exeext conftest.$ac_ext
9865
LIBS=$ac_check_lib_save_LIBS
9867
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
9868
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
9869
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
9870
apu_has_ldapssl_init="1"
9873
as_ac_Lib=`echo "ac_cv_lib_${ldaplib}''_ldapssl_install_routines" | $as_tr_sh`
9874
echo "$as_me:$LINENO: checking for ldapssl_install_routines in -l${ldaplib}" >&5
9875
echo $ECHO_N "checking for ldapssl_install_routines in -l${ldaplib}... $ECHO_C" >&6
9876
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
9877
echo $ECHO_N "(cached) $ECHO_C" >&6
9879
ac_check_lib_save_LIBS=$LIBS
9880
LIBS="-l${ldaplib} ${extralib} $LIBS"
9881
cat >conftest.$ac_ext <<_ACEOF
9884
cat confdefs.h >>conftest.$ac_ext
9885
cat >>conftest.$ac_ext <<_ACEOF
9886
/* end confdefs.h. */
9888
/* Override any gcc2 internal prototype to avoid an error. */
9892
/* We use char because int might match the return type of a gcc2
9893
builtin and then its argument prototype would still apply. */
9894
char ldapssl_install_routines ();
9898
ldapssl_install_routines ();
9903
rm -f conftest.$ac_objext conftest$ac_exeext
9904
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9905
(eval $ac_link) 2>conftest.er1
9907
grep -v '^ *+' conftest.er1 >conftest.err
9909
cat conftest.err >&5
9910
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9911
(exit $ac_status); } &&
9912
{ ac_try='test -z "$ac_c_werror_flag"
9913
|| test ! -s conftest.err'
9914
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9917
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9918
(exit $ac_status); }; } &&
9919
{ ac_try='test -s conftest$ac_exeext'
9920
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9923
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9924
(exit $ac_status); }; }; then
9925
eval "$as_ac_Lib=yes"
9927
echo "$as_me: failed program was:" >&5
9928
sed 's/^/| /' conftest.$ac_ext >&5
9930
eval "$as_ac_Lib=no"
9932
rm -f conftest.err conftest.$ac_objext \
9933
conftest$ac_exeext conftest.$ac_ext
9934
LIBS=$ac_check_lib_save_LIBS
9936
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
9937
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
9938
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
9939
apu_has_ldapssl_install_routines="1"
9949
if test ${apu_has_ldap} != "1"; then
9951
extralib="-ldl -lpthread"
9952
unset ac_cv_lib_${ldaplib}_ldap_init
9953
unset ac_cv_lib_${ldaplib}___ldap_init
9954
as_ac_Lib=`echo "ac_cv_lib_${ldaplib}''_ldap_init" | $as_tr_sh`
9955
echo "$as_me:$LINENO: checking for ldap_init in -l${ldaplib}" >&5
9956
echo $ECHO_N "checking for ldap_init in -l${ldaplib}... $ECHO_C" >&6
9957
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
9958
echo $ECHO_N "(cached) $ECHO_C" >&6
9960
ac_check_lib_save_LIBS=$LIBS
9961
LIBS="-l${ldaplib} ${extralib} $LIBS"
9962
cat >conftest.$ac_ext <<_ACEOF
9965
cat confdefs.h >>conftest.$ac_ext
9966
cat >>conftest.$ac_ext <<_ACEOF
9967
/* end confdefs.h. */
9969
/* Override any gcc2 internal prototype to avoid an error. */
9973
/* We use char because int might match the return type of a gcc2
9974
builtin and then its argument prototype would still apply. */
9984
rm -f conftest.$ac_objext conftest$ac_exeext
9985
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9986
(eval $ac_link) 2>conftest.er1
9988
grep -v '^ *+' conftest.er1 >conftest.err
9990
cat conftest.err >&5
9991
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9992
(exit $ac_status); } &&
9993
{ ac_try='test -z "$ac_c_werror_flag"
9994
|| test ! -s conftest.err'
9995
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9998
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9999
(exit $ac_status); }; } &&
10000
{ ac_try='test -s conftest$ac_exeext'
10001
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10002
(eval $ac_try) 2>&5
10004
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10005
(exit $ac_status); }; }; then
10006
eval "$as_ac_Lib=yes"
10008
echo "$as_me: failed program was:" >&5
10009
sed 's/^/| /' conftest.$ac_ext >&5
10011
eval "$as_ac_Lib=no"
10013
rm -f conftest.err conftest.$ac_objext \
10014
conftest$ac_exeext conftest.$ac_ext
10015
LIBS=$ac_check_lib_save_LIBS
10017
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
10018
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
10019
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
10022
if test "x$APRUTIL_EXPORT_LIBS" = "x"; then
10023
test "x$silent" != "xyes" && echo " setting APRUTIL_EXPORT_LIBS to \"-l${ldaplib} ${extralib}\""
10024
APRUTIL_EXPORT_LIBS="-l${ldaplib} ${extralib}"
10026
apr_addto_bugger="-l${ldaplib} ${extralib}"
10027
for i in $apr_addto_bugger; do
10028
apr_addto_duplicate="0"
10029
for j in $APRUTIL_EXPORT_LIBS; do
10030
if test "x$i" = "x$j"; then
10031
apr_addto_duplicate="1"
10035
if test $apr_addto_duplicate = "0"; then
10036
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_EXPORT_LIBS"
10037
APRUTIL_EXPORT_LIBS="$APRUTIL_EXPORT_LIBS $i"
10043
if test "x$APRUTIL_LIBS" = "x"; then
10044
test "x$silent" != "xyes" && echo " setting APRUTIL_LIBS to \"-l${ldaplib} ${extralib}\""
10045
APRUTIL_LIBS="-l${ldaplib} ${extralib}"
10047
apr_addto_bugger="-l${ldaplib} ${extralib}"
10048
for i in $apr_addto_bugger; do
10049
apr_addto_duplicate="0"
10050
for j in $APRUTIL_LIBS; do
10051
if test "x$i" = "x$j"; then
10052
apr_addto_duplicate="1"
10056
if test $apr_addto_duplicate = "0"; then
10057
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LIBS"
10058
APRUTIL_LIBS="$APRUTIL_LIBS $i"
10063
as_ac_Lib=`echo "ac_cv_lib_${ldaplib}''_ldapssl_client_init" | $as_tr_sh`
10064
echo "$as_me:$LINENO: checking for ldapssl_client_init in -l${ldaplib}" >&5
10065
echo $ECHO_N "checking for ldapssl_client_init in -l${ldaplib}... $ECHO_C" >&6
10066
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
10067
echo $ECHO_N "(cached) $ECHO_C" >&6
10069
ac_check_lib_save_LIBS=$LIBS
10070
LIBS="-l${ldaplib} ${extralib} $LIBS"
10071
cat >conftest.$ac_ext <<_ACEOF
10074
cat confdefs.h >>conftest.$ac_ext
10075
cat >>conftest.$ac_ext <<_ACEOF
10076
/* end confdefs.h. */
10078
/* Override any gcc2 internal prototype to avoid an error. */
10082
/* We use char because int might match the return type of a gcc2
10083
builtin and then its argument prototype would still apply. */
10084
char ldapssl_client_init ();
10088
ldapssl_client_init ();
10093
rm -f conftest.$ac_objext conftest$ac_exeext
10094
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10095
(eval $ac_link) 2>conftest.er1
10097
grep -v '^ *+' conftest.er1 >conftest.err
10099
cat conftest.err >&5
10100
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10101
(exit $ac_status); } &&
10102
{ ac_try='test -z "$ac_c_werror_flag"
10103
|| test ! -s conftest.err'
10104
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10105
(eval $ac_try) 2>&5
10107
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10108
(exit $ac_status); }; } &&
10109
{ ac_try='test -s conftest$ac_exeext'
10110
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10111
(eval $ac_try) 2>&5
10113
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10114
(exit $ac_status); }; }; then
10115
eval "$as_ac_Lib=yes"
10117
echo "$as_me: failed program was:" >&5
10118
sed 's/^/| /' conftest.$ac_ext >&5
10120
eval "$as_ac_Lib=no"
10122
rm -f conftest.err conftest.$ac_objext \
10123
conftest$ac_exeext conftest.$ac_ext
10124
LIBS=$ac_check_lib_save_LIBS
10126
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
10127
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
10128
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
10129
apu_has_ldapssl_client_init="1"
10132
as_ac_Lib=`echo "ac_cv_lib_${ldaplib}''_ldapssl_client_deinit" | $as_tr_sh`
10133
echo "$as_me:$LINENO: checking for ldapssl_client_deinit in -l${ldaplib}" >&5
10134
echo $ECHO_N "checking for ldapssl_client_deinit in -l${ldaplib}... $ECHO_C" >&6
10135
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
10136
echo $ECHO_N "(cached) $ECHO_C" >&6
10138
ac_check_lib_save_LIBS=$LIBS
10139
LIBS="-l${ldaplib} ${extralib} $LIBS"
10140
cat >conftest.$ac_ext <<_ACEOF
10143
cat confdefs.h >>conftest.$ac_ext
10144
cat >>conftest.$ac_ext <<_ACEOF
10145
/* end confdefs.h. */
10147
/* Override any gcc2 internal prototype to avoid an error. */
10151
/* We use char because int might match the return type of a gcc2
10152
builtin and then its argument prototype would still apply. */
10153
char ldapssl_client_deinit ();
10157
ldapssl_client_deinit ();
10162
rm -f conftest.$ac_objext conftest$ac_exeext
10163
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10164
(eval $ac_link) 2>conftest.er1
10166
grep -v '^ *+' conftest.er1 >conftest.err
10168
cat conftest.err >&5
10169
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10170
(exit $ac_status); } &&
10171
{ ac_try='test -z "$ac_c_werror_flag"
10172
|| test ! -s conftest.err'
10173
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10174
(eval $ac_try) 2>&5
10176
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10177
(exit $ac_status); }; } &&
10178
{ ac_try='test -s conftest$ac_exeext'
10179
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10180
(eval $ac_try) 2>&5
10182
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10183
(exit $ac_status); }; }; then
10184
eval "$as_ac_Lib=yes"
10186
echo "$as_me: failed program was:" >&5
10187
sed 's/^/| /' conftest.$ac_ext >&5
10189
eval "$as_ac_Lib=no"
10191
rm -f conftest.err conftest.$ac_objext \
10192
conftest$ac_exeext conftest.$ac_ext
10193
LIBS=$ac_check_lib_save_LIBS
10195
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
10196
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
10197
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
10198
apu_has_ldapssl_client_deinit="1"
10201
as_ac_Lib=`echo "ac_cv_lib_${ldaplib}''_ldapssl_add_trusted_cert" | $as_tr_sh`
10202
echo "$as_me:$LINENO: checking for ldapssl_add_trusted_cert in -l${ldaplib}" >&5
10203
echo $ECHO_N "checking for ldapssl_add_trusted_cert in -l${ldaplib}... $ECHO_C" >&6
10204
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
10205
echo $ECHO_N "(cached) $ECHO_C" >&6
10207
ac_check_lib_save_LIBS=$LIBS
10208
LIBS="-l${ldaplib} ${extralib} $LIBS"
10209
cat >conftest.$ac_ext <<_ACEOF
10212
cat confdefs.h >>conftest.$ac_ext
10213
cat >>conftest.$ac_ext <<_ACEOF
10214
/* end confdefs.h. */
10216
/* Override any gcc2 internal prototype to avoid an error. */
10220
/* We use char because int might match the return type of a gcc2
10221
builtin and then its argument prototype would still apply. */
10222
char ldapssl_add_trusted_cert ();
10226
ldapssl_add_trusted_cert ();
10231
rm -f conftest.$ac_objext conftest$ac_exeext
10232
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10233
(eval $ac_link) 2>conftest.er1
10235
grep -v '^ *+' conftest.er1 >conftest.err
10237
cat conftest.err >&5
10238
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10239
(exit $ac_status); } &&
10240
{ ac_try='test -z "$ac_c_werror_flag"
10241
|| test ! -s conftest.err'
10242
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10243
(eval $ac_try) 2>&5
10245
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10246
(exit $ac_status); }; } &&
10247
{ ac_try='test -s conftest$ac_exeext'
10248
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10249
(eval $ac_try) 2>&5
10251
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10252
(exit $ac_status); }; }; then
10253
eval "$as_ac_Lib=yes"
10255
echo "$as_me: failed program was:" >&5
10256
sed 's/^/| /' conftest.$ac_ext >&5
10258
eval "$as_ac_Lib=no"
10260
rm -f conftest.err conftest.$ac_objext \
10261
conftest$ac_exeext conftest.$ac_ext
10262
LIBS=$ac_check_lib_save_LIBS
10264
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
10265
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
10266
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
10267
apu_has_ldapssl_add_trusted_cert="1"
10270
as_ac_Lib=`echo "ac_cv_lib_${ldaplib}''_ldap_start_tls_s" | $as_tr_sh`
10271
echo "$as_me:$LINENO: checking for ldap_start_tls_s in -l${ldaplib}" >&5
10272
echo $ECHO_N "checking for ldap_start_tls_s in -l${ldaplib}... $ECHO_C" >&6
10273
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
10274
echo $ECHO_N "(cached) $ECHO_C" >&6
10276
ac_check_lib_save_LIBS=$LIBS
10277
LIBS="-l${ldaplib} ${extralib} $LIBS"
10278
cat >conftest.$ac_ext <<_ACEOF
10281
cat confdefs.h >>conftest.$ac_ext
10282
cat >>conftest.$ac_ext <<_ACEOF
10283
/* end confdefs.h. */
10285
/* Override any gcc2 internal prototype to avoid an error. */
10289
/* We use char because int might match the return type of a gcc2
10290
builtin and then its argument prototype would still apply. */
10291
char ldap_start_tls_s ();
10295
ldap_start_tls_s ();
10300
rm -f conftest.$ac_objext conftest$ac_exeext
10301
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10302
(eval $ac_link) 2>conftest.er1
10304
grep -v '^ *+' conftest.er1 >conftest.err
10306
cat conftest.err >&5
10307
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10308
(exit $ac_status); } &&
10309
{ ac_try='test -z "$ac_c_werror_flag"
10310
|| test ! -s conftest.err'
10311
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10312
(eval $ac_try) 2>&5
10314
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10315
(exit $ac_status); }; } &&
10316
{ ac_try='test -s conftest$ac_exeext'
10317
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10318
(eval $ac_try) 2>&5
10320
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10321
(exit $ac_status); }; }; then
10322
eval "$as_ac_Lib=yes"
10324
echo "$as_me: failed program was:" >&5
10325
sed 's/^/| /' conftest.$ac_ext >&5
10327
eval "$as_ac_Lib=no"
10329
rm -f conftest.err conftest.$ac_objext \
10330
conftest$ac_exeext conftest.$ac_ext
10331
LIBS=$ac_check_lib_save_LIBS
10333
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
10334
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
10335
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
10336
apu_has_ldap_start_tls_s="1"
10339
as_ac_Lib=`echo "ac_cv_lib_${ldaplib}''_ldap_sslinit" | $as_tr_sh`
10340
echo "$as_me:$LINENO: checking for ldap_sslinit in -l${ldaplib}" >&5
10341
echo $ECHO_N "checking for ldap_sslinit in -l${ldaplib}... $ECHO_C" >&6
10342
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
10343
echo $ECHO_N "(cached) $ECHO_C" >&6
10345
ac_check_lib_save_LIBS=$LIBS
10346
LIBS="-l${ldaplib} ${extralib} $LIBS"
10347
cat >conftest.$ac_ext <<_ACEOF
10350
cat confdefs.h >>conftest.$ac_ext
10351
cat >>conftest.$ac_ext <<_ACEOF
10352
/* end confdefs.h. */
10354
/* Override any gcc2 internal prototype to avoid an error. */
10358
/* We use char because int might match the return type of a gcc2
10359
builtin and then its argument prototype would still apply. */
10360
char ldap_sslinit ();
10369
rm -f conftest.$ac_objext conftest$ac_exeext
10370
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10371
(eval $ac_link) 2>conftest.er1
10373
grep -v '^ *+' conftest.er1 >conftest.err
10375
cat conftest.err >&5
10376
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10377
(exit $ac_status); } &&
10378
{ ac_try='test -z "$ac_c_werror_flag"
10379
|| test ! -s conftest.err'
10380
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10381
(eval $ac_try) 2>&5
10383
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10384
(exit $ac_status); }; } &&
10385
{ ac_try='test -s conftest$ac_exeext'
10386
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10387
(eval $ac_try) 2>&5
10389
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10390
(exit $ac_status); }; }; then
10391
eval "$as_ac_Lib=yes"
10393
echo "$as_me: failed program was:" >&5
10394
sed 's/^/| /' conftest.$ac_ext >&5
10396
eval "$as_ac_Lib=no"
10398
rm -f conftest.err conftest.$ac_objext \
10399
conftest$ac_exeext conftest.$ac_ext
10400
LIBS=$ac_check_lib_save_LIBS
10402
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
10403
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
10404
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
10405
apu_has_ldap_sslinit="1"
10408
as_ac_Lib=`echo "ac_cv_lib_${ldaplib}''_ldapssl_init" | $as_tr_sh`
10409
echo "$as_me:$LINENO: checking for ldapssl_init in -l${ldaplib}" >&5
10410
echo $ECHO_N "checking for ldapssl_init in -l${ldaplib}... $ECHO_C" >&6
10411
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
10412
echo $ECHO_N "(cached) $ECHO_C" >&6
10414
ac_check_lib_save_LIBS=$LIBS
10415
LIBS="-l${ldaplib} ${extralib} $LIBS"
10416
cat >conftest.$ac_ext <<_ACEOF
10419
cat confdefs.h >>conftest.$ac_ext
10420
cat >>conftest.$ac_ext <<_ACEOF
10421
/* end confdefs.h. */
10423
/* Override any gcc2 internal prototype to avoid an error. */
10427
/* We use char because int might match the return type of a gcc2
10428
builtin and then its argument prototype would still apply. */
10429
char ldapssl_init ();
10438
rm -f conftest.$ac_objext conftest$ac_exeext
10439
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10440
(eval $ac_link) 2>conftest.er1
10442
grep -v '^ *+' conftest.er1 >conftest.err
10444
cat conftest.err >&5
10445
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10446
(exit $ac_status); } &&
10447
{ ac_try='test -z "$ac_c_werror_flag"
10448
|| test ! -s conftest.err'
10449
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10450
(eval $ac_try) 2>&5
10452
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10453
(exit $ac_status); }; } &&
10454
{ ac_try='test -s conftest$ac_exeext'
10455
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10456
(eval $ac_try) 2>&5
10458
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10459
(exit $ac_status); }; }; then
10460
eval "$as_ac_Lib=yes"
10462
echo "$as_me: failed program was:" >&5
10463
sed 's/^/| /' conftest.$ac_ext >&5
10465
eval "$as_ac_Lib=no"
10467
rm -f conftest.err conftest.$ac_objext \
10468
conftest$ac_exeext conftest.$ac_ext
10469
LIBS=$ac_check_lib_save_LIBS
10471
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
10472
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
10473
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
10474
apu_has_ldapssl_init="1"
10477
as_ac_Lib=`echo "ac_cv_lib_${ldaplib}''_ldapssl_install_routines" | $as_tr_sh`
10478
echo "$as_me:$LINENO: checking for ldapssl_install_routines in -l${ldaplib}" >&5
10479
echo $ECHO_N "checking for ldapssl_install_routines in -l${ldaplib}... $ECHO_C" >&6
10480
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
10481
echo $ECHO_N "(cached) $ECHO_C" >&6
10483
ac_check_lib_save_LIBS=$LIBS
10484
LIBS="-l${ldaplib} ${extralib} $LIBS"
10485
cat >conftest.$ac_ext <<_ACEOF
10488
cat confdefs.h >>conftest.$ac_ext
10489
cat >>conftest.$ac_ext <<_ACEOF
10490
/* end confdefs.h. */
10492
/* Override any gcc2 internal prototype to avoid an error. */
10496
/* We use char because int might match the return type of a gcc2
10497
builtin and then its argument prototype would still apply. */
10498
char ldapssl_install_routines ();
10502
ldapssl_install_routines ();
10507
rm -f conftest.$ac_objext conftest$ac_exeext
10508
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10509
(eval $ac_link) 2>conftest.er1
10511
grep -v '^ *+' conftest.er1 >conftest.err
10513
cat conftest.err >&5
10514
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10515
(exit $ac_status); } &&
10516
{ ac_try='test -z "$ac_c_werror_flag"
10517
|| test ! -s conftest.err'
10518
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10519
(eval $ac_try) 2>&5
10521
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10522
(exit $ac_status); }; } &&
10523
{ ac_try='test -s conftest$ac_exeext'
10524
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10525
(eval $ac_try) 2>&5
10527
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10528
(exit $ac_status); }; }; then
10529
eval "$as_ac_Lib=yes"
10531
echo "$as_me: failed program was:" >&5
10532
sed 's/^/| /' conftest.$ac_ext >&5
10534
eval "$as_ac_Lib=no"
10536
rm -f conftest.err conftest.$ac_objext \
10537
conftest$ac_exeext conftest.$ac_ext
10538
LIBS=$ac_check_lib_save_LIBS
10540
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
10541
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
10542
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
10543
apu_has_ldapssl_install_routines="1"
10554
if test ${apu_has_ldap} != "1"; then
10557
unset ac_cv_lib_${ldaplib}_ldap_init
10558
unset ac_cv_lib_${ldaplib}___ldap_init
10559
as_ac_Lib=`echo "ac_cv_lib_${ldaplib}''_ldap_init" | $as_tr_sh`
10560
echo "$as_me:$LINENO: checking for ldap_init in -l${ldaplib}" >&5
10561
echo $ECHO_N "checking for ldap_init in -l${ldaplib}... $ECHO_C" >&6
10562
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
10563
echo $ECHO_N "(cached) $ECHO_C" >&6
10565
ac_check_lib_save_LIBS=$LIBS
10566
LIBS="-l${ldaplib} ${extralib} $LIBS"
10567
cat >conftest.$ac_ext <<_ACEOF
10570
cat confdefs.h >>conftest.$ac_ext
10571
cat >>conftest.$ac_ext <<_ACEOF
10572
/* end confdefs.h. */
10574
/* Override any gcc2 internal prototype to avoid an error. */
10578
/* We use char because int might match the return type of a gcc2
10579
builtin and then its argument prototype would still apply. */
10589
rm -f conftest.$ac_objext conftest$ac_exeext
10590
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10591
(eval $ac_link) 2>conftest.er1
10593
grep -v '^ *+' conftest.er1 >conftest.err
10595
cat conftest.err >&5
10596
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10597
(exit $ac_status); } &&
10598
{ ac_try='test -z "$ac_c_werror_flag"
10599
|| test ! -s conftest.err'
10600
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10601
(eval $ac_try) 2>&5
10603
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10604
(exit $ac_status); }; } &&
10605
{ ac_try='test -s conftest$ac_exeext'
10606
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10607
(eval $ac_try) 2>&5
10609
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10610
(exit $ac_status); }; }; then
10611
eval "$as_ac_Lib=yes"
10613
echo "$as_me: failed program was:" >&5
10614
sed 's/^/| /' conftest.$ac_ext >&5
10616
eval "$as_ac_Lib=no"
10618
rm -f conftest.err conftest.$ac_objext \
10619
conftest$ac_exeext conftest.$ac_ext
10620
LIBS=$ac_check_lib_save_LIBS
10622
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
10623
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
10624
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
10627
if test "x$APRUTIL_EXPORT_LIBS" = "x"; then
10628
test "x$silent" != "xyes" && echo " setting APRUTIL_EXPORT_LIBS to \"-l${ldaplib} ${extralib}\""
10629
APRUTIL_EXPORT_LIBS="-l${ldaplib} ${extralib}"
10631
apr_addto_bugger="-l${ldaplib} ${extralib}"
10632
for i in $apr_addto_bugger; do
10633
apr_addto_duplicate="0"
10634
for j in $APRUTIL_EXPORT_LIBS; do
10635
if test "x$i" = "x$j"; then
10636
apr_addto_duplicate="1"
10640
if test $apr_addto_duplicate = "0"; then
10641
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_EXPORT_LIBS"
10642
APRUTIL_EXPORT_LIBS="$APRUTIL_EXPORT_LIBS $i"
10648
if test "x$APRUTIL_LIBS" = "x"; then
10649
test "x$silent" != "xyes" && echo " setting APRUTIL_LIBS to \"-l${ldaplib} ${extralib}\""
10650
APRUTIL_LIBS="-l${ldaplib} ${extralib}"
10652
apr_addto_bugger="-l${ldaplib} ${extralib}"
10653
for i in $apr_addto_bugger; do
10654
apr_addto_duplicate="0"
10655
for j in $APRUTIL_LIBS; do
10656
if test "x$i" = "x$j"; then
10657
apr_addto_duplicate="1"
10661
if test $apr_addto_duplicate = "0"; then
10662
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LIBS"
10663
APRUTIL_LIBS="$APRUTIL_LIBS $i"
10668
as_ac_Lib=`echo "ac_cv_lib_${ldaplib}''_ldapssl_client_init" | $as_tr_sh`
10669
echo "$as_me:$LINENO: checking for ldapssl_client_init in -l${ldaplib}" >&5
10670
echo $ECHO_N "checking for ldapssl_client_init in -l${ldaplib}... $ECHO_C" >&6
10671
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
10672
echo $ECHO_N "(cached) $ECHO_C" >&6
10674
ac_check_lib_save_LIBS=$LIBS
10675
LIBS="-l${ldaplib} ${extralib} $LIBS"
10676
cat >conftest.$ac_ext <<_ACEOF
10679
cat confdefs.h >>conftest.$ac_ext
10680
cat >>conftest.$ac_ext <<_ACEOF
10681
/* end confdefs.h. */
10683
/* Override any gcc2 internal prototype to avoid an error. */
10687
/* We use char because int might match the return type of a gcc2
10688
builtin and then its argument prototype would still apply. */
10689
char ldapssl_client_init ();
10693
ldapssl_client_init ();
10698
rm -f conftest.$ac_objext conftest$ac_exeext
10699
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10700
(eval $ac_link) 2>conftest.er1
10702
grep -v '^ *+' conftest.er1 >conftest.err
10704
cat conftest.err >&5
10705
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10706
(exit $ac_status); } &&
10707
{ ac_try='test -z "$ac_c_werror_flag"
10708
|| test ! -s conftest.err'
10709
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10710
(eval $ac_try) 2>&5
10712
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10713
(exit $ac_status); }; } &&
10714
{ ac_try='test -s conftest$ac_exeext'
10715
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10716
(eval $ac_try) 2>&5
10718
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10719
(exit $ac_status); }; }; then
10720
eval "$as_ac_Lib=yes"
10722
echo "$as_me: failed program was:" >&5
10723
sed 's/^/| /' conftest.$ac_ext >&5
10725
eval "$as_ac_Lib=no"
10727
rm -f conftest.err conftest.$ac_objext \
10728
conftest$ac_exeext conftest.$ac_ext
10729
LIBS=$ac_check_lib_save_LIBS
10731
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
10732
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
10733
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
10734
apu_has_ldapssl_client_init="1"
10737
as_ac_Lib=`echo "ac_cv_lib_${ldaplib}''_ldapssl_client_deinit" | $as_tr_sh`
10738
echo "$as_me:$LINENO: checking for ldapssl_client_deinit in -l${ldaplib}" >&5
10739
echo $ECHO_N "checking for ldapssl_client_deinit in -l${ldaplib}... $ECHO_C" >&6
10740
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
10741
echo $ECHO_N "(cached) $ECHO_C" >&6
10743
ac_check_lib_save_LIBS=$LIBS
10744
LIBS="-l${ldaplib} ${extralib} $LIBS"
10745
cat >conftest.$ac_ext <<_ACEOF
10748
cat confdefs.h >>conftest.$ac_ext
10749
cat >>conftest.$ac_ext <<_ACEOF
10750
/* end confdefs.h. */
10752
/* Override any gcc2 internal prototype to avoid an error. */
10756
/* We use char because int might match the return type of a gcc2
10757
builtin and then its argument prototype would still apply. */
10758
char ldapssl_client_deinit ();
10762
ldapssl_client_deinit ();
10767
rm -f conftest.$ac_objext conftest$ac_exeext
10768
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10769
(eval $ac_link) 2>conftest.er1
10771
grep -v '^ *+' conftest.er1 >conftest.err
10773
cat conftest.err >&5
10774
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10775
(exit $ac_status); } &&
10776
{ ac_try='test -z "$ac_c_werror_flag"
10777
|| test ! -s conftest.err'
10778
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10779
(eval $ac_try) 2>&5
10781
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10782
(exit $ac_status); }; } &&
10783
{ ac_try='test -s conftest$ac_exeext'
10784
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10785
(eval $ac_try) 2>&5
10787
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10788
(exit $ac_status); }; }; then
10789
eval "$as_ac_Lib=yes"
10791
echo "$as_me: failed program was:" >&5
10792
sed 's/^/| /' conftest.$ac_ext >&5
10794
eval "$as_ac_Lib=no"
10796
rm -f conftest.err conftest.$ac_objext \
10797
conftest$ac_exeext conftest.$ac_ext
10798
LIBS=$ac_check_lib_save_LIBS
10800
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
10801
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
10802
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
10803
apu_has_ldapssl_client_deinit="1"
10806
as_ac_Lib=`echo "ac_cv_lib_${ldaplib}''_ldapssl_add_trusted_cert" | $as_tr_sh`
10807
echo "$as_me:$LINENO: checking for ldapssl_add_trusted_cert in -l${ldaplib}" >&5
10808
echo $ECHO_N "checking for ldapssl_add_trusted_cert in -l${ldaplib}... $ECHO_C" >&6
10809
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
10810
echo $ECHO_N "(cached) $ECHO_C" >&6
10812
ac_check_lib_save_LIBS=$LIBS
10813
LIBS="-l${ldaplib} ${extralib} $LIBS"
10814
cat >conftest.$ac_ext <<_ACEOF
10817
cat confdefs.h >>conftest.$ac_ext
10818
cat >>conftest.$ac_ext <<_ACEOF
10819
/* end confdefs.h. */
10821
/* Override any gcc2 internal prototype to avoid an error. */
10825
/* We use char because int might match the return type of a gcc2
10826
builtin and then its argument prototype would still apply. */
10827
char ldapssl_add_trusted_cert ();
10831
ldapssl_add_trusted_cert ();
10836
rm -f conftest.$ac_objext conftest$ac_exeext
10837
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10838
(eval $ac_link) 2>conftest.er1
10840
grep -v '^ *+' conftest.er1 >conftest.err
10842
cat conftest.err >&5
10843
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10844
(exit $ac_status); } &&
10845
{ ac_try='test -z "$ac_c_werror_flag"
10846
|| test ! -s conftest.err'
10847
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10848
(eval $ac_try) 2>&5
10850
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10851
(exit $ac_status); }; } &&
10852
{ ac_try='test -s conftest$ac_exeext'
10853
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10854
(eval $ac_try) 2>&5
10856
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10857
(exit $ac_status); }; }; then
10858
eval "$as_ac_Lib=yes"
10860
echo "$as_me: failed program was:" >&5
10861
sed 's/^/| /' conftest.$ac_ext >&5
10863
eval "$as_ac_Lib=no"
10865
rm -f conftest.err conftest.$ac_objext \
10866
conftest$ac_exeext conftest.$ac_ext
10867
LIBS=$ac_check_lib_save_LIBS
10869
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
10870
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
10871
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
10872
apu_has_ldapssl_add_trusted_cert="1"
10875
as_ac_Lib=`echo "ac_cv_lib_${ldaplib}''_ldap_start_tls_s" | $as_tr_sh`
10876
echo "$as_me:$LINENO: checking for ldap_start_tls_s in -l${ldaplib}" >&5
10877
echo $ECHO_N "checking for ldap_start_tls_s in -l${ldaplib}... $ECHO_C" >&6
10878
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
10879
echo $ECHO_N "(cached) $ECHO_C" >&6
10881
ac_check_lib_save_LIBS=$LIBS
10882
LIBS="-l${ldaplib} ${extralib} $LIBS"
10883
cat >conftest.$ac_ext <<_ACEOF
10886
cat confdefs.h >>conftest.$ac_ext
10887
cat >>conftest.$ac_ext <<_ACEOF
10888
/* end confdefs.h. */
10890
/* Override any gcc2 internal prototype to avoid an error. */
10894
/* We use char because int might match the return type of a gcc2
10895
builtin and then its argument prototype would still apply. */
10896
char ldap_start_tls_s ();
10900
ldap_start_tls_s ();
10905
rm -f conftest.$ac_objext conftest$ac_exeext
10906
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10907
(eval $ac_link) 2>conftest.er1
10909
grep -v '^ *+' conftest.er1 >conftest.err
10911
cat conftest.err >&5
10912
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10913
(exit $ac_status); } &&
10914
{ ac_try='test -z "$ac_c_werror_flag"
10915
|| test ! -s conftest.err'
10916
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10917
(eval $ac_try) 2>&5
10919
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10920
(exit $ac_status); }; } &&
10921
{ ac_try='test -s conftest$ac_exeext'
10922
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10923
(eval $ac_try) 2>&5
10925
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10926
(exit $ac_status); }; }; then
10927
eval "$as_ac_Lib=yes"
10929
echo "$as_me: failed program was:" >&5
10930
sed 's/^/| /' conftest.$ac_ext >&5
10932
eval "$as_ac_Lib=no"
10934
rm -f conftest.err conftest.$ac_objext \
10935
conftest$ac_exeext conftest.$ac_ext
10936
LIBS=$ac_check_lib_save_LIBS
10938
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
10939
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
10940
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
10941
apu_has_ldap_start_tls_s="1"
10944
as_ac_Lib=`echo "ac_cv_lib_${ldaplib}''_ldap_sslinit" | $as_tr_sh`
10945
echo "$as_me:$LINENO: checking for ldap_sslinit in -l${ldaplib}" >&5
10946
echo $ECHO_N "checking for ldap_sslinit in -l${ldaplib}... $ECHO_C" >&6
10947
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
10948
echo $ECHO_N "(cached) $ECHO_C" >&6
10950
ac_check_lib_save_LIBS=$LIBS
10951
LIBS="-l${ldaplib} ${extralib} $LIBS"
10952
cat >conftest.$ac_ext <<_ACEOF
10955
cat confdefs.h >>conftest.$ac_ext
10956
cat >>conftest.$ac_ext <<_ACEOF
10957
/* end confdefs.h. */
10959
/* Override any gcc2 internal prototype to avoid an error. */
10963
/* We use char because int might match the return type of a gcc2
10964
builtin and then its argument prototype would still apply. */
10965
char ldap_sslinit ();
10974
rm -f conftest.$ac_objext conftest$ac_exeext
10975
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10976
(eval $ac_link) 2>conftest.er1
10978
grep -v '^ *+' conftest.er1 >conftest.err
10980
cat conftest.err >&5
10981
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10982
(exit $ac_status); } &&
10983
{ ac_try='test -z "$ac_c_werror_flag"
10984
|| test ! -s conftest.err'
10985
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10986
(eval $ac_try) 2>&5
10988
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10989
(exit $ac_status); }; } &&
10990
{ ac_try='test -s conftest$ac_exeext'
10991
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10992
(eval $ac_try) 2>&5
10994
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10995
(exit $ac_status); }; }; then
10996
eval "$as_ac_Lib=yes"
10998
echo "$as_me: failed program was:" >&5
10999
sed 's/^/| /' conftest.$ac_ext >&5
11001
eval "$as_ac_Lib=no"
11003
rm -f conftest.err conftest.$ac_objext \
11004
conftest$ac_exeext conftest.$ac_ext
11005
LIBS=$ac_check_lib_save_LIBS
11007
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
11008
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
11009
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
11010
apu_has_ldap_sslinit="1"
11013
as_ac_Lib=`echo "ac_cv_lib_${ldaplib}''_ldapssl_init" | $as_tr_sh`
11014
echo "$as_me:$LINENO: checking for ldapssl_init in -l${ldaplib}" >&5
11015
echo $ECHO_N "checking for ldapssl_init in -l${ldaplib}... $ECHO_C" >&6
11016
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
11017
echo $ECHO_N "(cached) $ECHO_C" >&6
11019
ac_check_lib_save_LIBS=$LIBS
11020
LIBS="-l${ldaplib} ${extralib} $LIBS"
11021
cat >conftest.$ac_ext <<_ACEOF
11024
cat confdefs.h >>conftest.$ac_ext
11025
cat >>conftest.$ac_ext <<_ACEOF
11026
/* end confdefs.h. */
11028
/* Override any gcc2 internal prototype to avoid an error. */
11032
/* We use char because int might match the return type of a gcc2
11033
builtin and then its argument prototype would still apply. */
11034
char ldapssl_init ();
11043
rm -f conftest.$ac_objext conftest$ac_exeext
11044
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11045
(eval $ac_link) 2>conftest.er1
11047
grep -v '^ *+' conftest.er1 >conftest.err
11049
cat conftest.err >&5
11050
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11051
(exit $ac_status); } &&
11052
{ ac_try='test -z "$ac_c_werror_flag"
11053
|| test ! -s conftest.err'
11054
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11055
(eval $ac_try) 2>&5
11057
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11058
(exit $ac_status); }; } &&
11059
{ ac_try='test -s conftest$ac_exeext'
11060
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11061
(eval $ac_try) 2>&5
11063
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11064
(exit $ac_status); }; }; then
11065
eval "$as_ac_Lib=yes"
11067
echo "$as_me: failed program was:" >&5
11068
sed 's/^/| /' conftest.$ac_ext >&5
11070
eval "$as_ac_Lib=no"
11072
rm -f conftest.err conftest.$ac_objext \
11073
conftest$ac_exeext conftest.$ac_ext
11074
LIBS=$ac_check_lib_save_LIBS
11076
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
11077
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
11078
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
11079
apu_has_ldapssl_init="1"
11082
as_ac_Lib=`echo "ac_cv_lib_${ldaplib}''_ldapssl_install_routines" | $as_tr_sh`
11083
echo "$as_me:$LINENO: checking for ldapssl_install_routines in -l${ldaplib}" >&5
11084
echo $ECHO_N "checking for ldapssl_install_routines in -l${ldaplib}... $ECHO_C" >&6
11085
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
11086
echo $ECHO_N "(cached) $ECHO_C" >&6
11088
ac_check_lib_save_LIBS=$LIBS
11089
LIBS="-l${ldaplib} ${extralib} $LIBS"
11090
cat >conftest.$ac_ext <<_ACEOF
11093
cat confdefs.h >>conftest.$ac_ext
11094
cat >>conftest.$ac_ext <<_ACEOF
11095
/* end confdefs.h. */
11097
/* Override any gcc2 internal prototype to avoid an error. */
11101
/* We use char because int might match the return type of a gcc2
11102
builtin and then its argument prototype would still apply. */
11103
char ldapssl_install_routines ();
11107
ldapssl_install_routines ();
11112
rm -f conftest.$ac_objext conftest$ac_exeext
11113
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11114
(eval $ac_link) 2>conftest.er1
11116
grep -v '^ *+' conftest.er1 >conftest.err
11118
cat conftest.err >&5
11119
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11120
(exit $ac_status); } &&
11121
{ ac_try='test -z "$ac_c_werror_flag"
11122
|| test ! -s conftest.err'
11123
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11124
(eval $ac_try) 2>&5
11126
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11127
(exit $ac_status); }; } &&
11128
{ ac_try='test -s conftest$ac_exeext'
11129
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11130
(eval $ac_try) 2>&5
11132
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11133
(exit $ac_status); }; }; then
11134
eval "$as_ac_Lib=yes"
11136
echo "$as_me: failed program was:" >&5
11137
sed 's/^/| /' conftest.$ac_ext >&5
11139
eval "$as_ac_Lib=no"
11141
rm -f conftest.err conftest.$ac_objext \
11142
conftest$ac_exeext conftest.$ac_ext
11143
LIBS=$ac_check_lib_save_LIBS
11145
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
11146
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
11147
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
11148
apu_has_ldapssl_install_routines="1"
11158
if test ${apu_has_ldap} != "1"; then
11160
extralib="-lresolv"
11161
unset ac_cv_lib_${ldaplib}_ldap_init
11162
unset ac_cv_lib_${ldaplib}___ldap_init
11163
as_ac_Lib=`echo "ac_cv_lib_${ldaplib}''_ldap_init" | $as_tr_sh`
11164
echo "$as_me:$LINENO: checking for ldap_init in -l${ldaplib}" >&5
11165
echo $ECHO_N "checking for ldap_init in -l${ldaplib}... $ECHO_C" >&6
11166
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
11167
echo $ECHO_N "(cached) $ECHO_C" >&6
11169
ac_check_lib_save_LIBS=$LIBS
11170
LIBS="-l${ldaplib} ${extralib} $LIBS"
11171
cat >conftest.$ac_ext <<_ACEOF
11174
cat confdefs.h >>conftest.$ac_ext
11175
cat >>conftest.$ac_ext <<_ACEOF
11176
/* end confdefs.h. */
11178
/* Override any gcc2 internal prototype to avoid an error. */
11182
/* We use char because int might match the return type of a gcc2
11183
builtin and then its argument prototype would still apply. */
11193
rm -f conftest.$ac_objext conftest$ac_exeext
11194
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11195
(eval $ac_link) 2>conftest.er1
11197
grep -v '^ *+' conftest.er1 >conftest.err
11199
cat conftest.err >&5
11200
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11201
(exit $ac_status); } &&
11202
{ ac_try='test -z "$ac_c_werror_flag"
11203
|| test ! -s conftest.err'
11204
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11205
(eval $ac_try) 2>&5
11207
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11208
(exit $ac_status); }; } &&
11209
{ ac_try='test -s conftest$ac_exeext'
11210
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11211
(eval $ac_try) 2>&5
11213
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11214
(exit $ac_status); }; }; then
11215
eval "$as_ac_Lib=yes"
11217
echo "$as_me: failed program was:" >&5
11218
sed 's/^/| /' conftest.$ac_ext >&5
11220
eval "$as_ac_Lib=no"
11222
rm -f conftest.err conftest.$ac_objext \
11223
conftest$ac_exeext conftest.$ac_ext
11224
LIBS=$ac_check_lib_save_LIBS
11226
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
11227
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
11228
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
11231
if test "x$APRUTIL_EXPORT_LIBS" = "x"; then
11232
test "x$silent" != "xyes" && echo " setting APRUTIL_EXPORT_LIBS to \"-l${ldaplib} ${extralib}\""
11233
APRUTIL_EXPORT_LIBS="-l${ldaplib} ${extralib}"
11235
apr_addto_bugger="-l${ldaplib} ${extralib}"
11236
for i in $apr_addto_bugger; do
11237
apr_addto_duplicate="0"
11238
for j in $APRUTIL_EXPORT_LIBS; do
11239
if test "x$i" = "x$j"; then
11240
apr_addto_duplicate="1"
11244
if test $apr_addto_duplicate = "0"; then
11245
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_EXPORT_LIBS"
11246
APRUTIL_EXPORT_LIBS="$APRUTIL_EXPORT_LIBS $i"
11252
if test "x$APRUTIL_LIBS" = "x"; then
11253
test "x$silent" != "xyes" && echo " setting APRUTIL_LIBS to \"-l${ldaplib} ${extralib}\""
11254
APRUTIL_LIBS="-l${ldaplib} ${extralib}"
11256
apr_addto_bugger="-l${ldaplib} ${extralib}"
11257
for i in $apr_addto_bugger; do
11258
apr_addto_duplicate="0"
11259
for j in $APRUTIL_LIBS; do
11260
if test "x$i" = "x$j"; then
11261
apr_addto_duplicate="1"
11265
if test $apr_addto_duplicate = "0"; then
11266
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LIBS"
11267
APRUTIL_LIBS="$APRUTIL_LIBS $i"
11272
as_ac_Lib=`echo "ac_cv_lib_${ldaplib}''_ldapssl_client_init" | $as_tr_sh`
11273
echo "$as_me:$LINENO: checking for ldapssl_client_init in -l${ldaplib}" >&5
11274
echo $ECHO_N "checking for ldapssl_client_init in -l${ldaplib}... $ECHO_C" >&6
11275
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
11276
echo $ECHO_N "(cached) $ECHO_C" >&6
11278
ac_check_lib_save_LIBS=$LIBS
11279
LIBS="-l${ldaplib} ${extralib} $LIBS"
11280
cat >conftest.$ac_ext <<_ACEOF
11283
cat confdefs.h >>conftest.$ac_ext
11284
cat >>conftest.$ac_ext <<_ACEOF
11285
/* end confdefs.h. */
11287
/* Override any gcc2 internal prototype to avoid an error. */
11291
/* We use char because int might match the return type of a gcc2
11292
builtin and then its argument prototype would still apply. */
11293
char ldapssl_client_init ();
11297
ldapssl_client_init ();
11302
rm -f conftest.$ac_objext conftest$ac_exeext
11303
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11304
(eval $ac_link) 2>conftest.er1
11306
grep -v '^ *+' conftest.er1 >conftest.err
11308
cat conftest.err >&5
11309
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11310
(exit $ac_status); } &&
11311
{ ac_try='test -z "$ac_c_werror_flag"
11312
|| test ! -s conftest.err'
11313
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11314
(eval $ac_try) 2>&5
11316
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11317
(exit $ac_status); }; } &&
11318
{ ac_try='test -s conftest$ac_exeext'
11319
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11320
(eval $ac_try) 2>&5
11322
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11323
(exit $ac_status); }; }; then
11324
eval "$as_ac_Lib=yes"
11326
echo "$as_me: failed program was:" >&5
11327
sed 's/^/| /' conftest.$ac_ext >&5
11329
eval "$as_ac_Lib=no"
11331
rm -f conftest.err conftest.$ac_objext \
11332
conftest$ac_exeext conftest.$ac_ext
11333
LIBS=$ac_check_lib_save_LIBS
11335
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
11336
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
11337
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
11338
apu_has_ldapssl_client_init="1"
11341
as_ac_Lib=`echo "ac_cv_lib_${ldaplib}''_ldapssl_client_deinit" | $as_tr_sh`
11342
echo "$as_me:$LINENO: checking for ldapssl_client_deinit in -l${ldaplib}" >&5
11343
echo $ECHO_N "checking for ldapssl_client_deinit in -l${ldaplib}... $ECHO_C" >&6
11344
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
11345
echo $ECHO_N "(cached) $ECHO_C" >&6
11347
ac_check_lib_save_LIBS=$LIBS
11348
LIBS="-l${ldaplib} ${extralib} $LIBS"
11349
cat >conftest.$ac_ext <<_ACEOF
11352
cat confdefs.h >>conftest.$ac_ext
11353
cat >>conftest.$ac_ext <<_ACEOF
11354
/* end confdefs.h. */
11356
/* Override any gcc2 internal prototype to avoid an error. */
11360
/* We use char because int might match the return type of a gcc2
11361
builtin and then its argument prototype would still apply. */
11362
char ldapssl_client_deinit ();
11366
ldapssl_client_deinit ();
11371
rm -f conftest.$ac_objext conftest$ac_exeext
11372
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11373
(eval $ac_link) 2>conftest.er1
11375
grep -v '^ *+' conftest.er1 >conftest.err
11377
cat conftest.err >&5
11378
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11379
(exit $ac_status); } &&
11380
{ ac_try='test -z "$ac_c_werror_flag"
11381
|| test ! -s conftest.err'
11382
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11383
(eval $ac_try) 2>&5
11385
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11386
(exit $ac_status); }; } &&
11387
{ ac_try='test -s conftest$ac_exeext'
11388
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11389
(eval $ac_try) 2>&5
11391
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11392
(exit $ac_status); }; }; then
11393
eval "$as_ac_Lib=yes"
11395
echo "$as_me: failed program was:" >&5
11396
sed 's/^/| /' conftest.$ac_ext >&5
11398
eval "$as_ac_Lib=no"
11400
rm -f conftest.err conftest.$ac_objext \
11401
conftest$ac_exeext conftest.$ac_ext
11402
LIBS=$ac_check_lib_save_LIBS
11404
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
11405
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
11406
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
11407
apu_has_ldapssl_client_deinit="1"
11410
as_ac_Lib=`echo "ac_cv_lib_${ldaplib}''_ldapssl_add_trusted_cert" | $as_tr_sh`
11411
echo "$as_me:$LINENO: checking for ldapssl_add_trusted_cert in -l${ldaplib}" >&5
11412
echo $ECHO_N "checking for ldapssl_add_trusted_cert in -l${ldaplib}... $ECHO_C" >&6
11413
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
11414
echo $ECHO_N "(cached) $ECHO_C" >&6
11416
ac_check_lib_save_LIBS=$LIBS
11417
LIBS="-l${ldaplib} ${extralib} $LIBS"
11418
cat >conftest.$ac_ext <<_ACEOF
11421
cat confdefs.h >>conftest.$ac_ext
11422
cat >>conftest.$ac_ext <<_ACEOF
11423
/* end confdefs.h. */
11425
/* Override any gcc2 internal prototype to avoid an error. */
11429
/* We use char because int might match the return type of a gcc2
11430
builtin and then its argument prototype would still apply. */
11431
char ldapssl_add_trusted_cert ();
11435
ldapssl_add_trusted_cert ();
11440
rm -f conftest.$ac_objext conftest$ac_exeext
11441
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11442
(eval $ac_link) 2>conftest.er1
11444
grep -v '^ *+' conftest.er1 >conftest.err
11446
cat conftest.err >&5
11447
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11448
(exit $ac_status); } &&
11449
{ ac_try='test -z "$ac_c_werror_flag"
11450
|| test ! -s conftest.err'
11451
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11452
(eval $ac_try) 2>&5
11454
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11455
(exit $ac_status); }; } &&
11456
{ ac_try='test -s conftest$ac_exeext'
11457
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11458
(eval $ac_try) 2>&5
11460
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11461
(exit $ac_status); }; }; then
11462
eval "$as_ac_Lib=yes"
11464
echo "$as_me: failed program was:" >&5
11465
sed 's/^/| /' conftest.$ac_ext >&5
11467
eval "$as_ac_Lib=no"
11469
rm -f conftest.err conftest.$ac_objext \
11470
conftest$ac_exeext conftest.$ac_ext
11471
LIBS=$ac_check_lib_save_LIBS
11473
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
11474
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
11475
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
11476
apu_has_ldapssl_add_trusted_cert="1"
11479
as_ac_Lib=`echo "ac_cv_lib_${ldaplib}''_ldap_start_tls_s" | $as_tr_sh`
11480
echo "$as_me:$LINENO: checking for ldap_start_tls_s in -l${ldaplib}" >&5
11481
echo $ECHO_N "checking for ldap_start_tls_s in -l${ldaplib}... $ECHO_C" >&6
11482
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
11483
echo $ECHO_N "(cached) $ECHO_C" >&6
11485
ac_check_lib_save_LIBS=$LIBS
11486
LIBS="-l${ldaplib} ${extralib} $LIBS"
11487
cat >conftest.$ac_ext <<_ACEOF
11490
cat confdefs.h >>conftest.$ac_ext
11491
cat >>conftest.$ac_ext <<_ACEOF
11492
/* end confdefs.h. */
11494
/* Override any gcc2 internal prototype to avoid an error. */
11498
/* We use char because int might match the return type of a gcc2
11499
builtin and then its argument prototype would still apply. */
11500
char ldap_start_tls_s ();
11504
ldap_start_tls_s ();
11509
rm -f conftest.$ac_objext conftest$ac_exeext
11510
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11511
(eval $ac_link) 2>conftest.er1
11513
grep -v '^ *+' conftest.er1 >conftest.err
11515
cat conftest.err >&5
11516
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11517
(exit $ac_status); } &&
11518
{ ac_try='test -z "$ac_c_werror_flag"
11519
|| test ! -s conftest.err'
11520
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11521
(eval $ac_try) 2>&5
11523
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11524
(exit $ac_status); }; } &&
11525
{ ac_try='test -s conftest$ac_exeext'
11526
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11527
(eval $ac_try) 2>&5
11529
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11530
(exit $ac_status); }; }; then
11531
eval "$as_ac_Lib=yes"
11533
echo "$as_me: failed program was:" >&5
11534
sed 's/^/| /' conftest.$ac_ext >&5
11536
eval "$as_ac_Lib=no"
11538
rm -f conftest.err conftest.$ac_objext \
11539
conftest$ac_exeext conftest.$ac_ext
11540
LIBS=$ac_check_lib_save_LIBS
11542
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
11543
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
11544
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
11545
apu_has_ldap_start_tls_s="1"
11548
as_ac_Lib=`echo "ac_cv_lib_${ldaplib}''_ldap_sslinit" | $as_tr_sh`
11549
echo "$as_me:$LINENO: checking for ldap_sslinit in -l${ldaplib}" >&5
11550
echo $ECHO_N "checking for ldap_sslinit in -l${ldaplib}... $ECHO_C" >&6
11551
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
11552
echo $ECHO_N "(cached) $ECHO_C" >&6
11554
ac_check_lib_save_LIBS=$LIBS
11555
LIBS="-l${ldaplib} ${extralib} $LIBS"
11556
cat >conftest.$ac_ext <<_ACEOF
11559
cat confdefs.h >>conftest.$ac_ext
11560
cat >>conftest.$ac_ext <<_ACEOF
11561
/* end confdefs.h. */
11563
/* Override any gcc2 internal prototype to avoid an error. */
11567
/* We use char because int might match the return type of a gcc2
11568
builtin and then its argument prototype would still apply. */
11569
char ldap_sslinit ();
11578
rm -f conftest.$ac_objext conftest$ac_exeext
11579
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11580
(eval $ac_link) 2>conftest.er1
11582
grep -v '^ *+' conftest.er1 >conftest.err
11584
cat conftest.err >&5
11585
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11586
(exit $ac_status); } &&
11587
{ ac_try='test -z "$ac_c_werror_flag"
11588
|| test ! -s conftest.err'
11589
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11590
(eval $ac_try) 2>&5
11592
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11593
(exit $ac_status); }; } &&
11594
{ ac_try='test -s conftest$ac_exeext'
11595
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11596
(eval $ac_try) 2>&5
11598
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11599
(exit $ac_status); }; }; then
11600
eval "$as_ac_Lib=yes"
11602
echo "$as_me: failed program was:" >&5
11603
sed 's/^/| /' conftest.$ac_ext >&5
11605
eval "$as_ac_Lib=no"
11607
rm -f conftest.err conftest.$ac_objext \
11608
conftest$ac_exeext conftest.$ac_ext
11609
LIBS=$ac_check_lib_save_LIBS
11611
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
11612
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
11613
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
11614
apu_has_ldap_sslinit="1"
11617
as_ac_Lib=`echo "ac_cv_lib_${ldaplib}''_ldapssl_init" | $as_tr_sh`
11618
echo "$as_me:$LINENO: checking for ldapssl_init in -l${ldaplib}" >&5
11619
echo $ECHO_N "checking for ldapssl_init in -l${ldaplib}... $ECHO_C" >&6
11620
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
11621
echo $ECHO_N "(cached) $ECHO_C" >&6
11623
ac_check_lib_save_LIBS=$LIBS
11624
LIBS="-l${ldaplib} ${extralib} $LIBS"
11625
cat >conftest.$ac_ext <<_ACEOF
11628
cat confdefs.h >>conftest.$ac_ext
11629
cat >>conftest.$ac_ext <<_ACEOF
11630
/* end confdefs.h. */
11632
/* Override any gcc2 internal prototype to avoid an error. */
11636
/* We use char because int might match the return type of a gcc2
11637
builtin and then its argument prototype would still apply. */
11638
char ldapssl_init ();
11647
rm -f conftest.$ac_objext conftest$ac_exeext
11648
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11649
(eval $ac_link) 2>conftest.er1
11651
grep -v '^ *+' conftest.er1 >conftest.err
11653
cat conftest.err >&5
11654
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11655
(exit $ac_status); } &&
11656
{ ac_try='test -z "$ac_c_werror_flag"
11657
|| test ! -s conftest.err'
11658
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11659
(eval $ac_try) 2>&5
11661
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11662
(exit $ac_status); }; } &&
11663
{ ac_try='test -s conftest$ac_exeext'
11664
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11665
(eval $ac_try) 2>&5
11667
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11668
(exit $ac_status); }; }; then
11669
eval "$as_ac_Lib=yes"
11671
echo "$as_me: failed program was:" >&5
11672
sed 's/^/| /' conftest.$ac_ext >&5
11674
eval "$as_ac_Lib=no"
11676
rm -f conftest.err conftest.$ac_objext \
11677
conftest$ac_exeext conftest.$ac_ext
11678
LIBS=$ac_check_lib_save_LIBS
11680
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
11681
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
11682
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
11683
apu_has_ldapssl_init="1"
11686
as_ac_Lib=`echo "ac_cv_lib_${ldaplib}''_ldapssl_install_routines" | $as_tr_sh`
11687
echo "$as_me:$LINENO: checking for ldapssl_install_routines in -l${ldaplib}" >&5
11688
echo $ECHO_N "checking for ldapssl_install_routines in -l${ldaplib}... $ECHO_C" >&6
11689
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
11690
echo $ECHO_N "(cached) $ECHO_C" >&6
11692
ac_check_lib_save_LIBS=$LIBS
11693
LIBS="-l${ldaplib} ${extralib} $LIBS"
11694
cat >conftest.$ac_ext <<_ACEOF
11697
cat confdefs.h >>conftest.$ac_ext
11698
cat >>conftest.$ac_ext <<_ACEOF
11699
/* end confdefs.h. */
11701
/* Override any gcc2 internal prototype to avoid an error. */
11705
/* We use char because int might match the return type of a gcc2
11706
builtin and then its argument prototype would still apply. */
11707
char ldapssl_install_routines ();
11711
ldapssl_install_routines ();
11716
rm -f conftest.$ac_objext conftest$ac_exeext
11717
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11718
(eval $ac_link) 2>conftest.er1
11720
grep -v '^ *+' conftest.er1 >conftest.err
11722
cat conftest.err >&5
11723
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11724
(exit $ac_status); } &&
11725
{ ac_try='test -z "$ac_c_werror_flag"
11726
|| test ! -s conftest.err'
11727
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11728
(eval $ac_try) 2>&5
11730
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11731
(exit $ac_status); }; } &&
11732
{ ac_try='test -s conftest$ac_exeext'
11733
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11734
(eval $ac_try) 2>&5
11736
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11737
(exit $ac_status); }; }; then
11738
eval "$as_ac_Lib=yes"
11740
echo "$as_me: failed program was:" >&5
11741
sed 's/^/| /' conftest.$ac_ext >&5
11743
eval "$as_ac_Lib=no"
11745
rm -f conftest.err conftest.$ac_objext \
11746
conftest$ac_exeext conftest.$ac_ext
11747
LIBS=$ac_check_lib_save_LIBS
11749
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
11750
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
11751
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
11752
apu_has_ldapssl_install_routines="1"
11762
if test ${apu_has_ldap} != "1"; then
11764
extralib="-lresolv -lsocket -lnsl"
11765
unset ac_cv_lib_${ldaplib}_ldap_init
11766
unset ac_cv_lib_${ldaplib}___ldap_init
11767
as_ac_Lib=`echo "ac_cv_lib_${ldaplib}''_ldap_init" | $as_tr_sh`
11768
echo "$as_me:$LINENO: checking for ldap_init in -l${ldaplib}" >&5
11769
echo $ECHO_N "checking for ldap_init in -l${ldaplib}... $ECHO_C" >&6
11770
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
11771
echo $ECHO_N "(cached) $ECHO_C" >&6
11773
ac_check_lib_save_LIBS=$LIBS
11774
LIBS="-l${ldaplib} ${extralib} $LIBS"
11775
cat >conftest.$ac_ext <<_ACEOF
11778
cat confdefs.h >>conftest.$ac_ext
11779
cat >>conftest.$ac_ext <<_ACEOF
11780
/* end confdefs.h. */
11782
/* Override any gcc2 internal prototype to avoid an error. */
11786
/* We use char because int might match the return type of a gcc2
11787
builtin and then its argument prototype would still apply. */
11797
rm -f conftest.$ac_objext conftest$ac_exeext
11798
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11799
(eval $ac_link) 2>conftest.er1
11801
grep -v '^ *+' conftest.er1 >conftest.err
11803
cat conftest.err >&5
11804
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11805
(exit $ac_status); } &&
11806
{ ac_try='test -z "$ac_c_werror_flag"
11807
|| test ! -s conftest.err'
11808
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11809
(eval $ac_try) 2>&5
11811
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11812
(exit $ac_status); }; } &&
11813
{ ac_try='test -s conftest$ac_exeext'
11814
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11815
(eval $ac_try) 2>&5
11817
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11818
(exit $ac_status); }; }; then
11819
eval "$as_ac_Lib=yes"
11821
echo "$as_me: failed program was:" >&5
11822
sed 's/^/| /' conftest.$ac_ext >&5
11824
eval "$as_ac_Lib=no"
11826
rm -f conftest.err conftest.$ac_objext \
11827
conftest$ac_exeext conftest.$ac_ext
11828
LIBS=$ac_check_lib_save_LIBS
11830
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
11831
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
11832
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
11835
if test "x$APRUTIL_EXPORT_LIBS" = "x"; then
11836
test "x$silent" != "xyes" && echo " setting APRUTIL_EXPORT_LIBS to \"-l${ldaplib} ${extralib}\""
11837
APRUTIL_EXPORT_LIBS="-l${ldaplib} ${extralib}"
11839
apr_addto_bugger="-l${ldaplib} ${extralib}"
11840
for i in $apr_addto_bugger; do
11841
apr_addto_duplicate="0"
11842
for j in $APRUTIL_EXPORT_LIBS; do
11843
if test "x$i" = "x$j"; then
11844
apr_addto_duplicate="1"
11848
if test $apr_addto_duplicate = "0"; then
11849
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_EXPORT_LIBS"
11850
APRUTIL_EXPORT_LIBS="$APRUTIL_EXPORT_LIBS $i"
11856
if test "x$APRUTIL_LIBS" = "x"; then
11857
test "x$silent" != "xyes" && echo " setting APRUTIL_LIBS to \"-l${ldaplib} ${extralib}\""
11858
APRUTIL_LIBS="-l${ldaplib} ${extralib}"
11860
apr_addto_bugger="-l${ldaplib} ${extralib}"
11861
for i in $apr_addto_bugger; do
11862
apr_addto_duplicate="0"
11863
for j in $APRUTIL_LIBS; do
11864
if test "x$i" = "x$j"; then
11865
apr_addto_duplicate="1"
11869
if test $apr_addto_duplicate = "0"; then
11870
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LIBS"
11871
APRUTIL_LIBS="$APRUTIL_LIBS $i"
11876
as_ac_Lib=`echo "ac_cv_lib_${ldaplib}''_ldapssl_client_init" | $as_tr_sh`
11877
echo "$as_me:$LINENO: checking for ldapssl_client_init in -l${ldaplib}" >&5
11878
echo $ECHO_N "checking for ldapssl_client_init in -l${ldaplib}... $ECHO_C" >&6
11879
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
11880
echo $ECHO_N "(cached) $ECHO_C" >&6
11882
ac_check_lib_save_LIBS=$LIBS
11883
LIBS="-l${ldaplib} ${extralib} $LIBS"
11884
cat >conftest.$ac_ext <<_ACEOF
11887
cat confdefs.h >>conftest.$ac_ext
11888
cat >>conftest.$ac_ext <<_ACEOF
11889
/* end confdefs.h. */
11891
/* Override any gcc2 internal prototype to avoid an error. */
11895
/* We use char because int might match the return type of a gcc2
11896
builtin and then its argument prototype would still apply. */
11897
char ldapssl_client_init ();
11901
ldapssl_client_init ();
11906
rm -f conftest.$ac_objext conftest$ac_exeext
11907
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11908
(eval $ac_link) 2>conftest.er1
11910
grep -v '^ *+' conftest.er1 >conftest.err
11912
cat conftest.err >&5
11913
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11914
(exit $ac_status); } &&
11915
{ ac_try='test -z "$ac_c_werror_flag"
11916
|| test ! -s conftest.err'
11917
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11918
(eval $ac_try) 2>&5
11920
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11921
(exit $ac_status); }; } &&
11922
{ ac_try='test -s conftest$ac_exeext'
11923
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11924
(eval $ac_try) 2>&5
11926
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11927
(exit $ac_status); }; }; then
11928
eval "$as_ac_Lib=yes"
11930
echo "$as_me: failed program was:" >&5
11931
sed 's/^/| /' conftest.$ac_ext >&5
11933
eval "$as_ac_Lib=no"
11935
rm -f conftest.err conftest.$ac_objext \
11936
conftest$ac_exeext conftest.$ac_ext
11937
LIBS=$ac_check_lib_save_LIBS
11939
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
11940
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
11941
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
11942
apu_has_ldapssl_client_init="1"
11945
as_ac_Lib=`echo "ac_cv_lib_${ldaplib}''_ldapssl_client_deinit" | $as_tr_sh`
11946
echo "$as_me:$LINENO: checking for ldapssl_client_deinit in -l${ldaplib}" >&5
11947
echo $ECHO_N "checking for ldapssl_client_deinit in -l${ldaplib}... $ECHO_C" >&6
11948
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
11949
echo $ECHO_N "(cached) $ECHO_C" >&6
11951
ac_check_lib_save_LIBS=$LIBS
11952
LIBS="-l${ldaplib} ${extralib} $LIBS"
11953
cat >conftest.$ac_ext <<_ACEOF
11956
cat confdefs.h >>conftest.$ac_ext
11957
cat >>conftest.$ac_ext <<_ACEOF
11958
/* end confdefs.h. */
11960
/* Override any gcc2 internal prototype to avoid an error. */
11964
/* We use char because int might match the return type of a gcc2
11965
builtin and then its argument prototype would still apply. */
11966
char ldapssl_client_deinit ();
11970
ldapssl_client_deinit ();
11975
rm -f conftest.$ac_objext conftest$ac_exeext
11976
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11977
(eval $ac_link) 2>conftest.er1
11979
grep -v '^ *+' conftest.er1 >conftest.err
11981
cat conftest.err >&5
11982
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11983
(exit $ac_status); } &&
11984
{ ac_try='test -z "$ac_c_werror_flag"
11985
|| test ! -s conftest.err'
11986
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11987
(eval $ac_try) 2>&5
11989
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11990
(exit $ac_status); }; } &&
11991
{ ac_try='test -s conftest$ac_exeext'
11992
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11993
(eval $ac_try) 2>&5
11995
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11996
(exit $ac_status); }; }; then
11997
eval "$as_ac_Lib=yes"
11999
echo "$as_me: failed program was:" >&5
12000
sed 's/^/| /' conftest.$ac_ext >&5
12002
eval "$as_ac_Lib=no"
12004
rm -f conftest.err conftest.$ac_objext \
12005
conftest$ac_exeext conftest.$ac_ext
12006
LIBS=$ac_check_lib_save_LIBS
12008
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
12009
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
12010
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
12011
apu_has_ldapssl_client_deinit="1"
12014
as_ac_Lib=`echo "ac_cv_lib_${ldaplib}''_ldapssl_add_trusted_cert" | $as_tr_sh`
12015
echo "$as_me:$LINENO: checking for ldapssl_add_trusted_cert in -l${ldaplib}" >&5
12016
echo $ECHO_N "checking for ldapssl_add_trusted_cert in -l${ldaplib}... $ECHO_C" >&6
12017
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
12018
echo $ECHO_N "(cached) $ECHO_C" >&6
12020
ac_check_lib_save_LIBS=$LIBS
12021
LIBS="-l${ldaplib} ${extralib} $LIBS"
12022
cat >conftest.$ac_ext <<_ACEOF
12025
cat confdefs.h >>conftest.$ac_ext
12026
cat >>conftest.$ac_ext <<_ACEOF
12027
/* end confdefs.h. */
12029
/* Override any gcc2 internal prototype to avoid an error. */
12033
/* We use char because int might match the return type of a gcc2
12034
builtin and then its argument prototype would still apply. */
12035
char ldapssl_add_trusted_cert ();
12039
ldapssl_add_trusted_cert ();
12044
rm -f conftest.$ac_objext conftest$ac_exeext
12045
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12046
(eval $ac_link) 2>conftest.er1
12048
grep -v '^ *+' conftest.er1 >conftest.err
12050
cat conftest.err >&5
12051
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12052
(exit $ac_status); } &&
12053
{ ac_try='test -z "$ac_c_werror_flag"
12054
|| test ! -s conftest.err'
12055
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12056
(eval $ac_try) 2>&5
12058
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12059
(exit $ac_status); }; } &&
12060
{ ac_try='test -s conftest$ac_exeext'
12061
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12062
(eval $ac_try) 2>&5
12064
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12065
(exit $ac_status); }; }; then
12066
eval "$as_ac_Lib=yes"
12068
echo "$as_me: failed program was:" >&5
12069
sed 's/^/| /' conftest.$ac_ext >&5
12071
eval "$as_ac_Lib=no"
12073
rm -f conftest.err conftest.$ac_objext \
12074
conftest$ac_exeext conftest.$ac_ext
12075
LIBS=$ac_check_lib_save_LIBS
12077
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
12078
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
12079
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
12080
apu_has_ldapssl_add_trusted_cert="1"
12083
as_ac_Lib=`echo "ac_cv_lib_${ldaplib}''_ldap_start_tls_s" | $as_tr_sh`
12084
echo "$as_me:$LINENO: checking for ldap_start_tls_s in -l${ldaplib}" >&5
12085
echo $ECHO_N "checking for ldap_start_tls_s in -l${ldaplib}... $ECHO_C" >&6
12086
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
12087
echo $ECHO_N "(cached) $ECHO_C" >&6
12089
ac_check_lib_save_LIBS=$LIBS
12090
LIBS="-l${ldaplib} ${extralib} $LIBS"
12091
cat >conftest.$ac_ext <<_ACEOF
12094
cat confdefs.h >>conftest.$ac_ext
12095
cat >>conftest.$ac_ext <<_ACEOF
12096
/* end confdefs.h. */
12098
/* Override any gcc2 internal prototype to avoid an error. */
12102
/* We use char because int might match the return type of a gcc2
12103
builtin and then its argument prototype would still apply. */
12104
char ldap_start_tls_s ();
12108
ldap_start_tls_s ();
12113
rm -f conftest.$ac_objext conftest$ac_exeext
12114
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12115
(eval $ac_link) 2>conftest.er1
12117
grep -v '^ *+' conftest.er1 >conftest.err
12119
cat conftest.err >&5
12120
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12121
(exit $ac_status); } &&
12122
{ ac_try='test -z "$ac_c_werror_flag"
12123
|| test ! -s conftest.err'
12124
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12125
(eval $ac_try) 2>&5
12127
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12128
(exit $ac_status); }; } &&
12129
{ ac_try='test -s conftest$ac_exeext'
12130
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12131
(eval $ac_try) 2>&5
12133
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12134
(exit $ac_status); }; }; then
12135
eval "$as_ac_Lib=yes"
12137
echo "$as_me: failed program was:" >&5
12138
sed 's/^/| /' conftest.$ac_ext >&5
12140
eval "$as_ac_Lib=no"
12142
rm -f conftest.err conftest.$ac_objext \
12143
conftest$ac_exeext conftest.$ac_ext
12144
LIBS=$ac_check_lib_save_LIBS
12146
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
12147
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
12148
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
12149
apu_has_ldap_start_tls_s="1"
12152
as_ac_Lib=`echo "ac_cv_lib_${ldaplib}''_ldap_sslinit" | $as_tr_sh`
12153
echo "$as_me:$LINENO: checking for ldap_sslinit in -l${ldaplib}" >&5
12154
echo $ECHO_N "checking for ldap_sslinit in -l${ldaplib}... $ECHO_C" >&6
12155
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
12156
echo $ECHO_N "(cached) $ECHO_C" >&6
12158
ac_check_lib_save_LIBS=$LIBS
12159
LIBS="-l${ldaplib} ${extralib} $LIBS"
12160
cat >conftest.$ac_ext <<_ACEOF
12163
cat confdefs.h >>conftest.$ac_ext
12164
cat >>conftest.$ac_ext <<_ACEOF
12165
/* end confdefs.h. */
12167
/* Override any gcc2 internal prototype to avoid an error. */
12171
/* We use char because int might match the return type of a gcc2
12172
builtin and then its argument prototype would still apply. */
12173
char ldap_sslinit ();
12182
rm -f conftest.$ac_objext conftest$ac_exeext
12183
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12184
(eval $ac_link) 2>conftest.er1
12186
grep -v '^ *+' conftest.er1 >conftest.err
12188
cat conftest.err >&5
12189
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12190
(exit $ac_status); } &&
12191
{ ac_try='test -z "$ac_c_werror_flag"
12192
|| test ! -s conftest.err'
12193
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12194
(eval $ac_try) 2>&5
12196
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12197
(exit $ac_status); }; } &&
12198
{ ac_try='test -s conftest$ac_exeext'
12199
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12200
(eval $ac_try) 2>&5
12202
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12203
(exit $ac_status); }; }; then
12204
eval "$as_ac_Lib=yes"
12206
echo "$as_me: failed program was:" >&5
12207
sed 's/^/| /' conftest.$ac_ext >&5
12209
eval "$as_ac_Lib=no"
12211
rm -f conftest.err conftest.$ac_objext \
12212
conftest$ac_exeext conftest.$ac_ext
12213
LIBS=$ac_check_lib_save_LIBS
12215
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
12216
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
12217
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
12218
apu_has_ldap_sslinit="1"
12221
as_ac_Lib=`echo "ac_cv_lib_${ldaplib}''_ldapssl_init" | $as_tr_sh`
12222
echo "$as_me:$LINENO: checking for ldapssl_init in -l${ldaplib}" >&5
12223
echo $ECHO_N "checking for ldapssl_init in -l${ldaplib}... $ECHO_C" >&6
12224
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
12225
echo $ECHO_N "(cached) $ECHO_C" >&6
12227
ac_check_lib_save_LIBS=$LIBS
12228
LIBS="-l${ldaplib} ${extralib} $LIBS"
12229
cat >conftest.$ac_ext <<_ACEOF
12232
cat confdefs.h >>conftest.$ac_ext
12233
cat >>conftest.$ac_ext <<_ACEOF
12234
/* end confdefs.h. */
12236
/* Override any gcc2 internal prototype to avoid an error. */
12240
/* We use char because int might match the return type of a gcc2
12241
builtin and then its argument prototype would still apply. */
12242
char ldapssl_init ();
12251
rm -f conftest.$ac_objext conftest$ac_exeext
12252
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12253
(eval $ac_link) 2>conftest.er1
12255
grep -v '^ *+' conftest.er1 >conftest.err
12257
cat conftest.err >&5
12258
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12259
(exit $ac_status); } &&
12260
{ ac_try='test -z "$ac_c_werror_flag"
12261
|| test ! -s conftest.err'
12262
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12263
(eval $ac_try) 2>&5
12265
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12266
(exit $ac_status); }; } &&
12267
{ ac_try='test -s conftest$ac_exeext'
12268
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12269
(eval $ac_try) 2>&5
12271
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12272
(exit $ac_status); }; }; then
12273
eval "$as_ac_Lib=yes"
12275
echo "$as_me: failed program was:" >&5
12276
sed 's/^/| /' conftest.$ac_ext >&5
12278
eval "$as_ac_Lib=no"
12280
rm -f conftest.err conftest.$ac_objext \
12281
conftest$ac_exeext conftest.$ac_ext
12282
LIBS=$ac_check_lib_save_LIBS
12284
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
12285
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
12286
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
12287
apu_has_ldapssl_init="1"
12290
as_ac_Lib=`echo "ac_cv_lib_${ldaplib}''_ldapssl_install_routines" | $as_tr_sh`
12291
echo "$as_me:$LINENO: checking for ldapssl_install_routines in -l${ldaplib}" >&5
12292
echo $ECHO_N "checking for ldapssl_install_routines in -l${ldaplib}... $ECHO_C" >&6
12293
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
12294
echo $ECHO_N "(cached) $ECHO_C" >&6
12296
ac_check_lib_save_LIBS=$LIBS
12297
LIBS="-l${ldaplib} ${extralib} $LIBS"
12298
cat >conftest.$ac_ext <<_ACEOF
12301
cat confdefs.h >>conftest.$ac_ext
12302
cat >>conftest.$ac_ext <<_ACEOF
12303
/* end confdefs.h. */
12305
/* Override any gcc2 internal prototype to avoid an error. */
12309
/* We use char because int might match the return type of a gcc2
12310
builtin and then its argument prototype would still apply. */
12311
char ldapssl_install_routines ();
12315
ldapssl_install_routines ();
12320
rm -f conftest.$ac_objext conftest$ac_exeext
12321
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12322
(eval $ac_link) 2>conftest.er1
12324
grep -v '^ *+' conftest.er1 >conftest.err
12326
cat conftest.err >&5
12327
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12328
(exit $ac_status); } &&
12329
{ ac_try='test -z "$ac_c_werror_flag"
12330
|| test ! -s conftest.err'
12331
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12332
(eval $ac_try) 2>&5
12334
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12335
(exit $ac_status); }; } &&
12336
{ ac_try='test -s conftest$ac_exeext'
12337
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12338
(eval $ac_try) 2>&5
12340
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12341
(exit $ac_status); }; }; then
12342
eval "$as_ac_Lib=yes"
12344
echo "$as_me: failed program was:" >&5
12345
sed 's/^/| /' conftest.$ac_ext >&5
12347
eval "$as_ac_Lib=no"
12349
rm -f conftest.err conftest.$ac_objext \
12350
conftest$ac_exeext conftest.$ac_ext
12351
LIBS=$ac_check_lib_save_LIBS
12353
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
12354
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
12355
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
12356
apu_has_ldapssl_install_routines="1"
12366
if test ${apu_has_ldap} != "1"; then
12368
extralib="-ldl -lpthread"
12369
unset ac_cv_lib_${ldaplib}_ldap_init
12370
unset ac_cv_lib_${ldaplib}___ldap_init
12371
as_ac_Lib=`echo "ac_cv_lib_${ldaplib}''_ldap_init" | $as_tr_sh`
12372
echo "$as_me:$LINENO: checking for ldap_init in -l${ldaplib}" >&5
12373
echo $ECHO_N "checking for ldap_init in -l${ldaplib}... $ECHO_C" >&6
12374
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
12375
echo $ECHO_N "(cached) $ECHO_C" >&6
12377
ac_check_lib_save_LIBS=$LIBS
12378
LIBS="-l${ldaplib} ${extralib} $LIBS"
12379
cat >conftest.$ac_ext <<_ACEOF
12382
cat confdefs.h >>conftest.$ac_ext
12383
cat >>conftest.$ac_ext <<_ACEOF
12384
/* end confdefs.h. */
12386
/* Override any gcc2 internal prototype to avoid an error. */
12390
/* We use char because int might match the return type of a gcc2
12391
builtin and then its argument prototype would still apply. */
12401
rm -f conftest.$ac_objext conftest$ac_exeext
12402
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12403
(eval $ac_link) 2>conftest.er1
12405
grep -v '^ *+' conftest.er1 >conftest.err
12407
cat conftest.err >&5
12408
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12409
(exit $ac_status); } &&
12410
{ ac_try='test -z "$ac_c_werror_flag"
12411
|| test ! -s conftest.err'
12412
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12413
(eval $ac_try) 2>&5
12415
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12416
(exit $ac_status); }; } &&
12417
{ ac_try='test -s conftest$ac_exeext'
12418
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12419
(eval $ac_try) 2>&5
12421
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12422
(exit $ac_status); }; }; then
12423
eval "$as_ac_Lib=yes"
12425
echo "$as_me: failed program was:" >&5
12426
sed 's/^/| /' conftest.$ac_ext >&5
12428
eval "$as_ac_Lib=no"
12430
rm -f conftest.err conftest.$ac_objext \
12431
conftest$ac_exeext conftest.$ac_ext
12432
LIBS=$ac_check_lib_save_LIBS
12434
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
12435
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
12436
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
12439
if test "x$APRUTIL_EXPORT_LIBS" = "x"; then
12440
test "x$silent" != "xyes" && echo " setting APRUTIL_EXPORT_LIBS to \"-l${ldaplib} ${extralib}\""
12441
APRUTIL_EXPORT_LIBS="-l${ldaplib} ${extralib}"
12443
apr_addto_bugger="-l${ldaplib} ${extralib}"
12444
for i in $apr_addto_bugger; do
12445
apr_addto_duplicate="0"
12446
for j in $APRUTIL_EXPORT_LIBS; do
12447
if test "x$i" = "x$j"; then
12448
apr_addto_duplicate="1"
12452
if test $apr_addto_duplicate = "0"; then
12453
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_EXPORT_LIBS"
12454
APRUTIL_EXPORT_LIBS="$APRUTIL_EXPORT_LIBS $i"
12460
if test "x$APRUTIL_LIBS" = "x"; then
12461
test "x$silent" != "xyes" && echo " setting APRUTIL_LIBS to \"-l${ldaplib} ${extralib}\""
12462
APRUTIL_LIBS="-l${ldaplib} ${extralib}"
12464
apr_addto_bugger="-l${ldaplib} ${extralib}"
12465
for i in $apr_addto_bugger; do
12466
apr_addto_duplicate="0"
12467
for j in $APRUTIL_LIBS; do
12468
if test "x$i" = "x$j"; then
12469
apr_addto_duplicate="1"
12473
if test $apr_addto_duplicate = "0"; then
12474
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LIBS"
12475
APRUTIL_LIBS="$APRUTIL_LIBS $i"
12480
as_ac_Lib=`echo "ac_cv_lib_${ldaplib}''_ldapssl_client_init" | $as_tr_sh`
12481
echo "$as_me:$LINENO: checking for ldapssl_client_init in -l${ldaplib}" >&5
12482
echo $ECHO_N "checking for ldapssl_client_init in -l${ldaplib}... $ECHO_C" >&6
12483
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
12484
echo $ECHO_N "(cached) $ECHO_C" >&6
12486
ac_check_lib_save_LIBS=$LIBS
12487
LIBS="-l${ldaplib} ${extralib} $LIBS"
12488
cat >conftest.$ac_ext <<_ACEOF
12491
cat confdefs.h >>conftest.$ac_ext
12492
cat >>conftest.$ac_ext <<_ACEOF
12493
/* end confdefs.h. */
12495
/* Override any gcc2 internal prototype to avoid an error. */
12499
/* We use char because int might match the return type of a gcc2
12500
builtin and then its argument prototype would still apply. */
12501
char ldapssl_client_init ();
12505
ldapssl_client_init ();
12510
rm -f conftest.$ac_objext conftest$ac_exeext
12511
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12512
(eval $ac_link) 2>conftest.er1
12514
grep -v '^ *+' conftest.er1 >conftest.err
12516
cat conftest.err >&5
12517
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12518
(exit $ac_status); } &&
12519
{ ac_try='test -z "$ac_c_werror_flag"
12520
|| test ! -s conftest.err'
12521
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12522
(eval $ac_try) 2>&5
12524
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12525
(exit $ac_status); }; } &&
12526
{ ac_try='test -s conftest$ac_exeext'
12527
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12528
(eval $ac_try) 2>&5
12530
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12531
(exit $ac_status); }; }; then
12532
eval "$as_ac_Lib=yes"
12534
echo "$as_me: failed program was:" >&5
12535
sed 's/^/| /' conftest.$ac_ext >&5
12537
eval "$as_ac_Lib=no"
12539
rm -f conftest.err conftest.$ac_objext \
12540
conftest$ac_exeext conftest.$ac_ext
12541
LIBS=$ac_check_lib_save_LIBS
12543
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
12544
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
12545
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
12546
apu_has_ldapssl_client_init="1"
12549
as_ac_Lib=`echo "ac_cv_lib_${ldaplib}''_ldapssl_client_deinit" | $as_tr_sh`
12550
echo "$as_me:$LINENO: checking for ldapssl_client_deinit in -l${ldaplib}" >&5
12551
echo $ECHO_N "checking for ldapssl_client_deinit in -l${ldaplib}... $ECHO_C" >&6
12552
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
12553
echo $ECHO_N "(cached) $ECHO_C" >&6
12555
ac_check_lib_save_LIBS=$LIBS
12556
LIBS="-l${ldaplib} ${extralib} $LIBS"
12557
cat >conftest.$ac_ext <<_ACEOF
12560
cat confdefs.h >>conftest.$ac_ext
12561
cat >>conftest.$ac_ext <<_ACEOF
12562
/* end confdefs.h. */
12564
/* Override any gcc2 internal prototype to avoid an error. */
12568
/* We use char because int might match the return type of a gcc2
12569
builtin and then its argument prototype would still apply. */
12570
char ldapssl_client_deinit ();
12574
ldapssl_client_deinit ();
12579
rm -f conftest.$ac_objext conftest$ac_exeext
12580
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12581
(eval $ac_link) 2>conftest.er1
12583
grep -v '^ *+' conftest.er1 >conftest.err
12585
cat conftest.err >&5
12586
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12587
(exit $ac_status); } &&
12588
{ ac_try='test -z "$ac_c_werror_flag"
12589
|| test ! -s conftest.err'
12590
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12591
(eval $ac_try) 2>&5
12593
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12594
(exit $ac_status); }; } &&
12595
{ ac_try='test -s conftest$ac_exeext'
12596
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12597
(eval $ac_try) 2>&5
12599
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12600
(exit $ac_status); }; }; then
12601
eval "$as_ac_Lib=yes"
12603
echo "$as_me: failed program was:" >&5
12604
sed 's/^/| /' conftest.$ac_ext >&5
12606
eval "$as_ac_Lib=no"
12608
rm -f conftest.err conftest.$ac_objext \
12609
conftest$ac_exeext conftest.$ac_ext
12610
LIBS=$ac_check_lib_save_LIBS
12612
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
12613
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
12614
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
12615
apu_has_ldapssl_client_deinit="1"
12618
as_ac_Lib=`echo "ac_cv_lib_${ldaplib}''_ldapssl_add_trusted_cert" | $as_tr_sh`
12619
echo "$as_me:$LINENO: checking for ldapssl_add_trusted_cert in -l${ldaplib}" >&5
12620
echo $ECHO_N "checking for ldapssl_add_trusted_cert in -l${ldaplib}... $ECHO_C" >&6
12621
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
12622
echo $ECHO_N "(cached) $ECHO_C" >&6
12624
ac_check_lib_save_LIBS=$LIBS
12625
LIBS="-l${ldaplib} ${extralib} $LIBS"
12626
cat >conftest.$ac_ext <<_ACEOF
12629
cat confdefs.h >>conftest.$ac_ext
12630
cat >>conftest.$ac_ext <<_ACEOF
12631
/* end confdefs.h. */
12633
/* Override any gcc2 internal prototype to avoid an error. */
12637
/* We use char because int might match the return type of a gcc2
12638
builtin and then its argument prototype would still apply. */
12639
char ldapssl_add_trusted_cert ();
12643
ldapssl_add_trusted_cert ();
12648
rm -f conftest.$ac_objext conftest$ac_exeext
12649
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12650
(eval $ac_link) 2>conftest.er1
12652
grep -v '^ *+' conftest.er1 >conftest.err
12654
cat conftest.err >&5
12655
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12656
(exit $ac_status); } &&
12657
{ ac_try='test -z "$ac_c_werror_flag"
12658
|| test ! -s conftest.err'
12659
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12660
(eval $ac_try) 2>&5
12662
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12663
(exit $ac_status); }; } &&
12664
{ ac_try='test -s conftest$ac_exeext'
12665
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12666
(eval $ac_try) 2>&5
12668
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12669
(exit $ac_status); }; }; then
12670
eval "$as_ac_Lib=yes"
12672
echo "$as_me: failed program was:" >&5
12673
sed 's/^/| /' conftest.$ac_ext >&5
12675
eval "$as_ac_Lib=no"
12677
rm -f conftest.err conftest.$ac_objext \
12678
conftest$ac_exeext conftest.$ac_ext
12679
LIBS=$ac_check_lib_save_LIBS
12681
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
12682
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
12683
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
12684
apu_has_ldapssl_add_trusted_cert="1"
12687
as_ac_Lib=`echo "ac_cv_lib_${ldaplib}''_ldap_start_tls_s" | $as_tr_sh`
12688
echo "$as_me:$LINENO: checking for ldap_start_tls_s in -l${ldaplib}" >&5
12689
echo $ECHO_N "checking for ldap_start_tls_s in -l${ldaplib}... $ECHO_C" >&6
12690
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
12691
echo $ECHO_N "(cached) $ECHO_C" >&6
12693
ac_check_lib_save_LIBS=$LIBS
12694
LIBS="-l${ldaplib} ${extralib} $LIBS"
12695
cat >conftest.$ac_ext <<_ACEOF
12698
cat confdefs.h >>conftest.$ac_ext
12699
cat >>conftest.$ac_ext <<_ACEOF
12700
/* end confdefs.h. */
12702
/* Override any gcc2 internal prototype to avoid an error. */
12706
/* We use char because int might match the return type of a gcc2
12707
builtin and then its argument prototype would still apply. */
12708
char ldap_start_tls_s ();
12712
ldap_start_tls_s ();
12717
rm -f conftest.$ac_objext conftest$ac_exeext
12718
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12719
(eval $ac_link) 2>conftest.er1
12721
grep -v '^ *+' conftest.er1 >conftest.err
12723
cat conftest.err >&5
12724
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12725
(exit $ac_status); } &&
12726
{ ac_try='test -z "$ac_c_werror_flag"
12727
|| test ! -s conftest.err'
12728
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12729
(eval $ac_try) 2>&5
12731
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12732
(exit $ac_status); }; } &&
12733
{ ac_try='test -s conftest$ac_exeext'
12734
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12735
(eval $ac_try) 2>&5
12737
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12738
(exit $ac_status); }; }; then
12739
eval "$as_ac_Lib=yes"
12741
echo "$as_me: failed program was:" >&5
12742
sed 's/^/| /' conftest.$ac_ext >&5
12744
eval "$as_ac_Lib=no"
12746
rm -f conftest.err conftest.$ac_objext \
12747
conftest$ac_exeext conftest.$ac_ext
12748
LIBS=$ac_check_lib_save_LIBS
12750
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
12751
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
12752
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
12753
apu_has_ldap_start_tls_s="1"
12756
as_ac_Lib=`echo "ac_cv_lib_${ldaplib}''_ldap_sslinit" | $as_tr_sh`
12757
echo "$as_me:$LINENO: checking for ldap_sslinit in -l${ldaplib}" >&5
12758
echo $ECHO_N "checking for ldap_sslinit in -l${ldaplib}... $ECHO_C" >&6
12759
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
12760
echo $ECHO_N "(cached) $ECHO_C" >&6
12762
ac_check_lib_save_LIBS=$LIBS
12763
LIBS="-l${ldaplib} ${extralib} $LIBS"
12764
cat >conftest.$ac_ext <<_ACEOF
12767
cat confdefs.h >>conftest.$ac_ext
12768
cat >>conftest.$ac_ext <<_ACEOF
12769
/* end confdefs.h. */
12771
/* Override any gcc2 internal prototype to avoid an error. */
12775
/* We use char because int might match the return type of a gcc2
12776
builtin and then its argument prototype would still apply. */
12777
char ldap_sslinit ();
12786
rm -f conftest.$ac_objext conftest$ac_exeext
12787
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12788
(eval $ac_link) 2>conftest.er1
12790
grep -v '^ *+' conftest.er1 >conftest.err
12792
cat conftest.err >&5
12793
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12794
(exit $ac_status); } &&
12795
{ ac_try='test -z "$ac_c_werror_flag"
12796
|| test ! -s conftest.err'
12797
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12798
(eval $ac_try) 2>&5
12800
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12801
(exit $ac_status); }; } &&
12802
{ ac_try='test -s conftest$ac_exeext'
12803
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12804
(eval $ac_try) 2>&5
12806
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12807
(exit $ac_status); }; }; then
12808
eval "$as_ac_Lib=yes"
12810
echo "$as_me: failed program was:" >&5
12811
sed 's/^/| /' conftest.$ac_ext >&5
12813
eval "$as_ac_Lib=no"
12815
rm -f conftest.err conftest.$ac_objext \
12816
conftest$ac_exeext conftest.$ac_ext
12817
LIBS=$ac_check_lib_save_LIBS
12819
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
12820
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
12821
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
12822
apu_has_ldap_sslinit="1"
12825
as_ac_Lib=`echo "ac_cv_lib_${ldaplib}''_ldapssl_init" | $as_tr_sh`
12826
echo "$as_me:$LINENO: checking for ldapssl_init in -l${ldaplib}" >&5
12827
echo $ECHO_N "checking for ldapssl_init in -l${ldaplib}... $ECHO_C" >&6
12828
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
12829
echo $ECHO_N "(cached) $ECHO_C" >&6
12831
ac_check_lib_save_LIBS=$LIBS
12832
LIBS="-l${ldaplib} ${extralib} $LIBS"
12833
cat >conftest.$ac_ext <<_ACEOF
12836
cat confdefs.h >>conftest.$ac_ext
12837
cat >>conftest.$ac_ext <<_ACEOF
12838
/* end confdefs.h. */
12840
/* Override any gcc2 internal prototype to avoid an error. */
12844
/* We use char because int might match the return type of a gcc2
12845
builtin and then its argument prototype would still apply. */
12846
char ldapssl_init ();
12855
rm -f conftest.$ac_objext conftest$ac_exeext
12856
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12857
(eval $ac_link) 2>conftest.er1
12859
grep -v '^ *+' conftest.er1 >conftest.err
12861
cat conftest.err >&5
12862
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12863
(exit $ac_status); } &&
12864
{ ac_try='test -z "$ac_c_werror_flag"
12865
|| test ! -s conftest.err'
12866
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12867
(eval $ac_try) 2>&5
12869
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12870
(exit $ac_status); }; } &&
12871
{ ac_try='test -s conftest$ac_exeext'
12872
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12873
(eval $ac_try) 2>&5
12875
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12876
(exit $ac_status); }; }; then
12877
eval "$as_ac_Lib=yes"
12879
echo "$as_me: failed program was:" >&5
12880
sed 's/^/| /' conftest.$ac_ext >&5
12882
eval "$as_ac_Lib=no"
12884
rm -f conftest.err conftest.$ac_objext \
12885
conftest$ac_exeext conftest.$ac_ext
12886
LIBS=$ac_check_lib_save_LIBS
12888
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
12889
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
12890
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
12891
apu_has_ldapssl_init="1"
12894
as_ac_Lib=`echo "ac_cv_lib_${ldaplib}''_ldapssl_install_routines" | $as_tr_sh`
12895
echo "$as_me:$LINENO: checking for ldapssl_install_routines in -l${ldaplib}" >&5
12896
echo $ECHO_N "checking for ldapssl_install_routines in -l${ldaplib}... $ECHO_C" >&6
12897
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
12898
echo $ECHO_N "(cached) $ECHO_C" >&6
12900
ac_check_lib_save_LIBS=$LIBS
12901
LIBS="-l${ldaplib} ${extralib} $LIBS"
12902
cat >conftest.$ac_ext <<_ACEOF
12905
cat confdefs.h >>conftest.$ac_ext
12906
cat >>conftest.$ac_ext <<_ACEOF
12907
/* end confdefs.h. */
12909
/* Override any gcc2 internal prototype to avoid an error. */
12913
/* We use char because int might match the return type of a gcc2
12914
builtin and then its argument prototype would still apply. */
12915
char ldapssl_install_routines ();
12919
ldapssl_install_routines ();
12924
rm -f conftest.$ac_objext conftest$ac_exeext
12925
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12926
(eval $ac_link) 2>conftest.er1
12928
grep -v '^ *+' conftest.er1 >conftest.err
12930
cat conftest.err >&5
12931
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12932
(exit $ac_status); } &&
12933
{ ac_try='test -z "$ac_c_werror_flag"
12934
|| test ! -s conftest.err'
12935
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12936
(eval $ac_try) 2>&5
12938
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12939
(exit $ac_status); }; } &&
12940
{ ac_try='test -s conftest$ac_exeext'
12941
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12942
(eval $ac_try) 2>&5
12944
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12945
(exit $ac_status); }; }; then
12946
eval "$as_ac_Lib=yes"
12948
echo "$as_me: failed program was:" >&5
12949
sed 's/^/| /' conftest.$ac_ext >&5
12951
eval "$as_ac_Lib=no"
12953
rm -f conftest.err conftest.$ac_objext \
12954
conftest$ac_exeext conftest.$ac_ext
12955
LIBS=$ac_check_lib_save_LIBS
12957
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
12958
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
12959
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
12960
apu_has_ldapssl_install_routines="1"
12971
test ${apu_has_ldap} != "1" && { { echo "$as_me:$LINENO: error: could not find an LDAP library" >&5
12972
echo "$as_me: error: could not find an LDAP library" >&2;}
12973
{ (exit 1); exit 1; }; }
12975
echo "$as_me:$LINENO: checking for ber_init in -llber" >&5
12976
echo $ECHO_N "checking for ber_init in -llber... $ECHO_C" >&6
12977
if test "${ac_cv_lib_lber_ber_init+set}" = set; then
12978
echo $ECHO_N "(cached) $ECHO_C" >&6
12980
ac_check_lib_save_LIBS=$LIBS
12981
LIBS="-llber $LIBS"
12982
cat >conftest.$ac_ext <<_ACEOF
12985
cat confdefs.h >>conftest.$ac_ext
12986
cat >>conftest.$ac_ext <<_ACEOF
12987
/* end confdefs.h. */
12989
/* Override any gcc2 internal prototype to avoid an error. */
12993
/* We use char because int might match the return type of a gcc2
12994
builtin and then its argument prototype would still apply. */
13004
rm -f conftest.$ac_objext conftest$ac_exeext
13005
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13006
(eval $ac_link) 2>conftest.er1
13008
grep -v '^ *+' conftest.er1 >conftest.err
13010
cat conftest.err >&5
13011
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13012
(exit $ac_status); } &&
13013
{ ac_try='test -z "$ac_c_werror_flag"
13014
|| test ! -s conftest.err'
13015
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13016
(eval $ac_try) 2>&5
13018
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13019
(exit $ac_status); }; } &&
13020
{ ac_try='test -s conftest$ac_exeext'
13021
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13022
(eval $ac_try) 2>&5
13024
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13025
(exit $ac_status); }; }; then
13026
ac_cv_lib_lber_ber_init=yes
13028
echo "$as_me: failed program was:" >&5
13029
sed 's/^/| /' conftest.$ac_ext >&5
13031
ac_cv_lib_lber_ber_init=no
13033
rm -f conftest.err conftest.$ac_objext \
13034
conftest$ac_exeext conftest.$ac_ext
13035
LIBS=$ac_check_lib_save_LIBS
13037
echo "$as_me:$LINENO: result: $ac_cv_lib_lber_ber_init" >&5
13038
echo "${ECHO_T}$ac_cv_lib_lber_ber_init" >&6
13039
if test $ac_cv_lib_lber_ber_init = yes; then
13040
cat >>confdefs.h <<_ACEOF
13041
#define HAVE_LIBLBER 1
13044
LIBS="-llber $LIBS"
13050
for ac_header in lber.h
13052
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13053
if eval "test \"\${$as_ac_Header+set}\" = set"; then
13054
echo "$as_me:$LINENO: checking for $ac_header" >&5
13055
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13056
if eval "test \"\${$as_ac_Header+set}\" = set"; then
13057
echo $ECHO_N "(cached) $ECHO_C" >&6
13059
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13060
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13062
# Is the header compilable?
13063
echo "$as_me:$LINENO: checking $ac_header usability" >&5
13064
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13065
cat >conftest.$ac_ext <<_ACEOF
13068
cat confdefs.h >>conftest.$ac_ext
13069
cat >>conftest.$ac_ext <<_ACEOF
13070
/* end confdefs.h. */
13071
$ac_includes_default
13072
#include <$ac_header>
13074
rm -f conftest.$ac_objext
13075
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13076
(eval $ac_compile) 2>conftest.er1
13078
grep -v '^ *+' conftest.er1 >conftest.err
13080
cat conftest.err >&5
13081
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13082
(exit $ac_status); } &&
13083
{ ac_try='test -z "$ac_c_werror_flag"
13084
|| test ! -s conftest.err'
13085
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13086
(eval $ac_try) 2>&5
13088
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13089
(exit $ac_status); }; } &&
13090
{ ac_try='test -s conftest.$ac_objext'
13091
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13092
(eval $ac_try) 2>&5
13094
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13095
(exit $ac_status); }; }; then
13096
ac_header_compiler=yes
13098
echo "$as_me: failed program was:" >&5
13099
sed 's/^/| /' conftest.$ac_ext >&5
13101
ac_header_compiler=no
13103
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13104
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13105
echo "${ECHO_T}$ac_header_compiler" >&6
13107
# Is the header present?
13108
echo "$as_me:$LINENO: checking $ac_header presence" >&5
13109
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13110
cat >conftest.$ac_ext <<_ACEOF
13113
cat confdefs.h >>conftest.$ac_ext
13114
cat >>conftest.$ac_ext <<_ACEOF
13115
/* end confdefs.h. */
13116
#include <$ac_header>
13118
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13119
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13121
grep -v '^ *+' conftest.er1 >conftest.err
13123
cat conftest.err >&5
13124
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13125
(exit $ac_status); } >/dev/null; then
13126
if test -s conftest.err; then
13127
ac_cpp_err=$ac_c_preproc_warn_flag
13128
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13135
if test -z "$ac_cpp_err"; then
13136
ac_header_preproc=yes
13138
echo "$as_me: failed program was:" >&5
13139
sed 's/^/| /' conftest.$ac_ext >&5
13141
ac_header_preproc=no
13143
rm -f conftest.err conftest.$ac_ext
13144
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13145
echo "${ECHO_T}$ac_header_preproc" >&6
13147
# So? What about this header?
13148
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13150
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13151
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13152
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13153
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13154
ac_header_preproc=yes
13157
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13158
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13159
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13160
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13161
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13162
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13163
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13164
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13165
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13166
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13167
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13168
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13171
## ------------------------------------------ ##
13172
## Report this to the AC_PACKAGE_NAME lists. ##
13173
## ------------------------------------------ ##
13176
sed "s/^/$as_me: WARNING: /" >&2
13179
echo "$as_me:$LINENO: checking for $ac_header" >&5
13180
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13181
if eval "test \"\${$as_ac_Header+set}\" = set"; then
13182
echo $ECHO_N "(cached) $ECHO_C" >&6
13184
eval "$as_ac_Header=\$ac_header_preproc"
13186
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13187
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13190
if test `eval echo '${'$as_ac_Header'}'` = yes; then
13191
cat >>confdefs.h <<_ACEOF
13192
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13194
lber_h="#include <lber.h>"
13200
# Solaris has a problem in <ldap.h> which prevents it from
13201
# being included by itself. Check for <ldap.h> manually,
13202
# including lber.h first.
13203
echo "$as_me:$LINENO: checking for ldap.h" >&5
13204
echo $ECHO_N "checking for ldap.h... $ECHO_C" >&6
13205
if test "${apr_cv_hdr_ldap_h+set}" = set; then
13206
echo $ECHO_N "(cached) $ECHO_C" >&6
13208
cat >conftest.$ac_ext <<_ACEOF
13211
cat confdefs.h >>conftest.$ac_ext
13212
cat >>conftest.$ac_ext <<_ACEOF
13213
/* end confdefs.h. */
13220
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13221
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13223
grep -v '^ *+' conftest.er1 >conftest.err
13225
cat conftest.err >&5
13226
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13227
(exit $ac_status); } >/dev/null; then
13228
if test -s conftest.err; then
13229
ac_cpp_err=$ac_c_preproc_warn_flag
13230
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13237
if test -z "$ac_cpp_err"; then
13238
apr_cv_hdr_ldap_h=yes
13240
echo "$as_me: failed program was:" >&5
13241
sed 's/^/| /' conftest.$ac_ext >&5
13243
apr_cv_hdr_ldap_h=no
13245
rm -f conftest.err conftest.$ac_ext
13247
echo "$as_me:$LINENO: result: $apr_cv_hdr_ldap_h" >&5
13248
echo "${ECHO_T}$apr_cv_hdr_ldap_h" >&6
13249
if test "$apr_cv_hdr_ldap_h" = "yes"; then
13250
ldap_h="#include <ldap.h>"
13252
cat >>confdefs.h <<\_ACEOF
13253
#define HAVE_LDAP_H 1
13259
for ac_header in ldap_ssl.h
13261
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13262
if eval "test \"\${$as_ac_Header+set}\" = set"; then
13263
echo "$as_me:$LINENO: checking for $ac_header" >&5
13264
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13265
if eval "test \"\${$as_ac_Header+set}\" = set"; then
13266
echo $ECHO_N "(cached) $ECHO_C" >&6
13268
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13269
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13271
# Is the header compilable?
13272
echo "$as_me:$LINENO: checking $ac_header usability" >&5
13273
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13274
cat >conftest.$ac_ext <<_ACEOF
13277
cat confdefs.h >>conftest.$ac_ext
13278
cat >>conftest.$ac_ext <<_ACEOF
13279
/* end confdefs.h. */
13280
$ac_includes_default
13281
#include <$ac_header>
13283
rm -f conftest.$ac_objext
13284
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13285
(eval $ac_compile) 2>conftest.er1
13287
grep -v '^ *+' conftest.er1 >conftest.err
13289
cat conftest.err >&5
13290
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13291
(exit $ac_status); } &&
13292
{ ac_try='test -z "$ac_c_werror_flag"
13293
|| test ! -s conftest.err'
13294
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13295
(eval $ac_try) 2>&5
13297
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13298
(exit $ac_status); }; } &&
13299
{ ac_try='test -s conftest.$ac_objext'
13300
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13301
(eval $ac_try) 2>&5
13303
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13304
(exit $ac_status); }; }; then
13305
ac_header_compiler=yes
13307
echo "$as_me: failed program was:" >&5
13308
sed 's/^/| /' conftest.$ac_ext >&5
13310
ac_header_compiler=no
13312
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13313
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13314
echo "${ECHO_T}$ac_header_compiler" >&6
13316
# Is the header present?
13317
echo "$as_me:$LINENO: checking $ac_header presence" >&5
13318
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13319
cat >conftest.$ac_ext <<_ACEOF
13322
cat confdefs.h >>conftest.$ac_ext
13323
cat >>conftest.$ac_ext <<_ACEOF
13324
/* end confdefs.h. */
13325
#include <$ac_header>
13327
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13328
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13330
grep -v '^ *+' conftest.er1 >conftest.err
13332
cat conftest.err >&5
13333
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13334
(exit $ac_status); } >/dev/null; then
13335
if test -s conftest.err; then
13336
ac_cpp_err=$ac_c_preproc_warn_flag
13337
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13344
if test -z "$ac_cpp_err"; then
13345
ac_header_preproc=yes
13347
echo "$as_me: failed program was:" >&5
13348
sed 's/^/| /' conftest.$ac_ext >&5
13350
ac_header_preproc=no
13352
rm -f conftest.err conftest.$ac_ext
13353
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13354
echo "${ECHO_T}$ac_header_preproc" >&6
13356
# So? What about this header?
13357
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13359
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13360
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13361
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13362
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13363
ac_header_preproc=yes
13366
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13367
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13368
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13369
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13370
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13371
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13372
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13373
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13374
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13375
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13376
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13377
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13380
## ------------------------------------------ ##
13381
## Report this to the AC_PACKAGE_NAME lists. ##
13382
## ------------------------------------------ ##
13385
sed "s/^/$as_me: WARNING: /" >&2
13388
echo "$as_me:$LINENO: checking for $ac_header" >&5
13389
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13390
if eval "test \"\${$as_ac_Header+set}\" = set"; then
13391
echo $ECHO_N "(cached) $ECHO_C" >&6
13393
eval "$as_ac_Header=\$ac_header_preproc"
13395
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13396
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13399
if test `eval echo '${'$as_ac_Header'}'` = yes; then
13400
cat >>confdefs.h <<_ACEOF
13401
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13403
ldap_ssl_h="#include <ldap_ssl.h>"
13409
if test "$apr_cv_hdr_ldap_h" = "yes"; then
13410
echo "$as_me:$LINENO: checking for LDAP toolkit" >&5
13411
echo $ECHO_N "checking for LDAP toolkit... $ECHO_C" >&6
13412
if test "${apr_cv_ldap_toolkit+set}" = set; then
13413
echo $ECHO_N "(cached) $ECHO_C" >&6
13416
if test "x$apr_cv_ldap_toolkit" = "x"; then
13417
cat >conftest.$ac_ext <<_ACEOF
13420
cat confdefs.h >>conftest.$ac_ext
13421
cat >>conftest.$ac_ext <<_ACEOF
13422
/* end confdefs.h. */
13427
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13428
$EGREP "OpenLDAP" >/dev/null 2>&1; then
13429
apu_has_ldap_openldap="1"
13430
apr_cv_ldap_toolkit="OpenLDAP"
13435
if test "x$apr_cv_ldap_toolkit" = "x"; then
13436
cat >conftest.$ac_ext <<_ACEOF
13439
cat confdefs.h >>conftest.$ac_ext
13440
cat >>conftest.$ac_ext <<_ACEOF
13441
/* end confdefs.h. */
13446
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13447
$EGREP "Sun Microsystems Inc." >/dev/null 2>&1; then
13448
apu_has_ldap_solaris="1"
13449
apr_cv_ldap_toolkit="Solaris"
13454
if test "x$apr_cv_ldap_toolkit" = "x"; then
13455
cat >conftest.$ac_ext <<_ACEOF
13458
cat confdefs.h >>conftest.$ac_ext
13459
cat >>conftest.$ac_ext <<_ACEOF
13460
/* end confdefs.h. */
13465
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13466
$EGREP "Novell" >/dev/null 2>&1; then
13467
apu_has_ldap_novell="1"
13468
apr_cv_ldap_toolkit="Novell"
13473
if test "x$apr_cv_ldap_toolkit" = "x"; then
13474
cat >conftest.$ac_ext <<_ACEOF
13477
cat confdefs.h >>conftest.$ac_ext
13478
cat >>conftest.$ac_ext <<_ACEOF
13479
/* end confdefs.h. */
13484
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13485
$EGREP "Microsoft Corporation." >/dev/null 2>&1; then
13486
apu_has_ldap_microsoft="1"
13487
apr_cv_ldap_toolkit="Microsoft"
13492
if test "x$apr_cv_ldap_toolkit" = "x"; then
13493
cat >conftest.$ac_ext <<_ACEOF
13496
cat confdefs.h >>conftest.$ac_ext
13497
cat >>conftest.$ac_ext <<_ACEOF
13498
/* end confdefs.h. */
13503
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13504
$EGREP "Netscape Communications Corp." >/dev/null 2>&1; then
13505
apu_has_ldap_netscape="1"
13506
apr_cv_ldap_toolkit="Netscape"
13511
if test "x$apr_cv_ldap_toolkit" = "x"; then
13512
cat >conftest.$ac_ext <<_ACEOF
13515
cat confdefs.h >>conftest.$ac_ext
13516
cat >>conftest.$ac_ext <<_ACEOF
13517
/* end confdefs.h. */
13522
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13523
$EGREP "mozilla.org" >/dev/null 2>&1; then
13524
apu_has_ldap_mozilla="1"
13525
apr_cv_ldap_toolkit="Mozilla"
13530
if test "x$apr_cv_ldap_toolkit" = "x"; then
13531
apu_has_ldap_other="1"
13532
apr_cv_ldap_toolkit="unknown"
13536
echo "$as_me:$LINENO: result: $apr_cv_ldap_toolkit" >&5
13537
echo "${ECHO_T}$apr_cv_ldap_toolkit" >&6
13540
CPPFLAGS=$save_cppflags
13541
LDFLAGS=$save_ldflags
13576
apu_db_header=db.h # default so apu_select_dbm.h is syntactically correct
13580
# Check whether --with-dbm or --without-dbm was given.
13581
if test "${with_dbm+set}" = set; then
13582
withval="$with_dbm"
13584
if test "$withval" = "yes"; then
13585
{ { echo "$as_me:$LINENO: error: --with-dbm needs to specify a DBM type to use.
13586
One of: sdbm, gdbm, ndbm, db, db1, db185, db2, db3, db4, db41, db42, db43, db44" >&5
13587
echo "$as_me: error: --with-dbm needs to specify a DBM type to use.
13588
One of: sdbm, gdbm, ndbm, db, db1, db185, db2, db3, db4, db41, db42, db43, db44" >&2;}
13589
{ (exit 1); exit 1; }; }
13591
requested="$withval"
13600
# Check whether --with-gdbm or --without-gdbm was given.
13601
if test "${with_gdbm+set}" = set; then
13602
withval="$with_gdbm"
13605
if test "$withval" = "yes"; then
13606
if test "${ac_cv_header_gdbm_h+set}" = set; then
13607
echo "$as_me:$LINENO: checking for gdbm.h" >&5
13608
echo $ECHO_N "checking for gdbm.h... $ECHO_C" >&6
13609
if test "${ac_cv_header_gdbm_h+set}" = set; then
13610
echo $ECHO_N "(cached) $ECHO_C" >&6
13612
echo "$as_me:$LINENO: result: $ac_cv_header_gdbm_h" >&5
13613
echo "${ECHO_T}$ac_cv_header_gdbm_h" >&6
13615
# Is the header compilable?
13616
echo "$as_me:$LINENO: checking gdbm.h usability" >&5
13617
echo $ECHO_N "checking gdbm.h usability... $ECHO_C" >&6
13618
cat >conftest.$ac_ext <<_ACEOF
13621
cat confdefs.h >>conftest.$ac_ext
13622
cat >>conftest.$ac_ext <<_ACEOF
13623
/* end confdefs.h. */
13624
$ac_includes_default
13627
rm -f conftest.$ac_objext
13628
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13629
(eval $ac_compile) 2>conftest.er1
13631
grep -v '^ *+' conftest.er1 >conftest.err
13633
cat conftest.err >&5
13634
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13635
(exit $ac_status); } &&
13636
{ ac_try='test -z "$ac_c_werror_flag"
13637
|| test ! -s conftest.err'
13638
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13639
(eval $ac_try) 2>&5
13641
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13642
(exit $ac_status); }; } &&
13643
{ ac_try='test -s conftest.$ac_objext'
13644
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13645
(eval $ac_try) 2>&5
13647
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13648
(exit $ac_status); }; }; then
13649
ac_header_compiler=yes
13651
echo "$as_me: failed program was:" >&5
13652
sed 's/^/| /' conftest.$ac_ext >&5
13654
ac_header_compiler=no
13656
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13657
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13658
echo "${ECHO_T}$ac_header_compiler" >&6
13660
# Is the header present?
13661
echo "$as_me:$LINENO: checking gdbm.h presence" >&5
13662
echo $ECHO_N "checking gdbm.h presence... $ECHO_C" >&6
13663
cat >conftest.$ac_ext <<_ACEOF
13666
cat confdefs.h >>conftest.$ac_ext
13667
cat >>conftest.$ac_ext <<_ACEOF
13668
/* end confdefs.h. */
13671
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13672
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13674
grep -v '^ *+' conftest.er1 >conftest.err
13676
cat conftest.err >&5
13677
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13678
(exit $ac_status); } >/dev/null; then
13679
if test -s conftest.err; then
13680
ac_cpp_err=$ac_c_preproc_warn_flag
13681
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13688
if test -z "$ac_cpp_err"; then
13689
ac_header_preproc=yes
13691
echo "$as_me: failed program was:" >&5
13692
sed 's/^/| /' conftest.$ac_ext >&5
13694
ac_header_preproc=no
13696
rm -f conftest.err conftest.$ac_ext
13697
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13698
echo "${ECHO_T}$ac_header_preproc" >&6
13700
# So? What about this header?
13701
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13703
{ echo "$as_me:$LINENO: WARNING: gdbm.h: accepted by the compiler, rejected by the preprocessor!" >&5
13704
echo "$as_me: WARNING: gdbm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13705
{ echo "$as_me:$LINENO: WARNING: gdbm.h: proceeding with the compiler's result" >&5
13706
echo "$as_me: WARNING: gdbm.h: proceeding with the compiler's result" >&2;}
13707
ac_header_preproc=yes
13710
{ echo "$as_me:$LINENO: WARNING: gdbm.h: present but cannot be compiled" >&5
13711
echo "$as_me: WARNING: gdbm.h: present but cannot be compiled" >&2;}
13712
{ echo "$as_me:$LINENO: WARNING: gdbm.h: check for missing prerequisite headers?" >&5
13713
echo "$as_me: WARNING: gdbm.h: check for missing prerequisite headers?" >&2;}
13714
{ echo "$as_me:$LINENO: WARNING: gdbm.h: see the Autoconf documentation" >&5
13715
echo "$as_me: WARNING: gdbm.h: see the Autoconf documentation" >&2;}
13716
{ echo "$as_me:$LINENO: WARNING: gdbm.h: section \"Present But Cannot Be Compiled\"" >&5
13717
echo "$as_me: WARNING: gdbm.h: section \"Present But Cannot Be Compiled\"" >&2;}
13718
{ echo "$as_me:$LINENO: WARNING: gdbm.h: proceeding with the preprocessor's result" >&5
13719
echo "$as_me: WARNING: gdbm.h: proceeding with the preprocessor's result" >&2;}
13720
{ echo "$as_me:$LINENO: WARNING: gdbm.h: in the future, the compiler will take precedence" >&5
13721
echo "$as_me: WARNING: gdbm.h: in the future, the compiler will take precedence" >&2;}
13724
## ------------------------------------------ ##
13725
## Report this to the AC_PACKAGE_NAME lists. ##
13726
## ------------------------------------------ ##
13729
sed "s/^/$as_me: WARNING: /" >&2
13732
echo "$as_me:$LINENO: checking for gdbm.h" >&5
13733
echo $ECHO_N "checking for gdbm.h... $ECHO_C" >&6
13734
if test "${ac_cv_header_gdbm_h+set}" = set; then
13735
echo $ECHO_N "(cached) $ECHO_C" >&6
13737
ac_cv_header_gdbm_h=$ac_header_preproc
13739
echo "$as_me:$LINENO: result: $ac_cv_header_gdbm_h" >&5
13740
echo "${ECHO_T}$ac_cv_header_gdbm_h" >&6
13743
if test $ac_cv_header_gdbm_h = yes; then
13744
echo "$as_me:$LINENO: checking for gdbm_open in -lgdbm" >&5
13745
echo $ECHO_N "checking for gdbm_open in -lgdbm... $ECHO_C" >&6
13746
if test "${ac_cv_lib_gdbm_gdbm_open+set}" = set; then
13747
echo $ECHO_N "(cached) $ECHO_C" >&6
13749
ac_check_lib_save_LIBS=$LIBS
13750
LIBS="-lgdbm $LIBS"
13751
cat >conftest.$ac_ext <<_ACEOF
13754
cat confdefs.h >>conftest.$ac_ext
13755
cat >>conftest.$ac_ext <<_ACEOF
13756
/* end confdefs.h. */
13758
/* Override any gcc2 internal prototype to avoid an error. */
13762
/* We use char because int might match the return type of a gcc2
13763
builtin and then its argument prototype would still apply. */
13773
rm -f conftest.$ac_objext conftest$ac_exeext
13774
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13775
(eval $ac_link) 2>conftest.er1
13777
grep -v '^ *+' conftest.er1 >conftest.err
13779
cat conftest.err >&5
13780
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13781
(exit $ac_status); } &&
13782
{ ac_try='test -z "$ac_c_werror_flag"
13783
|| test ! -s conftest.err'
13784
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13785
(eval $ac_try) 2>&5
13787
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13788
(exit $ac_status); }; } &&
13789
{ ac_try='test -s conftest$ac_exeext'
13790
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13791
(eval $ac_try) 2>&5
13793
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13794
(exit $ac_status); }; }; then
13795
ac_cv_lib_gdbm_gdbm_open=yes
13797
echo "$as_me: failed program was:" >&5
13798
sed 's/^/| /' conftest.$ac_ext >&5
13800
ac_cv_lib_gdbm_gdbm_open=no
13802
rm -f conftest.err conftest.$ac_objext \
13803
conftest$ac_exeext conftest.$ac_ext
13804
LIBS=$ac_check_lib_save_LIBS
13806
echo "$as_me:$LINENO: result: $ac_cv_lib_gdbm_gdbm_open" >&5
13807
echo "${ECHO_T}$ac_cv_lib_gdbm_gdbm_open" >&6
13808
if test $ac_cv_lib_gdbm_gdbm_open = yes; then
13815
elif test "$withval" = "no"; then
13818
CPPFLAGS="-I$withval/include"
13819
LIBS="-L$withval/lib "
13821
echo "$as_me:$LINENO: checking checking for gdbm in $withval" >&5
13822
echo $ECHO_N "checking checking for gdbm in $withval... $ECHO_C" >&6
13823
if test "${ac_cv_header_gdbm_h+set}" = set; then
13824
echo "$as_me:$LINENO: checking for gdbm.h" >&5
13825
echo $ECHO_N "checking for gdbm.h... $ECHO_C" >&6
13826
if test "${ac_cv_header_gdbm_h+set}" = set; then
13827
echo $ECHO_N "(cached) $ECHO_C" >&6
13829
echo "$as_me:$LINENO: result: $ac_cv_header_gdbm_h" >&5
13830
echo "${ECHO_T}$ac_cv_header_gdbm_h" >&6
13832
# Is the header compilable?
13833
echo "$as_me:$LINENO: checking gdbm.h usability" >&5
13834
echo $ECHO_N "checking gdbm.h usability... $ECHO_C" >&6
13835
cat >conftest.$ac_ext <<_ACEOF
13838
cat confdefs.h >>conftest.$ac_ext
13839
cat >>conftest.$ac_ext <<_ACEOF
13840
/* end confdefs.h. */
13841
$ac_includes_default
13844
rm -f conftest.$ac_objext
13845
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13846
(eval $ac_compile) 2>conftest.er1
13848
grep -v '^ *+' conftest.er1 >conftest.err
13850
cat conftest.err >&5
13851
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13852
(exit $ac_status); } &&
13853
{ ac_try='test -z "$ac_c_werror_flag"
13854
|| test ! -s conftest.err'
13855
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13856
(eval $ac_try) 2>&5
13858
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13859
(exit $ac_status); }; } &&
13860
{ ac_try='test -s conftest.$ac_objext'
13861
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13862
(eval $ac_try) 2>&5
13864
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13865
(exit $ac_status); }; }; then
13866
ac_header_compiler=yes
13868
echo "$as_me: failed program was:" >&5
13869
sed 's/^/| /' conftest.$ac_ext >&5
13871
ac_header_compiler=no
13873
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13874
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13875
echo "${ECHO_T}$ac_header_compiler" >&6
13877
# Is the header present?
13878
echo "$as_me:$LINENO: checking gdbm.h presence" >&5
13879
echo $ECHO_N "checking gdbm.h presence... $ECHO_C" >&6
13880
cat >conftest.$ac_ext <<_ACEOF
13883
cat confdefs.h >>conftest.$ac_ext
13884
cat >>conftest.$ac_ext <<_ACEOF
13885
/* end confdefs.h. */
13888
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13889
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13891
grep -v '^ *+' conftest.er1 >conftest.err
13893
cat conftest.err >&5
13894
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13895
(exit $ac_status); } >/dev/null; then
13896
if test -s conftest.err; then
13897
ac_cpp_err=$ac_c_preproc_warn_flag
13898
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13905
if test -z "$ac_cpp_err"; then
13906
ac_header_preproc=yes
13908
echo "$as_me: failed program was:" >&5
13909
sed 's/^/| /' conftest.$ac_ext >&5
13911
ac_header_preproc=no
13913
rm -f conftest.err conftest.$ac_ext
13914
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13915
echo "${ECHO_T}$ac_header_preproc" >&6
13917
# So? What about this header?
13918
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13920
{ echo "$as_me:$LINENO: WARNING: gdbm.h: accepted by the compiler, rejected by the preprocessor!" >&5
13921
echo "$as_me: WARNING: gdbm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13922
{ echo "$as_me:$LINENO: WARNING: gdbm.h: proceeding with the compiler's result" >&5
13923
echo "$as_me: WARNING: gdbm.h: proceeding with the compiler's result" >&2;}
13924
ac_header_preproc=yes
13927
{ echo "$as_me:$LINENO: WARNING: gdbm.h: present but cannot be compiled" >&5
13928
echo "$as_me: WARNING: gdbm.h: present but cannot be compiled" >&2;}
13929
{ echo "$as_me:$LINENO: WARNING: gdbm.h: check for missing prerequisite headers?" >&5
13930
echo "$as_me: WARNING: gdbm.h: check for missing prerequisite headers?" >&2;}
13931
{ echo "$as_me:$LINENO: WARNING: gdbm.h: see the Autoconf documentation" >&5
13932
echo "$as_me: WARNING: gdbm.h: see the Autoconf documentation" >&2;}
13933
{ echo "$as_me:$LINENO: WARNING: gdbm.h: section \"Present But Cannot Be Compiled\"" >&5
13934
echo "$as_me: WARNING: gdbm.h: section \"Present But Cannot Be Compiled\"" >&2;}
13935
{ echo "$as_me:$LINENO: WARNING: gdbm.h: proceeding with the preprocessor's result" >&5
13936
echo "$as_me: WARNING: gdbm.h: proceeding with the preprocessor's result" >&2;}
13937
{ echo "$as_me:$LINENO: WARNING: gdbm.h: in the future, the compiler will take precedence" >&5
13938
echo "$as_me: WARNING: gdbm.h: in the future, the compiler will take precedence" >&2;}
13941
## ------------------------------------------ ##
13942
## Report this to the AC_PACKAGE_NAME lists. ##
13943
## ------------------------------------------ ##
13946
sed "s/^/$as_me: WARNING: /" >&2
13949
echo "$as_me:$LINENO: checking for gdbm.h" >&5
13950
echo $ECHO_N "checking for gdbm.h... $ECHO_C" >&6
13951
if test "${ac_cv_header_gdbm_h+set}" = set; then
13952
echo $ECHO_N "(cached) $ECHO_C" >&6
13954
ac_cv_header_gdbm_h=$ac_header_preproc
13956
echo "$as_me:$LINENO: result: $ac_cv_header_gdbm_h" >&5
13957
echo "${ECHO_T}$ac_cv_header_gdbm_h" >&6
13960
if test $ac_cv_header_gdbm_h = yes; then
13961
echo "$as_me:$LINENO: checking for gdbm_open in -lgdbm" >&5
13962
echo $ECHO_N "checking for gdbm_open in -lgdbm... $ECHO_C" >&6
13963
if test "${ac_cv_lib_gdbm_gdbm_open+set}" = set; then
13964
echo $ECHO_N "(cached) $ECHO_C" >&6
13966
ac_check_lib_save_LIBS=$LIBS
13967
LIBS="-lgdbm $LIBS"
13968
cat >conftest.$ac_ext <<_ACEOF
13971
cat confdefs.h >>conftest.$ac_ext
13972
cat >>conftest.$ac_ext <<_ACEOF
13973
/* end confdefs.h. */
13975
/* Override any gcc2 internal prototype to avoid an error. */
13979
/* We use char because int might match the return type of a gcc2
13980
builtin and then its argument prototype would still apply. */
13990
rm -f conftest.$ac_objext conftest$ac_exeext
13991
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13992
(eval $ac_link) 2>conftest.er1
13994
grep -v '^ *+' conftest.er1 >conftest.err
13996
cat conftest.err >&5
13997
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13998
(exit $ac_status); } &&
13999
{ ac_try='test -z "$ac_c_werror_flag"
14000
|| test ! -s conftest.err'
14001
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14002
(eval $ac_try) 2>&5
14004
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14005
(exit $ac_status); }; } &&
14006
{ ac_try='test -s conftest$ac_exeext'
14007
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14008
(eval $ac_try) 2>&5
14010
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14011
(exit $ac_status); }; }; then
14012
ac_cv_lib_gdbm_gdbm_open=yes
14014
echo "$as_me: failed program was:" >&5
14015
sed 's/^/| /' conftest.$ac_ext >&5
14017
ac_cv_lib_gdbm_gdbm_open=no
14019
rm -f conftest.err conftest.$ac_objext \
14020
conftest$ac_exeext conftest.$ac_ext
14021
LIBS=$ac_check_lib_save_LIBS
14023
echo "$as_me:$LINENO: result: $ac_cv_lib_gdbm_gdbm_open" >&5
14024
echo "${ECHO_T}$ac_cv_lib_gdbm_gdbm_open" >&6
14025
if test $ac_cv_lib_gdbm_gdbm_open = yes; then
14032
if test "$apu_have_gdbm" != "0"; then
14034
if test "x$APRUTIL_LDFLAGS" = "x"; then
14035
test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$withval/lib\""
14036
APRUTIL_LDFLAGS="-L$withval/lib"
14038
apr_addto_bugger="-L$withval/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"
14055
if test "x$APRUTIL_INCLUDES" = "x"; then
14056
test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$withval/include\""
14057
APRUTIL_INCLUDES="-I$withval/include"
14059
apr_addto_bugger="-I$withval/include"
14060
for i in $apr_addto_bugger; do
14061
apr_addto_duplicate="0"
14062
for j in $APRUTIL_INCLUDES; do
14063
if test "x$i" = "x$j"; then
14064
apr_addto_duplicate="1"
14068
if test $apr_addto_duplicate = "0"; then
14069
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES"
14070
APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
14081
# Check whether --with-ndbm or --without-ndbm was given.
14082
if test "${with_ndbm+set}" = set; then
14083
withval="$with_ndbm"
14086
if test "$withval" = "yes"; then
14087
echo "$as_me:$LINENO: checking checking for ndbm in the usual places" >&5
14088
echo $ECHO_N "checking checking for ndbm in the usual places... $ECHO_C" >&6
14092
elif test "$withval" = "no"; then
14098
NDBM_INC="-I`echo $withval |sed -e 's/:.*$//'`"
14099
NDBM_LDFLAGS="-L`echo $withval |sed -e 's/^.*://'`"
14100
echo "$as_me:$LINENO: checking checking for ndbm includes with $NDBM_INC libs with $NDBM_LDFLAGS " >&5
14101
echo $ECHO_N "checking checking for ndbm includes with $NDBM_INC libs with $NDBM_LDFLAGS ... $ECHO_C" >&6
14104
NDBM_INC="-I$withval/include"
14105
NDBM_LDFLAGS="-L$withval/lib"
14106
echo "$as_me:$LINENO: checking checking for ndbm includes in $withval" >&5
14107
echo $ECHO_N "checking checking for ndbm includes in $withval... $ECHO_C" >&6
14112
save_cppflags="$CPPFLAGS"
14113
save_ldflags="$LDFLAGS"
14114
CPPFLAGS="$CPPFLAGS $NDBM_INC"
14115
LDFLAGS="$LDFLAGS $NDBM_LDFLAGS"
14116
if test "$apu_want_ndbm" != "0"; then
14117
if test "${ac_cv_header_ndbm_h+set}" = set; then
14118
echo "$as_me:$LINENO: checking for ndbm.h" >&5
14119
echo $ECHO_N "checking for ndbm.h... $ECHO_C" >&6
14120
if test "${ac_cv_header_ndbm_h+set}" = set; then
14121
echo $ECHO_N "(cached) $ECHO_C" >&6
14123
echo "$as_me:$LINENO: result: $ac_cv_header_ndbm_h" >&5
14124
echo "${ECHO_T}$ac_cv_header_ndbm_h" >&6
14126
# Is the header compilable?
14127
echo "$as_me:$LINENO: checking ndbm.h usability" >&5
14128
echo $ECHO_N "checking ndbm.h usability... $ECHO_C" >&6
14129
cat >conftest.$ac_ext <<_ACEOF
14132
cat confdefs.h >>conftest.$ac_ext
14133
cat >>conftest.$ac_ext <<_ACEOF
14134
/* end confdefs.h. */
14135
$ac_includes_default
14138
rm -f conftest.$ac_objext
14139
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14140
(eval $ac_compile) 2>conftest.er1
14142
grep -v '^ *+' conftest.er1 >conftest.err
14144
cat conftest.err >&5
14145
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14146
(exit $ac_status); } &&
14147
{ ac_try='test -z "$ac_c_werror_flag"
14148
|| test ! -s conftest.err'
14149
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14150
(eval $ac_try) 2>&5
14152
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14153
(exit $ac_status); }; } &&
14154
{ ac_try='test -s conftest.$ac_objext'
14155
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14156
(eval $ac_try) 2>&5
14158
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14159
(exit $ac_status); }; }; then
14160
ac_header_compiler=yes
14162
echo "$as_me: failed program was:" >&5
14163
sed 's/^/| /' conftest.$ac_ext >&5
14165
ac_header_compiler=no
14167
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14168
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14169
echo "${ECHO_T}$ac_header_compiler" >&6
14171
# Is the header present?
14172
echo "$as_me:$LINENO: checking ndbm.h presence" >&5
14173
echo $ECHO_N "checking ndbm.h presence... $ECHO_C" >&6
14174
cat >conftest.$ac_ext <<_ACEOF
14177
cat confdefs.h >>conftest.$ac_ext
14178
cat >>conftest.$ac_ext <<_ACEOF
14179
/* end confdefs.h. */
14182
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14183
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14185
grep -v '^ *+' conftest.er1 >conftest.err
14187
cat conftest.err >&5
14188
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14189
(exit $ac_status); } >/dev/null; then
14190
if test -s conftest.err; then
14191
ac_cpp_err=$ac_c_preproc_warn_flag
14192
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14199
if test -z "$ac_cpp_err"; then
14200
ac_header_preproc=yes
14202
echo "$as_me: failed program was:" >&5
14203
sed 's/^/| /' conftest.$ac_ext >&5
14205
ac_header_preproc=no
14207
rm -f conftest.err conftest.$ac_ext
14208
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14209
echo "${ECHO_T}$ac_header_preproc" >&6
14211
# So? What about this header?
14212
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14214
{ echo "$as_me:$LINENO: WARNING: ndbm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14215
echo "$as_me: WARNING: ndbm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14216
{ echo "$as_me:$LINENO: WARNING: ndbm.h: proceeding with the compiler's result" >&5
14217
echo "$as_me: WARNING: ndbm.h: proceeding with the compiler's result" >&2;}
14218
ac_header_preproc=yes
14221
{ echo "$as_me:$LINENO: WARNING: ndbm.h: present but cannot be compiled" >&5
14222
echo "$as_me: WARNING: ndbm.h: present but cannot be compiled" >&2;}
14223
{ echo "$as_me:$LINENO: WARNING: ndbm.h: check for missing prerequisite headers?" >&5
14224
echo "$as_me: WARNING: ndbm.h: check for missing prerequisite headers?" >&2;}
14225
{ echo "$as_me:$LINENO: WARNING: ndbm.h: see the Autoconf documentation" >&5
14226
echo "$as_me: WARNING: ndbm.h: see the Autoconf documentation" >&2;}
14227
{ echo "$as_me:$LINENO: WARNING: ndbm.h: section \"Present But Cannot Be Compiled\"" >&5
14228
echo "$as_me: WARNING: ndbm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14229
{ echo "$as_me:$LINENO: WARNING: ndbm.h: proceeding with the preprocessor's result" >&5
14230
echo "$as_me: WARNING: ndbm.h: proceeding with the preprocessor's result" >&2;}
14231
{ echo "$as_me:$LINENO: WARNING: ndbm.h: in the future, the compiler will take precedence" >&5
14232
echo "$as_me: WARNING: ndbm.h: in the future, the compiler will take precedence" >&2;}
14235
## ------------------------------------------ ##
14236
## Report this to the AC_PACKAGE_NAME lists. ##
14237
## ------------------------------------------ ##
14240
sed "s/^/$as_me: WARNING: /" >&2
14243
echo "$as_me:$LINENO: checking for ndbm.h" >&5
14244
echo $ECHO_N "checking for ndbm.h... $ECHO_C" >&6
14245
if test "${ac_cv_header_ndbm_h+set}" = set; then
14246
echo $ECHO_N "(cached) $ECHO_C" >&6
14248
ac_cv_header_ndbm_h=$ac_header_preproc
14250
echo "$as_me:$LINENO: result: $ac_cv_header_ndbm_h" >&5
14251
echo "${ECHO_T}$ac_cv_header_ndbm_h" >&6
14254
if test $ac_cv_header_ndbm_h = yes; then
14255
echo "$as_me:$LINENO: checking for dbm_open in -lc" >&5
14256
echo $ECHO_N "checking for dbm_open in -lc... $ECHO_C" >&6
14257
if test "${ac_cv_lib_c_dbm_open+set}" = set; then
14258
echo $ECHO_N "(cached) $ECHO_C" >&6
14260
ac_check_lib_save_LIBS=$LIBS
14262
cat >conftest.$ac_ext <<_ACEOF
14265
cat confdefs.h >>conftest.$ac_ext
14266
cat >>conftest.$ac_ext <<_ACEOF
14267
/* end confdefs.h. */
14269
/* Override any gcc2 internal prototype to avoid an error. */
14273
/* We use char because int might match the return type of a gcc2
14274
builtin and then its argument prototype would still apply. */
14284
rm -f conftest.$ac_objext conftest$ac_exeext
14285
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14286
(eval $ac_link) 2>conftest.er1
14288
grep -v '^ *+' conftest.er1 >conftest.err
14290
cat conftest.err >&5
14291
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14292
(exit $ac_status); } &&
14293
{ ac_try='test -z "$ac_c_werror_flag"
14294
|| test ! -s conftest.err'
14295
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14296
(eval $ac_try) 2>&5
14298
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14299
(exit $ac_status); }; } &&
14300
{ ac_try='test -s conftest$ac_exeext'
14301
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14302
(eval $ac_try) 2>&5
14304
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14305
(exit $ac_status); }; }; then
14306
ac_cv_lib_c_dbm_open=yes
14308
echo "$as_me: failed program was:" >&5
14309
sed 's/^/| /' conftest.$ac_ext >&5
14311
ac_cv_lib_c_dbm_open=no
14313
rm -f conftest.err conftest.$ac_objext \
14314
conftest$ac_exeext conftest.$ac_ext
14315
LIBS=$ac_check_lib_save_LIBS
14317
echo "$as_me:$LINENO: result: $ac_cv_lib_c_dbm_open" >&5
14318
echo "${ECHO_T}$ac_cv_lib_c_dbm_open" >&6
14319
if test $ac_cv_lib_c_dbm_open = yes; then
14320
apu_have_ndbm=1;apu_ndbm_lib=c
14322
echo "$as_me:$LINENO: checking for dbm_open in -ldbm" >&5
14323
echo $ECHO_N "checking for dbm_open in -ldbm... $ECHO_C" >&6
14324
if test "${ac_cv_lib_dbm_dbm_open+set}" = set; then
14325
echo $ECHO_N "(cached) $ECHO_C" >&6
14327
ac_check_lib_save_LIBS=$LIBS
14329
cat >conftest.$ac_ext <<_ACEOF
14332
cat confdefs.h >>conftest.$ac_ext
14333
cat >>conftest.$ac_ext <<_ACEOF
14334
/* end confdefs.h. */
14336
/* Override any gcc2 internal prototype to avoid an error. */
14340
/* We use char because int might match the return type of a gcc2
14341
builtin and then its argument prototype would still apply. */
14351
rm -f conftest.$ac_objext conftest$ac_exeext
14352
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14353
(eval $ac_link) 2>conftest.er1
14355
grep -v '^ *+' conftest.er1 >conftest.err
14357
cat conftest.err >&5
14358
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14359
(exit $ac_status); } &&
14360
{ ac_try='test -z "$ac_c_werror_flag"
14361
|| test ! -s conftest.err'
14362
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14363
(eval $ac_try) 2>&5
14365
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14366
(exit $ac_status); }; } &&
14367
{ ac_try='test -s conftest$ac_exeext'
14368
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14369
(eval $ac_try) 2>&5
14371
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14372
(exit $ac_status); }; }; then
14373
ac_cv_lib_dbm_dbm_open=yes
14375
echo "$as_me: failed program was:" >&5
14376
sed 's/^/| /' conftest.$ac_ext >&5
14378
ac_cv_lib_dbm_dbm_open=no
14380
rm -f conftest.err conftest.$ac_objext \
14381
conftest$ac_exeext conftest.$ac_ext
14382
LIBS=$ac_check_lib_save_LIBS
14384
echo "$as_me:$LINENO: result: $ac_cv_lib_dbm_dbm_open" >&5
14385
echo "${ECHO_T}$ac_cv_lib_dbm_dbm_open" >&6
14386
if test $ac_cv_lib_dbm_dbm_open = yes; then
14387
apu_have_ndbm=1;apu_ndbm_lib=dbm
14389
echo "$as_me:$LINENO: checking for dbm_open in -ldb" >&5
14390
echo $ECHO_N "checking for dbm_open in -ldb... $ECHO_C" >&6
14391
if test "${ac_cv_lib_db_dbm_open+set}" = set; then
14392
echo $ECHO_N "(cached) $ECHO_C" >&6
14394
ac_check_lib_save_LIBS=$LIBS
14396
cat >conftest.$ac_ext <<_ACEOF
14399
cat confdefs.h >>conftest.$ac_ext
14400
cat >>conftest.$ac_ext <<_ACEOF
14401
/* end confdefs.h. */
14403
/* Override any gcc2 internal prototype to avoid an error. */
14407
/* We use char because int might match the return type of a gcc2
14408
builtin and then its argument prototype would still apply. */
14418
rm -f conftest.$ac_objext conftest$ac_exeext
14419
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14420
(eval $ac_link) 2>conftest.er1
14422
grep -v '^ *+' conftest.er1 >conftest.err
14424
cat conftest.err >&5
14425
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14426
(exit $ac_status); } &&
14427
{ ac_try='test -z "$ac_c_werror_flag"
14428
|| test ! -s conftest.err'
14429
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14430
(eval $ac_try) 2>&5
14432
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14433
(exit $ac_status); }; } &&
14434
{ ac_try='test -s conftest$ac_exeext'
14435
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14436
(eval $ac_try) 2>&5
14438
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14439
(exit $ac_status); }; }; then
14440
ac_cv_lib_db_dbm_open=yes
14442
echo "$as_me: failed program was:" >&5
14443
sed 's/^/| /' conftest.$ac_ext >&5
14445
ac_cv_lib_db_dbm_open=no
14447
rm -f conftest.err conftest.$ac_objext \
14448
conftest$ac_exeext conftest.$ac_ext
14449
LIBS=$ac_check_lib_save_LIBS
14451
echo "$as_me:$LINENO: result: $ac_cv_lib_db_dbm_open" >&5
14452
echo "${ECHO_T}$ac_cv_lib_db_dbm_open" >&6
14453
if test $ac_cv_lib_db_dbm_open = yes; then
14454
apu_have_ndbm=1;apu_ndbm_lib=db
14456
echo "$as_me:$LINENO: checking for __db_ndbm_open in -ldb" >&5
14457
echo $ECHO_N "checking for __db_ndbm_open in -ldb... $ECHO_C" >&6
14458
if test "${ac_cv_lib_db___db_ndbm_open+set}" = set; then
14459
echo $ECHO_N "(cached) $ECHO_C" >&6
14461
ac_check_lib_save_LIBS=$LIBS
14463
cat >conftest.$ac_ext <<_ACEOF
14466
cat confdefs.h >>conftest.$ac_ext
14467
cat >>conftest.$ac_ext <<_ACEOF
14468
/* end confdefs.h. */
14470
/* Override any gcc2 internal prototype to avoid an error. */
14474
/* We use char because int might match the return type of a gcc2
14475
builtin and then its argument prototype would still apply. */
14476
char __db_ndbm_open ();
14485
rm -f conftest.$ac_objext conftest$ac_exeext
14486
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14487
(eval $ac_link) 2>conftest.er1
14489
grep -v '^ *+' conftest.er1 >conftest.err
14491
cat conftest.err >&5
14492
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14493
(exit $ac_status); } &&
14494
{ ac_try='test -z "$ac_c_werror_flag"
14495
|| test ! -s conftest.err'
14496
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14497
(eval $ac_try) 2>&5
14499
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14500
(exit $ac_status); }; } &&
14501
{ ac_try='test -s conftest$ac_exeext'
14502
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14503
(eval $ac_try) 2>&5
14505
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14506
(exit $ac_status); }; }; then
14507
ac_cv_lib_db___db_ndbm_open=yes
14509
echo "$as_me: failed program was:" >&5
14510
sed 's/^/| /' conftest.$ac_ext >&5
14512
ac_cv_lib_db___db_ndbm_open=no
14514
rm -f conftest.err conftest.$ac_objext \
14515
conftest$ac_exeext conftest.$ac_ext
14516
LIBS=$ac_check_lib_save_LIBS
14518
echo "$as_me:$LINENO: result: $ac_cv_lib_db___db_ndbm_open" >&5
14519
echo "${ECHO_T}$ac_cv_lib_db___db_ndbm_open" >&6
14520
if test $ac_cv_lib_db___db_ndbm_open = yes; then
14521
apu_have_ndbm=1;apu_ndbm_lib=db
14537
if test "$apu_have_ndbm" != "0"; then
14538
if test "$withval" != "yes"; then
14540
if test "x$APRUTIL_INCLUDES" = "x"; then
14541
test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"$NDBM_INC\""
14542
APRUTIL_INCLUDES="$NDBM_INC"
14544
apr_addto_bugger="$NDBM_INC"
14545
for i in $apr_addto_bugger; do
14546
apr_addto_duplicate="0"
14547
for j in $APRUTIL_INCLUDES; do
14548
if test "x$i" = "x$j"; then
14549
apr_addto_duplicate="1"
14553
if test $apr_addto_duplicate = "0"; then
14554
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES"
14555
APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
14561
if test "x$APRUTIL_LDFLAGS" = "x"; then
14562
test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"$NDBM_LDFLAGS\""
14563
APRUTIL_LDFLAGS="$NDBM_LDFLAGS"
14565
apr_addto_bugger="$NDBM_LDFLAGS"
14566
for i in $apr_addto_bugger; do
14567
apr_addto_duplicate="0"
14568
for j in $APRUTIL_LDFLAGS; do
14569
if test "x$i" = "x$j"; then
14570
apr_addto_duplicate="1"
14574
if test $apr_addto_duplicate = "0"; then
14575
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS"
14576
APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
14582
elif test "$withval" != "yes"; then
14583
{ { echo "$as_me:$LINENO: error: NDBM not found in the specified directory" >&5
14584
echo "$as_me: error: NDBM not found in the specified directory" >&2;}
14585
{ (exit 1); exit 1; }; }
14588
CPPFLAGS="$save_cppflags"
14589
LDFLAGS="$save_ldflags"
14598
if test -n "$apu_db_xtra_libs"; then
14599
saveddbxtralibs="$LIBS"
14600
LIBS="$apu_db_xtra_libs $LIBS"
14604
# Check whether --with-berkeley-db or --without-berkeley-db was given.
14605
if test "${with_berkeley_db+set}" = set; then
14606
withval="$with_berkeley_db"
14608
if test "$withval" = "yes"; then
14611
elif test "$withval" = "no"; then
14615
user_places="$withval"
14618
if test "$apu_want_db" != "0"; then
14620
requested=$requested
14621
check_places=$user_places
14623
case "$requested" in
14626
all_places="$check_places"
14629
places="$all_places"
14630
if test -z "$places"; then
14631
places="std /usr/local/BerkeleyDB.4.4 /boot/home/config"
14635
if test ""4"" != "-1"; then
14636
bdb_version="$bdb_version."4""
14637
if test ""-1"" != "-1"; then
14638
bdb_version="$bdb_version."-1""
14641
bdb_places="$places"
14642
bdb_default_search_headers="db44/db.h db4/db.h db.h"
14643
bdb_default_search_lib_names="db-4.4 db4-4.4 db44 db4 db"
14648
# Save the original values of the flags we tweak.
14649
apu_check_lib_save_libs="$LIBS"
14650
apu_check_lib_save_ldflags="$LDFLAGS"
14651
apu_check_lib_save_cppflags="$CPPFLAGS"
14653
# The variable `found' is the prefix under which we've found
14654
# Berkeley DB, or `not' if we haven't found it anywhere yet.
14656
for bdb_place in $bdb_places; do
14658
LDFLAGS="$apu_check_lib_save_ldflags"
14659
CPPFLAGS="$apu_check_lib_save_cppflags"
14660
case "$bdb_place" in
14662
description="the standard places"
14665
header="`echo $bdb_place | sed -e 's/:.*$//'`"
14666
lib="`echo $bdb_place | sed -e 's/^.*://'`"
14667
CPPFLAGS="$CPPFLAGS -I$header"
14668
LDFLAGS="$LDFLAGS -L$lib"
14669
description="$header and $lib"
14672
if test -d $bdb_place; then
14673
LDFLAGS="$LDFLAGS -L$bdb_place/lib"
14674
CPPFLAGS="$CPPFLAGS -I$bdb_place/include"
14676
echo "$as_me:$LINENO: checking for Berkeley DB $bdb_version in $bdb_place" >&5
14677
echo $ECHO_N "checking for Berkeley DB $bdb_version in $bdb_place... $ECHO_C" >&6
14678
echo "$as_me:$LINENO: result: directory not found" >&5
14679
echo "${ECHO_T}directory not found" >&6
14682
description="$bdb_place"
14686
# Since there is no AC_MSG_NOTICE in autoconf 2.13, we use this
14687
# trick to display a message instead.
14688
echo "$as_me:$LINENO: checking for Berkeley DB $bdb_version in $description" >&5
14689
echo $ECHO_N "checking for Berkeley DB $bdb_version in $description... $ECHO_C" >&6
14690
echo "$as_me:$LINENO: result: " >&5
14691
echo "${ECHO_T}" >&6
14693
for bdb_libname in $bdb_default_search_lib_names; do
14694
for bdb_header in $bdb_default_search_headers; do
14695
# Clear the header cache variable for each location
14697
cache_id="`echo ac_cv_header_${bdb_header} \
14698
| sed -e 's/[^a-zA-Z0-9_]/_/g'`"
14701
as_ac_Header=`echo "ac_cv_header_$bdb_header" | $as_tr_sh`
14702
if eval "test \"\${$as_ac_Header+set}\" = set"; then
14703
echo "$as_me:$LINENO: checking for $bdb_header" >&5
14704
echo $ECHO_N "checking for $bdb_header... $ECHO_C" >&6
14705
if eval "test \"\${$as_ac_Header+set}\" = set"; then
14706
echo $ECHO_N "(cached) $ECHO_C" >&6
14708
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14709
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14711
# Is the header compilable?
14712
echo "$as_me:$LINENO: checking $bdb_header usability" >&5
14713
echo $ECHO_N "checking $bdb_header usability... $ECHO_C" >&6
14714
cat >conftest.$ac_ext <<_ACEOF
14717
cat confdefs.h >>conftest.$ac_ext
14718
cat >>conftest.$ac_ext <<_ACEOF
14719
/* end confdefs.h. */
14720
$ac_includes_default
14721
#include <$bdb_header>
14723
rm -f conftest.$ac_objext
14724
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14725
(eval $ac_compile) 2>conftest.er1
14727
grep -v '^ *+' conftest.er1 >conftest.err
14729
cat conftest.err >&5
14730
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14731
(exit $ac_status); } &&
14732
{ ac_try='test -z "$ac_c_werror_flag"
14733
|| test ! -s conftest.err'
14734
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14735
(eval $ac_try) 2>&5
14737
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14738
(exit $ac_status); }; } &&
14739
{ ac_try='test -s conftest.$ac_objext'
14740
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14741
(eval $ac_try) 2>&5
14743
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14744
(exit $ac_status); }; }; then
14745
ac_header_compiler=yes
14747
echo "$as_me: failed program was:" >&5
14748
sed 's/^/| /' conftest.$ac_ext >&5
14750
ac_header_compiler=no
14752
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14753
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14754
echo "${ECHO_T}$ac_header_compiler" >&6
14756
# Is the header present?
14757
echo "$as_me:$LINENO: checking $bdb_header presence" >&5
14758
echo $ECHO_N "checking $bdb_header presence... $ECHO_C" >&6
14759
cat >conftest.$ac_ext <<_ACEOF
14762
cat confdefs.h >>conftest.$ac_ext
14763
cat >>conftest.$ac_ext <<_ACEOF
14764
/* end confdefs.h. */
14765
#include <$bdb_header>
14767
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14768
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14770
grep -v '^ *+' conftest.er1 >conftest.err
14772
cat conftest.err >&5
14773
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14774
(exit $ac_status); } >/dev/null; then
14775
if test -s conftest.err; then
14776
ac_cpp_err=$ac_c_preproc_warn_flag
14777
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14784
if test -z "$ac_cpp_err"; then
14785
ac_header_preproc=yes
14787
echo "$as_me: failed program was:" >&5
14788
sed 's/^/| /' conftest.$ac_ext >&5
14790
ac_header_preproc=no
14792
rm -f conftest.err conftest.$ac_ext
14793
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14794
echo "${ECHO_T}$ac_header_preproc" >&6
14796
# So? What about this header?
14797
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14799
{ echo "$as_me:$LINENO: WARNING: $bdb_header: accepted by the compiler, rejected by the preprocessor!" >&5
14800
echo "$as_me: WARNING: $bdb_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14801
{ echo "$as_me:$LINENO: WARNING: $bdb_header: proceeding with the compiler's result" >&5
14802
echo "$as_me: WARNING: $bdb_header: proceeding with the compiler's result" >&2;}
14803
ac_header_preproc=yes
14806
{ echo "$as_me:$LINENO: WARNING: $bdb_header: present but cannot be compiled" >&5
14807
echo "$as_me: WARNING: $bdb_header: present but cannot be compiled" >&2;}
14808
{ echo "$as_me:$LINENO: WARNING: $bdb_header: check for missing prerequisite headers?" >&5
14809
echo "$as_me: WARNING: $bdb_header: check for missing prerequisite headers?" >&2;}
14810
{ echo "$as_me:$LINENO: WARNING: $bdb_header: see the Autoconf documentation" >&5
14811
echo "$as_me: WARNING: $bdb_header: see the Autoconf documentation" >&2;}
14812
{ echo "$as_me:$LINENO: WARNING: $bdb_header: section \"Present But Cannot Be Compiled\"" >&5
14813
echo "$as_me: WARNING: $bdb_header: section \"Present But Cannot Be Compiled\"" >&2;}
14814
{ echo "$as_me:$LINENO: WARNING: $bdb_header: proceeding with the preprocessor's result" >&5
14815
echo "$as_me: WARNING: $bdb_header: proceeding with the preprocessor's result" >&2;}
14816
{ echo "$as_me:$LINENO: WARNING: $bdb_header: in the future, the compiler will take precedence" >&5
14817
echo "$as_me: WARNING: $bdb_header: in the future, the compiler will take precedence" >&2;}
14820
## ------------------------------------------ ##
14821
## Report this to the AC_PACKAGE_NAME lists. ##
14822
## ------------------------------------------ ##
14825
sed "s/^/$as_me: WARNING: /" >&2
14828
echo "$as_me:$LINENO: checking for $bdb_header" >&5
14829
echo $ECHO_N "checking for $bdb_header... $ECHO_C" >&6
14830
if eval "test \"\${$as_ac_Header+set}\" = set"; then
14831
echo $ECHO_N "(cached) $ECHO_C" >&6
14833
eval "$as_ac_Header=\$ac_header_preproc"
14835
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14836
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14839
if test `eval echo '${'$as_ac_Header'}'` = yes; then
14841
if test ""4"" = "3" -o ""4"" = "4"; then
14842
# We generate a separate cache variable for each prefix and libname
14843
# we search under. That way, we avoid caching information that
14844
# changes if the user runs `configure' with a different set of
14847
cache_id="`echo apu_cv_check_berkeley_db_"4"_"4"_"-1"_${bdb_header}_${bdb_libname}_in_${bdb_place} \
14848
| sed -e 's/[^a-zA-Z0-9_]/_/g'`"
14851
echo "$as_me:$LINENO: checking for -l$bdb_libname" >&5
14852
echo $ECHO_N "checking for -l$bdb_libname... $ECHO_C" >&6
14853
if eval "test \"\${$cache_id+set}\" = set"; then
14854
echo $ECHO_N "(cached) $ECHO_C" >&6
14858
apu_try_berkeley_db_save_libs="$LIBS"
14860
apu_check_berkeley_db_major="4"
14861
apu_check_berkeley_db_minor="4"
14862
apu_check_berkeley_db_patch="-1"
14863
apu_try_berkeley_db_header=$bdb_header
14864
apu_try_berkeley_db_libname=$bdb_libname
14866
LIBS="$LIBS -l$apu_try_berkeley_db_libname"
14867
if test "$cross_compiling" = yes; then
14868
apu_try_berkeley_db=yes
14871
cat >conftest.$ac_ext <<_ACEOF
14874
cat confdefs.h >>conftest.$ac_ext
14875
cat >>conftest.$ac_ext <<_ACEOF
14876
/* end confdefs.h. */
14879
#include <$apu_try_berkeley_db_header>
14882
int major, minor, patch;
14884
db_version(&major, &minor, &patch);
14886
/* Sanity check: ensure that db.h constants actually match the db library */
14887
if (major != DB_VERSION_MAJOR
14888
|| minor != DB_VERSION_MINOR
14889
|| patch != DB_VERSION_PATCH)
14892
/* Run-time check: ensure the library claims to be the correct version. */
14894
if ($apu_check_berkeley_db_major != -1) {
14895
if (major < $apu_check_berkeley_db_major)
14897
if (major > $apu_check_berkeley_db_major)
14901
if ($apu_check_berkeley_db_minor != -1) {
14902
if (minor < $apu_check_berkeley_db_minor)
14904
if (minor > $apu_check_berkeley_db_minor)
14908
if ($apu_check_berkeley_db_patch == -1
14909
|| patch >= $apu_check_berkeley_db_patch)
14916
rm -f conftest$ac_exeext
14917
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14918
(eval $ac_link) 2>&5
14920
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14921
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14922
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14923
(eval $ac_try) 2>&5
14925
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14926
(exit $ac_status); }; }; then
14927
apu_try_berkeley_db=yes
14929
echo "$as_me: program exited with status $ac_status" >&5
14930
echo "$as_me: failed program was:" >&5
14931
sed 's/^/| /' conftest.$ac_ext >&5
14933
( exit $ac_status )
14934
apu_try_berkeley_db=no
14936
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14939
LIBS="$apu_try_berkeley_db_save_libs"
14942
eval "$cache_id=$apu_try_berkeley_db"
14946
result="`eval echo '$'$cache_id`"
14947
echo "$as_me:$LINENO: result: $result" >&5
14948
echo "${ECHO_T}$result" >&6
14949
elif test ""4"" = "1"; then
14950
as_ac_Lib=`echo "ac_cv_lib_$bdb_libname''_dbopen" | $as_tr_sh`
14951
echo "$as_me:$LINENO: checking for dbopen in -l$bdb_libname" >&5
14952
echo $ECHO_N "checking for dbopen in -l$bdb_libname... $ECHO_C" >&6
14953
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
14954
echo $ECHO_N "(cached) $ECHO_C" >&6
14956
ac_check_lib_save_LIBS=$LIBS
14957
LIBS="-l$bdb_libname $LIBS"
14958
cat >conftest.$ac_ext <<_ACEOF
14961
cat confdefs.h >>conftest.$ac_ext
14962
cat >>conftest.$ac_ext <<_ACEOF
14963
/* end confdefs.h. */
14965
/* Override any gcc2 internal prototype to avoid an error. */
14969
/* We use char because int might match the return type of a gcc2
14970
builtin and then its argument prototype would still apply. */
14980
rm -f conftest.$ac_objext conftest$ac_exeext
14981
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14982
(eval $ac_link) 2>conftest.er1
14984
grep -v '^ *+' conftest.er1 >conftest.err
14986
cat conftest.err >&5
14987
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14988
(exit $ac_status); } &&
14989
{ ac_try='test -z "$ac_c_werror_flag"
14990
|| test ! -s conftest.err'
14991
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14992
(eval $ac_try) 2>&5
14994
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14995
(exit $ac_status); }; } &&
14996
{ ac_try='test -s conftest$ac_exeext'
14997
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14998
(eval $ac_try) 2>&5
15000
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15001
(exit $ac_status); }; }; then
15002
eval "$as_ac_Lib=yes"
15004
echo "$as_me: failed program was:" >&5
15005
sed 's/^/| /' conftest.$ac_ext >&5
15007
eval "$as_ac_Lib=no"
15009
rm -f conftest.err conftest.$ac_objext \
15010
conftest$ac_exeext conftest.$ac_ext
15011
LIBS=$ac_check_lib_save_LIBS
15013
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
15014
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
15015
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
15022
elif test ""4"" = "2"; then
15023
as_ac_Lib=`echo "ac_cv_lib_$bdb_libname''_db_open" | $as_tr_sh`
15024
echo "$as_me:$LINENO: checking for db_open in -l$bdb_libname" >&5
15025
echo $ECHO_N "checking for db_open in -l$bdb_libname... $ECHO_C" >&6
15026
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
15027
echo $ECHO_N "(cached) $ECHO_C" >&6
15029
ac_check_lib_save_LIBS=$LIBS
15030
LIBS="-l$bdb_libname $LIBS"
15031
cat >conftest.$ac_ext <<_ACEOF
15034
cat confdefs.h >>conftest.$ac_ext
15035
cat >>conftest.$ac_ext <<_ACEOF
15036
/* end confdefs.h. */
15038
/* Override any gcc2 internal prototype to avoid an error. */
15042
/* We use char because int might match the return type of a gcc2
15043
builtin and then its argument prototype would still apply. */
15053
rm -f conftest.$ac_objext conftest$ac_exeext
15054
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15055
(eval $ac_link) 2>conftest.er1
15057
grep -v '^ *+' conftest.er1 >conftest.err
15059
cat conftest.err >&5
15060
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15061
(exit $ac_status); } &&
15062
{ ac_try='test -z "$ac_c_werror_flag"
15063
|| test ! -s conftest.err'
15064
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15065
(eval $ac_try) 2>&5
15067
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15068
(exit $ac_status); }; } &&
15069
{ ac_try='test -s conftest$ac_exeext'
15070
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15071
(eval $ac_try) 2>&5
15073
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15074
(exit $ac_status); }; }; then
15075
eval "$as_ac_Lib=yes"
15077
echo "$as_me: failed program was:" >&5
15078
sed 's/^/| /' conftest.$ac_ext >&5
15080
eval "$as_ac_Lib=no"
15082
rm -f conftest.err conftest.$ac_objext \
15083
conftest$ac_exeext conftest.$ac_ext
15084
LIBS=$ac_check_lib_save_LIBS
15086
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
15087
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
15088
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
15103
# If we found it, no need to search any more.
15104
if test "$result" = "yes"; then
15109
test "$found" != "not" && break
15111
test "$found" != "not" && break
15114
# Restore the original values of the flags we tweak.
15115
LDFLAGS="$apu_check_lib_save_ldflags"
15116
CPPFLAGS="$apu_check_lib_save_cppflags"
15123
apu_db_header=$bdb_header
15124
apu_db_lib=$bdb_libname
15128
header="`echo $found | sed -e 's/:.*$//'`"
15129
lib="`echo $found | sed -e 's/^.*://'`"
15132
if test "x$APRUTIL_INCLUDES" = "x"; then
15133
test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$header\""
15134
APRUTIL_INCLUDES="-I$header"
15136
apr_addto_bugger="-I$header"
15137
for i in $apr_addto_bugger; do
15138
apr_addto_duplicate="0"
15139
for j in $APRUTIL_INCLUDES; do
15140
if test "x$i" = "x$j"; then
15141
apr_addto_duplicate="1"
15145
if test $apr_addto_duplicate = "0"; then
15146
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES"
15147
APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
15153
if test "x$APRUTIL_LDFLAGS" = "x"; then
15154
test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$lib\""
15155
APRUTIL_LDFLAGS="-L$lib"
15157
apr_addto_bugger="-L$lib"
15158
for i in $apr_addto_bugger; do
15159
apr_addto_duplicate="0"
15160
for j in $APRUTIL_LDFLAGS; do
15161
if test "x$i" = "x$j"; then
15162
apr_addto_duplicate="1"
15166
if test $apr_addto_duplicate = "0"; then
15167
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS"
15168
APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
15173
apu_db_header=$bdb_header
15174
apu_db_lib=$bdb_libname
15179
if test "x$APRUTIL_INCLUDES" = "x"; then
15180
test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$found/include\""
15181
APRUTIL_INCLUDES="-I$found/include"
15183
apr_addto_bugger="-I$found/include"
15184
for i in $apr_addto_bugger; do
15185
apr_addto_duplicate="0"
15186
for j in $APRUTIL_INCLUDES; do
15187
if test "x$i" = "x$j"; then
15188
apr_addto_duplicate="1"
15192
if test $apr_addto_duplicate = "0"; then
15193
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES"
15194
APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
15200
if test "x$APRUTIL_LDFLAGS" = "x"; then
15201
test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$found/lib\""
15202
APRUTIL_LDFLAGS="-L$found/lib"
15204
apr_addto_bugger="-L$found/lib"
15205
for i in $apr_addto_bugger; do
15206
apr_addto_duplicate="0"
15207
for j in $APRUTIL_LDFLAGS; do
15208
if test "x$i" = "x$j"; then
15209
apr_addto_duplicate="1"
15213
if test $apr_addto_duplicate = "0"; then
15214
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS"
15215
APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
15220
apu_db_header=$bdb_header
15221
apu_db_lib=$bdb_libname
15226
if test "$apu_have_db" = "1"; then
15230
if test "$apu_db_version" != "4"; then
15232
places="$all_places"
15233
if test -z "$places"; then
15234
places="std /usr/local/BerkeleyDB.4.3 /boot/home/config"
15238
if test ""3"" != "-1"; then
15239
bdb_version="$bdb_version."3""
15240
if test ""-1"" != "-1"; then
15241
bdb_version="$bdb_version."-1""
15244
bdb_places="$places"
15245
bdb_default_search_headers="db43/db.h db4/db.h db.h"
15246
bdb_default_search_lib_names="db-4.3 db4-4.3 db43 db4 db"
15251
# Save the original values of the flags we tweak.
15252
apu_check_lib_save_libs="$LIBS"
15253
apu_check_lib_save_ldflags="$LDFLAGS"
15254
apu_check_lib_save_cppflags="$CPPFLAGS"
15256
# The variable `found' is the prefix under which we've found
15257
# Berkeley DB, or `not' if we haven't found it anywhere yet.
15259
for bdb_place in $bdb_places; do
15261
LDFLAGS="$apu_check_lib_save_ldflags"
15262
CPPFLAGS="$apu_check_lib_save_cppflags"
15263
case "$bdb_place" in
15265
description="the standard places"
15268
header="`echo $bdb_place | sed -e 's/:.*$//'`"
15269
lib="`echo $bdb_place | sed -e 's/^.*://'`"
15270
CPPFLAGS="$CPPFLAGS -I$header"
15271
LDFLAGS="$LDFLAGS -L$lib"
15272
description="$header and $lib"
15275
if test -d $bdb_place; then
15276
LDFLAGS="$LDFLAGS -L$bdb_place/lib"
15277
CPPFLAGS="$CPPFLAGS -I$bdb_place/include"
15279
echo "$as_me:$LINENO: checking for Berkeley DB $bdb_version in $bdb_place" >&5
15280
echo $ECHO_N "checking for Berkeley DB $bdb_version in $bdb_place... $ECHO_C" >&6
15281
echo "$as_me:$LINENO: result: directory not found" >&5
15282
echo "${ECHO_T}directory not found" >&6
15285
description="$bdb_place"
15289
# Since there is no AC_MSG_NOTICE in autoconf 2.13, we use this
15290
# trick to display a message instead.
15291
echo "$as_me:$LINENO: checking for Berkeley DB $bdb_version in $description" >&5
15292
echo $ECHO_N "checking for Berkeley DB $bdb_version in $description... $ECHO_C" >&6
15293
echo "$as_me:$LINENO: result: " >&5
15294
echo "${ECHO_T}" >&6
15296
for bdb_libname in $bdb_default_search_lib_names; do
15297
for bdb_header in $bdb_default_search_headers; do
15298
# Clear the header cache variable for each location
15300
cache_id="`echo ac_cv_header_${bdb_header} \
15301
| sed -e 's/[^a-zA-Z0-9_]/_/g'`"
15304
as_ac_Header=`echo "ac_cv_header_$bdb_header" | $as_tr_sh`
15305
if eval "test \"\${$as_ac_Header+set}\" = set"; then
15306
echo "$as_me:$LINENO: checking for $bdb_header" >&5
15307
echo $ECHO_N "checking for $bdb_header... $ECHO_C" >&6
15308
if eval "test \"\${$as_ac_Header+set}\" = set"; then
15309
echo $ECHO_N "(cached) $ECHO_C" >&6
15311
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15312
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15314
# Is the header compilable?
15315
echo "$as_me:$LINENO: checking $bdb_header usability" >&5
15316
echo $ECHO_N "checking $bdb_header usability... $ECHO_C" >&6
15317
cat >conftest.$ac_ext <<_ACEOF
15320
cat confdefs.h >>conftest.$ac_ext
15321
cat >>conftest.$ac_ext <<_ACEOF
15322
/* end confdefs.h. */
15323
$ac_includes_default
15324
#include <$bdb_header>
15326
rm -f conftest.$ac_objext
15327
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15328
(eval $ac_compile) 2>conftest.er1
15330
grep -v '^ *+' conftest.er1 >conftest.err
15332
cat conftest.err >&5
15333
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15334
(exit $ac_status); } &&
15335
{ ac_try='test -z "$ac_c_werror_flag"
15336
|| test ! -s conftest.err'
15337
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15338
(eval $ac_try) 2>&5
15340
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15341
(exit $ac_status); }; } &&
15342
{ ac_try='test -s conftest.$ac_objext'
15343
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15344
(eval $ac_try) 2>&5
15346
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15347
(exit $ac_status); }; }; then
15348
ac_header_compiler=yes
15350
echo "$as_me: failed program was:" >&5
15351
sed 's/^/| /' conftest.$ac_ext >&5
15353
ac_header_compiler=no
15355
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15356
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15357
echo "${ECHO_T}$ac_header_compiler" >&6
15359
# Is the header present?
15360
echo "$as_me:$LINENO: checking $bdb_header presence" >&5
15361
echo $ECHO_N "checking $bdb_header presence... $ECHO_C" >&6
15362
cat >conftest.$ac_ext <<_ACEOF
15365
cat confdefs.h >>conftest.$ac_ext
15366
cat >>conftest.$ac_ext <<_ACEOF
15367
/* end confdefs.h. */
15368
#include <$bdb_header>
15370
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15371
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15373
grep -v '^ *+' conftest.er1 >conftest.err
15375
cat conftest.err >&5
15376
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15377
(exit $ac_status); } >/dev/null; then
15378
if test -s conftest.err; then
15379
ac_cpp_err=$ac_c_preproc_warn_flag
15380
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15387
if test -z "$ac_cpp_err"; then
15388
ac_header_preproc=yes
15390
echo "$as_me: failed program was:" >&5
15391
sed 's/^/| /' conftest.$ac_ext >&5
15393
ac_header_preproc=no
15395
rm -f conftest.err conftest.$ac_ext
15396
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15397
echo "${ECHO_T}$ac_header_preproc" >&6
15399
# So? What about this header?
15400
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15402
{ echo "$as_me:$LINENO: WARNING: $bdb_header: accepted by the compiler, rejected by the preprocessor!" >&5
15403
echo "$as_me: WARNING: $bdb_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15404
{ echo "$as_me:$LINENO: WARNING: $bdb_header: proceeding with the compiler's result" >&5
15405
echo "$as_me: WARNING: $bdb_header: proceeding with the compiler's result" >&2;}
15406
ac_header_preproc=yes
15409
{ echo "$as_me:$LINENO: WARNING: $bdb_header: present but cannot be compiled" >&5
15410
echo "$as_me: WARNING: $bdb_header: present but cannot be compiled" >&2;}
15411
{ echo "$as_me:$LINENO: WARNING: $bdb_header: check for missing prerequisite headers?" >&5
15412
echo "$as_me: WARNING: $bdb_header: check for missing prerequisite headers?" >&2;}
15413
{ echo "$as_me:$LINENO: WARNING: $bdb_header: see the Autoconf documentation" >&5
15414
echo "$as_me: WARNING: $bdb_header: see the Autoconf documentation" >&2;}
15415
{ echo "$as_me:$LINENO: WARNING: $bdb_header: section \"Present But Cannot Be Compiled\"" >&5
15416
echo "$as_me: WARNING: $bdb_header: section \"Present But Cannot Be Compiled\"" >&2;}
15417
{ echo "$as_me:$LINENO: WARNING: $bdb_header: proceeding with the preprocessor's result" >&5
15418
echo "$as_me: WARNING: $bdb_header: proceeding with the preprocessor's result" >&2;}
15419
{ echo "$as_me:$LINENO: WARNING: $bdb_header: in the future, the compiler will take precedence" >&5
15420
echo "$as_me: WARNING: $bdb_header: in the future, the compiler will take precedence" >&2;}
15423
## ------------------------------------------ ##
15424
## Report this to the AC_PACKAGE_NAME lists. ##
15425
## ------------------------------------------ ##
15428
sed "s/^/$as_me: WARNING: /" >&2
15431
echo "$as_me:$LINENO: checking for $bdb_header" >&5
15432
echo $ECHO_N "checking for $bdb_header... $ECHO_C" >&6
15433
if eval "test \"\${$as_ac_Header+set}\" = set"; then
15434
echo $ECHO_N "(cached) $ECHO_C" >&6
15436
eval "$as_ac_Header=\$ac_header_preproc"
15438
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15439
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15442
if test `eval echo '${'$as_ac_Header'}'` = yes; then
15444
if test ""4"" = "3" -o ""4"" = "4"; then
15445
# We generate a separate cache variable for each prefix and libname
15446
# we search under. That way, we avoid caching information that
15447
# changes if the user runs `configure' with a different set of
15450
cache_id="`echo apu_cv_check_berkeley_db_"4"_"3"_"-1"_${bdb_header}_${bdb_libname}_in_${bdb_place} \
15451
| sed -e 's/[^a-zA-Z0-9_]/_/g'`"
15454
echo "$as_me:$LINENO: checking for -l$bdb_libname" >&5
15455
echo $ECHO_N "checking for -l$bdb_libname... $ECHO_C" >&6
15456
if eval "test \"\${$cache_id+set}\" = set"; then
15457
echo $ECHO_N "(cached) $ECHO_C" >&6
15461
apu_try_berkeley_db_save_libs="$LIBS"
15463
apu_check_berkeley_db_major="4"
15464
apu_check_berkeley_db_minor="3"
15465
apu_check_berkeley_db_patch="-1"
15466
apu_try_berkeley_db_header=$bdb_header
15467
apu_try_berkeley_db_libname=$bdb_libname
15469
LIBS="$LIBS -l$apu_try_berkeley_db_libname"
15470
if test "$cross_compiling" = yes; then
15471
apu_try_berkeley_db=yes
15474
cat >conftest.$ac_ext <<_ACEOF
15477
cat confdefs.h >>conftest.$ac_ext
15478
cat >>conftest.$ac_ext <<_ACEOF
15479
/* end confdefs.h. */
15482
#include <$apu_try_berkeley_db_header>
15485
int major, minor, patch;
15487
db_version(&major, &minor, &patch);
15489
/* Sanity check: ensure that db.h constants actually match the db library */
15490
if (major != DB_VERSION_MAJOR
15491
|| minor != DB_VERSION_MINOR
15492
|| patch != DB_VERSION_PATCH)
15495
/* Run-time check: ensure the library claims to be the correct version. */
15497
if ($apu_check_berkeley_db_major != -1) {
15498
if (major < $apu_check_berkeley_db_major)
15500
if (major > $apu_check_berkeley_db_major)
15504
if ($apu_check_berkeley_db_minor != -1) {
15505
if (minor < $apu_check_berkeley_db_minor)
15507
if (minor > $apu_check_berkeley_db_minor)
15511
if ($apu_check_berkeley_db_patch == -1
15512
|| patch >= $apu_check_berkeley_db_patch)
15519
rm -f conftest$ac_exeext
15520
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15521
(eval $ac_link) 2>&5
15523
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15524
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15525
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15526
(eval $ac_try) 2>&5
15528
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15529
(exit $ac_status); }; }; then
15530
apu_try_berkeley_db=yes
15532
echo "$as_me: program exited with status $ac_status" >&5
15533
echo "$as_me: failed program was:" >&5
15534
sed 's/^/| /' conftest.$ac_ext >&5
15536
( exit $ac_status )
15537
apu_try_berkeley_db=no
15539
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15542
LIBS="$apu_try_berkeley_db_save_libs"
15545
eval "$cache_id=$apu_try_berkeley_db"
15549
result="`eval echo '$'$cache_id`"
15550
echo "$as_me:$LINENO: result: $result" >&5
15551
echo "${ECHO_T}$result" >&6
15552
elif test ""4"" = "1"; then
15553
as_ac_Lib=`echo "ac_cv_lib_$bdb_libname''_dbopen" | $as_tr_sh`
15554
echo "$as_me:$LINENO: checking for dbopen in -l$bdb_libname" >&5
15555
echo $ECHO_N "checking for dbopen in -l$bdb_libname... $ECHO_C" >&6
15556
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
15557
echo $ECHO_N "(cached) $ECHO_C" >&6
15559
ac_check_lib_save_LIBS=$LIBS
15560
LIBS="-l$bdb_libname $LIBS"
15561
cat >conftest.$ac_ext <<_ACEOF
15564
cat confdefs.h >>conftest.$ac_ext
15565
cat >>conftest.$ac_ext <<_ACEOF
15566
/* end confdefs.h. */
15568
/* Override any gcc2 internal prototype to avoid an error. */
15572
/* We use char because int might match the return type of a gcc2
15573
builtin and then its argument prototype would still apply. */
15583
rm -f conftest.$ac_objext conftest$ac_exeext
15584
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15585
(eval $ac_link) 2>conftest.er1
15587
grep -v '^ *+' conftest.er1 >conftest.err
15589
cat conftest.err >&5
15590
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15591
(exit $ac_status); } &&
15592
{ ac_try='test -z "$ac_c_werror_flag"
15593
|| test ! -s conftest.err'
15594
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15595
(eval $ac_try) 2>&5
15597
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15598
(exit $ac_status); }; } &&
15599
{ ac_try='test -s conftest$ac_exeext'
15600
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15601
(eval $ac_try) 2>&5
15603
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15604
(exit $ac_status); }; }; then
15605
eval "$as_ac_Lib=yes"
15607
echo "$as_me: failed program was:" >&5
15608
sed 's/^/| /' conftest.$ac_ext >&5
15610
eval "$as_ac_Lib=no"
15612
rm -f conftest.err conftest.$ac_objext \
15613
conftest$ac_exeext conftest.$ac_ext
15614
LIBS=$ac_check_lib_save_LIBS
15616
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
15617
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
15618
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
15625
elif test ""4"" = "2"; then
15626
as_ac_Lib=`echo "ac_cv_lib_$bdb_libname''_db_open" | $as_tr_sh`
15627
echo "$as_me:$LINENO: checking for db_open in -l$bdb_libname" >&5
15628
echo $ECHO_N "checking for db_open in -l$bdb_libname... $ECHO_C" >&6
15629
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
15630
echo $ECHO_N "(cached) $ECHO_C" >&6
15632
ac_check_lib_save_LIBS=$LIBS
15633
LIBS="-l$bdb_libname $LIBS"
15634
cat >conftest.$ac_ext <<_ACEOF
15637
cat confdefs.h >>conftest.$ac_ext
15638
cat >>conftest.$ac_ext <<_ACEOF
15639
/* end confdefs.h. */
15641
/* Override any gcc2 internal prototype to avoid an error. */
15645
/* We use char because int might match the return type of a gcc2
15646
builtin and then its argument prototype would still apply. */
15656
rm -f conftest.$ac_objext conftest$ac_exeext
15657
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15658
(eval $ac_link) 2>conftest.er1
15660
grep -v '^ *+' conftest.er1 >conftest.err
15662
cat conftest.err >&5
15663
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15664
(exit $ac_status); } &&
15665
{ ac_try='test -z "$ac_c_werror_flag"
15666
|| test ! -s conftest.err'
15667
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15668
(eval $ac_try) 2>&5
15670
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15671
(exit $ac_status); }; } &&
15672
{ ac_try='test -s conftest$ac_exeext'
15673
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15674
(eval $ac_try) 2>&5
15676
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15677
(exit $ac_status); }; }; then
15678
eval "$as_ac_Lib=yes"
15680
echo "$as_me: failed program was:" >&5
15681
sed 's/^/| /' conftest.$ac_ext >&5
15683
eval "$as_ac_Lib=no"
15685
rm -f conftest.err conftest.$ac_objext \
15686
conftest$ac_exeext conftest.$ac_ext
15687
LIBS=$ac_check_lib_save_LIBS
15689
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
15690
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
15691
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
15706
# If we found it, no need to search any more.
15707
if test "$result" = "yes"; then
15712
test "$found" != "not" && break
15714
test "$found" != "not" && break
15717
# Restore the original values of the flags we tweak.
15718
LDFLAGS="$apu_check_lib_save_ldflags"
15719
CPPFLAGS="$apu_check_lib_save_cppflags"
15726
apu_db_header=$bdb_header
15727
apu_db_lib=$bdb_libname
15731
header="`echo $found | sed -e 's/:.*$//'`"
15732
lib="`echo $found | sed -e 's/^.*://'`"
15735
if test "x$APRUTIL_INCLUDES" = "x"; then
15736
test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$header\""
15737
APRUTIL_INCLUDES="-I$header"
15739
apr_addto_bugger="-I$header"
15740
for i in $apr_addto_bugger; do
15741
apr_addto_duplicate="0"
15742
for j in $APRUTIL_INCLUDES; do
15743
if test "x$i" = "x$j"; then
15744
apr_addto_duplicate="1"
15748
if test $apr_addto_duplicate = "0"; then
15749
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES"
15750
APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
15756
if test "x$APRUTIL_LDFLAGS" = "x"; then
15757
test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$lib\""
15758
APRUTIL_LDFLAGS="-L$lib"
15760
apr_addto_bugger="-L$lib"
15761
for i in $apr_addto_bugger; do
15762
apr_addto_duplicate="0"
15763
for j in $APRUTIL_LDFLAGS; do
15764
if test "x$i" = "x$j"; then
15765
apr_addto_duplicate="1"
15769
if test $apr_addto_duplicate = "0"; then
15770
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS"
15771
APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
15776
apu_db_header=$bdb_header
15777
apu_db_lib=$bdb_libname
15782
if test "x$APRUTIL_INCLUDES" = "x"; then
15783
test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$found/include\""
15784
APRUTIL_INCLUDES="-I$found/include"
15786
apr_addto_bugger="-I$found/include"
15787
for i in $apr_addto_bugger; do
15788
apr_addto_duplicate="0"
15789
for j in $APRUTIL_INCLUDES; do
15790
if test "x$i" = "x$j"; then
15791
apr_addto_duplicate="1"
15795
if test $apr_addto_duplicate = "0"; then
15796
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES"
15797
APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
15803
if test "x$APRUTIL_LDFLAGS" = "x"; then
15804
test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$found/lib\""
15805
APRUTIL_LDFLAGS="-L$found/lib"
15807
apr_addto_bugger="-L$found/lib"
15808
for i in $apr_addto_bugger; do
15809
apr_addto_duplicate="0"
15810
for j in $APRUTIL_LDFLAGS; do
15811
if test "x$i" = "x$j"; then
15812
apr_addto_duplicate="1"
15816
if test $apr_addto_duplicate = "0"; then
15817
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS"
15818
APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
15823
apu_db_header=$bdb_header
15824
apu_db_lib=$bdb_libname
15829
if test "$apu_have_db" = "1"; then
15833
if test "$apu_db_version" != "4"; then
15835
places="$all_places"
15836
if test -z "$places"; then
15837
places="std /usr/local /usr/local/BerkeleyDB.4.2 /boot/home/config"
15841
if test ""2"" != "-1"; then
15842
bdb_version="$bdb_version."2""
15843
if test ""-1"" != "-1"; then
15844
bdb_version="$bdb_version."-1""
15847
bdb_places="$places"
15848
bdb_default_search_headers="db42/db.h db4/db.h db.h"
15849
bdb_default_search_lib_names="db-4.2 db42 db4 db"
15854
# Save the original values of the flags we tweak.
15855
apu_check_lib_save_libs="$LIBS"
15856
apu_check_lib_save_ldflags="$LDFLAGS"
15857
apu_check_lib_save_cppflags="$CPPFLAGS"
15859
# The variable `found' is the prefix under which we've found
15860
# Berkeley DB, or `not' if we haven't found it anywhere yet.
15862
for bdb_place in $bdb_places; do
15864
LDFLAGS="$apu_check_lib_save_ldflags"
15865
CPPFLAGS="$apu_check_lib_save_cppflags"
15866
case "$bdb_place" in
15868
description="the standard places"
15871
header="`echo $bdb_place | sed -e 's/:.*$//'`"
15872
lib="`echo $bdb_place | sed -e 's/^.*://'`"
15873
CPPFLAGS="$CPPFLAGS -I$header"
15874
LDFLAGS="$LDFLAGS -L$lib"
15875
description="$header and $lib"
15878
if test -d $bdb_place; then
15879
LDFLAGS="$LDFLAGS -L$bdb_place/lib"
15880
CPPFLAGS="$CPPFLAGS -I$bdb_place/include"
15882
echo "$as_me:$LINENO: checking for Berkeley DB $bdb_version in $bdb_place" >&5
15883
echo $ECHO_N "checking for Berkeley DB $bdb_version in $bdb_place... $ECHO_C" >&6
15884
echo "$as_me:$LINENO: result: directory not found" >&5
15885
echo "${ECHO_T}directory not found" >&6
15888
description="$bdb_place"
15892
# Since there is no AC_MSG_NOTICE in autoconf 2.13, we use this
15893
# trick to display a message instead.
15894
echo "$as_me:$LINENO: checking for Berkeley DB $bdb_version in $description" >&5
15895
echo $ECHO_N "checking for Berkeley DB $bdb_version in $description... $ECHO_C" >&6
15896
echo "$as_me:$LINENO: result: " >&5
15897
echo "${ECHO_T}" >&6
15899
for bdb_libname in $bdb_default_search_lib_names; do
15900
for bdb_header in $bdb_default_search_headers; do
15901
# Clear the header cache variable for each location
15903
cache_id="`echo ac_cv_header_${bdb_header} \
15904
| sed -e 's/[^a-zA-Z0-9_]/_/g'`"
15907
as_ac_Header=`echo "ac_cv_header_$bdb_header" | $as_tr_sh`
15908
if eval "test \"\${$as_ac_Header+set}\" = set"; then
15909
echo "$as_me:$LINENO: checking for $bdb_header" >&5
15910
echo $ECHO_N "checking for $bdb_header... $ECHO_C" >&6
15911
if eval "test \"\${$as_ac_Header+set}\" = set"; then
15912
echo $ECHO_N "(cached) $ECHO_C" >&6
15914
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15915
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15917
# Is the header compilable?
15918
echo "$as_me:$LINENO: checking $bdb_header usability" >&5
15919
echo $ECHO_N "checking $bdb_header usability... $ECHO_C" >&6
15920
cat >conftest.$ac_ext <<_ACEOF
15923
cat confdefs.h >>conftest.$ac_ext
15924
cat >>conftest.$ac_ext <<_ACEOF
15925
/* end confdefs.h. */
15926
$ac_includes_default
15927
#include <$bdb_header>
15929
rm -f conftest.$ac_objext
15930
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15931
(eval $ac_compile) 2>conftest.er1
15933
grep -v '^ *+' conftest.er1 >conftest.err
15935
cat conftest.err >&5
15936
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15937
(exit $ac_status); } &&
15938
{ ac_try='test -z "$ac_c_werror_flag"
15939
|| test ! -s conftest.err'
15940
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15941
(eval $ac_try) 2>&5
15943
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15944
(exit $ac_status); }; } &&
15945
{ ac_try='test -s conftest.$ac_objext'
15946
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15947
(eval $ac_try) 2>&5
15949
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15950
(exit $ac_status); }; }; then
15951
ac_header_compiler=yes
15953
echo "$as_me: failed program was:" >&5
15954
sed 's/^/| /' conftest.$ac_ext >&5
15956
ac_header_compiler=no
15958
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15959
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15960
echo "${ECHO_T}$ac_header_compiler" >&6
15962
# Is the header present?
15963
echo "$as_me:$LINENO: checking $bdb_header presence" >&5
15964
echo $ECHO_N "checking $bdb_header presence... $ECHO_C" >&6
15965
cat >conftest.$ac_ext <<_ACEOF
15968
cat confdefs.h >>conftest.$ac_ext
15969
cat >>conftest.$ac_ext <<_ACEOF
15970
/* end confdefs.h. */
15971
#include <$bdb_header>
15973
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15974
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15976
grep -v '^ *+' conftest.er1 >conftest.err
15978
cat conftest.err >&5
15979
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15980
(exit $ac_status); } >/dev/null; then
15981
if test -s conftest.err; then
15982
ac_cpp_err=$ac_c_preproc_warn_flag
15983
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15990
if test -z "$ac_cpp_err"; then
15991
ac_header_preproc=yes
15993
echo "$as_me: failed program was:" >&5
15994
sed 's/^/| /' conftest.$ac_ext >&5
15996
ac_header_preproc=no
15998
rm -f conftest.err conftest.$ac_ext
15999
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16000
echo "${ECHO_T}$ac_header_preproc" >&6
16002
# So? What about this header?
16003
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16005
{ echo "$as_me:$LINENO: WARNING: $bdb_header: accepted by the compiler, rejected by the preprocessor!" >&5
16006
echo "$as_me: WARNING: $bdb_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16007
{ echo "$as_me:$LINENO: WARNING: $bdb_header: proceeding with the compiler's result" >&5
16008
echo "$as_me: WARNING: $bdb_header: proceeding with the compiler's result" >&2;}
16009
ac_header_preproc=yes
16012
{ echo "$as_me:$LINENO: WARNING: $bdb_header: present but cannot be compiled" >&5
16013
echo "$as_me: WARNING: $bdb_header: present but cannot be compiled" >&2;}
16014
{ echo "$as_me:$LINENO: WARNING: $bdb_header: check for missing prerequisite headers?" >&5
16015
echo "$as_me: WARNING: $bdb_header: check for missing prerequisite headers?" >&2;}
16016
{ echo "$as_me:$LINENO: WARNING: $bdb_header: see the Autoconf documentation" >&5
16017
echo "$as_me: WARNING: $bdb_header: see the Autoconf documentation" >&2;}
16018
{ echo "$as_me:$LINENO: WARNING: $bdb_header: section \"Present But Cannot Be Compiled\"" >&5
16019
echo "$as_me: WARNING: $bdb_header: section \"Present But Cannot Be Compiled\"" >&2;}
16020
{ echo "$as_me:$LINENO: WARNING: $bdb_header: proceeding with the preprocessor's result" >&5
16021
echo "$as_me: WARNING: $bdb_header: proceeding with the preprocessor's result" >&2;}
16022
{ echo "$as_me:$LINENO: WARNING: $bdb_header: in the future, the compiler will take precedence" >&5
16023
echo "$as_me: WARNING: $bdb_header: in the future, the compiler will take precedence" >&2;}
16026
## ------------------------------------------ ##
16027
## Report this to the AC_PACKAGE_NAME lists. ##
16028
## ------------------------------------------ ##
16031
sed "s/^/$as_me: WARNING: /" >&2
16034
echo "$as_me:$LINENO: checking for $bdb_header" >&5
16035
echo $ECHO_N "checking for $bdb_header... $ECHO_C" >&6
16036
if eval "test \"\${$as_ac_Header+set}\" = set"; then
16037
echo $ECHO_N "(cached) $ECHO_C" >&6
16039
eval "$as_ac_Header=\$ac_header_preproc"
16041
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16042
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16045
if test `eval echo '${'$as_ac_Header'}'` = yes; then
16047
if test ""4"" = "3" -o ""4"" = "4"; then
16048
# We generate a separate cache variable for each prefix and libname
16049
# we search under. That way, we avoid caching information that
16050
# changes if the user runs `configure' with a different set of
16053
cache_id="`echo apu_cv_check_berkeley_db_"4"_"2"_"-1"_${bdb_header}_${bdb_libname}_in_${bdb_place} \
16054
| sed -e 's/[^a-zA-Z0-9_]/_/g'`"
16057
echo "$as_me:$LINENO: checking for -l$bdb_libname" >&5
16058
echo $ECHO_N "checking for -l$bdb_libname... $ECHO_C" >&6
16059
if eval "test \"\${$cache_id+set}\" = set"; then
16060
echo $ECHO_N "(cached) $ECHO_C" >&6
16064
apu_try_berkeley_db_save_libs="$LIBS"
16066
apu_check_berkeley_db_major="4"
16067
apu_check_berkeley_db_minor="2"
16068
apu_check_berkeley_db_patch="-1"
16069
apu_try_berkeley_db_header=$bdb_header
16070
apu_try_berkeley_db_libname=$bdb_libname
16072
LIBS="$LIBS -l$apu_try_berkeley_db_libname"
16073
if test "$cross_compiling" = yes; then
16074
apu_try_berkeley_db=yes
16077
cat >conftest.$ac_ext <<_ACEOF
16080
cat confdefs.h >>conftest.$ac_ext
16081
cat >>conftest.$ac_ext <<_ACEOF
16082
/* end confdefs.h. */
16085
#include <$apu_try_berkeley_db_header>
16088
int major, minor, patch;
16090
db_version(&major, &minor, &patch);
16092
/* Sanity check: ensure that db.h constants actually match the db library */
16093
if (major != DB_VERSION_MAJOR
16094
|| minor != DB_VERSION_MINOR
16095
|| patch != DB_VERSION_PATCH)
16098
/* Run-time check: ensure the library claims to be the correct version. */
16100
if ($apu_check_berkeley_db_major != -1) {
16101
if (major < $apu_check_berkeley_db_major)
16103
if (major > $apu_check_berkeley_db_major)
16107
if ($apu_check_berkeley_db_minor != -1) {
16108
if (minor < $apu_check_berkeley_db_minor)
16110
if (minor > $apu_check_berkeley_db_minor)
16114
if ($apu_check_berkeley_db_patch == -1
16115
|| patch >= $apu_check_berkeley_db_patch)
16122
rm -f conftest$ac_exeext
16123
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16124
(eval $ac_link) 2>&5
16126
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16127
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16128
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16129
(eval $ac_try) 2>&5
16131
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16132
(exit $ac_status); }; }; then
16133
apu_try_berkeley_db=yes
16135
echo "$as_me: program exited with status $ac_status" >&5
16136
echo "$as_me: failed program was:" >&5
16137
sed 's/^/| /' conftest.$ac_ext >&5
16139
( exit $ac_status )
16140
apu_try_berkeley_db=no
16142
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16145
LIBS="$apu_try_berkeley_db_save_libs"
16148
eval "$cache_id=$apu_try_berkeley_db"
16152
result="`eval echo '$'$cache_id`"
16153
echo "$as_me:$LINENO: result: $result" >&5
16154
echo "${ECHO_T}$result" >&6
16155
elif test ""4"" = "1"; then
16156
as_ac_Lib=`echo "ac_cv_lib_$bdb_libname''_dbopen" | $as_tr_sh`
16157
echo "$as_me:$LINENO: checking for dbopen in -l$bdb_libname" >&5
16158
echo $ECHO_N "checking for dbopen in -l$bdb_libname... $ECHO_C" >&6
16159
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
16160
echo $ECHO_N "(cached) $ECHO_C" >&6
16162
ac_check_lib_save_LIBS=$LIBS
16163
LIBS="-l$bdb_libname $LIBS"
16164
cat >conftest.$ac_ext <<_ACEOF
16167
cat confdefs.h >>conftest.$ac_ext
16168
cat >>conftest.$ac_ext <<_ACEOF
16169
/* end confdefs.h. */
16171
/* Override any gcc2 internal prototype to avoid an error. */
16175
/* We use char because int might match the return type of a gcc2
16176
builtin and then its argument prototype would still apply. */
16186
rm -f conftest.$ac_objext conftest$ac_exeext
16187
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16188
(eval $ac_link) 2>conftest.er1
16190
grep -v '^ *+' conftest.er1 >conftest.err
16192
cat conftest.err >&5
16193
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16194
(exit $ac_status); } &&
16195
{ ac_try='test -z "$ac_c_werror_flag"
16196
|| test ! -s conftest.err'
16197
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16198
(eval $ac_try) 2>&5
16200
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16201
(exit $ac_status); }; } &&
16202
{ ac_try='test -s conftest$ac_exeext'
16203
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16204
(eval $ac_try) 2>&5
16206
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16207
(exit $ac_status); }; }; then
16208
eval "$as_ac_Lib=yes"
16210
echo "$as_me: failed program was:" >&5
16211
sed 's/^/| /' conftest.$ac_ext >&5
16213
eval "$as_ac_Lib=no"
16215
rm -f conftest.err conftest.$ac_objext \
16216
conftest$ac_exeext conftest.$ac_ext
16217
LIBS=$ac_check_lib_save_LIBS
16219
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
16220
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
16221
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
16228
elif test ""4"" = "2"; then
16229
as_ac_Lib=`echo "ac_cv_lib_$bdb_libname''_db_open" | $as_tr_sh`
16230
echo "$as_me:$LINENO: checking for db_open in -l$bdb_libname" >&5
16231
echo $ECHO_N "checking for db_open in -l$bdb_libname... $ECHO_C" >&6
16232
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
16233
echo $ECHO_N "(cached) $ECHO_C" >&6
16235
ac_check_lib_save_LIBS=$LIBS
16236
LIBS="-l$bdb_libname $LIBS"
16237
cat >conftest.$ac_ext <<_ACEOF
16240
cat confdefs.h >>conftest.$ac_ext
16241
cat >>conftest.$ac_ext <<_ACEOF
16242
/* end confdefs.h. */
16244
/* Override any gcc2 internal prototype to avoid an error. */
16248
/* We use char because int might match the return type of a gcc2
16249
builtin and then its argument prototype would still apply. */
16259
rm -f conftest.$ac_objext conftest$ac_exeext
16260
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16261
(eval $ac_link) 2>conftest.er1
16263
grep -v '^ *+' conftest.er1 >conftest.err
16265
cat conftest.err >&5
16266
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16267
(exit $ac_status); } &&
16268
{ ac_try='test -z "$ac_c_werror_flag"
16269
|| test ! -s conftest.err'
16270
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16271
(eval $ac_try) 2>&5
16273
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16274
(exit $ac_status); }; } &&
16275
{ ac_try='test -s conftest$ac_exeext'
16276
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16277
(eval $ac_try) 2>&5
16279
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16280
(exit $ac_status); }; }; then
16281
eval "$as_ac_Lib=yes"
16283
echo "$as_me: failed program was:" >&5
16284
sed 's/^/| /' conftest.$ac_ext >&5
16286
eval "$as_ac_Lib=no"
16288
rm -f conftest.err conftest.$ac_objext \
16289
conftest$ac_exeext conftest.$ac_ext
16290
LIBS=$ac_check_lib_save_LIBS
16292
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
16293
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
16294
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
16309
# If we found it, no need to search any more.
16310
if test "$result" = "yes"; then
16315
test "$found" != "not" && break
16317
test "$found" != "not" && break
16320
# Restore the original values of the flags we tweak.
16321
LDFLAGS="$apu_check_lib_save_ldflags"
16322
CPPFLAGS="$apu_check_lib_save_cppflags"
16329
apu_db_header=$bdb_header
16330
apu_db_lib=$bdb_libname
16334
header="`echo $found | sed -e 's/:.*$//'`"
16335
lib="`echo $found | sed -e 's/^.*://'`"
16338
if test "x$APRUTIL_INCLUDES" = "x"; then
16339
test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$header\""
16340
APRUTIL_INCLUDES="-I$header"
16342
apr_addto_bugger="-I$header"
16343
for i in $apr_addto_bugger; do
16344
apr_addto_duplicate="0"
16345
for j in $APRUTIL_INCLUDES; do
16346
if test "x$i" = "x$j"; then
16347
apr_addto_duplicate="1"
16351
if test $apr_addto_duplicate = "0"; then
16352
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES"
16353
APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
16359
if test "x$APRUTIL_LDFLAGS" = "x"; then
16360
test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$lib\""
16361
APRUTIL_LDFLAGS="-L$lib"
16363
apr_addto_bugger="-L$lib"
16364
for i in $apr_addto_bugger; do
16365
apr_addto_duplicate="0"
16366
for j in $APRUTIL_LDFLAGS; do
16367
if test "x$i" = "x$j"; then
16368
apr_addto_duplicate="1"
16372
if test $apr_addto_duplicate = "0"; then
16373
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS"
16374
APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
16379
apu_db_header=$bdb_header
16380
apu_db_lib=$bdb_libname
16385
if test "x$APRUTIL_INCLUDES" = "x"; then
16386
test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$found/include\""
16387
APRUTIL_INCLUDES="-I$found/include"
16389
apr_addto_bugger="-I$found/include"
16390
for i in $apr_addto_bugger; do
16391
apr_addto_duplicate="0"
16392
for j in $APRUTIL_INCLUDES; do
16393
if test "x$i" = "x$j"; then
16394
apr_addto_duplicate="1"
16398
if test $apr_addto_duplicate = "0"; then
16399
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES"
16400
APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
16406
if test "x$APRUTIL_LDFLAGS" = "x"; then
16407
test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$found/lib\""
16408
APRUTIL_LDFLAGS="-L$found/lib"
16410
apr_addto_bugger="-L$found/lib"
16411
for i in $apr_addto_bugger; do
16412
apr_addto_duplicate="0"
16413
for j in $APRUTIL_LDFLAGS; do
16414
if test "x$i" = "x$j"; then
16415
apr_addto_duplicate="1"
16419
if test $apr_addto_duplicate = "0"; then
16420
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS"
16421
APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
16426
apu_db_header=$bdb_header
16427
apu_db_lib=$bdb_libname
16432
if test "$apu_have_db" = "1"; then
16436
if test "$apu_db_version" != "4"; then
16438
places="$all_places"
16439
if test -z "$places"; then
16440
places="std /usr/local /usr/local/BerkeleyDB.4.1 /boot/home/config"
16444
if test ""1"" != "-1"; then
16445
bdb_version="$bdb_version."1""
16446
if test ""-1"" != "-1"; then
16447
bdb_version="$bdb_version."-1""
16450
bdb_places="$places"
16451
bdb_default_search_headers="db41/db.h db4/db.h db.h"
16452
bdb_default_search_lib_names="db-4.1 db41 db4 db"
16457
# Save the original values of the flags we tweak.
16458
apu_check_lib_save_libs="$LIBS"
16459
apu_check_lib_save_ldflags="$LDFLAGS"
16460
apu_check_lib_save_cppflags="$CPPFLAGS"
16462
# The variable `found' is the prefix under which we've found
16463
# Berkeley DB, or `not' if we haven't found it anywhere yet.
16465
for bdb_place in $bdb_places; do
16467
LDFLAGS="$apu_check_lib_save_ldflags"
16468
CPPFLAGS="$apu_check_lib_save_cppflags"
16469
case "$bdb_place" in
16471
description="the standard places"
16474
header="`echo $bdb_place | sed -e 's/:.*$//'`"
16475
lib="`echo $bdb_place | sed -e 's/^.*://'`"
16476
CPPFLAGS="$CPPFLAGS -I$header"
16477
LDFLAGS="$LDFLAGS -L$lib"
16478
description="$header and $lib"
16481
if test -d $bdb_place; then
16482
LDFLAGS="$LDFLAGS -L$bdb_place/lib"
16483
CPPFLAGS="$CPPFLAGS -I$bdb_place/include"
16485
echo "$as_me:$LINENO: checking for Berkeley DB $bdb_version in $bdb_place" >&5
16486
echo $ECHO_N "checking for Berkeley DB $bdb_version in $bdb_place... $ECHO_C" >&6
16487
echo "$as_me:$LINENO: result: directory not found" >&5
16488
echo "${ECHO_T}directory not found" >&6
16491
description="$bdb_place"
16495
# Since there is no AC_MSG_NOTICE in autoconf 2.13, we use this
16496
# trick to display a message instead.
16497
echo "$as_me:$LINENO: checking for Berkeley DB $bdb_version in $description" >&5
16498
echo $ECHO_N "checking for Berkeley DB $bdb_version in $description... $ECHO_C" >&6
16499
echo "$as_me:$LINENO: result: " >&5
16500
echo "${ECHO_T}" >&6
16502
for bdb_libname in $bdb_default_search_lib_names; do
16503
for bdb_header in $bdb_default_search_headers; do
16504
# Clear the header cache variable for each location
16506
cache_id="`echo ac_cv_header_${bdb_header} \
16507
| sed -e 's/[^a-zA-Z0-9_]/_/g'`"
16510
as_ac_Header=`echo "ac_cv_header_$bdb_header" | $as_tr_sh`
16511
if eval "test \"\${$as_ac_Header+set}\" = set"; then
16512
echo "$as_me:$LINENO: checking for $bdb_header" >&5
16513
echo $ECHO_N "checking for $bdb_header... $ECHO_C" >&6
16514
if eval "test \"\${$as_ac_Header+set}\" = set"; then
16515
echo $ECHO_N "(cached) $ECHO_C" >&6
16517
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16518
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16520
# Is the header compilable?
16521
echo "$as_me:$LINENO: checking $bdb_header usability" >&5
16522
echo $ECHO_N "checking $bdb_header usability... $ECHO_C" >&6
16523
cat >conftest.$ac_ext <<_ACEOF
16526
cat confdefs.h >>conftest.$ac_ext
16527
cat >>conftest.$ac_ext <<_ACEOF
16528
/* end confdefs.h. */
16529
$ac_includes_default
16530
#include <$bdb_header>
16532
rm -f conftest.$ac_objext
16533
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16534
(eval $ac_compile) 2>conftest.er1
16536
grep -v '^ *+' conftest.er1 >conftest.err
16538
cat conftest.err >&5
16539
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16540
(exit $ac_status); } &&
16541
{ ac_try='test -z "$ac_c_werror_flag"
16542
|| test ! -s conftest.err'
16543
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16544
(eval $ac_try) 2>&5
16546
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16547
(exit $ac_status); }; } &&
16548
{ ac_try='test -s conftest.$ac_objext'
16549
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16550
(eval $ac_try) 2>&5
16552
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16553
(exit $ac_status); }; }; then
16554
ac_header_compiler=yes
16556
echo "$as_me: failed program was:" >&5
16557
sed 's/^/| /' conftest.$ac_ext >&5
16559
ac_header_compiler=no
16561
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16562
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16563
echo "${ECHO_T}$ac_header_compiler" >&6
16565
# Is the header present?
16566
echo "$as_me:$LINENO: checking $bdb_header presence" >&5
16567
echo $ECHO_N "checking $bdb_header presence... $ECHO_C" >&6
16568
cat >conftest.$ac_ext <<_ACEOF
16571
cat confdefs.h >>conftest.$ac_ext
16572
cat >>conftest.$ac_ext <<_ACEOF
16573
/* end confdefs.h. */
16574
#include <$bdb_header>
16576
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16577
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16579
grep -v '^ *+' conftest.er1 >conftest.err
16581
cat conftest.err >&5
16582
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16583
(exit $ac_status); } >/dev/null; then
16584
if test -s conftest.err; then
16585
ac_cpp_err=$ac_c_preproc_warn_flag
16586
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16593
if test -z "$ac_cpp_err"; then
16594
ac_header_preproc=yes
16596
echo "$as_me: failed program was:" >&5
16597
sed 's/^/| /' conftest.$ac_ext >&5
16599
ac_header_preproc=no
16601
rm -f conftest.err conftest.$ac_ext
16602
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16603
echo "${ECHO_T}$ac_header_preproc" >&6
16605
# So? What about this header?
16606
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16608
{ echo "$as_me:$LINENO: WARNING: $bdb_header: accepted by the compiler, rejected by the preprocessor!" >&5
16609
echo "$as_me: WARNING: $bdb_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16610
{ echo "$as_me:$LINENO: WARNING: $bdb_header: proceeding with the compiler's result" >&5
16611
echo "$as_me: WARNING: $bdb_header: proceeding with the compiler's result" >&2;}
16612
ac_header_preproc=yes
16615
{ echo "$as_me:$LINENO: WARNING: $bdb_header: present but cannot be compiled" >&5
16616
echo "$as_me: WARNING: $bdb_header: present but cannot be compiled" >&2;}
16617
{ echo "$as_me:$LINENO: WARNING: $bdb_header: check for missing prerequisite headers?" >&5
16618
echo "$as_me: WARNING: $bdb_header: check for missing prerequisite headers?" >&2;}
16619
{ echo "$as_me:$LINENO: WARNING: $bdb_header: see the Autoconf documentation" >&5
16620
echo "$as_me: WARNING: $bdb_header: see the Autoconf documentation" >&2;}
16621
{ echo "$as_me:$LINENO: WARNING: $bdb_header: section \"Present But Cannot Be Compiled\"" >&5
16622
echo "$as_me: WARNING: $bdb_header: section \"Present But Cannot Be Compiled\"" >&2;}
16623
{ echo "$as_me:$LINENO: WARNING: $bdb_header: proceeding with the preprocessor's result" >&5
16624
echo "$as_me: WARNING: $bdb_header: proceeding with the preprocessor's result" >&2;}
16625
{ echo "$as_me:$LINENO: WARNING: $bdb_header: in the future, the compiler will take precedence" >&5
16626
echo "$as_me: WARNING: $bdb_header: in the future, the compiler will take precedence" >&2;}
16629
## ------------------------------------------ ##
16630
## Report this to the AC_PACKAGE_NAME lists. ##
16631
## ------------------------------------------ ##
16634
sed "s/^/$as_me: WARNING: /" >&2
16637
echo "$as_me:$LINENO: checking for $bdb_header" >&5
16638
echo $ECHO_N "checking for $bdb_header... $ECHO_C" >&6
16639
if eval "test \"\${$as_ac_Header+set}\" = set"; then
16640
echo $ECHO_N "(cached) $ECHO_C" >&6
16642
eval "$as_ac_Header=\$ac_header_preproc"
16644
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16645
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16648
if test `eval echo '${'$as_ac_Header'}'` = yes; then
16650
if test ""4"" = "3" -o ""4"" = "4"; then
16651
# We generate a separate cache variable for each prefix and libname
16652
# we search under. That way, we avoid caching information that
16653
# changes if the user runs `configure' with a different set of
16656
cache_id="`echo apu_cv_check_berkeley_db_"4"_"1"_"-1"_${bdb_header}_${bdb_libname}_in_${bdb_place} \
16657
| sed -e 's/[^a-zA-Z0-9_]/_/g'`"
16660
echo "$as_me:$LINENO: checking for -l$bdb_libname" >&5
16661
echo $ECHO_N "checking for -l$bdb_libname... $ECHO_C" >&6
16662
if eval "test \"\${$cache_id+set}\" = set"; then
16663
echo $ECHO_N "(cached) $ECHO_C" >&6
16667
apu_try_berkeley_db_save_libs="$LIBS"
16669
apu_check_berkeley_db_major="4"
16670
apu_check_berkeley_db_minor="1"
16671
apu_check_berkeley_db_patch="-1"
16672
apu_try_berkeley_db_header=$bdb_header
16673
apu_try_berkeley_db_libname=$bdb_libname
16675
LIBS="$LIBS -l$apu_try_berkeley_db_libname"
16676
if test "$cross_compiling" = yes; then
16677
apu_try_berkeley_db=yes
16680
cat >conftest.$ac_ext <<_ACEOF
16683
cat confdefs.h >>conftest.$ac_ext
16684
cat >>conftest.$ac_ext <<_ACEOF
16685
/* end confdefs.h. */
16688
#include <$apu_try_berkeley_db_header>
16691
int major, minor, patch;
16693
db_version(&major, &minor, &patch);
16695
/* Sanity check: ensure that db.h constants actually match the db library */
16696
if (major != DB_VERSION_MAJOR
16697
|| minor != DB_VERSION_MINOR
16698
|| patch != DB_VERSION_PATCH)
16701
/* Run-time check: ensure the library claims to be the correct version. */
16703
if ($apu_check_berkeley_db_major != -1) {
16704
if (major < $apu_check_berkeley_db_major)
16706
if (major > $apu_check_berkeley_db_major)
16710
if ($apu_check_berkeley_db_minor != -1) {
16711
if (minor < $apu_check_berkeley_db_minor)
16713
if (minor > $apu_check_berkeley_db_minor)
16717
if ($apu_check_berkeley_db_patch == -1
16718
|| patch >= $apu_check_berkeley_db_patch)
16725
rm -f conftest$ac_exeext
16726
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16727
(eval $ac_link) 2>&5
16729
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16730
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16731
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16732
(eval $ac_try) 2>&5
16734
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16735
(exit $ac_status); }; }; then
16736
apu_try_berkeley_db=yes
16738
echo "$as_me: program exited with status $ac_status" >&5
16739
echo "$as_me: failed program was:" >&5
16740
sed 's/^/| /' conftest.$ac_ext >&5
16742
( exit $ac_status )
16743
apu_try_berkeley_db=no
16745
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16748
LIBS="$apu_try_berkeley_db_save_libs"
16751
eval "$cache_id=$apu_try_berkeley_db"
16755
result="`eval echo '$'$cache_id`"
16756
echo "$as_me:$LINENO: result: $result" >&5
16757
echo "${ECHO_T}$result" >&6
16758
elif test ""4"" = "1"; then
16759
as_ac_Lib=`echo "ac_cv_lib_$bdb_libname''_dbopen" | $as_tr_sh`
16760
echo "$as_me:$LINENO: checking for dbopen in -l$bdb_libname" >&5
16761
echo $ECHO_N "checking for dbopen in -l$bdb_libname... $ECHO_C" >&6
16762
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
16763
echo $ECHO_N "(cached) $ECHO_C" >&6
16765
ac_check_lib_save_LIBS=$LIBS
16766
LIBS="-l$bdb_libname $LIBS"
16767
cat >conftest.$ac_ext <<_ACEOF
16770
cat confdefs.h >>conftest.$ac_ext
16771
cat >>conftest.$ac_ext <<_ACEOF
16772
/* end confdefs.h. */
16774
/* Override any gcc2 internal prototype to avoid an error. */
16778
/* We use char because int might match the return type of a gcc2
16779
builtin and then its argument prototype would still apply. */
16789
rm -f conftest.$ac_objext conftest$ac_exeext
16790
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16791
(eval $ac_link) 2>conftest.er1
16793
grep -v '^ *+' conftest.er1 >conftest.err
16795
cat conftest.err >&5
16796
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16797
(exit $ac_status); } &&
16798
{ ac_try='test -z "$ac_c_werror_flag"
16799
|| test ! -s conftest.err'
16800
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16801
(eval $ac_try) 2>&5
16803
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16804
(exit $ac_status); }; } &&
16805
{ ac_try='test -s conftest$ac_exeext'
16806
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16807
(eval $ac_try) 2>&5
16809
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16810
(exit $ac_status); }; }; then
16811
eval "$as_ac_Lib=yes"
16813
echo "$as_me: failed program was:" >&5
16814
sed 's/^/| /' conftest.$ac_ext >&5
16816
eval "$as_ac_Lib=no"
16818
rm -f conftest.err conftest.$ac_objext \
16819
conftest$ac_exeext conftest.$ac_ext
16820
LIBS=$ac_check_lib_save_LIBS
16822
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
16823
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
16824
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
16831
elif test ""4"" = "2"; then
16832
as_ac_Lib=`echo "ac_cv_lib_$bdb_libname''_db_open" | $as_tr_sh`
16833
echo "$as_me:$LINENO: checking for db_open in -l$bdb_libname" >&5
16834
echo $ECHO_N "checking for db_open in -l$bdb_libname... $ECHO_C" >&6
16835
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
16836
echo $ECHO_N "(cached) $ECHO_C" >&6
16838
ac_check_lib_save_LIBS=$LIBS
16839
LIBS="-l$bdb_libname $LIBS"
16840
cat >conftest.$ac_ext <<_ACEOF
16843
cat confdefs.h >>conftest.$ac_ext
16844
cat >>conftest.$ac_ext <<_ACEOF
16845
/* end confdefs.h. */
16847
/* Override any gcc2 internal prototype to avoid an error. */
16851
/* We use char because int might match the return type of a gcc2
16852
builtin and then its argument prototype would still apply. */
16862
rm -f conftest.$ac_objext conftest$ac_exeext
16863
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16864
(eval $ac_link) 2>conftest.er1
16866
grep -v '^ *+' conftest.er1 >conftest.err
16868
cat conftest.err >&5
16869
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16870
(exit $ac_status); } &&
16871
{ ac_try='test -z "$ac_c_werror_flag"
16872
|| test ! -s conftest.err'
16873
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16874
(eval $ac_try) 2>&5
16876
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16877
(exit $ac_status); }; } &&
16878
{ ac_try='test -s conftest$ac_exeext'
16879
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16880
(eval $ac_try) 2>&5
16882
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16883
(exit $ac_status); }; }; then
16884
eval "$as_ac_Lib=yes"
16886
echo "$as_me: failed program was:" >&5
16887
sed 's/^/| /' conftest.$ac_ext >&5
16889
eval "$as_ac_Lib=no"
16891
rm -f conftest.err conftest.$ac_objext \
16892
conftest$ac_exeext conftest.$ac_ext
16893
LIBS=$ac_check_lib_save_LIBS
16895
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
16896
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
16897
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
16912
# If we found it, no need to search any more.
16913
if test "$result" = "yes"; then
16918
test "$found" != "not" && break
16920
test "$found" != "not" && break
16923
# Restore the original values of the flags we tweak.
16924
LDFLAGS="$apu_check_lib_save_ldflags"
16925
CPPFLAGS="$apu_check_lib_save_cppflags"
16932
apu_db_header=$bdb_header
16933
apu_db_lib=$bdb_libname
16937
header="`echo $found | sed -e 's/:.*$//'`"
16938
lib="`echo $found | sed -e 's/^.*://'`"
16941
if test "x$APRUTIL_INCLUDES" = "x"; then
16942
test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$header\""
16943
APRUTIL_INCLUDES="-I$header"
16945
apr_addto_bugger="-I$header"
16946
for i in $apr_addto_bugger; do
16947
apr_addto_duplicate="0"
16948
for j in $APRUTIL_INCLUDES; do
16949
if test "x$i" = "x$j"; then
16950
apr_addto_duplicate="1"
16954
if test $apr_addto_duplicate = "0"; then
16955
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES"
16956
APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
16962
if test "x$APRUTIL_LDFLAGS" = "x"; then
16963
test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$lib\""
16964
APRUTIL_LDFLAGS="-L$lib"
16966
apr_addto_bugger="-L$lib"
16967
for i in $apr_addto_bugger; do
16968
apr_addto_duplicate="0"
16969
for j in $APRUTIL_LDFLAGS; do
16970
if test "x$i" = "x$j"; then
16971
apr_addto_duplicate="1"
16975
if test $apr_addto_duplicate = "0"; then
16976
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS"
16977
APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
16982
apu_db_header=$bdb_header
16983
apu_db_lib=$bdb_libname
16988
if test "x$APRUTIL_INCLUDES" = "x"; then
16989
test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$found/include\""
16990
APRUTIL_INCLUDES="-I$found/include"
16992
apr_addto_bugger="-I$found/include"
16993
for i in $apr_addto_bugger; do
16994
apr_addto_duplicate="0"
16995
for j in $APRUTIL_INCLUDES; do
16996
if test "x$i" = "x$j"; then
16997
apr_addto_duplicate="1"
17001
if test $apr_addto_duplicate = "0"; then
17002
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES"
17003
APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
17009
if test "x$APRUTIL_LDFLAGS" = "x"; then
17010
test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$found/lib\""
17011
APRUTIL_LDFLAGS="-L$found/lib"
17013
apr_addto_bugger="-L$found/lib"
17014
for i in $apr_addto_bugger; do
17015
apr_addto_duplicate="0"
17016
for j in $APRUTIL_LDFLAGS; do
17017
if test "x$i" = "x$j"; then
17018
apr_addto_duplicate="1"
17022
if test $apr_addto_duplicate = "0"; then
17023
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS"
17024
APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
17029
apu_db_header=$bdb_header
17030
apu_db_lib=$bdb_libname
17035
if test "$apu_have_db" = "1"; then
17039
if test "$apu_db_version" != "4"; then
17041
places="$all_places"
17042
if test -z "$places"; then
17043
places="std /usr/local /usr/local/BerkeleyDB.4.0 /boot/home/config"
17047
if test ""0"" != "-1"; then
17048
bdb_version="$bdb_version."0""
17049
if test ""-1"" != "-1"; then
17050
bdb_version="$bdb_version."-1""
17053
bdb_places="$places"
17054
bdb_default_search_headers="db4/db.h db.h"
17055
bdb_default_search_lib_names="db-4.0 db4 db"
17060
# Save the original values of the flags we tweak.
17061
apu_check_lib_save_libs="$LIBS"
17062
apu_check_lib_save_ldflags="$LDFLAGS"
17063
apu_check_lib_save_cppflags="$CPPFLAGS"
17065
# The variable `found' is the prefix under which we've found
17066
# Berkeley DB, or `not' if we haven't found it anywhere yet.
17068
for bdb_place in $bdb_places; do
17070
LDFLAGS="$apu_check_lib_save_ldflags"
17071
CPPFLAGS="$apu_check_lib_save_cppflags"
17072
case "$bdb_place" in
17074
description="the standard places"
17077
header="`echo $bdb_place | sed -e 's/:.*$//'`"
17078
lib="`echo $bdb_place | sed -e 's/^.*://'`"
17079
CPPFLAGS="$CPPFLAGS -I$header"
17080
LDFLAGS="$LDFLAGS -L$lib"
17081
description="$header and $lib"
17084
if test -d $bdb_place; then
17085
LDFLAGS="$LDFLAGS -L$bdb_place/lib"
17086
CPPFLAGS="$CPPFLAGS -I$bdb_place/include"
17088
echo "$as_me:$LINENO: checking for Berkeley DB $bdb_version in $bdb_place" >&5
17089
echo $ECHO_N "checking for Berkeley DB $bdb_version in $bdb_place... $ECHO_C" >&6
17090
echo "$as_me:$LINENO: result: directory not found" >&5
17091
echo "${ECHO_T}directory not found" >&6
17094
description="$bdb_place"
17098
# Since there is no AC_MSG_NOTICE in autoconf 2.13, we use this
17099
# trick to display a message instead.
17100
echo "$as_me:$LINENO: checking for Berkeley DB $bdb_version in $description" >&5
17101
echo $ECHO_N "checking for Berkeley DB $bdb_version in $description... $ECHO_C" >&6
17102
echo "$as_me:$LINENO: result: " >&5
17103
echo "${ECHO_T}" >&6
17105
for bdb_libname in $bdb_default_search_lib_names; do
17106
for bdb_header in $bdb_default_search_headers; do
17107
# Clear the header cache variable for each location
17109
cache_id="`echo ac_cv_header_${bdb_header} \
17110
| sed -e 's/[^a-zA-Z0-9_]/_/g'`"
17113
as_ac_Header=`echo "ac_cv_header_$bdb_header" | $as_tr_sh`
17114
if eval "test \"\${$as_ac_Header+set}\" = set"; then
17115
echo "$as_me:$LINENO: checking for $bdb_header" >&5
17116
echo $ECHO_N "checking for $bdb_header... $ECHO_C" >&6
17117
if eval "test \"\${$as_ac_Header+set}\" = set"; then
17118
echo $ECHO_N "(cached) $ECHO_C" >&6
17120
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17121
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17123
# Is the header compilable?
17124
echo "$as_me:$LINENO: checking $bdb_header usability" >&5
17125
echo $ECHO_N "checking $bdb_header usability... $ECHO_C" >&6
17126
cat >conftest.$ac_ext <<_ACEOF
17129
cat confdefs.h >>conftest.$ac_ext
17130
cat >>conftest.$ac_ext <<_ACEOF
17131
/* end confdefs.h. */
17132
$ac_includes_default
17133
#include <$bdb_header>
17135
rm -f conftest.$ac_objext
17136
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17137
(eval $ac_compile) 2>conftest.er1
17139
grep -v '^ *+' conftest.er1 >conftest.err
17141
cat conftest.err >&5
17142
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17143
(exit $ac_status); } &&
17144
{ ac_try='test -z "$ac_c_werror_flag"
17145
|| test ! -s conftest.err'
17146
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17147
(eval $ac_try) 2>&5
17149
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17150
(exit $ac_status); }; } &&
17151
{ ac_try='test -s conftest.$ac_objext'
17152
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17153
(eval $ac_try) 2>&5
17155
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17156
(exit $ac_status); }; }; then
17157
ac_header_compiler=yes
17159
echo "$as_me: failed program was:" >&5
17160
sed 's/^/| /' conftest.$ac_ext >&5
17162
ac_header_compiler=no
17164
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17165
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17166
echo "${ECHO_T}$ac_header_compiler" >&6
17168
# Is the header present?
17169
echo "$as_me:$LINENO: checking $bdb_header presence" >&5
17170
echo $ECHO_N "checking $bdb_header presence... $ECHO_C" >&6
17171
cat >conftest.$ac_ext <<_ACEOF
17174
cat confdefs.h >>conftest.$ac_ext
17175
cat >>conftest.$ac_ext <<_ACEOF
17176
/* end confdefs.h. */
17177
#include <$bdb_header>
17179
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17180
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17182
grep -v '^ *+' conftest.er1 >conftest.err
17184
cat conftest.err >&5
17185
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17186
(exit $ac_status); } >/dev/null; then
17187
if test -s conftest.err; then
17188
ac_cpp_err=$ac_c_preproc_warn_flag
17189
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17196
if test -z "$ac_cpp_err"; then
17197
ac_header_preproc=yes
17199
echo "$as_me: failed program was:" >&5
17200
sed 's/^/| /' conftest.$ac_ext >&5
17202
ac_header_preproc=no
17204
rm -f conftest.err conftest.$ac_ext
17205
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17206
echo "${ECHO_T}$ac_header_preproc" >&6
17208
# So? What about this header?
17209
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17211
{ echo "$as_me:$LINENO: WARNING: $bdb_header: accepted by the compiler, rejected by the preprocessor!" >&5
17212
echo "$as_me: WARNING: $bdb_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17213
{ echo "$as_me:$LINENO: WARNING: $bdb_header: proceeding with the compiler's result" >&5
17214
echo "$as_me: WARNING: $bdb_header: proceeding with the compiler's result" >&2;}
17215
ac_header_preproc=yes
17218
{ echo "$as_me:$LINENO: WARNING: $bdb_header: present but cannot be compiled" >&5
17219
echo "$as_me: WARNING: $bdb_header: present but cannot be compiled" >&2;}
17220
{ echo "$as_me:$LINENO: WARNING: $bdb_header: check for missing prerequisite headers?" >&5
17221
echo "$as_me: WARNING: $bdb_header: check for missing prerequisite headers?" >&2;}
17222
{ echo "$as_me:$LINENO: WARNING: $bdb_header: see the Autoconf documentation" >&5
17223
echo "$as_me: WARNING: $bdb_header: see the Autoconf documentation" >&2;}
17224
{ echo "$as_me:$LINENO: WARNING: $bdb_header: section \"Present But Cannot Be Compiled\"" >&5
17225
echo "$as_me: WARNING: $bdb_header: section \"Present But Cannot Be Compiled\"" >&2;}
17226
{ echo "$as_me:$LINENO: WARNING: $bdb_header: proceeding with the preprocessor's result" >&5
17227
echo "$as_me: WARNING: $bdb_header: proceeding with the preprocessor's result" >&2;}
17228
{ echo "$as_me:$LINENO: WARNING: $bdb_header: in the future, the compiler will take precedence" >&5
17229
echo "$as_me: WARNING: $bdb_header: in the future, the compiler will take precedence" >&2;}
17232
## ------------------------------------------ ##
17233
## Report this to the AC_PACKAGE_NAME lists. ##
17234
## ------------------------------------------ ##
17237
sed "s/^/$as_me: WARNING: /" >&2
17240
echo "$as_me:$LINENO: checking for $bdb_header" >&5
17241
echo $ECHO_N "checking for $bdb_header... $ECHO_C" >&6
17242
if eval "test \"\${$as_ac_Header+set}\" = set"; then
17243
echo $ECHO_N "(cached) $ECHO_C" >&6
17245
eval "$as_ac_Header=\$ac_header_preproc"
17247
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17248
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17251
if test `eval echo '${'$as_ac_Header'}'` = yes; then
17253
if test ""4"" = "3" -o ""4"" = "4"; then
17254
# We generate a separate cache variable for each prefix and libname
17255
# we search under. That way, we avoid caching information that
17256
# changes if the user runs `configure' with a different set of
17259
cache_id="`echo apu_cv_check_berkeley_db_"4"_"0"_"-1"_${bdb_header}_${bdb_libname}_in_${bdb_place} \
17260
| sed -e 's/[^a-zA-Z0-9_]/_/g'`"
17263
echo "$as_me:$LINENO: checking for -l$bdb_libname" >&5
17264
echo $ECHO_N "checking for -l$bdb_libname... $ECHO_C" >&6
17265
if eval "test \"\${$cache_id+set}\" = set"; then
17266
echo $ECHO_N "(cached) $ECHO_C" >&6
17270
apu_try_berkeley_db_save_libs="$LIBS"
17272
apu_check_berkeley_db_major="4"
17273
apu_check_berkeley_db_minor="0"
17274
apu_check_berkeley_db_patch="-1"
17275
apu_try_berkeley_db_header=$bdb_header
17276
apu_try_berkeley_db_libname=$bdb_libname
17278
LIBS="$LIBS -l$apu_try_berkeley_db_libname"
17279
if test "$cross_compiling" = yes; then
17280
apu_try_berkeley_db=yes
17283
cat >conftest.$ac_ext <<_ACEOF
17286
cat confdefs.h >>conftest.$ac_ext
17287
cat >>conftest.$ac_ext <<_ACEOF
17288
/* end confdefs.h. */
17291
#include <$apu_try_berkeley_db_header>
17294
int major, minor, patch;
17296
db_version(&major, &minor, &patch);
17298
/* Sanity check: ensure that db.h constants actually match the db library */
17299
if (major != DB_VERSION_MAJOR
17300
|| minor != DB_VERSION_MINOR
17301
|| patch != DB_VERSION_PATCH)
17304
/* Run-time check: ensure the library claims to be the correct version. */
17306
if ($apu_check_berkeley_db_major != -1) {
17307
if (major < $apu_check_berkeley_db_major)
17309
if (major > $apu_check_berkeley_db_major)
17313
if ($apu_check_berkeley_db_minor != -1) {
17314
if (minor < $apu_check_berkeley_db_minor)
17316
if (minor > $apu_check_berkeley_db_minor)
17320
if ($apu_check_berkeley_db_patch == -1
17321
|| patch >= $apu_check_berkeley_db_patch)
17328
rm -f conftest$ac_exeext
17329
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17330
(eval $ac_link) 2>&5
17332
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17333
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17334
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17335
(eval $ac_try) 2>&5
17337
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17338
(exit $ac_status); }; }; then
17339
apu_try_berkeley_db=yes
17341
echo "$as_me: program exited with status $ac_status" >&5
17342
echo "$as_me: failed program was:" >&5
17343
sed 's/^/| /' conftest.$ac_ext >&5
17345
( exit $ac_status )
17346
apu_try_berkeley_db=no
17348
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17351
LIBS="$apu_try_berkeley_db_save_libs"
17354
eval "$cache_id=$apu_try_berkeley_db"
17358
result="`eval echo '$'$cache_id`"
17359
echo "$as_me:$LINENO: result: $result" >&5
17360
echo "${ECHO_T}$result" >&6
17361
elif test ""4"" = "1"; then
17362
as_ac_Lib=`echo "ac_cv_lib_$bdb_libname''_dbopen" | $as_tr_sh`
17363
echo "$as_me:$LINENO: checking for dbopen in -l$bdb_libname" >&5
17364
echo $ECHO_N "checking for dbopen in -l$bdb_libname... $ECHO_C" >&6
17365
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
17366
echo $ECHO_N "(cached) $ECHO_C" >&6
17368
ac_check_lib_save_LIBS=$LIBS
17369
LIBS="-l$bdb_libname $LIBS"
17370
cat >conftest.$ac_ext <<_ACEOF
17373
cat confdefs.h >>conftest.$ac_ext
17374
cat >>conftest.$ac_ext <<_ACEOF
17375
/* end confdefs.h. */
17377
/* Override any gcc2 internal prototype to avoid an error. */
17381
/* We use char because int might match the return type of a gcc2
17382
builtin and then its argument prototype would still apply. */
17392
rm -f conftest.$ac_objext conftest$ac_exeext
17393
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17394
(eval $ac_link) 2>conftest.er1
17396
grep -v '^ *+' conftest.er1 >conftest.err
17398
cat conftest.err >&5
17399
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17400
(exit $ac_status); } &&
17401
{ ac_try='test -z "$ac_c_werror_flag"
17402
|| test ! -s conftest.err'
17403
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17404
(eval $ac_try) 2>&5
17406
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17407
(exit $ac_status); }; } &&
17408
{ ac_try='test -s conftest$ac_exeext'
17409
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17410
(eval $ac_try) 2>&5
17412
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17413
(exit $ac_status); }; }; then
17414
eval "$as_ac_Lib=yes"
17416
echo "$as_me: failed program was:" >&5
17417
sed 's/^/| /' conftest.$ac_ext >&5
17419
eval "$as_ac_Lib=no"
17421
rm -f conftest.err conftest.$ac_objext \
17422
conftest$ac_exeext conftest.$ac_ext
17423
LIBS=$ac_check_lib_save_LIBS
17425
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
17426
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
17427
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
17434
elif test ""4"" = "2"; then
17435
as_ac_Lib=`echo "ac_cv_lib_$bdb_libname''_db_open" | $as_tr_sh`
17436
echo "$as_me:$LINENO: checking for db_open in -l$bdb_libname" >&5
17437
echo $ECHO_N "checking for db_open in -l$bdb_libname... $ECHO_C" >&6
17438
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
17439
echo $ECHO_N "(cached) $ECHO_C" >&6
17441
ac_check_lib_save_LIBS=$LIBS
17442
LIBS="-l$bdb_libname $LIBS"
17443
cat >conftest.$ac_ext <<_ACEOF
17446
cat confdefs.h >>conftest.$ac_ext
17447
cat >>conftest.$ac_ext <<_ACEOF
17448
/* end confdefs.h. */
17450
/* Override any gcc2 internal prototype to avoid an error. */
17454
/* We use char because int might match the return type of a gcc2
17455
builtin and then its argument prototype would still apply. */
17465
rm -f conftest.$ac_objext conftest$ac_exeext
17466
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17467
(eval $ac_link) 2>conftest.er1
17469
grep -v '^ *+' conftest.er1 >conftest.err
17471
cat conftest.err >&5
17472
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17473
(exit $ac_status); } &&
17474
{ ac_try='test -z "$ac_c_werror_flag"
17475
|| test ! -s conftest.err'
17476
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17477
(eval $ac_try) 2>&5
17479
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17480
(exit $ac_status); }; } &&
17481
{ ac_try='test -s conftest$ac_exeext'
17482
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17483
(eval $ac_try) 2>&5
17485
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17486
(exit $ac_status); }; }; then
17487
eval "$as_ac_Lib=yes"
17489
echo "$as_me: failed program was:" >&5
17490
sed 's/^/| /' conftest.$ac_ext >&5
17492
eval "$as_ac_Lib=no"
17494
rm -f conftest.err conftest.$ac_objext \
17495
conftest$ac_exeext conftest.$ac_ext
17496
LIBS=$ac_check_lib_save_LIBS
17498
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
17499
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
17500
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
17515
# If we found it, no need to search any more.
17516
if test "$result" = "yes"; then
17521
test "$found" != "not" && break
17523
test "$found" != "not" && break
17526
# Restore the original values of the flags we tweak.
17527
LDFLAGS="$apu_check_lib_save_ldflags"
17528
CPPFLAGS="$apu_check_lib_save_cppflags"
17535
apu_db_header=$bdb_header
17536
apu_db_lib=$bdb_libname
17540
header="`echo $found | sed -e 's/:.*$//'`"
17541
lib="`echo $found | sed -e 's/^.*://'`"
17544
if test "x$APRUTIL_INCLUDES" = "x"; then
17545
test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$header\""
17546
APRUTIL_INCLUDES="-I$header"
17548
apr_addto_bugger="-I$header"
17549
for i in $apr_addto_bugger; do
17550
apr_addto_duplicate="0"
17551
for j in $APRUTIL_INCLUDES; do
17552
if test "x$i" = "x$j"; then
17553
apr_addto_duplicate="1"
17557
if test $apr_addto_duplicate = "0"; then
17558
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES"
17559
APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
17565
if test "x$APRUTIL_LDFLAGS" = "x"; then
17566
test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$lib\""
17567
APRUTIL_LDFLAGS="-L$lib"
17569
apr_addto_bugger="-L$lib"
17570
for i in $apr_addto_bugger; do
17571
apr_addto_duplicate="0"
17572
for j in $APRUTIL_LDFLAGS; do
17573
if test "x$i" = "x$j"; then
17574
apr_addto_duplicate="1"
17578
if test $apr_addto_duplicate = "0"; then
17579
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS"
17580
APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
17585
apu_db_header=$bdb_header
17586
apu_db_lib=$bdb_libname
17591
if test "x$APRUTIL_INCLUDES" = "x"; then
17592
test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$found/include\""
17593
APRUTIL_INCLUDES="-I$found/include"
17595
apr_addto_bugger="-I$found/include"
17596
for i in $apr_addto_bugger; do
17597
apr_addto_duplicate="0"
17598
for j in $APRUTIL_INCLUDES; do
17599
if test "x$i" = "x$j"; then
17600
apr_addto_duplicate="1"
17604
if test $apr_addto_duplicate = "0"; then
17605
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES"
17606
APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
17612
if test "x$APRUTIL_LDFLAGS" = "x"; then
17613
test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$found/lib\""
17614
APRUTIL_LDFLAGS="-L$found/lib"
17616
apr_addto_bugger="-L$found/lib"
17617
for i in $apr_addto_bugger; do
17618
apr_addto_duplicate="0"
17619
for j in $APRUTIL_LDFLAGS; do
17620
if test "x$i" = "x$j"; then
17621
apr_addto_duplicate="1"
17625
if test $apr_addto_duplicate = "0"; then
17626
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS"
17627
APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
17632
apu_db_header=$bdb_header
17633
apu_db_lib=$bdb_libname
17638
if test "$apu_have_db" = "1"; then
17642
if test "$apu_db_version" != "4"; then
17644
places="$all_places"
17645
if test -z "$places"; then
17650
if test "-1" != "-1"; then
17651
bdb_version="$bdb_version.-1"
17652
if test "-1" != "-1"; then
17653
bdb_version="$bdb_version.-1"
17656
bdb_places="$places"
17657
bdb_default_search_headers="db3/db.h db.h"
17658
bdb_default_search_lib_names="db3 db"
17663
# Save the original values of the flags we tweak.
17664
apu_check_lib_save_libs="$LIBS"
17665
apu_check_lib_save_ldflags="$LDFLAGS"
17666
apu_check_lib_save_cppflags="$CPPFLAGS"
17668
# The variable `found' is the prefix under which we've found
17669
# Berkeley DB, or `not' if we haven't found it anywhere yet.
17671
for bdb_place in $bdb_places; do
17673
LDFLAGS="$apu_check_lib_save_ldflags"
17674
CPPFLAGS="$apu_check_lib_save_cppflags"
17675
case "$bdb_place" in
17677
description="the standard places"
17680
header="`echo $bdb_place | sed -e 's/:.*$//'`"
17681
lib="`echo $bdb_place | sed -e 's/^.*://'`"
17682
CPPFLAGS="$CPPFLAGS -I$header"
17683
LDFLAGS="$LDFLAGS -L$lib"
17684
description="$header and $lib"
17687
if test -d $bdb_place; then
17688
LDFLAGS="$LDFLAGS -L$bdb_place/lib"
17689
CPPFLAGS="$CPPFLAGS -I$bdb_place/include"
17691
echo "$as_me:$LINENO: checking for Berkeley DB $bdb_version in $bdb_place" >&5
17692
echo $ECHO_N "checking for Berkeley DB $bdb_version in $bdb_place... $ECHO_C" >&6
17693
echo "$as_me:$LINENO: result: directory not found" >&5
17694
echo "${ECHO_T}directory not found" >&6
17697
description="$bdb_place"
17701
# Since there is no AC_MSG_NOTICE in autoconf 2.13, we use this
17702
# trick to display a message instead.
17703
echo "$as_me:$LINENO: checking for Berkeley DB $bdb_version in $description" >&5
17704
echo $ECHO_N "checking for Berkeley DB $bdb_version in $description... $ECHO_C" >&6
17705
echo "$as_me:$LINENO: result: " >&5
17706
echo "${ECHO_T}" >&6
17708
for bdb_libname in $bdb_default_search_lib_names; do
17709
for bdb_header in $bdb_default_search_headers; do
17710
# Clear the header cache variable for each location
17712
cache_id="`echo ac_cv_header_${bdb_header} \
17713
| sed -e 's/[^a-zA-Z0-9_]/_/g'`"
17716
as_ac_Header=`echo "ac_cv_header_$bdb_header" | $as_tr_sh`
17717
if eval "test \"\${$as_ac_Header+set}\" = set"; then
17718
echo "$as_me:$LINENO: checking for $bdb_header" >&5
17719
echo $ECHO_N "checking for $bdb_header... $ECHO_C" >&6
17720
if eval "test \"\${$as_ac_Header+set}\" = set"; then
17721
echo $ECHO_N "(cached) $ECHO_C" >&6
17723
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17724
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17726
# Is the header compilable?
17727
echo "$as_me:$LINENO: checking $bdb_header usability" >&5
17728
echo $ECHO_N "checking $bdb_header usability... $ECHO_C" >&6
17729
cat >conftest.$ac_ext <<_ACEOF
17732
cat confdefs.h >>conftest.$ac_ext
17733
cat >>conftest.$ac_ext <<_ACEOF
17734
/* end confdefs.h. */
17735
$ac_includes_default
17736
#include <$bdb_header>
17738
rm -f conftest.$ac_objext
17739
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17740
(eval $ac_compile) 2>conftest.er1
17742
grep -v '^ *+' conftest.er1 >conftest.err
17744
cat conftest.err >&5
17745
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17746
(exit $ac_status); } &&
17747
{ ac_try='test -z "$ac_c_werror_flag"
17748
|| test ! -s conftest.err'
17749
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17750
(eval $ac_try) 2>&5
17752
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17753
(exit $ac_status); }; } &&
17754
{ ac_try='test -s conftest.$ac_objext'
17755
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17756
(eval $ac_try) 2>&5
17758
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17759
(exit $ac_status); }; }; then
17760
ac_header_compiler=yes
17762
echo "$as_me: failed program was:" >&5
17763
sed 's/^/| /' conftest.$ac_ext >&5
17765
ac_header_compiler=no
17767
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17768
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17769
echo "${ECHO_T}$ac_header_compiler" >&6
17771
# Is the header present?
17772
echo "$as_me:$LINENO: checking $bdb_header presence" >&5
17773
echo $ECHO_N "checking $bdb_header presence... $ECHO_C" >&6
17774
cat >conftest.$ac_ext <<_ACEOF
17777
cat confdefs.h >>conftest.$ac_ext
17778
cat >>conftest.$ac_ext <<_ACEOF
17779
/* end confdefs.h. */
17780
#include <$bdb_header>
17782
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17783
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17785
grep -v '^ *+' conftest.er1 >conftest.err
17787
cat conftest.err >&5
17788
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17789
(exit $ac_status); } >/dev/null; then
17790
if test -s conftest.err; then
17791
ac_cpp_err=$ac_c_preproc_warn_flag
17792
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17799
if test -z "$ac_cpp_err"; then
17800
ac_header_preproc=yes
17802
echo "$as_me: failed program was:" >&5
17803
sed 's/^/| /' conftest.$ac_ext >&5
17805
ac_header_preproc=no
17807
rm -f conftest.err conftest.$ac_ext
17808
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17809
echo "${ECHO_T}$ac_header_preproc" >&6
17811
# So? What about this header?
17812
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17814
{ echo "$as_me:$LINENO: WARNING: $bdb_header: accepted by the compiler, rejected by the preprocessor!" >&5
17815
echo "$as_me: WARNING: $bdb_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17816
{ echo "$as_me:$LINENO: WARNING: $bdb_header: proceeding with the compiler's result" >&5
17817
echo "$as_me: WARNING: $bdb_header: proceeding with the compiler's result" >&2;}
17818
ac_header_preproc=yes
17821
{ echo "$as_me:$LINENO: WARNING: $bdb_header: present but cannot be compiled" >&5
17822
echo "$as_me: WARNING: $bdb_header: present but cannot be compiled" >&2;}
17823
{ echo "$as_me:$LINENO: WARNING: $bdb_header: check for missing prerequisite headers?" >&5
17824
echo "$as_me: WARNING: $bdb_header: check for missing prerequisite headers?" >&2;}
17825
{ echo "$as_me:$LINENO: WARNING: $bdb_header: see the Autoconf documentation" >&5
17826
echo "$as_me: WARNING: $bdb_header: see the Autoconf documentation" >&2;}
17827
{ echo "$as_me:$LINENO: WARNING: $bdb_header: section \"Present But Cannot Be Compiled\"" >&5
17828
echo "$as_me: WARNING: $bdb_header: section \"Present But Cannot Be Compiled\"" >&2;}
17829
{ echo "$as_me:$LINENO: WARNING: $bdb_header: proceeding with the preprocessor's result" >&5
17830
echo "$as_me: WARNING: $bdb_header: proceeding with the preprocessor's result" >&2;}
17831
{ echo "$as_me:$LINENO: WARNING: $bdb_header: in the future, the compiler will take precedence" >&5
17832
echo "$as_me: WARNING: $bdb_header: in the future, the compiler will take precedence" >&2;}
17835
## ------------------------------------------ ##
17836
## Report this to the AC_PACKAGE_NAME lists. ##
17837
## ------------------------------------------ ##
17840
sed "s/^/$as_me: WARNING: /" >&2
17843
echo "$as_me:$LINENO: checking for $bdb_header" >&5
17844
echo $ECHO_N "checking for $bdb_header... $ECHO_C" >&6
17845
if eval "test \"\${$as_ac_Header+set}\" = set"; then
17846
echo $ECHO_N "(cached) $ECHO_C" >&6
17848
eval "$as_ac_Header=\$ac_header_preproc"
17850
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17851
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17854
if test `eval echo '${'$as_ac_Header'}'` = yes; then
17856
if test "3" = "3" -o "3" = "4"; then
17857
# We generate a separate cache variable for each prefix and libname
17858
# we search under. That way, we avoid caching information that
17859
# changes if the user runs `configure' with a different set of
17862
cache_id="`echo apu_cv_check_berkeley_db_3_-1_-1_${bdb_header}_${bdb_libname}_in_${bdb_place} \
17863
| sed -e 's/[^a-zA-Z0-9_]/_/g'`"
17866
echo "$as_me:$LINENO: checking for -l$bdb_libname" >&5
17867
echo $ECHO_N "checking for -l$bdb_libname... $ECHO_C" >&6
17868
if eval "test \"\${$cache_id+set}\" = set"; then
17869
echo $ECHO_N "(cached) $ECHO_C" >&6
17873
apu_try_berkeley_db_save_libs="$LIBS"
17875
apu_check_berkeley_db_major=3
17876
apu_check_berkeley_db_minor=-1
17877
apu_check_berkeley_db_patch=-1
17878
apu_try_berkeley_db_header=$bdb_header
17879
apu_try_berkeley_db_libname=$bdb_libname
17881
LIBS="$LIBS -l$apu_try_berkeley_db_libname"
17882
if test "$cross_compiling" = yes; then
17883
apu_try_berkeley_db=yes
17886
cat >conftest.$ac_ext <<_ACEOF
17889
cat confdefs.h >>conftest.$ac_ext
17890
cat >>conftest.$ac_ext <<_ACEOF
17891
/* end confdefs.h. */
17894
#include <$apu_try_berkeley_db_header>
17897
int major, minor, patch;
17899
db_version(&major, &minor, &patch);
17901
/* Sanity check: ensure that db.h constants actually match the db library */
17902
if (major != DB_VERSION_MAJOR
17903
|| minor != DB_VERSION_MINOR
17904
|| patch != DB_VERSION_PATCH)
17907
/* Run-time check: ensure the library claims to be the correct version. */
17909
if ($apu_check_berkeley_db_major != -1) {
17910
if (major < $apu_check_berkeley_db_major)
17912
if (major > $apu_check_berkeley_db_major)
17916
if ($apu_check_berkeley_db_minor != -1) {
17917
if (minor < $apu_check_berkeley_db_minor)
17919
if (minor > $apu_check_berkeley_db_minor)
17923
if ($apu_check_berkeley_db_patch == -1
17924
|| patch >= $apu_check_berkeley_db_patch)
17931
rm -f conftest$ac_exeext
17932
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17933
(eval $ac_link) 2>&5
17935
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17936
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17937
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17938
(eval $ac_try) 2>&5
17940
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17941
(exit $ac_status); }; }; then
17942
apu_try_berkeley_db=yes
17944
echo "$as_me: program exited with status $ac_status" >&5
17945
echo "$as_me: failed program was:" >&5
17946
sed 's/^/| /' conftest.$ac_ext >&5
17948
( exit $ac_status )
17949
apu_try_berkeley_db=no
17951
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17954
LIBS="$apu_try_berkeley_db_save_libs"
17957
eval "$cache_id=$apu_try_berkeley_db"
17961
result="`eval echo '$'$cache_id`"
17962
echo "$as_me:$LINENO: result: $result" >&5
17963
echo "${ECHO_T}$result" >&6
17964
elif test "3" = "1"; then
17965
as_ac_Lib=`echo "ac_cv_lib_$bdb_libname''_dbopen" | $as_tr_sh`
17966
echo "$as_me:$LINENO: checking for dbopen in -l$bdb_libname" >&5
17967
echo $ECHO_N "checking for dbopen in -l$bdb_libname... $ECHO_C" >&6
17968
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
17969
echo $ECHO_N "(cached) $ECHO_C" >&6
17971
ac_check_lib_save_LIBS=$LIBS
17972
LIBS="-l$bdb_libname $LIBS"
17973
cat >conftest.$ac_ext <<_ACEOF
17976
cat confdefs.h >>conftest.$ac_ext
17977
cat >>conftest.$ac_ext <<_ACEOF
17978
/* end confdefs.h. */
17980
/* Override any gcc2 internal prototype to avoid an error. */
17984
/* We use char because int might match the return type of a gcc2
17985
builtin and then its argument prototype would still apply. */
17995
rm -f conftest.$ac_objext conftest$ac_exeext
17996
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17997
(eval $ac_link) 2>conftest.er1
17999
grep -v '^ *+' conftest.er1 >conftest.err
18001
cat conftest.err >&5
18002
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18003
(exit $ac_status); } &&
18004
{ ac_try='test -z "$ac_c_werror_flag"
18005
|| test ! -s conftest.err'
18006
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18007
(eval $ac_try) 2>&5
18009
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18010
(exit $ac_status); }; } &&
18011
{ ac_try='test -s conftest$ac_exeext'
18012
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18013
(eval $ac_try) 2>&5
18015
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18016
(exit $ac_status); }; }; then
18017
eval "$as_ac_Lib=yes"
18019
echo "$as_me: failed program was:" >&5
18020
sed 's/^/| /' conftest.$ac_ext >&5
18022
eval "$as_ac_Lib=no"
18024
rm -f conftest.err conftest.$ac_objext \
18025
conftest$ac_exeext conftest.$ac_ext
18026
LIBS=$ac_check_lib_save_LIBS
18028
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
18029
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
18030
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
18037
elif test "3" = "2"; then
18038
as_ac_Lib=`echo "ac_cv_lib_$bdb_libname''_db_open" | $as_tr_sh`
18039
echo "$as_me:$LINENO: checking for db_open in -l$bdb_libname" >&5
18040
echo $ECHO_N "checking for db_open in -l$bdb_libname... $ECHO_C" >&6
18041
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
18042
echo $ECHO_N "(cached) $ECHO_C" >&6
18044
ac_check_lib_save_LIBS=$LIBS
18045
LIBS="-l$bdb_libname $LIBS"
18046
cat >conftest.$ac_ext <<_ACEOF
18049
cat confdefs.h >>conftest.$ac_ext
18050
cat >>conftest.$ac_ext <<_ACEOF
18051
/* end confdefs.h. */
18053
/* Override any gcc2 internal prototype to avoid an error. */
18057
/* We use char because int might match the return type of a gcc2
18058
builtin and then its argument prototype would still apply. */
18068
rm -f conftest.$ac_objext conftest$ac_exeext
18069
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18070
(eval $ac_link) 2>conftest.er1
18072
grep -v '^ *+' conftest.er1 >conftest.err
18074
cat conftest.err >&5
18075
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18076
(exit $ac_status); } &&
18077
{ ac_try='test -z "$ac_c_werror_flag"
18078
|| test ! -s conftest.err'
18079
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18080
(eval $ac_try) 2>&5
18082
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18083
(exit $ac_status); }; } &&
18084
{ ac_try='test -s conftest$ac_exeext'
18085
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18086
(eval $ac_try) 2>&5
18088
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18089
(exit $ac_status); }; }; then
18090
eval "$as_ac_Lib=yes"
18092
echo "$as_me: failed program was:" >&5
18093
sed 's/^/| /' conftest.$ac_ext >&5
18095
eval "$as_ac_Lib=no"
18097
rm -f conftest.err conftest.$ac_objext \
18098
conftest$ac_exeext conftest.$ac_ext
18099
LIBS=$ac_check_lib_save_LIBS
18101
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
18102
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
18103
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
18118
# If we found it, no need to search any more.
18119
if test "$result" = "yes"; then
18124
test "$found" != "not" && break
18126
test "$found" != "not" && break
18129
# Restore the original values of the flags we tweak.
18130
LDFLAGS="$apu_check_lib_save_ldflags"
18131
CPPFLAGS="$apu_check_lib_save_cppflags"
18138
apu_db_header=$bdb_header
18139
apu_db_lib=$bdb_libname
18143
header="`echo $found | sed -e 's/:.*$//'`"
18144
lib="`echo $found | sed -e 's/^.*://'`"
18147
if test "x$APRUTIL_INCLUDES" = "x"; then
18148
test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$header\""
18149
APRUTIL_INCLUDES="-I$header"
18151
apr_addto_bugger="-I$header"
18152
for i in $apr_addto_bugger; do
18153
apr_addto_duplicate="0"
18154
for j in $APRUTIL_INCLUDES; do
18155
if test "x$i" = "x$j"; then
18156
apr_addto_duplicate="1"
18160
if test $apr_addto_duplicate = "0"; then
18161
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES"
18162
APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
18168
if test "x$APRUTIL_LDFLAGS" = "x"; then
18169
test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$lib\""
18170
APRUTIL_LDFLAGS="-L$lib"
18172
apr_addto_bugger="-L$lib"
18173
for i in $apr_addto_bugger; do
18174
apr_addto_duplicate="0"
18175
for j in $APRUTIL_LDFLAGS; do
18176
if test "x$i" = "x$j"; then
18177
apr_addto_duplicate="1"
18181
if test $apr_addto_duplicate = "0"; then
18182
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS"
18183
APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
18188
apu_db_header=$bdb_header
18189
apu_db_lib=$bdb_libname
18194
if test "x$APRUTIL_INCLUDES" = "x"; then
18195
test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$found/include\""
18196
APRUTIL_INCLUDES="-I$found/include"
18198
apr_addto_bugger="-I$found/include"
18199
for i in $apr_addto_bugger; do
18200
apr_addto_duplicate="0"
18201
for j in $APRUTIL_INCLUDES; do
18202
if test "x$i" = "x$j"; then
18203
apr_addto_duplicate="1"
18207
if test $apr_addto_duplicate = "0"; then
18208
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES"
18209
APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
18215
if test "x$APRUTIL_LDFLAGS" = "x"; then
18216
test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$found/lib\""
18217
APRUTIL_LDFLAGS="-L$found/lib"
18219
apr_addto_bugger="-L$found/lib"
18220
for i in $apr_addto_bugger; do
18221
apr_addto_duplicate="0"
18222
for j in $APRUTIL_LDFLAGS; do
18223
if test "x$i" = "x$j"; then
18224
apr_addto_duplicate="1"
18228
if test $apr_addto_duplicate = "0"; then
18229
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS"
18230
APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
18235
apu_db_header=$bdb_header
18236
apu_db_lib=$bdb_libname
18241
if test "$apu_have_db" = "1"; then
18245
if test "$apu_db_version" != "3"; then
18247
places="$all_places"
18248
if test -z "$places"; then
18253
if test "-1" != "-1"; then
18254
bdb_version="$bdb_version.-1"
18255
if test "-1" != "-1"; then
18256
bdb_version="$bdb_version.-1"
18259
bdb_places="$places"
18260
bdb_default_search_headers="db2/db.h db.h"
18261
bdb_default_search_lib_names="db2 db"
18266
# Save the original values of the flags we tweak.
18267
apu_check_lib_save_libs="$LIBS"
18268
apu_check_lib_save_ldflags="$LDFLAGS"
18269
apu_check_lib_save_cppflags="$CPPFLAGS"
18271
# The variable `found' is the prefix under which we've found
18272
# Berkeley DB, or `not' if we haven't found it anywhere yet.
18274
for bdb_place in $bdb_places; do
18276
LDFLAGS="$apu_check_lib_save_ldflags"
18277
CPPFLAGS="$apu_check_lib_save_cppflags"
18278
case "$bdb_place" in
18280
description="the standard places"
18283
header="`echo $bdb_place | sed -e 's/:.*$//'`"
18284
lib="`echo $bdb_place | sed -e 's/^.*://'`"
18285
CPPFLAGS="$CPPFLAGS -I$header"
18286
LDFLAGS="$LDFLAGS -L$lib"
18287
description="$header and $lib"
18290
if test -d $bdb_place; then
18291
LDFLAGS="$LDFLAGS -L$bdb_place/lib"
18292
CPPFLAGS="$CPPFLAGS -I$bdb_place/include"
18294
echo "$as_me:$LINENO: checking for Berkeley DB $bdb_version in $bdb_place" >&5
18295
echo $ECHO_N "checking for Berkeley DB $bdb_version in $bdb_place... $ECHO_C" >&6
18296
echo "$as_me:$LINENO: result: directory not found" >&5
18297
echo "${ECHO_T}directory not found" >&6
18300
description="$bdb_place"
18304
# Since there is no AC_MSG_NOTICE in autoconf 2.13, we use this
18305
# trick to display a message instead.
18306
echo "$as_me:$LINENO: checking for Berkeley DB $bdb_version in $description" >&5
18307
echo $ECHO_N "checking for Berkeley DB $bdb_version in $description... $ECHO_C" >&6
18308
echo "$as_me:$LINENO: result: " >&5
18309
echo "${ECHO_T}" >&6
18311
for bdb_libname in $bdb_default_search_lib_names; do
18312
for bdb_header in $bdb_default_search_headers; do
18313
# Clear the header cache variable for each location
18315
cache_id="`echo ac_cv_header_${bdb_header} \
18316
| sed -e 's/[^a-zA-Z0-9_]/_/g'`"
18319
as_ac_Header=`echo "ac_cv_header_$bdb_header" | $as_tr_sh`
18320
if eval "test \"\${$as_ac_Header+set}\" = set"; then
18321
echo "$as_me:$LINENO: checking for $bdb_header" >&5
18322
echo $ECHO_N "checking for $bdb_header... $ECHO_C" >&6
18323
if eval "test \"\${$as_ac_Header+set}\" = set"; then
18324
echo $ECHO_N "(cached) $ECHO_C" >&6
18326
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18327
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18329
# Is the header compilable?
18330
echo "$as_me:$LINENO: checking $bdb_header usability" >&5
18331
echo $ECHO_N "checking $bdb_header usability... $ECHO_C" >&6
18332
cat >conftest.$ac_ext <<_ACEOF
18335
cat confdefs.h >>conftest.$ac_ext
18336
cat >>conftest.$ac_ext <<_ACEOF
18337
/* end confdefs.h. */
18338
$ac_includes_default
18339
#include <$bdb_header>
18341
rm -f conftest.$ac_objext
18342
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18343
(eval $ac_compile) 2>conftest.er1
18345
grep -v '^ *+' conftest.er1 >conftest.err
18347
cat conftest.err >&5
18348
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18349
(exit $ac_status); } &&
18350
{ ac_try='test -z "$ac_c_werror_flag"
18351
|| test ! -s conftest.err'
18352
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18353
(eval $ac_try) 2>&5
18355
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18356
(exit $ac_status); }; } &&
18357
{ ac_try='test -s conftest.$ac_objext'
18358
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18359
(eval $ac_try) 2>&5
18361
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18362
(exit $ac_status); }; }; then
18363
ac_header_compiler=yes
18365
echo "$as_me: failed program was:" >&5
18366
sed 's/^/| /' conftest.$ac_ext >&5
18368
ac_header_compiler=no
18370
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18371
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18372
echo "${ECHO_T}$ac_header_compiler" >&6
18374
# Is the header present?
18375
echo "$as_me:$LINENO: checking $bdb_header presence" >&5
18376
echo $ECHO_N "checking $bdb_header presence... $ECHO_C" >&6
18377
cat >conftest.$ac_ext <<_ACEOF
18380
cat confdefs.h >>conftest.$ac_ext
18381
cat >>conftest.$ac_ext <<_ACEOF
18382
/* end confdefs.h. */
18383
#include <$bdb_header>
18385
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18386
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18388
grep -v '^ *+' conftest.er1 >conftest.err
18390
cat conftest.err >&5
18391
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18392
(exit $ac_status); } >/dev/null; then
18393
if test -s conftest.err; then
18394
ac_cpp_err=$ac_c_preproc_warn_flag
18395
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18402
if test -z "$ac_cpp_err"; then
18403
ac_header_preproc=yes
18405
echo "$as_me: failed program was:" >&5
18406
sed 's/^/| /' conftest.$ac_ext >&5
18408
ac_header_preproc=no
18410
rm -f conftest.err conftest.$ac_ext
18411
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18412
echo "${ECHO_T}$ac_header_preproc" >&6
18414
# So? What about this header?
18415
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18417
{ echo "$as_me:$LINENO: WARNING: $bdb_header: accepted by the compiler, rejected by the preprocessor!" >&5
18418
echo "$as_me: WARNING: $bdb_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18419
{ echo "$as_me:$LINENO: WARNING: $bdb_header: proceeding with the compiler's result" >&5
18420
echo "$as_me: WARNING: $bdb_header: proceeding with the compiler's result" >&2;}
18421
ac_header_preproc=yes
18424
{ echo "$as_me:$LINENO: WARNING: $bdb_header: present but cannot be compiled" >&5
18425
echo "$as_me: WARNING: $bdb_header: present but cannot be compiled" >&2;}
18426
{ echo "$as_me:$LINENO: WARNING: $bdb_header: check for missing prerequisite headers?" >&5
18427
echo "$as_me: WARNING: $bdb_header: check for missing prerequisite headers?" >&2;}
18428
{ echo "$as_me:$LINENO: WARNING: $bdb_header: see the Autoconf documentation" >&5
18429
echo "$as_me: WARNING: $bdb_header: see the Autoconf documentation" >&2;}
18430
{ echo "$as_me:$LINENO: WARNING: $bdb_header: section \"Present But Cannot Be Compiled\"" >&5
18431
echo "$as_me: WARNING: $bdb_header: section \"Present But Cannot Be Compiled\"" >&2;}
18432
{ echo "$as_me:$LINENO: WARNING: $bdb_header: proceeding with the preprocessor's result" >&5
18433
echo "$as_me: WARNING: $bdb_header: proceeding with the preprocessor's result" >&2;}
18434
{ echo "$as_me:$LINENO: WARNING: $bdb_header: in the future, the compiler will take precedence" >&5
18435
echo "$as_me: WARNING: $bdb_header: in the future, the compiler will take precedence" >&2;}
18438
## ------------------------------------------ ##
18439
## Report this to the AC_PACKAGE_NAME lists. ##
18440
## ------------------------------------------ ##
18443
sed "s/^/$as_me: WARNING: /" >&2
18446
echo "$as_me:$LINENO: checking for $bdb_header" >&5
18447
echo $ECHO_N "checking for $bdb_header... $ECHO_C" >&6
18448
if eval "test \"\${$as_ac_Header+set}\" = set"; then
18449
echo $ECHO_N "(cached) $ECHO_C" >&6
18451
eval "$as_ac_Header=\$ac_header_preproc"
18453
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18454
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18457
if test `eval echo '${'$as_ac_Header'}'` = yes; then
18459
if test "2" = "3" -o "2" = "4"; then
18460
# We generate a separate cache variable for each prefix and libname
18461
# we search under. That way, we avoid caching information that
18462
# changes if the user runs `configure' with a different set of
18465
cache_id="`echo apu_cv_check_berkeley_db_2_-1_-1_${bdb_header}_${bdb_libname}_in_${bdb_place} \
18466
| sed -e 's/[^a-zA-Z0-9_]/_/g'`"
18469
echo "$as_me:$LINENO: checking for -l$bdb_libname" >&5
18470
echo $ECHO_N "checking for -l$bdb_libname... $ECHO_C" >&6
18471
if eval "test \"\${$cache_id+set}\" = set"; then
18472
echo $ECHO_N "(cached) $ECHO_C" >&6
18476
apu_try_berkeley_db_save_libs="$LIBS"
18478
apu_check_berkeley_db_major=2
18479
apu_check_berkeley_db_minor=-1
18480
apu_check_berkeley_db_patch=-1
18481
apu_try_berkeley_db_header=$bdb_header
18482
apu_try_berkeley_db_libname=$bdb_libname
18484
LIBS="$LIBS -l$apu_try_berkeley_db_libname"
18485
if test "$cross_compiling" = yes; then
18486
apu_try_berkeley_db=yes
18489
cat >conftest.$ac_ext <<_ACEOF
18492
cat confdefs.h >>conftest.$ac_ext
18493
cat >>conftest.$ac_ext <<_ACEOF
18494
/* end confdefs.h. */
18497
#include <$apu_try_berkeley_db_header>
18500
int major, minor, patch;
18502
db_version(&major, &minor, &patch);
18504
/* Sanity check: ensure that db.h constants actually match the db library */
18505
if (major != DB_VERSION_MAJOR
18506
|| minor != DB_VERSION_MINOR
18507
|| patch != DB_VERSION_PATCH)
18510
/* Run-time check: ensure the library claims to be the correct version. */
18512
if ($apu_check_berkeley_db_major != -1) {
18513
if (major < $apu_check_berkeley_db_major)
18515
if (major > $apu_check_berkeley_db_major)
18519
if ($apu_check_berkeley_db_minor != -1) {
18520
if (minor < $apu_check_berkeley_db_minor)
18522
if (minor > $apu_check_berkeley_db_minor)
18526
if ($apu_check_berkeley_db_patch == -1
18527
|| patch >= $apu_check_berkeley_db_patch)
18534
rm -f conftest$ac_exeext
18535
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18536
(eval $ac_link) 2>&5
18538
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18539
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18540
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18541
(eval $ac_try) 2>&5
18543
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18544
(exit $ac_status); }; }; then
18545
apu_try_berkeley_db=yes
18547
echo "$as_me: program exited with status $ac_status" >&5
18548
echo "$as_me: failed program was:" >&5
18549
sed 's/^/| /' conftest.$ac_ext >&5
18551
( exit $ac_status )
18552
apu_try_berkeley_db=no
18554
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18557
LIBS="$apu_try_berkeley_db_save_libs"
18560
eval "$cache_id=$apu_try_berkeley_db"
18564
result="`eval echo '$'$cache_id`"
18565
echo "$as_me:$LINENO: result: $result" >&5
18566
echo "${ECHO_T}$result" >&6
18567
elif test "2" = "1"; then
18568
as_ac_Lib=`echo "ac_cv_lib_$bdb_libname''_dbopen" | $as_tr_sh`
18569
echo "$as_me:$LINENO: checking for dbopen in -l$bdb_libname" >&5
18570
echo $ECHO_N "checking for dbopen in -l$bdb_libname... $ECHO_C" >&6
18571
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
18572
echo $ECHO_N "(cached) $ECHO_C" >&6
18574
ac_check_lib_save_LIBS=$LIBS
18575
LIBS="-l$bdb_libname $LIBS"
18576
cat >conftest.$ac_ext <<_ACEOF
18579
cat confdefs.h >>conftest.$ac_ext
18580
cat >>conftest.$ac_ext <<_ACEOF
18581
/* end confdefs.h. */
18583
/* Override any gcc2 internal prototype to avoid an error. */
18587
/* We use char because int might match the return type of a gcc2
18588
builtin and then its argument prototype would still apply. */
18598
rm -f conftest.$ac_objext conftest$ac_exeext
18599
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18600
(eval $ac_link) 2>conftest.er1
18602
grep -v '^ *+' conftest.er1 >conftest.err
18604
cat conftest.err >&5
18605
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18606
(exit $ac_status); } &&
18607
{ ac_try='test -z "$ac_c_werror_flag"
18608
|| test ! -s conftest.err'
18609
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18610
(eval $ac_try) 2>&5
18612
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18613
(exit $ac_status); }; } &&
18614
{ ac_try='test -s conftest$ac_exeext'
18615
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18616
(eval $ac_try) 2>&5
18618
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18619
(exit $ac_status); }; }; then
18620
eval "$as_ac_Lib=yes"
18622
echo "$as_me: failed program was:" >&5
18623
sed 's/^/| /' conftest.$ac_ext >&5
18625
eval "$as_ac_Lib=no"
18627
rm -f conftest.err conftest.$ac_objext \
18628
conftest$ac_exeext conftest.$ac_ext
18629
LIBS=$ac_check_lib_save_LIBS
18631
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
18632
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
18633
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
18640
elif test "2" = "2"; then
18641
as_ac_Lib=`echo "ac_cv_lib_$bdb_libname''_db_open" | $as_tr_sh`
18642
echo "$as_me:$LINENO: checking for db_open in -l$bdb_libname" >&5
18643
echo $ECHO_N "checking for db_open in -l$bdb_libname... $ECHO_C" >&6
18644
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
18645
echo $ECHO_N "(cached) $ECHO_C" >&6
18647
ac_check_lib_save_LIBS=$LIBS
18648
LIBS="-l$bdb_libname $LIBS"
18649
cat >conftest.$ac_ext <<_ACEOF
18652
cat confdefs.h >>conftest.$ac_ext
18653
cat >>conftest.$ac_ext <<_ACEOF
18654
/* end confdefs.h. */
18656
/* Override any gcc2 internal prototype to avoid an error. */
18660
/* We use char because int might match the return type of a gcc2
18661
builtin and then its argument prototype would still apply. */
18671
rm -f conftest.$ac_objext conftest$ac_exeext
18672
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18673
(eval $ac_link) 2>conftest.er1
18675
grep -v '^ *+' conftest.er1 >conftest.err
18677
cat conftest.err >&5
18678
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18679
(exit $ac_status); } &&
18680
{ ac_try='test -z "$ac_c_werror_flag"
18681
|| test ! -s conftest.err'
18682
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18683
(eval $ac_try) 2>&5
18685
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18686
(exit $ac_status); }; } &&
18687
{ ac_try='test -s conftest$ac_exeext'
18688
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18689
(eval $ac_try) 2>&5
18691
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18692
(exit $ac_status); }; }; then
18693
eval "$as_ac_Lib=yes"
18695
echo "$as_me: failed program was:" >&5
18696
sed 's/^/| /' conftest.$ac_ext >&5
18698
eval "$as_ac_Lib=no"
18700
rm -f conftest.err conftest.$ac_objext \
18701
conftest$ac_exeext conftest.$ac_ext
18702
LIBS=$ac_check_lib_save_LIBS
18704
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
18705
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
18706
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
18721
# If we found it, no need to search any more.
18722
if test "$result" = "yes"; then
18727
test "$found" != "not" && break
18729
test "$found" != "not" && break
18732
# Restore the original values of the flags we tweak.
18733
LDFLAGS="$apu_check_lib_save_ldflags"
18734
CPPFLAGS="$apu_check_lib_save_cppflags"
18741
apu_db_header=$bdb_header
18742
apu_db_lib=$bdb_libname
18746
header="`echo $found | sed -e 's/:.*$//'`"
18747
lib="`echo $found | sed -e 's/^.*://'`"
18750
if test "x$APRUTIL_INCLUDES" = "x"; then
18751
test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$header\""
18752
APRUTIL_INCLUDES="-I$header"
18754
apr_addto_bugger="-I$header"
18755
for i in $apr_addto_bugger; do
18756
apr_addto_duplicate="0"
18757
for j in $APRUTIL_INCLUDES; do
18758
if test "x$i" = "x$j"; then
18759
apr_addto_duplicate="1"
18763
if test $apr_addto_duplicate = "0"; then
18764
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES"
18765
APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
18771
if test "x$APRUTIL_LDFLAGS" = "x"; then
18772
test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$lib\""
18773
APRUTIL_LDFLAGS="-L$lib"
18775
apr_addto_bugger="-L$lib"
18776
for i in $apr_addto_bugger; do
18777
apr_addto_duplicate="0"
18778
for j in $APRUTIL_LDFLAGS; do
18779
if test "x$i" = "x$j"; then
18780
apr_addto_duplicate="1"
18784
if test $apr_addto_duplicate = "0"; then
18785
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS"
18786
APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
18791
apu_db_header=$bdb_header
18792
apu_db_lib=$bdb_libname
18797
if test "x$APRUTIL_INCLUDES" = "x"; then
18798
test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$found/include\""
18799
APRUTIL_INCLUDES="-I$found/include"
18801
apr_addto_bugger="-I$found/include"
18802
for i in $apr_addto_bugger; do
18803
apr_addto_duplicate="0"
18804
for j in $APRUTIL_INCLUDES; do
18805
if test "x$i" = "x$j"; then
18806
apr_addto_duplicate="1"
18810
if test $apr_addto_duplicate = "0"; then
18811
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES"
18812
APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
18818
if test "x$APRUTIL_LDFLAGS" = "x"; then
18819
test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$found/lib\""
18820
APRUTIL_LDFLAGS="-L$found/lib"
18822
apr_addto_bugger="-L$found/lib"
18823
for i in $apr_addto_bugger; do
18824
apr_addto_duplicate="0"
18825
for j in $APRUTIL_LDFLAGS; do
18826
if test "x$i" = "x$j"; then
18827
apr_addto_duplicate="1"
18831
if test $apr_addto_duplicate = "0"; then
18832
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS"
18833
APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
18838
apu_db_header=$bdb_header
18839
apu_db_lib=$bdb_libname
18844
if test "$apu_have_db" = "1"; then
18848
if test "$apu_db_version" != "2"; then
18850
places="$all_places"
18851
if test -z "$places"; then
18856
if test "0" != "-1"; then
18857
bdb_version="$bdb_version.0"
18858
if test "0" != "-1"; then
18859
bdb_version="$bdb_version.0"
18862
bdb_places="$places"
18863
bdb_default_search_headers="db1/db.h db.h"
18864
bdb_default_search_lib_names="db1"
18869
# Save the original values of the flags we tweak.
18870
apu_check_lib_save_libs="$LIBS"
18871
apu_check_lib_save_ldflags="$LDFLAGS"
18872
apu_check_lib_save_cppflags="$CPPFLAGS"
18874
# The variable `found' is the prefix under which we've found
18875
# Berkeley DB, or `not' if we haven't found it anywhere yet.
18877
for bdb_place in $bdb_places; do
18879
LDFLAGS="$apu_check_lib_save_ldflags"
18880
CPPFLAGS="$apu_check_lib_save_cppflags"
18881
case "$bdb_place" in
18883
description="the standard places"
18886
header="`echo $bdb_place | sed -e 's/:.*$//'`"
18887
lib="`echo $bdb_place | sed -e 's/^.*://'`"
18888
CPPFLAGS="$CPPFLAGS -I$header"
18889
LDFLAGS="$LDFLAGS -L$lib"
18890
description="$header and $lib"
18893
if test -d $bdb_place; then
18894
LDFLAGS="$LDFLAGS -L$bdb_place/lib"
18895
CPPFLAGS="$CPPFLAGS -I$bdb_place/include"
18897
echo "$as_me:$LINENO: checking for Berkeley DB $bdb_version in $bdb_place" >&5
18898
echo $ECHO_N "checking for Berkeley DB $bdb_version in $bdb_place... $ECHO_C" >&6
18899
echo "$as_me:$LINENO: result: directory not found" >&5
18900
echo "${ECHO_T}directory not found" >&6
18903
description="$bdb_place"
18907
# Since there is no AC_MSG_NOTICE in autoconf 2.13, we use this
18908
# trick to display a message instead.
18909
echo "$as_me:$LINENO: checking for Berkeley DB $bdb_version in $description" >&5
18910
echo $ECHO_N "checking for Berkeley DB $bdb_version in $description... $ECHO_C" >&6
18911
echo "$as_me:$LINENO: result: " >&5
18912
echo "${ECHO_T}" >&6
18914
for bdb_libname in $bdb_default_search_lib_names; do
18915
for bdb_header in $bdb_default_search_headers; do
18916
# Clear the header cache variable for each location
18918
cache_id="`echo ac_cv_header_${bdb_header} \
18919
| sed -e 's/[^a-zA-Z0-9_]/_/g'`"
18922
as_ac_Header=`echo "ac_cv_header_$bdb_header" | $as_tr_sh`
18923
if eval "test \"\${$as_ac_Header+set}\" = set"; then
18924
echo "$as_me:$LINENO: checking for $bdb_header" >&5
18925
echo $ECHO_N "checking for $bdb_header... $ECHO_C" >&6
18926
if eval "test \"\${$as_ac_Header+set}\" = set"; then
18927
echo $ECHO_N "(cached) $ECHO_C" >&6
18929
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18930
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18932
# Is the header compilable?
18933
echo "$as_me:$LINENO: checking $bdb_header usability" >&5
18934
echo $ECHO_N "checking $bdb_header usability... $ECHO_C" >&6
18935
cat >conftest.$ac_ext <<_ACEOF
18938
cat confdefs.h >>conftest.$ac_ext
18939
cat >>conftest.$ac_ext <<_ACEOF
18940
/* end confdefs.h. */
18941
$ac_includes_default
18942
#include <$bdb_header>
18944
rm -f conftest.$ac_objext
18945
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18946
(eval $ac_compile) 2>conftest.er1
18948
grep -v '^ *+' conftest.er1 >conftest.err
18950
cat conftest.err >&5
18951
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18952
(exit $ac_status); } &&
18953
{ ac_try='test -z "$ac_c_werror_flag"
18954
|| test ! -s conftest.err'
18955
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18956
(eval $ac_try) 2>&5
18958
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18959
(exit $ac_status); }; } &&
18960
{ ac_try='test -s conftest.$ac_objext'
18961
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18962
(eval $ac_try) 2>&5
18964
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18965
(exit $ac_status); }; }; then
18966
ac_header_compiler=yes
18968
echo "$as_me: failed program was:" >&5
18969
sed 's/^/| /' conftest.$ac_ext >&5
18971
ac_header_compiler=no
18973
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18974
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18975
echo "${ECHO_T}$ac_header_compiler" >&6
18977
# Is the header present?
18978
echo "$as_me:$LINENO: checking $bdb_header presence" >&5
18979
echo $ECHO_N "checking $bdb_header presence... $ECHO_C" >&6
18980
cat >conftest.$ac_ext <<_ACEOF
18983
cat confdefs.h >>conftest.$ac_ext
18984
cat >>conftest.$ac_ext <<_ACEOF
18985
/* end confdefs.h. */
18986
#include <$bdb_header>
18988
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18989
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18991
grep -v '^ *+' conftest.er1 >conftest.err
18993
cat conftest.err >&5
18994
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18995
(exit $ac_status); } >/dev/null; then
18996
if test -s conftest.err; then
18997
ac_cpp_err=$ac_c_preproc_warn_flag
18998
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19005
if test -z "$ac_cpp_err"; then
19006
ac_header_preproc=yes
19008
echo "$as_me: failed program was:" >&5
19009
sed 's/^/| /' conftest.$ac_ext >&5
19011
ac_header_preproc=no
19013
rm -f conftest.err conftest.$ac_ext
19014
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19015
echo "${ECHO_T}$ac_header_preproc" >&6
19017
# So? What about this header?
19018
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19020
{ echo "$as_me:$LINENO: WARNING: $bdb_header: accepted by the compiler, rejected by the preprocessor!" >&5
19021
echo "$as_me: WARNING: $bdb_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19022
{ echo "$as_me:$LINENO: WARNING: $bdb_header: proceeding with the compiler's result" >&5
19023
echo "$as_me: WARNING: $bdb_header: proceeding with the compiler's result" >&2;}
19024
ac_header_preproc=yes
19027
{ echo "$as_me:$LINENO: WARNING: $bdb_header: present but cannot be compiled" >&5
19028
echo "$as_me: WARNING: $bdb_header: present but cannot be compiled" >&2;}
19029
{ echo "$as_me:$LINENO: WARNING: $bdb_header: check for missing prerequisite headers?" >&5
19030
echo "$as_me: WARNING: $bdb_header: check for missing prerequisite headers?" >&2;}
19031
{ echo "$as_me:$LINENO: WARNING: $bdb_header: see the Autoconf documentation" >&5
19032
echo "$as_me: WARNING: $bdb_header: see the Autoconf documentation" >&2;}
19033
{ echo "$as_me:$LINENO: WARNING: $bdb_header: section \"Present But Cannot Be Compiled\"" >&5
19034
echo "$as_me: WARNING: $bdb_header: section \"Present But Cannot Be Compiled\"" >&2;}
19035
{ echo "$as_me:$LINENO: WARNING: $bdb_header: proceeding with the preprocessor's result" >&5
19036
echo "$as_me: WARNING: $bdb_header: proceeding with the preprocessor's result" >&2;}
19037
{ echo "$as_me:$LINENO: WARNING: $bdb_header: in the future, the compiler will take precedence" >&5
19038
echo "$as_me: WARNING: $bdb_header: in the future, the compiler will take precedence" >&2;}
19041
## ------------------------------------------ ##
19042
## Report this to the AC_PACKAGE_NAME lists. ##
19043
## ------------------------------------------ ##
19046
sed "s/^/$as_me: WARNING: /" >&2
19049
echo "$as_me:$LINENO: checking for $bdb_header" >&5
19050
echo $ECHO_N "checking for $bdb_header... $ECHO_C" >&6
19051
if eval "test \"\${$as_ac_Header+set}\" = set"; then
19052
echo $ECHO_N "(cached) $ECHO_C" >&6
19054
eval "$as_ac_Header=\$ac_header_preproc"
19056
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19057
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19060
if test `eval echo '${'$as_ac_Header'}'` = yes; then
19062
if test "1" = "3" -o "1" = "4"; then
19063
# We generate a separate cache variable for each prefix and libname
19064
# we search under. That way, we avoid caching information that
19065
# changes if the user runs `configure' with a different set of
19068
cache_id="`echo apu_cv_check_berkeley_db_1_0_0_${bdb_header}_${bdb_libname}_in_${bdb_place} \
19069
| sed -e 's/[^a-zA-Z0-9_]/_/g'`"
19072
echo "$as_me:$LINENO: checking for -l$bdb_libname" >&5
19073
echo $ECHO_N "checking for -l$bdb_libname... $ECHO_C" >&6
19074
if eval "test \"\${$cache_id+set}\" = set"; then
19075
echo $ECHO_N "(cached) $ECHO_C" >&6
19079
apu_try_berkeley_db_save_libs="$LIBS"
19081
apu_check_berkeley_db_major=1
19082
apu_check_berkeley_db_minor=0
19083
apu_check_berkeley_db_patch=0
19084
apu_try_berkeley_db_header=$bdb_header
19085
apu_try_berkeley_db_libname=$bdb_libname
19087
LIBS="$LIBS -l$apu_try_berkeley_db_libname"
19088
if test "$cross_compiling" = yes; then
19089
apu_try_berkeley_db=yes
19092
cat >conftest.$ac_ext <<_ACEOF
19095
cat confdefs.h >>conftest.$ac_ext
19096
cat >>conftest.$ac_ext <<_ACEOF
19097
/* end confdefs.h. */
19100
#include <$apu_try_berkeley_db_header>
19103
int major, minor, patch;
19105
db_version(&major, &minor, &patch);
19107
/* Sanity check: ensure that db.h constants actually match the db library */
19108
if (major != DB_VERSION_MAJOR
19109
|| minor != DB_VERSION_MINOR
19110
|| patch != DB_VERSION_PATCH)
19113
/* Run-time check: ensure the library claims to be the correct version. */
19115
if ($apu_check_berkeley_db_major != -1) {
19116
if (major < $apu_check_berkeley_db_major)
19118
if (major > $apu_check_berkeley_db_major)
19122
if ($apu_check_berkeley_db_minor != -1) {
19123
if (minor < $apu_check_berkeley_db_minor)
19125
if (minor > $apu_check_berkeley_db_minor)
19129
if ($apu_check_berkeley_db_patch == -1
19130
|| patch >= $apu_check_berkeley_db_patch)
19137
rm -f conftest$ac_exeext
19138
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19139
(eval $ac_link) 2>&5
19141
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19142
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19143
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19144
(eval $ac_try) 2>&5
19146
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19147
(exit $ac_status); }; }; then
19148
apu_try_berkeley_db=yes
19150
echo "$as_me: program exited with status $ac_status" >&5
19151
echo "$as_me: failed program was:" >&5
19152
sed 's/^/| /' conftest.$ac_ext >&5
19154
( exit $ac_status )
19155
apu_try_berkeley_db=no
19157
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19160
LIBS="$apu_try_berkeley_db_save_libs"
19163
eval "$cache_id=$apu_try_berkeley_db"
19167
result="`eval echo '$'$cache_id`"
19168
echo "$as_me:$LINENO: result: $result" >&5
19169
echo "${ECHO_T}$result" >&6
19170
elif test "1" = "1"; then
19171
as_ac_Lib=`echo "ac_cv_lib_$bdb_libname''_dbopen" | $as_tr_sh`
19172
echo "$as_me:$LINENO: checking for dbopen in -l$bdb_libname" >&5
19173
echo $ECHO_N "checking for dbopen in -l$bdb_libname... $ECHO_C" >&6
19174
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
19175
echo $ECHO_N "(cached) $ECHO_C" >&6
19177
ac_check_lib_save_LIBS=$LIBS
19178
LIBS="-l$bdb_libname $LIBS"
19179
cat >conftest.$ac_ext <<_ACEOF
19182
cat confdefs.h >>conftest.$ac_ext
19183
cat >>conftest.$ac_ext <<_ACEOF
19184
/* end confdefs.h. */
19186
/* Override any gcc2 internal prototype to avoid an error. */
19190
/* We use char because int might match the return type of a gcc2
19191
builtin and then its argument prototype would still apply. */
19201
rm -f conftest.$ac_objext conftest$ac_exeext
19202
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19203
(eval $ac_link) 2>conftest.er1
19205
grep -v '^ *+' conftest.er1 >conftest.err
19207
cat conftest.err >&5
19208
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19209
(exit $ac_status); } &&
19210
{ ac_try='test -z "$ac_c_werror_flag"
19211
|| test ! -s conftest.err'
19212
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19213
(eval $ac_try) 2>&5
19215
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19216
(exit $ac_status); }; } &&
19217
{ ac_try='test -s conftest$ac_exeext'
19218
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19219
(eval $ac_try) 2>&5
19221
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19222
(exit $ac_status); }; }; then
19223
eval "$as_ac_Lib=yes"
19225
echo "$as_me: failed program was:" >&5
19226
sed 's/^/| /' conftest.$ac_ext >&5
19228
eval "$as_ac_Lib=no"
19230
rm -f conftest.err conftest.$ac_objext \
19231
conftest$ac_exeext conftest.$ac_ext
19232
LIBS=$ac_check_lib_save_LIBS
19234
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
19235
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
19236
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
19243
elif test "1" = "2"; then
19244
as_ac_Lib=`echo "ac_cv_lib_$bdb_libname''_db_open" | $as_tr_sh`
19245
echo "$as_me:$LINENO: checking for db_open in -l$bdb_libname" >&5
19246
echo $ECHO_N "checking for db_open in -l$bdb_libname... $ECHO_C" >&6
19247
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
19248
echo $ECHO_N "(cached) $ECHO_C" >&6
19250
ac_check_lib_save_LIBS=$LIBS
19251
LIBS="-l$bdb_libname $LIBS"
19252
cat >conftest.$ac_ext <<_ACEOF
19255
cat confdefs.h >>conftest.$ac_ext
19256
cat >>conftest.$ac_ext <<_ACEOF
19257
/* end confdefs.h. */
19259
/* Override any gcc2 internal prototype to avoid an error. */
19263
/* We use char because int might match the return type of a gcc2
19264
builtin and then its argument prototype would still apply. */
19274
rm -f conftest.$ac_objext conftest$ac_exeext
19275
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19276
(eval $ac_link) 2>conftest.er1
19278
grep -v '^ *+' conftest.er1 >conftest.err
19280
cat conftest.err >&5
19281
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19282
(exit $ac_status); } &&
19283
{ ac_try='test -z "$ac_c_werror_flag"
19284
|| test ! -s conftest.err'
19285
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19286
(eval $ac_try) 2>&5
19288
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19289
(exit $ac_status); }; } &&
19290
{ ac_try='test -s conftest$ac_exeext'
19291
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19292
(eval $ac_try) 2>&5
19294
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19295
(exit $ac_status); }; }; then
19296
eval "$as_ac_Lib=yes"
19298
echo "$as_me: failed program was:" >&5
19299
sed 's/^/| /' conftest.$ac_ext >&5
19301
eval "$as_ac_Lib=no"
19303
rm -f conftest.err conftest.$ac_objext \
19304
conftest$ac_exeext conftest.$ac_ext
19305
LIBS=$ac_check_lib_save_LIBS
19307
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
19308
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
19309
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
19324
# If we found it, no need to search any more.
19325
if test "$result" = "yes"; then
19330
test "$found" != "not" && break
19332
test "$found" != "not" && break
19335
# Restore the original values of the flags we tweak.
19336
LDFLAGS="$apu_check_lib_save_ldflags"
19337
CPPFLAGS="$apu_check_lib_save_cppflags"
19344
apu_db_header=$bdb_header
19345
apu_db_lib=$bdb_libname
19349
header="`echo $found | sed -e 's/:.*$//'`"
19350
lib="`echo $found | sed -e 's/^.*://'`"
19353
if test "x$APRUTIL_INCLUDES" = "x"; then
19354
test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$header\""
19355
APRUTIL_INCLUDES="-I$header"
19357
apr_addto_bugger="-I$header"
19358
for i in $apr_addto_bugger; do
19359
apr_addto_duplicate="0"
19360
for j in $APRUTIL_INCLUDES; do
19361
if test "x$i" = "x$j"; then
19362
apr_addto_duplicate="1"
19366
if test $apr_addto_duplicate = "0"; then
19367
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES"
19368
APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
19374
if test "x$APRUTIL_LDFLAGS" = "x"; then
19375
test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$lib\""
19376
APRUTIL_LDFLAGS="-L$lib"
19378
apr_addto_bugger="-L$lib"
19379
for i in $apr_addto_bugger; do
19380
apr_addto_duplicate="0"
19381
for j in $APRUTIL_LDFLAGS; do
19382
if test "x$i" = "x$j"; then
19383
apr_addto_duplicate="1"
19387
if test $apr_addto_duplicate = "0"; then
19388
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS"
19389
APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
19394
apu_db_header=$bdb_header
19395
apu_db_lib=$bdb_libname
19400
if test "x$APRUTIL_INCLUDES" = "x"; then
19401
test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$found/include\""
19402
APRUTIL_INCLUDES="-I$found/include"
19404
apr_addto_bugger="-I$found/include"
19405
for i in $apr_addto_bugger; do
19406
apr_addto_duplicate="0"
19407
for j in $APRUTIL_INCLUDES; do
19408
if test "x$i" = "x$j"; then
19409
apr_addto_duplicate="1"
19413
if test $apr_addto_duplicate = "0"; then
19414
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES"
19415
APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
19421
if test "x$APRUTIL_LDFLAGS" = "x"; then
19422
test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$found/lib\""
19423
APRUTIL_LDFLAGS="-L$found/lib"
19425
apr_addto_bugger="-L$found/lib"
19426
for i in $apr_addto_bugger; do
19427
apr_addto_duplicate="0"
19428
for j in $APRUTIL_LDFLAGS; do
19429
if test "x$i" = "x$j"; then
19430
apr_addto_duplicate="1"
19434
if test $apr_addto_duplicate = "0"; then
19435
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS"
19436
APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
19441
apu_db_header=$bdb_header
19442
apu_db_lib=$bdb_libname
19447
if test "$apu_have_db" = "1"; then
19451
if test "$apu_db_version" != "1"; then
19453
places="$all_places"
19454
if test -z "$places"; then
19459
if test "-1" != "-1"; then
19460
bdb_version="$bdb_version.-1"
19461
if test "-1" != "-1"; then
19462
bdb_version="$bdb_version.-1"
19465
bdb_places="$places"
19466
bdb_default_search_headers="db_185.h"
19467
bdb_default_search_lib_names="db"
19472
# Save the original values of the flags we tweak.
19473
apu_check_lib_save_libs="$LIBS"
19474
apu_check_lib_save_ldflags="$LDFLAGS"
19475
apu_check_lib_save_cppflags="$CPPFLAGS"
19477
# The variable `found' is the prefix under which we've found
19478
# Berkeley DB, or `not' if we haven't found it anywhere yet.
19480
for bdb_place in $bdb_places; do
19482
LDFLAGS="$apu_check_lib_save_ldflags"
19483
CPPFLAGS="$apu_check_lib_save_cppflags"
19484
case "$bdb_place" in
19486
description="the standard places"
19489
header="`echo $bdb_place | sed -e 's/:.*$//'`"
19490
lib="`echo $bdb_place | sed -e 's/^.*://'`"
19491
CPPFLAGS="$CPPFLAGS -I$header"
19492
LDFLAGS="$LDFLAGS -L$lib"
19493
description="$header and $lib"
19496
if test -d $bdb_place; then
19497
LDFLAGS="$LDFLAGS -L$bdb_place/lib"
19498
CPPFLAGS="$CPPFLAGS -I$bdb_place/include"
19500
echo "$as_me:$LINENO: checking for Berkeley DB $bdb_version in $bdb_place" >&5
19501
echo $ECHO_N "checking for Berkeley DB $bdb_version in $bdb_place... $ECHO_C" >&6
19502
echo "$as_me:$LINENO: result: directory not found" >&5
19503
echo "${ECHO_T}directory not found" >&6
19506
description="$bdb_place"
19510
# Since there is no AC_MSG_NOTICE in autoconf 2.13, we use this
19511
# trick to display a message instead.
19512
echo "$as_me:$LINENO: checking for Berkeley DB $bdb_version in $description" >&5
19513
echo $ECHO_N "checking for Berkeley DB $bdb_version in $description... $ECHO_C" >&6
19514
echo "$as_me:$LINENO: result: " >&5
19515
echo "${ECHO_T}" >&6
19517
for bdb_libname in $bdb_default_search_lib_names; do
19518
for bdb_header in $bdb_default_search_headers; do
19519
# Clear the header cache variable for each location
19521
cache_id="`echo ac_cv_header_${bdb_header} \
19522
| sed -e 's/[^a-zA-Z0-9_]/_/g'`"
19525
as_ac_Header=`echo "ac_cv_header_$bdb_header" | $as_tr_sh`
19526
if eval "test \"\${$as_ac_Header+set}\" = set"; then
19527
echo "$as_me:$LINENO: checking for $bdb_header" >&5
19528
echo $ECHO_N "checking for $bdb_header... $ECHO_C" >&6
19529
if eval "test \"\${$as_ac_Header+set}\" = set"; then
19530
echo $ECHO_N "(cached) $ECHO_C" >&6
19532
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19533
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19535
# Is the header compilable?
19536
echo "$as_me:$LINENO: checking $bdb_header usability" >&5
19537
echo $ECHO_N "checking $bdb_header usability... $ECHO_C" >&6
19538
cat >conftest.$ac_ext <<_ACEOF
19541
cat confdefs.h >>conftest.$ac_ext
19542
cat >>conftest.$ac_ext <<_ACEOF
19543
/* end confdefs.h. */
19544
$ac_includes_default
19545
#include <$bdb_header>
19547
rm -f conftest.$ac_objext
19548
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19549
(eval $ac_compile) 2>conftest.er1
19551
grep -v '^ *+' conftest.er1 >conftest.err
19553
cat conftest.err >&5
19554
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19555
(exit $ac_status); } &&
19556
{ ac_try='test -z "$ac_c_werror_flag"
19557
|| test ! -s conftest.err'
19558
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19559
(eval $ac_try) 2>&5
19561
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19562
(exit $ac_status); }; } &&
19563
{ ac_try='test -s conftest.$ac_objext'
19564
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19565
(eval $ac_try) 2>&5
19567
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19568
(exit $ac_status); }; }; then
19569
ac_header_compiler=yes
19571
echo "$as_me: failed program was:" >&5
19572
sed 's/^/| /' conftest.$ac_ext >&5
19574
ac_header_compiler=no
19576
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19577
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19578
echo "${ECHO_T}$ac_header_compiler" >&6
19580
# Is the header present?
19581
echo "$as_me:$LINENO: checking $bdb_header presence" >&5
19582
echo $ECHO_N "checking $bdb_header presence... $ECHO_C" >&6
19583
cat >conftest.$ac_ext <<_ACEOF
19586
cat confdefs.h >>conftest.$ac_ext
19587
cat >>conftest.$ac_ext <<_ACEOF
19588
/* end confdefs.h. */
19589
#include <$bdb_header>
19591
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19592
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19594
grep -v '^ *+' conftest.er1 >conftest.err
19596
cat conftest.err >&5
19597
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19598
(exit $ac_status); } >/dev/null; then
19599
if test -s conftest.err; then
19600
ac_cpp_err=$ac_c_preproc_warn_flag
19601
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19608
if test -z "$ac_cpp_err"; then
19609
ac_header_preproc=yes
19611
echo "$as_me: failed program was:" >&5
19612
sed 's/^/| /' conftest.$ac_ext >&5
19614
ac_header_preproc=no
19616
rm -f conftest.err conftest.$ac_ext
19617
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19618
echo "${ECHO_T}$ac_header_preproc" >&6
19620
# So? What about this header?
19621
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19623
{ echo "$as_me:$LINENO: WARNING: $bdb_header: accepted by the compiler, rejected by the preprocessor!" >&5
19624
echo "$as_me: WARNING: $bdb_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19625
{ echo "$as_me:$LINENO: WARNING: $bdb_header: proceeding with the compiler's result" >&5
19626
echo "$as_me: WARNING: $bdb_header: proceeding with the compiler's result" >&2;}
19627
ac_header_preproc=yes
19630
{ echo "$as_me:$LINENO: WARNING: $bdb_header: present but cannot be compiled" >&5
19631
echo "$as_me: WARNING: $bdb_header: present but cannot be compiled" >&2;}
19632
{ echo "$as_me:$LINENO: WARNING: $bdb_header: check for missing prerequisite headers?" >&5
19633
echo "$as_me: WARNING: $bdb_header: check for missing prerequisite headers?" >&2;}
19634
{ echo "$as_me:$LINENO: WARNING: $bdb_header: see the Autoconf documentation" >&5
19635
echo "$as_me: WARNING: $bdb_header: see the Autoconf documentation" >&2;}
19636
{ echo "$as_me:$LINENO: WARNING: $bdb_header: section \"Present But Cannot Be Compiled\"" >&5
19637
echo "$as_me: WARNING: $bdb_header: section \"Present But Cannot Be Compiled\"" >&2;}
19638
{ echo "$as_me:$LINENO: WARNING: $bdb_header: proceeding with the preprocessor's result" >&5
19639
echo "$as_me: WARNING: $bdb_header: proceeding with the preprocessor's result" >&2;}
19640
{ echo "$as_me:$LINENO: WARNING: $bdb_header: in the future, the compiler will take precedence" >&5
19641
echo "$as_me: WARNING: $bdb_header: in the future, the compiler will take precedence" >&2;}
19644
## ------------------------------------------ ##
19645
## Report this to the AC_PACKAGE_NAME lists. ##
19646
## ------------------------------------------ ##
19649
sed "s/^/$as_me: WARNING: /" >&2
19652
echo "$as_me:$LINENO: checking for $bdb_header" >&5
19653
echo $ECHO_N "checking for $bdb_header... $ECHO_C" >&6
19654
if eval "test \"\${$as_ac_Header+set}\" = set"; then
19655
echo $ECHO_N "(cached) $ECHO_C" >&6
19657
eval "$as_ac_Header=\$ac_header_preproc"
19659
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19660
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19663
if test `eval echo '${'$as_ac_Header'}'` = yes; then
19665
if test "1" = "3" -o "1" = "4"; then
19666
# We generate a separate cache variable for each prefix and libname
19667
# we search under. That way, we avoid caching information that
19668
# changes if the user runs `configure' with a different set of
19671
cache_id="`echo apu_cv_check_berkeley_db_1_-1_-1_${bdb_header}_${bdb_libname}_in_${bdb_place} \
19672
| sed -e 's/[^a-zA-Z0-9_]/_/g'`"
19675
echo "$as_me:$LINENO: checking for -l$bdb_libname" >&5
19676
echo $ECHO_N "checking for -l$bdb_libname... $ECHO_C" >&6
19677
if eval "test \"\${$cache_id+set}\" = set"; then
19678
echo $ECHO_N "(cached) $ECHO_C" >&6
19682
apu_try_berkeley_db_save_libs="$LIBS"
19684
apu_check_berkeley_db_major=1
19685
apu_check_berkeley_db_minor=-1
19686
apu_check_berkeley_db_patch=-1
19687
apu_try_berkeley_db_header=$bdb_header
19688
apu_try_berkeley_db_libname=$bdb_libname
19690
LIBS="$LIBS -l$apu_try_berkeley_db_libname"
19691
if test "$cross_compiling" = yes; then
19692
apu_try_berkeley_db=yes
19695
cat >conftest.$ac_ext <<_ACEOF
19698
cat confdefs.h >>conftest.$ac_ext
19699
cat >>conftest.$ac_ext <<_ACEOF
19700
/* end confdefs.h. */
19703
#include <$apu_try_berkeley_db_header>
19706
int major, minor, patch;
19708
db_version(&major, &minor, &patch);
19710
/* Sanity check: ensure that db.h constants actually match the db library */
19711
if (major != DB_VERSION_MAJOR
19712
|| minor != DB_VERSION_MINOR
19713
|| patch != DB_VERSION_PATCH)
19716
/* Run-time check: ensure the library claims to be the correct version. */
19718
if ($apu_check_berkeley_db_major != -1) {
19719
if (major < $apu_check_berkeley_db_major)
19721
if (major > $apu_check_berkeley_db_major)
19725
if ($apu_check_berkeley_db_minor != -1) {
19726
if (minor < $apu_check_berkeley_db_minor)
19728
if (minor > $apu_check_berkeley_db_minor)
19732
if ($apu_check_berkeley_db_patch == -1
19733
|| patch >= $apu_check_berkeley_db_patch)
19740
rm -f conftest$ac_exeext
19741
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19742
(eval $ac_link) 2>&5
19744
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19745
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19746
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19747
(eval $ac_try) 2>&5
19749
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19750
(exit $ac_status); }; }; then
19751
apu_try_berkeley_db=yes
19753
echo "$as_me: program exited with status $ac_status" >&5
19754
echo "$as_me: failed program was:" >&5
19755
sed 's/^/| /' conftest.$ac_ext >&5
19757
( exit $ac_status )
19758
apu_try_berkeley_db=no
19760
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19763
LIBS="$apu_try_berkeley_db_save_libs"
19766
eval "$cache_id=$apu_try_berkeley_db"
19770
result="`eval echo '$'$cache_id`"
19771
echo "$as_me:$LINENO: result: $result" >&5
19772
echo "${ECHO_T}$result" >&6
19773
elif test "1" = "1"; then
19774
as_ac_Lib=`echo "ac_cv_lib_$bdb_libname''_dbopen" | $as_tr_sh`
19775
echo "$as_me:$LINENO: checking for dbopen in -l$bdb_libname" >&5
19776
echo $ECHO_N "checking for dbopen in -l$bdb_libname... $ECHO_C" >&6
19777
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
19778
echo $ECHO_N "(cached) $ECHO_C" >&6
19780
ac_check_lib_save_LIBS=$LIBS
19781
LIBS="-l$bdb_libname $LIBS"
19782
cat >conftest.$ac_ext <<_ACEOF
19785
cat confdefs.h >>conftest.$ac_ext
19786
cat >>conftest.$ac_ext <<_ACEOF
19787
/* end confdefs.h. */
19789
/* Override any gcc2 internal prototype to avoid an error. */
19793
/* We use char because int might match the return type of a gcc2
19794
builtin and then its argument prototype would still apply. */
19804
rm -f conftest.$ac_objext conftest$ac_exeext
19805
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19806
(eval $ac_link) 2>conftest.er1
19808
grep -v '^ *+' conftest.er1 >conftest.err
19810
cat conftest.err >&5
19811
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19812
(exit $ac_status); } &&
19813
{ ac_try='test -z "$ac_c_werror_flag"
19814
|| test ! -s conftest.err'
19815
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19816
(eval $ac_try) 2>&5
19818
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19819
(exit $ac_status); }; } &&
19820
{ ac_try='test -s conftest$ac_exeext'
19821
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19822
(eval $ac_try) 2>&5
19824
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19825
(exit $ac_status); }; }; then
19826
eval "$as_ac_Lib=yes"
19828
echo "$as_me: failed program was:" >&5
19829
sed 's/^/| /' conftest.$ac_ext >&5
19831
eval "$as_ac_Lib=no"
19833
rm -f conftest.err conftest.$ac_objext \
19834
conftest$ac_exeext conftest.$ac_ext
19835
LIBS=$ac_check_lib_save_LIBS
19837
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
19838
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
19839
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
19846
elif test "1" = "2"; then
19847
as_ac_Lib=`echo "ac_cv_lib_$bdb_libname''_db_open" | $as_tr_sh`
19848
echo "$as_me:$LINENO: checking for db_open in -l$bdb_libname" >&5
19849
echo $ECHO_N "checking for db_open in -l$bdb_libname... $ECHO_C" >&6
19850
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
19851
echo $ECHO_N "(cached) $ECHO_C" >&6
19853
ac_check_lib_save_LIBS=$LIBS
19854
LIBS="-l$bdb_libname $LIBS"
19855
cat >conftest.$ac_ext <<_ACEOF
19858
cat confdefs.h >>conftest.$ac_ext
19859
cat >>conftest.$ac_ext <<_ACEOF
19860
/* end confdefs.h. */
19862
/* Override any gcc2 internal prototype to avoid an error. */
19866
/* We use char because int might match the return type of a gcc2
19867
builtin and then its argument prototype would still apply. */
19877
rm -f conftest.$ac_objext conftest$ac_exeext
19878
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19879
(eval $ac_link) 2>conftest.er1
19881
grep -v '^ *+' conftest.er1 >conftest.err
19883
cat conftest.err >&5
19884
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19885
(exit $ac_status); } &&
19886
{ ac_try='test -z "$ac_c_werror_flag"
19887
|| test ! -s conftest.err'
19888
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19889
(eval $ac_try) 2>&5
19891
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19892
(exit $ac_status); }; } &&
19893
{ ac_try='test -s conftest$ac_exeext'
19894
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19895
(eval $ac_try) 2>&5
19897
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19898
(exit $ac_status); }; }; then
19899
eval "$as_ac_Lib=yes"
19901
echo "$as_me: failed program was:" >&5
19902
sed 's/^/| /' conftest.$ac_ext >&5
19904
eval "$as_ac_Lib=no"
19906
rm -f conftest.err conftest.$ac_objext \
19907
conftest$ac_exeext conftest.$ac_ext
19908
LIBS=$ac_check_lib_save_LIBS
19910
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
19911
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
19912
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
19927
# If we found it, no need to search any more.
19928
if test "$result" = "yes"; then
19933
test "$found" != "not" && break
19935
test "$found" != "not" && break
19938
# Restore the original values of the flags we tweak.
19939
LDFLAGS="$apu_check_lib_save_ldflags"
19940
CPPFLAGS="$apu_check_lib_save_cppflags"
19947
apu_db_header=$bdb_header
19948
apu_db_lib=$bdb_libname
19952
header="`echo $found | sed -e 's/:.*$//'`"
19953
lib="`echo $found | sed -e 's/^.*://'`"
19956
if test "x$APRUTIL_INCLUDES" = "x"; then
19957
test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$header\""
19958
APRUTIL_INCLUDES="-I$header"
19960
apr_addto_bugger="-I$header"
19961
for i in $apr_addto_bugger; do
19962
apr_addto_duplicate="0"
19963
for j in $APRUTIL_INCLUDES; do
19964
if test "x$i" = "x$j"; then
19965
apr_addto_duplicate="1"
19969
if test $apr_addto_duplicate = "0"; then
19970
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES"
19971
APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
19977
if test "x$APRUTIL_LDFLAGS" = "x"; then
19978
test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$lib\""
19979
APRUTIL_LDFLAGS="-L$lib"
19981
apr_addto_bugger="-L$lib"
19982
for i in $apr_addto_bugger; do
19983
apr_addto_duplicate="0"
19984
for j in $APRUTIL_LDFLAGS; do
19985
if test "x$i" = "x$j"; then
19986
apr_addto_duplicate="1"
19990
if test $apr_addto_duplicate = "0"; then
19991
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS"
19992
APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
19997
apu_db_header=$bdb_header
19998
apu_db_lib=$bdb_libname
20003
if test "x$APRUTIL_INCLUDES" = "x"; then
20004
test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$found/include\""
20005
APRUTIL_INCLUDES="-I$found/include"
20007
apr_addto_bugger="-I$found/include"
20008
for i in $apr_addto_bugger; do
20009
apr_addto_duplicate="0"
20010
for j in $APRUTIL_INCLUDES; do
20011
if test "x$i" = "x$j"; then
20012
apr_addto_duplicate="1"
20016
if test $apr_addto_duplicate = "0"; then
20017
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES"
20018
APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
20024
if test "x$APRUTIL_LDFLAGS" = "x"; then
20025
test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$found/lib\""
20026
APRUTIL_LDFLAGS="-L$found/lib"
20028
apr_addto_bugger="-L$found/lib"
20029
for i in $apr_addto_bugger; do
20030
apr_addto_duplicate="0"
20031
for j in $APRUTIL_LDFLAGS; do
20032
if test "x$i" = "x$j"; then
20033
apr_addto_duplicate="1"
20037
if test $apr_addto_duplicate = "0"; then
20038
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS"
20039
APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
20044
apu_db_header=$bdb_header
20045
apu_db_lib=$bdb_libname
20050
if test "$apu_have_db" = "1"; then
20062
echo "$as_me:$LINENO: checking for Berkeley DB" >&5
20063
echo $ECHO_N "checking for Berkeley DB... $ECHO_C" >&6
20064
if test "$apu_have_db" = "1"; then
20065
echo "$as_me:$LINENO: result: found db$apu_db_version" >&5
20066
echo "${ECHO_T}found db$apu_db_version" >&6
20068
echo "$as_me:$LINENO: result: not found" >&5
20069
echo "${ECHO_T}not found" >&6
20072
if test "$apu_have_db" = "0"; then
20073
{ { echo "$as_me:$LINENO: error: Berkeley db requested" >&5
20074
echo "$as_me: error: Berkeley db requested" >&2;}
20075
{ (exit but not found); exit but not found; }; }
20080
places="$check_places"
20081
if test -z "$places"; then
20086
if test "0" != "-1"; then
20087
bdb_version="$bdb_version.0"
20088
if test "0" != "-1"; then
20089
bdb_version="$bdb_version.0"
20092
bdb_places="$places"
20093
bdb_default_search_headers="db1/db.h db.h"
20094
bdb_default_search_lib_names="db1"
20099
# Save the original values of the flags we tweak.
20100
apu_check_lib_save_libs="$LIBS"
20101
apu_check_lib_save_ldflags="$LDFLAGS"
20102
apu_check_lib_save_cppflags="$CPPFLAGS"
20104
# The variable `found' is the prefix under which we've found
20105
# Berkeley DB, or `not' if we haven't found it anywhere yet.
20107
for bdb_place in $bdb_places; do
20109
LDFLAGS="$apu_check_lib_save_ldflags"
20110
CPPFLAGS="$apu_check_lib_save_cppflags"
20111
case "$bdb_place" in
20113
description="the standard places"
20116
header="`echo $bdb_place | sed -e 's/:.*$//'`"
20117
lib="`echo $bdb_place | sed -e 's/^.*://'`"
20118
CPPFLAGS="$CPPFLAGS -I$header"
20119
LDFLAGS="$LDFLAGS -L$lib"
20120
description="$header and $lib"
20123
if test -d $bdb_place; then
20124
LDFLAGS="$LDFLAGS -L$bdb_place/lib"
20125
CPPFLAGS="$CPPFLAGS -I$bdb_place/include"
20127
echo "$as_me:$LINENO: checking for Berkeley DB $bdb_version in $bdb_place" >&5
20128
echo $ECHO_N "checking for Berkeley DB $bdb_version in $bdb_place... $ECHO_C" >&6
20129
echo "$as_me:$LINENO: result: directory not found" >&5
20130
echo "${ECHO_T}directory not found" >&6
20133
description="$bdb_place"
20137
# Since there is no AC_MSG_NOTICE in autoconf 2.13, we use this
20138
# trick to display a message instead.
20139
echo "$as_me:$LINENO: checking for Berkeley DB $bdb_version in $description" >&5
20140
echo $ECHO_N "checking for Berkeley DB $bdb_version in $description... $ECHO_C" >&6
20141
echo "$as_me:$LINENO: result: " >&5
20142
echo "${ECHO_T}" >&6
20144
for bdb_libname in $bdb_default_search_lib_names; do
20145
for bdb_header in $bdb_default_search_headers; do
20146
# Clear the header cache variable for each location
20148
cache_id="`echo ac_cv_header_${bdb_header} \
20149
| sed -e 's/[^a-zA-Z0-9_]/_/g'`"
20152
as_ac_Header=`echo "ac_cv_header_$bdb_header" | $as_tr_sh`
20153
if eval "test \"\${$as_ac_Header+set}\" = set"; then
20154
echo "$as_me:$LINENO: checking for $bdb_header" >&5
20155
echo $ECHO_N "checking for $bdb_header... $ECHO_C" >&6
20156
if eval "test \"\${$as_ac_Header+set}\" = set"; then
20157
echo $ECHO_N "(cached) $ECHO_C" >&6
20159
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20160
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20162
# Is the header compilable?
20163
echo "$as_me:$LINENO: checking $bdb_header usability" >&5
20164
echo $ECHO_N "checking $bdb_header usability... $ECHO_C" >&6
20165
cat >conftest.$ac_ext <<_ACEOF
20168
cat confdefs.h >>conftest.$ac_ext
20169
cat >>conftest.$ac_ext <<_ACEOF
20170
/* end confdefs.h. */
20171
$ac_includes_default
20172
#include <$bdb_header>
20174
rm -f conftest.$ac_objext
20175
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20176
(eval $ac_compile) 2>conftest.er1
20178
grep -v '^ *+' conftest.er1 >conftest.err
20180
cat conftest.err >&5
20181
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20182
(exit $ac_status); } &&
20183
{ ac_try='test -z "$ac_c_werror_flag"
20184
|| test ! -s conftest.err'
20185
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20186
(eval $ac_try) 2>&5
20188
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20189
(exit $ac_status); }; } &&
20190
{ ac_try='test -s conftest.$ac_objext'
20191
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20192
(eval $ac_try) 2>&5
20194
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20195
(exit $ac_status); }; }; then
20196
ac_header_compiler=yes
20198
echo "$as_me: failed program was:" >&5
20199
sed 's/^/| /' conftest.$ac_ext >&5
20201
ac_header_compiler=no
20203
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20204
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20205
echo "${ECHO_T}$ac_header_compiler" >&6
20207
# Is the header present?
20208
echo "$as_me:$LINENO: checking $bdb_header presence" >&5
20209
echo $ECHO_N "checking $bdb_header presence... $ECHO_C" >&6
20210
cat >conftest.$ac_ext <<_ACEOF
20213
cat confdefs.h >>conftest.$ac_ext
20214
cat >>conftest.$ac_ext <<_ACEOF
20215
/* end confdefs.h. */
20216
#include <$bdb_header>
20218
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20219
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20221
grep -v '^ *+' conftest.er1 >conftest.err
20223
cat conftest.err >&5
20224
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20225
(exit $ac_status); } >/dev/null; then
20226
if test -s conftest.err; then
20227
ac_cpp_err=$ac_c_preproc_warn_flag
20228
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20235
if test -z "$ac_cpp_err"; then
20236
ac_header_preproc=yes
20238
echo "$as_me: failed program was:" >&5
20239
sed 's/^/| /' conftest.$ac_ext >&5
20241
ac_header_preproc=no
20243
rm -f conftest.err conftest.$ac_ext
20244
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20245
echo "${ECHO_T}$ac_header_preproc" >&6
20247
# So? What about this header?
20248
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20250
{ echo "$as_me:$LINENO: WARNING: $bdb_header: accepted by the compiler, rejected by the preprocessor!" >&5
20251
echo "$as_me: WARNING: $bdb_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20252
{ echo "$as_me:$LINENO: WARNING: $bdb_header: proceeding with the compiler's result" >&5
20253
echo "$as_me: WARNING: $bdb_header: proceeding with the compiler's result" >&2;}
20254
ac_header_preproc=yes
20257
{ echo "$as_me:$LINENO: WARNING: $bdb_header: present but cannot be compiled" >&5
20258
echo "$as_me: WARNING: $bdb_header: present but cannot be compiled" >&2;}
20259
{ echo "$as_me:$LINENO: WARNING: $bdb_header: check for missing prerequisite headers?" >&5
20260
echo "$as_me: WARNING: $bdb_header: check for missing prerequisite headers?" >&2;}
20261
{ echo "$as_me:$LINENO: WARNING: $bdb_header: see the Autoconf documentation" >&5
20262
echo "$as_me: WARNING: $bdb_header: see the Autoconf documentation" >&2;}
20263
{ echo "$as_me:$LINENO: WARNING: $bdb_header: section \"Present But Cannot Be Compiled\"" >&5
20264
echo "$as_me: WARNING: $bdb_header: section \"Present But Cannot Be Compiled\"" >&2;}
20265
{ echo "$as_me:$LINENO: WARNING: $bdb_header: proceeding with the preprocessor's result" >&5
20266
echo "$as_me: WARNING: $bdb_header: proceeding with the preprocessor's result" >&2;}
20267
{ echo "$as_me:$LINENO: WARNING: $bdb_header: in the future, the compiler will take precedence" >&5
20268
echo "$as_me: WARNING: $bdb_header: in the future, the compiler will take precedence" >&2;}
20271
## ------------------------------------------ ##
20272
## Report this to the AC_PACKAGE_NAME lists. ##
20273
## ------------------------------------------ ##
20276
sed "s/^/$as_me: WARNING: /" >&2
20279
echo "$as_me:$LINENO: checking for $bdb_header" >&5
20280
echo $ECHO_N "checking for $bdb_header... $ECHO_C" >&6
20281
if eval "test \"\${$as_ac_Header+set}\" = set"; then
20282
echo $ECHO_N "(cached) $ECHO_C" >&6
20284
eval "$as_ac_Header=\$ac_header_preproc"
20286
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20287
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20290
if test `eval echo '${'$as_ac_Header'}'` = yes; then
20292
if test "1" = "3" -o "1" = "4"; then
20293
# We generate a separate cache variable for each prefix and libname
20294
# we search under. That way, we avoid caching information that
20295
# changes if the user runs `configure' with a different set of
20298
cache_id="`echo apu_cv_check_berkeley_db_1_0_0_${bdb_header}_${bdb_libname}_in_${bdb_place} \
20299
| sed -e 's/[^a-zA-Z0-9_]/_/g'`"
20302
echo "$as_me:$LINENO: checking for -l$bdb_libname" >&5
20303
echo $ECHO_N "checking for -l$bdb_libname... $ECHO_C" >&6
20304
if eval "test \"\${$cache_id+set}\" = set"; then
20305
echo $ECHO_N "(cached) $ECHO_C" >&6
20309
apu_try_berkeley_db_save_libs="$LIBS"
20311
apu_check_berkeley_db_major=1
20312
apu_check_berkeley_db_minor=0
20313
apu_check_berkeley_db_patch=0
20314
apu_try_berkeley_db_header=$bdb_header
20315
apu_try_berkeley_db_libname=$bdb_libname
20317
LIBS="$LIBS -l$apu_try_berkeley_db_libname"
20318
if test "$cross_compiling" = yes; then
20319
apu_try_berkeley_db=yes
20322
cat >conftest.$ac_ext <<_ACEOF
20325
cat confdefs.h >>conftest.$ac_ext
20326
cat >>conftest.$ac_ext <<_ACEOF
20327
/* end confdefs.h. */
20330
#include <$apu_try_berkeley_db_header>
20333
int major, minor, patch;
20335
db_version(&major, &minor, &patch);
20337
/* Sanity check: ensure that db.h constants actually match the db library */
20338
if (major != DB_VERSION_MAJOR
20339
|| minor != DB_VERSION_MINOR
20340
|| patch != DB_VERSION_PATCH)
20343
/* Run-time check: ensure the library claims to be the correct version. */
20345
if ($apu_check_berkeley_db_major != -1) {
20346
if (major < $apu_check_berkeley_db_major)
20348
if (major > $apu_check_berkeley_db_major)
20352
if ($apu_check_berkeley_db_minor != -1) {
20353
if (minor < $apu_check_berkeley_db_minor)
20355
if (minor > $apu_check_berkeley_db_minor)
20359
if ($apu_check_berkeley_db_patch == -1
20360
|| patch >= $apu_check_berkeley_db_patch)
20367
rm -f conftest$ac_exeext
20368
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20369
(eval $ac_link) 2>&5
20371
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20372
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20373
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20374
(eval $ac_try) 2>&5
20376
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20377
(exit $ac_status); }; }; then
20378
apu_try_berkeley_db=yes
20380
echo "$as_me: program exited with status $ac_status" >&5
20381
echo "$as_me: failed program was:" >&5
20382
sed 's/^/| /' conftest.$ac_ext >&5
20384
( exit $ac_status )
20385
apu_try_berkeley_db=no
20387
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20390
LIBS="$apu_try_berkeley_db_save_libs"
20393
eval "$cache_id=$apu_try_berkeley_db"
20397
result="`eval echo '$'$cache_id`"
20398
echo "$as_me:$LINENO: result: $result" >&5
20399
echo "${ECHO_T}$result" >&6
20400
elif test "1" = "1"; then
20401
as_ac_Lib=`echo "ac_cv_lib_$bdb_libname''_dbopen" | $as_tr_sh`
20402
echo "$as_me:$LINENO: checking for dbopen in -l$bdb_libname" >&5
20403
echo $ECHO_N "checking for dbopen in -l$bdb_libname... $ECHO_C" >&6
20404
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
20405
echo $ECHO_N "(cached) $ECHO_C" >&6
20407
ac_check_lib_save_LIBS=$LIBS
20408
LIBS="-l$bdb_libname $LIBS"
20409
cat >conftest.$ac_ext <<_ACEOF
20412
cat confdefs.h >>conftest.$ac_ext
20413
cat >>conftest.$ac_ext <<_ACEOF
20414
/* end confdefs.h. */
20416
/* Override any gcc2 internal prototype to avoid an error. */
20420
/* We use char because int might match the return type of a gcc2
20421
builtin and then its argument prototype would still apply. */
20431
rm -f conftest.$ac_objext conftest$ac_exeext
20432
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20433
(eval $ac_link) 2>conftest.er1
20435
grep -v '^ *+' conftest.er1 >conftest.err
20437
cat conftest.err >&5
20438
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20439
(exit $ac_status); } &&
20440
{ ac_try='test -z "$ac_c_werror_flag"
20441
|| test ! -s conftest.err'
20442
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20443
(eval $ac_try) 2>&5
20445
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20446
(exit $ac_status); }; } &&
20447
{ ac_try='test -s conftest$ac_exeext'
20448
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20449
(eval $ac_try) 2>&5
20451
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20452
(exit $ac_status); }; }; then
20453
eval "$as_ac_Lib=yes"
20455
echo "$as_me: failed program was:" >&5
20456
sed 's/^/| /' conftest.$ac_ext >&5
20458
eval "$as_ac_Lib=no"
20460
rm -f conftest.err conftest.$ac_objext \
20461
conftest$ac_exeext conftest.$ac_ext
20462
LIBS=$ac_check_lib_save_LIBS
20464
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
20465
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
20466
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
20473
elif test "1" = "2"; then
20474
as_ac_Lib=`echo "ac_cv_lib_$bdb_libname''_db_open" | $as_tr_sh`
20475
echo "$as_me:$LINENO: checking for db_open in -l$bdb_libname" >&5
20476
echo $ECHO_N "checking for db_open in -l$bdb_libname... $ECHO_C" >&6
20477
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
20478
echo $ECHO_N "(cached) $ECHO_C" >&6
20480
ac_check_lib_save_LIBS=$LIBS
20481
LIBS="-l$bdb_libname $LIBS"
20482
cat >conftest.$ac_ext <<_ACEOF
20485
cat confdefs.h >>conftest.$ac_ext
20486
cat >>conftest.$ac_ext <<_ACEOF
20487
/* end confdefs.h. */
20489
/* Override any gcc2 internal prototype to avoid an error. */
20493
/* We use char because int might match the return type of a gcc2
20494
builtin and then its argument prototype would still apply. */
20504
rm -f conftest.$ac_objext conftest$ac_exeext
20505
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20506
(eval $ac_link) 2>conftest.er1
20508
grep -v '^ *+' conftest.er1 >conftest.err
20510
cat conftest.err >&5
20511
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20512
(exit $ac_status); } &&
20513
{ ac_try='test -z "$ac_c_werror_flag"
20514
|| test ! -s conftest.err'
20515
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20516
(eval $ac_try) 2>&5
20518
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20519
(exit $ac_status); }; } &&
20520
{ ac_try='test -s conftest$ac_exeext'
20521
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20522
(eval $ac_try) 2>&5
20524
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20525
(exit $ac_status); }; }; then
20526
eval "$as_ac_Lib=yes"
20528
echo "$as_me: failed program was:" >&5
20529
sed 's/^/| /' conftest.$ac_ext >&5
20531
eval "$as_ac_Lib=no"
20533
rm -f conftest.err conftest.$ac_objext \
20534
conftest$ac_exeext conftest.$ac_ext
20535
LIBS=$ac_check_lib_save_LIBS
20537
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
20538
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
20539
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
20554
# If we found it, no need to search any more.
20555
if test "$result" = "yes"; then
20560
test "$found" != "not" && break
20562
test "$found" != "not" && break
20565
# Restore the original values of the flags we tweak.
20566
LDFLAGS="$apu_check_lib_save_ldflags"
20567
CPPFLAGS="$apu_check_lib_save_cppflags"
20574
apu_db_header=$bdb_header
20575
apu_db_lib=$bdb_libname
20579
header="`echo $found | sed -e 's/:.*$//'`"
20580
lib="`echo $found | sed -e 's/^.*://'`"
20583
if test "x$APRUTIL_INCLUDES" = "x"; then
20584
test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$header\""
20585
APRUTIL_INCLUDES="-I$header"
20587
apr_addto_bugger="-I$header"
20588
for i in $apr_addto_bugger; do
20589
apr_addto_duplicate="0"
20590
for j in $APRUTIL_INCLUDES; do
20591
if test "x$i" = "x$j"; then
20592
apr_addto_duplicate="1"
20596
if test $apr_addto_duplicate = "0"; then
20597
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES"
20598
APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
20604
if test "x$APRUTIL_LDFLAGS" = "x"; then
20605
test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$lib\""
20606
APRUTIL_LDFLAGS="-L$lib"
20608
apr_addto_bugger="-L$lib"
20609
for i in $apr_addto_bugger; do
20610
apr_addto_duplicate="0"
20611
for j in $APRUTIL_LDFLAGS; do
20612
if test "x$i" = "x$j"; then
20613
apr_addto_duplicate="1"
20617
if test $apr_addto_duplicate = "0"; then
20618
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS"
20619
APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
20624
apu_db_header=$bdb_header
20625
apu_db_lib=$bdb_libname
20630
if test "x$APRUTIL_INCLUDES" = "x"; then
20631
test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$found/include\""
20632
APRUTIL_INCLUDES="-I$found/include"
20634
apr_addto_bugger="-I$found/include"
20635
for i in $apr_addto_bugger; do
20636
apr_addto_duplicate="0"
20637
for j in $APRUTIL_INCLUDES; do
20638
if test "x$i" = "x$j"; then
20639
apr_addto_duplicate="1"
20643
if test $apr_addto_duplicate = "0"; then
20644
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES"
20645
APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
20651
if test "x$APRUTIL_LDFLAGS" = "x"; then
20652
test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$found/lib\""
20653
APRUTIL_LDFLAGS="-L$found/lib"
20655
apr_addto_bugger="-L$found/lib"
20656
for i in $apr_addto_bugger; do
20657
apr_addto_duplicate="0"
20658
for j in $APRUTIL_LDFLAGS; do
20659
if test "x$i" = "x$j"; then
20660
apr_addto_duplicate="1"
20664
if test $apr_addto_duplicate = "0"; then
20665
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS"
20666
APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
20671
apu_db_header=$bdb_header
20672
apu_db_lib=$bdb_libname
20677
if test "$apu_have_db" = "1"; then
20681
if test "$apu_db_version" != "1"; then
20682
{ { echo "$as_me:$LINENO: error: Berkeley db1 not found" >&5
20683
echo "$as_me: error: Berkeley db1 not found" >&2;}
20684
{ (exit 1); exit 1; }; }
20689
places="$check_places"
20690
if test -z "$places"; then
20695
if test "-1" != "-1"; then
20696
bdb_version="$bdb_version.-1"
20697
if test "-1" != "-1"; then
20698
bdb_version="$bdb_version.-1"
20701
bdb_places="$places"
20702
bdb_default_search_headers="db_185.h"
20703
bdb_default_search_lib_names="db"
20708
# Save the original values of the flags we tweak.
20709
apu_check_lib_save_libs="$LIBS"
20710
apu_check_lib_save_ldflags="$LDFLAGS"
20711
apu_check_lib_save_cppflags="$CPPFLAGS"
20713
# The variable `found' is the prefix under which we've found
20714
# Berkeley DB, or `not' if we haven't found it anywhere yet.
20716
for bdb_place in $bdb_places; do
20718
LDFLAGS="$apu_check_lib_save_ldflags"
20719
CPPFLAGS="$apu_check_lib_save_cppflags"
20720
case "$bdb_place" in
20722
description="the standard places"
20725
header="`echo $bdb_place | sed -e 's/:.*$//'`"
20726
lib="`echo $bdb_place | sed -e 's/^.*://'`"
20727
CPPFLAGS="$CPPFLAGS -I$header"
20728
LDFLAGS="$LDFLAGS -L$lib"
20729
description="$header and $lib"
20732
if test -d $bdb_place; then
20733
LDFLAGS="$LDFLAGS -L$bdb_place/lib"
20734
CPPFLAGS="$CPPFLAGS -I$bdb_place/include"
20736
echo "$as_me:$LINENO: checking for Berkeley DB $bdb_version in $bdb_place" >&5
20737
echo $ECHO_N "checking for Berkeley DB $bdb_version in $bdb_place... $ECHO_C" >&6
20738
echo "$as_me:$LINENO: result: directory not found" >&5
20739
echo "${ECHO_T}directory not found" >&6
20742
description="$bdb_place"
20746
# Since there is no AC_MSG_NOTICE in autoconf 2.13, we use this
20747
# trick to display a message instead.
20748
echo "$as_me:$LINENO: checking for Berkeley DB $bdb_version in $description" >&5
20749
echo $ECHO_N "checking for Berkeley DB $bdb_version in $description... $ECHO_C" >&6
20750
echo "$as_me:$LINENO: result: " >&5
20751
echo "${ECHO_T}" >&6
20753
for bdb_libname in $bdb_default_search_lib_names; do
20754
for bdb_header in $bdb_default_search_headers; do
20755
# Clear the header cache variable for each location
20757
cache_id="`echo ac_cv_header_${bdb_header} \
20758
| sed -e 's/[^a-zA-Z0-9_]/_/g'`"
20761
as_ac_Header=`echo "ac_cv_header_$bdb_header" | $as_tr_sh`
20762
if eval "test \"\${$as_ac_Header+set}\" = set"; then
20763
echo "$as_me:$LINENO: checking for $bdb_header" >&5
20764
echo $ECHO_N "checking for $bdb_header... $ECHO_C" >&6
20765
if eval "test \"\${$as_ac_Header+set}\" = set"; then
20766
echo $ECHO_N "(cached) $ECHO_C" >&6
20768
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20769
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20771
# Is the header compilable?
20772
echo "$as_me:$LINENO: checking $bdb_header usability" >&5
20773
echo $ECHO_N "checking $bdb_header usability... $ECHO_C" >&6
20774
cat >conftest.$ac_ext <<_ACEOF
20777
cat confdefs.h >>conftest.$ac_ext
20778
cat >>conftest.$ac_ext <<_ACEOF
20779
/* end confdefs.h. */
20780
$ac_includes_default
20781
#include <$bdb_header>
20783
rm -f conftest.$ac_objext
20784
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20785
(eval $ac_compile) 2>conftest.er1
20787
grep -v '^ *+' conftest.er1 >conftest.err
20789
cat conftest.err >&5
20790
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20791
(exit $ac_status); } &&
20792
{ ac_try='test -z "$ac_c_werror_flag"
20793
|| test ! -s conftest.err'
20794
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20795
(eval $ac_try) 2>&5
20797
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20798
(exit $ac_status); }; } &&
20799
{ ac_try='test -s conftest.$ac_objext'
20800
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20801
(eval $ac_try) 2>&5
20803
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20804
(exit $ac_status); }; }; then
20805
ac_header_compiler=yes
20807
echo "$as_me: failed program was:" >&5
20808
sed 's/^/| /' conftest.$ac_ext >&5
20810
ac_header_compiler=no
20812
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20813
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20814
echo "${ECHO_T}$ac_header_compiler" >&6
20816
# Is the header present?
20817
echo "$as_me:$LINENO: checking $bdb_header presence" >&5
20818
echo $ECHO_N "checking $bdb_header presence... $ECHO_C" >&6
20819
cat >conftest.$ac_ext <<_ACEOF
20822
cat confdefs.h >>conftest.$ac_ext
20823
cat >>conftest.$ac_ext <<_ACEOF
20824
/* end confdefs.h. */
20825
#include <$bdb_header>
20827
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20828
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20830
grep -v '^ *+' conftest.er1 >conftest.err
20832
cat conftest.err >&5
20833
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20834
(exit $ac_status); } >/dev/null; then
20835
if test -s conftest.err; then
20836
ac_cpp_err=$ac_c_preproc_warn_flag
20837
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20844
if test -z "$ac_cpp_err"; then
20845
ac_header_preproc=yes
20847
echo "$as_me: failed program was:" >&5
20848
sed 's/^/| /' conftest.$ac_ext >&5
20850
ac_header_preproc=no
20852
rm -f conftest.err conftest.$ac_ext
20853
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20854
echo "${ECHO_T}$ac_header_preproc" >&6
20856
# So? What about this header?
20857
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20859
{ echo "$as_me:$LINENO: WARNING: $bdb_header: accepted by the compiler, rejected by the preprocessor!" >&5
20860
echo "$as_me: WARNING: $bdb_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20861
{ echo "$as_me:$LINENO: WARNING: $bdb_header: proceeding with the compiler's result" >&5
20862
echo "$as_me: WARNING: $bdb_header: proceeding with the compiler's result" >&2;}
20863
ac_header_preproc=yes
20866
{ echo "$as_me:$LINENO: WARNING: $bdb_header: present but cannot be compiled" >&5
20867
echo "$as_me: WARNING: $bdb_header: present but cannot be compiled" >&2;}
20868
{ echo "$as_me:$LINENO: WARNING: $bdb_header: check for missing prerequisite headers?" >&5
20869
echo "$as_me: WARNING: $bdb_header: check for missing prerequisite headers?" >&2;}
20870
{ echo "$as_me:$LINENO: WARNING: $bdb_header: see the Autoconf documentation" >&5
20871
echo "$as_me: WARNING: $bdb_header: see the Autoconf documentation" >&2;}
20872
{ echo "$as_me:$LINENO: WARNING: $bdb_header: section \"Present But Cannot Be Compiled\"" >&5
20873
echo "$as_me: WARNING: $bdb_header: section \"Present But Cannot Be Compiled\"" >&2;}
20874
{ echo "$as_me:$LINENO: WARNING: $bdb_header: proceeding with the preprocessor's result" >&5
20875
echo "$as_me: WARNING: $bdb_header: proceeding with the preprocessor's result" >&2;}
20876
{ echo "$as_me:$LINENO: WARNING: $bdb_header: in the future, the compiler will take precedence" >&5
20877
echo "$as_me: WARNING: $bdb_header: in the future, the compiler will take precedence" >&2;}
20880
## ------------------------------------------ ##
20881
## Report this to the AC_PACKAGE_NAME lists. ##
20882
## ------------------------------------------ ##
20885
sed "s/^/$as_me: WARNING: /" >&2
20888
echo "$as_me:$LINENO: checking for $bdb_header" >&5
20889
echo $ECHO_N "checking for $bdb_header... $ECHO_C" >&6
20890
if eval "test \"\${$as_ac_Header+set}\" = set"; then
20891
echo $ECHO_N "(cached) $ECHO_C" >&6
20893
eval "$as_ac_Header=\$ac_header_preproc"
20895
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20896
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20899
if test `eval echo '${'$as_ac_Header'}'` = yes; then
20901
if test "1" = "3" -o "1" = "4"; then
20902
# We generate a separate cache variable for each prefix and libname
20903
# we search under. That way, we avoid caching information that
20904
# changes if the user runs `configure' with a different set of
20907
cache_id="`echo apu_cv_check_berkeley_db_1_-1_-1_${bdb_header}_${bdb_libname}_in_${bdb_place} \
20908
| sed -e 's/[^a-zA-Z0-9_]/_/g'`"
20911
echo "$as_me:$LINENO: checking for -l$bdb_libname" >&5
20912
echo $ECHO_N "checking for -l$bdb_libname... $ECHO_C" >&6
20913
if eval "test \"\${$cache_id+set}\" = set"; then
20914
echo $ECHO_N "(cached) $ECHO_C" >&6
20918
apu_try_berkeley_db_save_libs="$LIBS"
20920
apu_check_berkeley_db_major=1
20921
apu_check_berkeley_db_minor=-1
20922
apu_check_berkeley_db_patch=-1
20923
apu_try_berkeley_db_header=$bdb_header
20924
apu_try_berkeley_db_libname=$bdb_libname
20926
LIBS="$LIBS -l$apu_try_berkeley_db_libname"
20927
if test "$cross_compiling" = yes; then
20928
apu_try_berkeley_db=yes
20931
cat >conftest.$ac_ext <<_ACEOF
20934
cat confdefs.h >>conftest.$ac_ext
20935
cat >>conftest.$ac_ext <<_ACEOF
20936
/* end confdefs.h. */
20939
#include <$apu_try_berkeley_db_header>
20942
int major, minor, patch;
20944
db_version(&major, &minor, &patch);
20946
/* Sanity check: ensure that db.h constants actually match the db library */
20947
if (major != DB_VERSION_MAJOR
20948
|| minor != DB_VERSION_MINOR
20949
|| patch != DB_VERSION_PATCH)
20952
/* Run-time check: ensure the library claims to be the correct version. */
20954
if ($apu_check_berkeley_db_major != -1) {
20955
if (major < $apu_check_berkeley_db_major)
20957
if (major > $apu_check_berkeley_db_major)
20961
if ($apu_check_berkeley_db_minor != -1) {
20962
if (minor < $apu_check_berkeley_db_minor)
20964
if (minor > $apu_check_berkeley_db_minor)
20968
if ($apu_check_berkeley_db_patch == -1
20969
|| patch >= $apu_check_berkeley_db_patch)
20976
rm -f conftest$ac_exeext
20977
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20978
(eval $ac_link) 2>&5
20980
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20981
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20982
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20983
(eval $ac_try) 2>&5
20985
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20986
(exit $ac_status); }; }; then
20987
apu_try_berkeley_db=yes
20989
echo "$as_me: program exited with status $ac_status" >&5
20990
echo "$as_me: failed program was:" >&5
20991
sed 's/^/| /' conftest.$ac_ext >&5
20993
( exit $ac_status )
20994
apu_try_berkeley_db=no
20996
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20999
LIBS="$apu_try_berkeley_db_save_libs"
21002
eval "$cache_id=$apu_try_berkeley_db"
21006
result="`eval echo '$'$cache_id`"
21007
echo "$as_me:$LINENO: result: $result" >&5
21008
echo "${ECHO_T}$result" >&6
21009
elif test "1" = "1"; then
21010
as_ac_Lib=`echo "ac_cv_lib_$bdb_libname''_dbopen" | $as_tr_sh`
21011
echo "$as_me:$LINENO: checking for dbopen in -l$bdb_libname" >&5
21012
echo $ECHO_N "checking for dbopen in -l$bdb_libname... $ECHO_C" >&6
21013
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
21014
echo $ECHO_N "(cached) $ECHO_C" >&6
21016
ac_check_lib_save_LIBS=$LIBS
21017
LIBS="-l$bdb_libname $LIBS"
21018
cat >conftest.$ac_ext <<_ACEOF
21021
cat confdefs.h >>conftest.$ac_ext
21022
cat >>conftest.$ac_ext <<_ACEOF
21023
/* end confdefs.h. */
21025
/* Override any gcc2 internal prototype to avoid an error. */
21029
/* We use char because int might match the return type of a gcc2
21030
builtin and then its argument prototype would still apply. */
21040
rm -f conftest.$ac_objext conftest$ac_exeext
21041
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21042
(eval $ac_link) 2>conftest.er1
21044
grep -v '^ *+' conftest.er1 >conftest.err
21046
cat conftest.err >&5
21047
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21048
(exit $ac_status); } &&
21049
{ ac_try='test -z "$ac_c_werror_flag"
21050
|| test ! -s conftest.err'
21051
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21052
(eval $ac_try) 2>&5
21054
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21055
(exit $ac_status); }; } &&
21056
{ ac_try='test -s conftest$ac_exeext'
21057
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21058
(eval $ac_try) 2>&5
21060
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21061
(exit $ac_status); }; }; then
21062
eval "$as_ac_Lib=yes"
21064
echo "$as_me: failed program was:" >&5
21065
sed 's/^/| /' conftest.$ac_ext >&5
21067
eval "$as_ac_Lib=no"
21069
rm -f conftest.err conftest.$ac_objext \
21070
conftest$ac_exeext conftest.$ac_ext
21071
LIBS=$ac_check_lib_save_LIBS
21073
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
21074
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
21075
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
21082
elif test "1" = "2"; then
21083
as_ac_Lib=`echo "ac_cv_lib_$bdb_libname''_db_open" | $as_tr_sh`
21084
echo "$as_me:$LINENO: checking for db_open in -l$bdb_libname" >&5
21085
echo $ECHO_N "checking for db_open in -l$bdb_libname... $ECHO_C" >&6
21086
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
21087
echo $ECHO_N "(cached) $ECHO_C" >&6
21089
ac_check_lib_save_LIBS=$LIBS
21090
LIBS="-l$bdb_libname $LIBS"
21091
cat >conftest.$ac_ext <<_ACEOF
21094
cat confdefs.h >>conftest.$ac_ext
21095
cat >>conftest.$ac_ext <<_ACEOF
21096
/* end confdefs.h. */
21098
/* Override any gcc2 internal prototype to avoid an error. */
21102
/* We use char because int might match the return type of a gcc2
21103
builtin and then its argument prototype would still apply. */
21113
rm -f conftest.$ac_objext conftest$ac_exeext
21114
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21115
(eval $ac_link) 2>conftest.er1
21117
grep -v '^ *+' conftest.er1 >conftest.err
21119
cat conftest.err >&5
21120
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21121
(exit $ac_status); } &&
21122
{ ac_try='test -z "$ac_c_werror_flag"
21123
|| test ! -s conftest.err'
21124
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21125
(eval $ac_try) 2>&5
21127
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21128
(exit $ac_status); }; } &&
21129
{ ac_try='test -s conftest$ac_exeext'
21130
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21131
(eval $ac_try) 2>&5
21133
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21134
(exit $ac_status); }; }; then
21135
eval "$as_ac_Lib=yes"
21137
echo "$as_me: failed program was:" >&5
21138
sed 's/^/| /' conftest.$ac_ext >&5
21140
eval "$as_ac_Lib=no"
21142
rm -f conftest.err conftest.$ac_objext \
21143
conftest$ac_exeext conftest.$ac_ext
21144
LIBS=$ac_check_lib_save_LIBS
21146
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
21147
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
21148
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
21163
# If we found it, no need to search any more.
21164
if test "$result" = "yes"; then
21169
test "$found" != "not" && break
21171
test "$found" != "not" && break
21174
# Restore the original values of the flags we tweak.
21175
LDFLAGS="$apu_check_lib_save_ldflags"
21176
CPPFLAGS="$apu_check_lib_save_cppflags"
21183
apu_db_header=$bdb_header
21184
apu_db_lib=$bdb_libname
21188
header="`echo $found | sed -e 's/:.*$//'`"
21189
lib="`echo $found | sed -e 's/^.*://'`"
21192
if test "x$APRUTIL_INCLUDES" = "x"; then
21193
test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$header\""
21194
APRUTIL_INCLUDES="-I$header"
21196
apr_addto_bugger="-I$header"
21197
for i in $apr_addto_bugger; do
21198
apr_addto_duplicate="0"
21199
for j in $APRUTIL_INCLUDES; do
21200
if test "x$i" = "x$j"; then
21201
apr_addto_duplicate="1"
21205
if test $apr_addto_duplicate = "0"; then
21206
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES"
21207
APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
21213
if test "x$APRUTIL_LDFLAGS" = "x"; then
21214
test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$lib\""
21215
APRUTIL_LDFLAGS="-L$lib"
21217
apr_addto_bugger="-L$lib"
21218
for i in $apr_addto_bugger; do
21219
apr_addto_duplicate="0"
21220
for j in $APRUTIL_LDFLAGS; do
21221
if test "x$i" = "x$j"; then
21222
apr_addto_duplicate="1"
21226
if test $apr_addto_duplicate = "0"; then
21227
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS"
21228
APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
21233
apu_db_header=$bdb_header
21234
apu_db_lib=$bdb_libname
21239
if test "x$APRUTIL_INCLUDES" = "x"; then
21240
test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$found/include\""
21241
APRUTIL_INCLUDES="-I$found/include"
21243
apr_addto_bugger="-I$found/include"
21244
for i in $apr_addto_bugger; do
21245
apr_addto_duplicate="0"
21246
for j in $APRUTIL_INCLUDES; do
21247
if test "x$i" = "x$j"; then
21248
apr_addto_duplicate="1"
21252
if test $apr_addto_duplicate = "0"; then
21253
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES"
21254
APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
21260
if test "x$APRUTIL_LDFLAGS" = "x"; then
21261
test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$found/lib\""
21262
APRUTIL_LDFLAGS="-L$found/lib"
21264
apr_addto_bugger="-L$found/lib"
21265
for i in $apr_addto_bugger; do
21266
apr_addto_duplicate="0"
21267
for j in $APRUTIL_LDFLAGS; do
21268
if test "x$i" = "x$j"; then
21269
apr_addto_duplicate="1"
21273
if test $apr_addto_duplicate = "0"; then
21274
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS"
21275
APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
21280
apu_db_header=$bdb_header
21281
apu_db_lib=$bdb_libname
21286
if test "$apu_have_db" = "1"; then
21290
if test "$apu_db_version" != "185"; then
21291
{ { echo "$as_me:$LINENO: error: Berkeley db185 not found" >&5
21292
echo "$as_me: error: Berkeley db185 not found" >&2;}
21293
{ (exit 1); exit 1; }; }
21298
places="$check_places"
21299
if test -z "$places"; then
21304
if test "-1" != "-1"; then
21305
bdb_version="$bdb_version.-1"
21306
if test "-1" != "-1"; then
21307
bdb_version="$bdb_version.-1"
21310
bdb_places="$places"
21311
bdb_default_search_headers="db2/db.h db.h"
21312
bdb_default_search_lib_names="db2 db"
21317
# Save the original values of the flags we tweak.
21318
apu_check_lib_save_libs="$LIBS"
21319
apu_check_lib_save_ldflags="$LDFLAGS"
21320
apu_check_lib_save_cppflags="$CPPFLAGS"
21322
# The variable `found' is the prefix under which we've found
21323
# Berkeley DB, or `not' if we haven't found it anywhere yet.
21325
for bdb_place in $bdb_places; do
21327
LDFLAGS="$apu_check_lib_save_ldflags"
21328
CPPFLAGS="$apu_check_lib_save_cppflags"
21329
case "$bdb_place" in
21331
description="the standard places"
21334
header="`echo $bdb_place | sed -e 's/:.*$//'`"
21335
lib="`echo $bdb_place | sed -e 's/^.*://'`"
21336
CPPFLAGS="$CPPFLAGS -I$header"
21337
LDFLAGS="$LDFLAGS -L$lib"
21338
description="$header and $lib"
21341
if test -d $bdb_place; then
21342
LDFLAGS="$LDFLAGS -L$bdb_place/lib"
21343
CPPFLAGS="$CPPFLAGS -I$bdb_place/include"
21345
echo "$as_me:$LINENO: checking for Berkeley DB $bdb_version in $bdb_place" >&5
21346
echo $ECHO_N "checking for Berkeley DB $bdb_version in $bdb_place... $ECHO_C" >&6
21347
echo "$as_me:$LINENO: result: directory not found" >&5
21348
echo "${ECHO_T}directory not found" >&6
21351
description="$bdb_place"
21355
# Since there is no AC_MSG_NOTICE in autoconf 2.13, we use this
21356
# trick to display a message instead.
21357
echo "$as_me:$LINENO: checking for Berkeley DB $bdb_version in $description" >&5
21358
echo $ECHO_N "checking for Berkeley DB $bdb_version in $description... $ECHO_C" >&6
21359
echo "$as_me:$LINENO: result: " >&5
21360
echo "${ECHO_T}" >&6
21362
for bdb_libname in $bdb_default_search_lib_names; do
21363
for bdb_header in $bdb_default_search_headers; do
21364
# Clear the header cache variable for each location
21366
cache_id="`echo ac_cv_header_${bdb_header} \
21367
| sed -e 's/[^a-zA-Z0-9_]/_/g'`"
21370
as_ac_Header=`echo "ac_cv_header_$bdb_header" | $as_tr_sh`
21371
if eval "test \"\${$as_ac_Header+set}\" = set"; then
21372
echo "$as_me:$LINENO: checking for $bdb_header" >&5
21373
echo $ECHO_N "checking for $bdb_header... $ECHO_C" >&6
21374
if eval "test \"\${$as_ac_Header+set}\" = set"; then
21375
echo $ECHO_N "(cached) $ECHO_C" >&6
21377
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21378
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21380
# Is the header compilable?
21381
echo "$as_me:$LINENO: checking $bdb_header usability" >&5
21382
echo $ECHO_N "checking $bdb_header usability... $ECHO_C" >&6
21383
cat >conftest.$ac_ext <<_ACEOF
21386
cat confdefs.h >>conftest.$ac_ext
21387
cat >>conftest.$ac_ext <<_ACEOF
21388
/* end confdefs.h. */
21389
$ac_includes_default
21390
#include <$bdb_header>
21392
rm -f conftest.$ac_objext
21393
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21394
(eval $ac_compile) 2>conftest.er1
21396
grep -v '^ *+' conftest.er1 >conftest.err
21398
cat conftest.err >&5
21399
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21400
(exit $ac_status); } &&
21401
{ ac_try='test -z "$ac_c_werror_flag"
21402
|| test ! -s conftest.err'
21403
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21404
(eval $ac_try) 2>&5
21406
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21407
(exit $ac_status); }; } &&
21408
{ ac_try='test -s conftest.$ac_objext'
21409
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21410
(eval $ac_try) 2>&5
21412
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21413
(exit $ac_status); }; }; then
21414
ac_header_compiler=yes
21416
echo "$as_me: failed program was:" >&5
21417
sed 's/^/| /' conftest.$ac_ext >&5
21419
ac_header_compiler=no
21421
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21422
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21423
echo "${ECHO_T}$ac_header_compiler" >&6
21425
# Is the header present?
21426
echo "$as_me:$LINENO: checking $bdb_header presence" >&5
21427
echo $ECHO_N "checking $bdb_header presence... $ECHO_C" >&6
21428
cat >conftest.$ac_ext <<_ACEOF
21431
cat confdefs.h >>conftest.$ac_ext
21432
cat >>conftest.$ac_ext <<_ACEOF
21433
/* end confdefs.h. */
21434
#include <$bdb_header>
21436
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21437
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21439
grep -v '^ *+' conftest.er1 >conftest.err
21441
cat conftest.err >&5
21442
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21443
(exit $ac_status); } >/dev/null; then
21444
if test -s conftest.err; then
21445
ac_cpp_err=$ac_c_preproc_warn_flag
21446
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21453
if test -z "$ac_cpp_err"; then
21454
ac_header_preproc=yes
21456
echo "$as_me: failed program was:" >&5
21457
sed 's/^/| /' conftest.$ac_ext >&5
21459
ac_header_preproc=no
21461
rm -f conftest.err conftest.$ac_ext
21462
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21463
echo "${ECHO_T}$ac_header_preproc" >&6
21465
# So? What about this header?
21466
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21468
{ echo "$as_me:$LINENO: WARNING: $bdb_header: accepted by the compiler, rejected by the preprocessor!" >&5
21469
echo "$as_me: WARNING: $bdb_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21470
{ echo "$as_me:$LINENO: WARNING: $bdb_header: proceeding with the compiler's result" >&5
21471
echo "$as_me: WARNING: $bdb_header: proceeding with the compiler's result" >&2;}
21472
ac_header_preproc=yes
21475
{ echo "$as_me:$LINENO: WARNING: $bdb_header: present but cannot be compiled" >&5
21476
echo "$as_me: WARNING: $bdb_header: present but cannot be compiled" >&2;}
21477
{ echo "$as_me:$LINENO: WARNING: $bdb_header: check for missing prerequisite headers?" >&5
21478
echo "$as_me: WARNING: $bdb_header: check for missing prerequisite headers?" >&2;}
21479
{ echo "$as_me:$LINENO: WARNING: $bdb_header: see the Autoconf documentation" >&5
21480
echo "$as_me: WARNING: $bdb_header: see the Autoconf documentation" >&2;}
21481
{ echo "$as_me:$LINENO: WARNING: $bdb_header: section \"Present But Cannot Be Compiled\"" >&5
21482
echo "$as_me: WARNING: $bdb_header: section \"Present But Cannot Be Compiled\"" >&2;}
21483
{ echo "$as_me:$LINENO: WARNING: $bdb_header: proceeding with the preprocessor's result" >&5
21484
echo "$as_me: WARNING: $bdb_header: proceeding with the preprocessor's result" >&2;}
21485
{ echo "$as_me:$LINENO: WARNING: $bdb_header: in the future, the compiler will take precedence" >&5
21486
echo "$as_me: WARNING: $bdb_header: in the future, the compiler will take precedence" >&2;}
21489
## ------------------------------------------ ##
21490
## Report this to the AC_PACKAGE_NAME lists. ##
21491
## ------------------------------------------ ##
21494
sed "s/^/$as_me: WARNING: /" >&2
21497
echo "$as_me:$LINENO: checking for $bdb_header" >&5
21498
echo $ECHO_N "checking for $bdb_header... $ECHO_C" >&6
21499
if eval "test \"\${$as_ac_Header+set}\" = set"; then
21500
echo $ECHO_N "(cached) $ECHO_C" >&6
21502
eval "$as_ac_Header=\$ac_header_preproc"
21504
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21505
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21508
if test `eval echo '${'$as_ac_Header'}'` = yes; then
21510
if test "2" = "3" -o "2" = "4"; then
21511
# We generate a separate cache variable for each prefix and libname
21512
# we search under. That way, we avoid caching information that
21513
# changes if the user runs `configure' with a different set of
21516
cache_id="`echo apu_cv_check_berkeley_db_2_-1_-1_${bdb_header}_${bdb_libname}_in_${bdb_place} \
21517
| sed -e 's/[^a-zA-Z0-9_]/_/g'`"
21520
echo "$as_me:$LINENO: checking for -l$bdb_libname" >&5
21521
echo $ECHO_N "checking for -l$bdb_libname... $ECHO_C" >&6
21522
if eval "test \"\${$cache_id+set}\" = set"; then
21523
echo $ECHO_N "(cached) $ECHO_C" >&6
21527
apu_try_berkeley_db_save_libs="$LIBS"
21529
apu_check_berkeley_db_major=2
21530
apu_check_berkeley_db_minor=-1
21531
apu_check_berkeley_db_patch=-1
21532
apu_try_berkeley_db_header=$bdb_header
21533
apu_try_berkeley_db_libname=$bdb_libname
21535
LIBS="$LIBS -l$apu_try_berkeley_db_libname"
21536
if test "$cross_compiling" = yes; then
21537
apu_try_berkeley_db=yes
21540
cat >conftest.$ac_ext <<_ACEOF
21543
cat confdefs.h >>conftest.$ac_ext
21544
cat >>conftest.$ac_ext <<_ACEOF
21545
/* end confdefs.h. */
21548
#include <$apu_try_berkeley_db_header>
21551
int major, minor, patch;
21553
db_version(&major, &minor, &patch);
21555
/* Sanity check: ensure that db.h constants actually match the db library */
21556
if (major != DB_VERSION_MAJOR
21557
|| minor != DB_VERSION_MINOR
21558
|| patch != DB_VERSION_PATCH)
21561
/* Run-time check: ensure the library claims to be the correct version. */
21563
if ($apu_check_berkeley_db_major != -1) {
21564
if (major < $apu_check_berkeley_db_major)
21566
if (major > $apu_check_berkeley_db_major)
21570
if ($apu_check_berkeley_db_minor != -1) {
21571
if (minor < $apu_check_berkeley_db_minor)
21573
if (minor > $apu_check_berkeley_db_minor)
21577
if ($apu_check_berkeley_db_patch == -1
21578
|| patch >= $apu_check_berkeley_db_patch)
21585
rm -f conftest$ac_exeext
21586
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21587
(eval $ac_link) 2>&5
21589
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21590
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21591
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21592
(eval $ac_try) 2>&5
21594
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21595
(exit $ac_status); }; }; then
21596
apu_try_berkeley_db=yes
21598
echo "$as_me: program exited with status $ac_status" >&5
21599
echo "$as_me: failed program was:" >&5
21600
sed 's/^/| /' conftest.$ac_ext >&5
21602
( exit $ac_status )
21603
apu_try_berkeley_db=no
21605
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21608
LIBS="$apu_try_berkeley_db_save_libs"
21611
eval "$cache_id=$apu_try_berkeley_db"
21615
result="`eval echo '$'$cache_id`"
21616
echo "$as_me:$LINENO: result: $result" >&5
21617
echo "${ECHO_T}$result" >&6
21618
elif test "2" = "1"; then
21619
as_ac_Lib=`echo "ac_cv_lib_$bdb_libname''_dbopen" | $as_tr_sh`
21620
echo "$as_me:$LINENO: checking for dbopen in -l$bdb_libname" >&5
21621
echo $ECHO_N "checking for dbopen in -l$bdb_libname... $ECHO_C" >&6
21622
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
21623
echo $ECHO_N "(cached) $ECHO_C" >&6
21625
ac_check_lib_save_LIBS=$LIBS
21626
LIBS="-l$bdb_libname $LIBS"
21627
cat >conftest.$ac_ext <<_ACEOF
21630
cat confdefs.h >>conftest.$ac_ext
21631
cat >>conftest.$ac_ext <<_ACEOF
21632
/* end confdefs.h. */
21634
/* Override any gcc2 internal prototype to avoid an error. */
21638
/* We use char because int might match the return type of a gcc2
21639
builtin and then its argument prototype would still apply. */
21649
rm -f conftest.$ac_objext conftest$ac_exeext
21650
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21651
(eval $ac_link) 2>conftest.er1
21653
grep -v '^ *+' conftest.er1 >conftest.err
21655
cat conftest.err >&5
21656
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21657
(exit $ac_status); } &&
21658
{ ac_try='test -z "$ac_c_werror_flag"
21659
|| test ! -s conftest.err'
21660
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21661
(eval $ac_try) 2>&5
21663
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21664
(exit $ac_status); }; } &&
21665
{ ac_try='test -s conftest$ac_exeext'
21666
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21667
(eval $ac_try) 2>&5
21669
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21670
(exit $ac_status); }; }; then
21671
eval "$as_ac_Lib=yes"
21673
echo "$as_me: failed program was:" >&5
21674
sed 's/^/| /' conftest.$ac_ext >&5
21676
eval "$as_ac_Lib=no"
21678
rm -f conftest.err conftest.$ac_objext \
21679
conftest$ac_exeext conftest.$ac_ext
21680
LIBS=$ac_check_lib_save_LIBS
21682
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
21683
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
21684
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
21691
elif test "2" = "2"; then
21692
as_ac_Lib=`echo "ac_cv_lib_$bdb_libname''_db_open" | $as_tr_sh`
21693
echo "$as_me:$LINENO: checking for db_open in -l$bdb_libname" >&5
21694
echo $ECHO_N "checking for db_open in -l$bdb_libname... $ECHO_C" >&6
21695
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
21696
echo $ECHO_N "(cached) $ECHO_C" >&6
21698
ac_check_lib_save_LIBS=$LIBS
21699
LIBS="-l$bdb_libname $LIBS"
21700
cat >conftest.$ac_ext <<_ACEOF
21703
cat confdefs.h >>conftest.$ac_ext
21704
cat >>conftest.$ac_ext <<_ACEOF
21705
/* end confdefs.h. */
21707
/* Override any gcc2 internal prototype to avoid an error. */
21711
/* We use char because int might match the return type of a gcc2
21712
builtin and then its argument prototype would still apply. */
21722
rm -f conftest.$ac_objext conftest$ac_exeext
21723
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21724
(eval $ac_link) 2>conftest.er1
21726
grep -v '^ *+' conftest.er1 >conftest.err
21728
cat conftest.err >&5
21729
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21730
(exit $ac_status); } &&
21731
{ ac_try='test -z "$ac_c_werror_flag"
21732
|| test ! -s conftest.err'
21733
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21734
(eval $ac_try) 2>&5
21736
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21737
(exit $ac_status); }; } &&
21738
{ ac_try='test -s conftest$ac_exeext'
21739
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21740
(eval $ac_try) 2>&5
21742
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21743
(exit $ac_status); }; }; then
21744
eval "$as_ac_Lib=yes"
21746
echo "$as_me: failed program was:" >&5
21747
sed 's/^/| /' conftest.$ac_ext >&5
21749
eval "$as_ac_Lib=no"
21751
rm -f conftest.err conftest.$ac_objext \
21752
conftest$ac_exeext conftest.$ac_ext
21753
LIBS=$ac_check_lib_save_LIBS
21755
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
21756
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
21757
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
21772
# If we found it, no need to search any more.
21773
if test "$result" = "yes"; then
21778
test "$found" != "not" && break
21780
test "$found" != "not" && break
21783
# Restore the original values of the flags we tweak.
21784
LDFLAGS="$apu_check_lib_save_ldflags"
21785
CPPFLAGS="$apu_check_lib_save_cppflags"
21792
apu_db_header=$bdb_header
21793
apu_db_lib=$bdb_libname
21797
header="`echo $found | sed -e 's/:.*$//'`"
21798
lib="`echo $found | sed -e 's/^.*://'`"
21801
if test "x$APRUTIL_INCLUDES" = "x"; then
21802
test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$header\""
21803
APRUTIL_INCLUDES="-I$header"
21805
apr_addto_bugger="-I$header"
21806
for i in $apr_addto_bugger; do
21807
apr_addto_duplicate="0"
21808
for j in $APRUTIL_INCLUDES; do
21809
if test "x$i" = "x$j"; then
21810
apr_addto_duplicate="1"
21814
if test $apr_addto_duplicate = "0"; then
21815
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES"
21816
APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
21822
if test "x$APRUTIL_LDFLAGS" = "x"; then
21823
test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$lib\""
21824
APRUTIL_LDFLAGS="-L$lib"
21826
apr_addto_bugger="-L$lib"
21827
for i in $apr_addto_bugger; do
21828
apr_addto_duplicate="0"
21829
for j in $APRUTIL_LDFLAGS; do
21830
if test "x$i" = "x$j"; then
21831
apr_addto_duplicate="1"
21835
if test $apr_addto_duplicate = "0"; then
21836
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS"
21837
APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
21842
apu_db_header=$bdb_header
21843
apu_db_lib=$bdb_libname
21848
if test "x$APRUTIL_INCLUDES" = "x"; then
21849
test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$found/include\""
21850
APRUTIL_INCLUDES="-I$found/include"
21852
apr_addto_bugger="-I$found/include"
21853
for i in $apr_addto_bugger; do
21854
apr_addto_duplicate="0"
21855
for j in $APRUTIL_INCLUDES; do
21856
if test "x$i" = "x$j"; then
21857
apr_addto_duplicate="1"
21861
if test $apr_addto_duplicate = "0"; then
21862
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES"
21863
APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
21869
if test "x$APRUTIL_LDFLAGS" = "x"; then
21870
test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$found/lib\""
21871
APRUTIL_LDFLAGS="-L$found/lib"
21873
apr_addto_bugger="-L$found/lib"
21874
for i in $apr_addto_bugger; do
21875
apr_addto_duplicate="0"
21876
for j in $APRUTIL_LDFLAGS; do
21877
if test "x$i" = "x$j"; then
21878
apr_addto_duplicate="1"
21882
if test $apr_addto_duplicate = "0"; then
21883
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS"
21884
APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
21889
apu_db_header=$bdb_header
21890
apu_db_lib=$bdb_libname
21895
if test "$apu_have_db" = "1"; then
21899
if test "$apu_db_version" != "2"; then
21900
{ { echo "$as_me:$LINENO: error: Berkeley db2 not found" >&5
21901
echo "$as_me: error: Berkeley db2 not found" >&2;}
21902
{ (exit 1); exit 1; }; }
21907
places="$check_places"
21908
if test -z "$places"; then
21913
if test "-1" != "-1"; then
21914
bdb_version="$bdb_version.-1"
21915
if test "-1" != "-1"; then
21916
bdb_version="$bdb_version.-1"
21919
bdb_places="$places"
21920
bdb_default_search_headers="db3/db.h db.h"
21921
bdb_default_search_lib_names="db3 db"
21926
# Save the original values of the flags we tweak.
21927
apu_check_lib_save_libs="$LIBS"
21928
apu_check_lib_save_ldflags="$LDFLAGS"
21929
apu_check_lib_save_cppflags="$CPPFLAGS"
21931
# The variable `found' is the prefix under which we've found
21932
# Berkeley DB, or `not' if we haven't found it anywhere yet.
21934
for bdb_place in $bdb_places; do
21936
LDFLAGS="$apu_check_lib_save_ldflags"
21937
CPPFLAGS="$apu_check_lib_save_cppflags"
21938
case "$bdb_place" in
21940
description="the standard places"
21943
header="`echo $bdb_place | sed -e 's/:.*$//'`"
21944
lib="`echo $bdb_place | sed -e 's/^.*://'`"
21945
CPPFLAGS="$CPPFLAGS -I$header"
21946
LDFLAGS="$LDFLAGS -L$lib"
21947
description="$header and $lib"
21950
if test -d $bdb_place; then
21951
LDFLAGS="$LDFLAGS -L$bdb_place/lib"
21952
CPPFLAGS="$CPPFLAGS -I$bdb_place/include"
21954
echo "$as_me:$LINENO: checking for Berkeley DB $bdb_version in $bdb_place" >&5
21955
echo $ECHO_N "checking for Berkeley DB $bdb_version in $bdb_place... $ECHO_C" >&6
21956
echo "$as_me:$LINENO: result: directory not found" >&5
21957
echo "${ECHO_T}directory not found" >&6
21960
description="$bdb_place"
21964
# Since there is no AC_MSG_NOTICE in autoconf 2.13, we use this
21965
# trick to display a message instead.
21966
echo "$as_me:$LINENO: checking for Berkeley DB $bdb_version in $description" >&5
21967
echo $ECHO_N "checking for Berkeley DB $bdb_version in $description... $ECHO_C" >&6
21968
echo "$as_me:$LINENO: result: " >&5
21969
echo "${ECHO_T}" >&6
21971
for bdb_libname in $bdb_default_search_lib_names; do
21972
for bdb_header in $bdb_default_search_headers; do
21973
# Clear the header cache variable for each location
21975
cache_id="`echo ac_cv_header_${bdb_header} \
21976
| sed -e 's/[^a-zA-Z0-9_]/_/g'`"
21979
as_ac_Header=`echo "ac_cv_header_$bdb_header" | $as_tr_sh`
21980
if eval "test \"\${$as_ac_Header+set}\" = set"; then
21981
echo "$as_me:$LINENO: checking for $bdb_header" >&5
21982
echo $ECHO_N "checking for $bdb_header... $ECHO_C" >&6
21983
if eval "test \"\${$as_ac_Header+set}\" = set"; then
21984
echo $ECHO_N "(cached) $ECHO_C" >&6
21986
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21987
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21989
# Is the header compilable?
21990
echo "$as_me:$LINENO: checking $bdb_header usability" >&5
21991
echo $ECHO_N "checking $bdb_header usability... $ECHO_C" >&6
21992
cat >conftest.$ac_ext <<_ACEOF
21995
cat confdefs.h >>conftest.$ac_ext
21996
cat >>conftest.$ac_ext <<_ACEOF
21997
/* end confdefs.h. */
21998
$ac_includes_default
21999
#include <$bdb_header>
22001
rm -f conftest.$ac_objext
22002
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22003
(eval $ac_compile) 2>conftest.er1
22005
grep -v '^ *+' conftest.er1 >conftest.err
22007
cat conftest.err >&5
22008
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22009
(exit $ac_status); } &&
22010
{ ac_try='test -z "$ac_c_werror_flag"
22011
|| test ! -s conftest.err'
22012
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22013
(eval $ac_try) 2>&5
22015
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22016
(exit $ac_status); }; } &&
22017
{ ac_try='test -s conftest.$ac_objext'
22018
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22019
(eval $ac_try) 2>&5
22021
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22022
(exit $ac_status); }; }; then
22023
ac_header_compiler=yes
22025
echo "$as_me: failed program was:" >&5
22026
sed 's/^/| /' conftest.$ac_ext >&5
22028
ac_header_compiler=no
22030
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22031
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22032
echo "${ECHO_T}$ac_header_compiler" >&6
22034
# Is the header present?
22035
echo "$as_me:$LINENO: checking $bdb_header presence" >&5
22036
echo $ECHO_N "checking $bdb_header presence... $ECHO_C" >&6
22037
cat >conftest.$ac_ext <<_ACEOF
22040
cat confdefs.h >>conftest.$ac_ext
22041
cat >>conftest.$ac_ext <<_ACEOF
22042
/* end confdefs.h. */
22043
#include <$bdb_header>
22045
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22046
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22048
grep -v '^ *+' conftest.er1 >conftest.err
22050
cat conftest.err >&5
22051
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22052
(exit $ac_status); } >/dev/null; then
22053
if test -s conftest.err; then
22054
ac_cpp_err=$ac_c_preproc_warn_flag
22055
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22062
if test -z "$ac_cpp_err"; then
22063
ac_header_preproc=yes
22065
echo "$as_me: failed program was:" >&5
22066
sed 's/^/| /' conftest.$ac_ext >&5
22068
ac_header_preproc=no
22070
rm -f conftest.err conftest.$ac_ext
22071
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22072
echo "${ECHO_T}$ac_header_preproc" >&6
22074
# So? What about this header?
22075
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22077
{ echo "$as_me:$LINENO: WARNING: $bdb_header: accepted by the compiler, rejected by the preprocessor!" >&5
22078
echo "$as_me: WARNING: $bdb_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22079
{ echo "$as_me:$LINENO: WARNING: $bdb_header: proceeding with the compiler's result" >&5
22080
echo "$as_me: WARNING: $bdb_header: proceeding with the compiler's result" >&2;}
22081
ac_header_preproc=yes
22084
{ echo "$as_me:$LINENO: WARNING: $bdb_header: present but cannot be compiled" >&5
22085
echo "$as_me: WARNING: $bdb_header: present but cannot be compiled" >&2;}
22086
{ echo "$as_me:$LINENO: WARNING: $bdb_header: check for missing prerequisite headers?" >&5
22087
echo "$as_me: WARNING: $bdb_header: check for missing prerequisite headers?" >&2;}
22088
{ echo "$as_me:$LINENO: WARNING: $bdb_header: see the Autoconf documentation" >&5
22089
echo "$as_me: WARNING: $bdb_header: see the Autoconf documentation" >&2;}
22090
{ echo "$as_me:$LINENO: WARNING: $bdb_header: section \"Present But Cannot Be Compiled\"" >&5
22091
echo "$as_me: WARNING: $bdb_header: section \"Present But Cannot Be Compiled\"" >&2;}
22092
{ echo "$as_me:$LINENO: WARNING: $bdb_header: proceeding with the preprocessor's result" >&5
22093
echo "$as_me: WARNING: $bdb_header: proceeding with the preprocessor's result" >&2;}
22094
{ echo "$as_me:$LINENO: WARNING: $bdb_header: in the future, the compiler will take precedence" >&5
22095
echo "$as_me: WARNING: $bdb_header: in the future, the compiler will take precedence" >&2;}
22098
## ------------------------------------------ ##
22099
## Report this to the AC_PACKAGE_NAME lists. ##
22100
## ------------------------------------------ ##
22103
sed "s/^/$as_me: WARNING: /" >&2
22106
echo "$as_me:$LINENO: checking for $bdb_header" >&5
22107
echo $ECHO_N "checking for $bdb_header... $ECHO_C" >&6
22108
if eval "test \"\${$as_ac_Header+set}\" = set"; then
22109
echo $ECHO_N "(cached) $ECHO_C" >&6
22111
eval "$as_ac_Header=\$ac_header_preproc"
22113
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22114
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22117
if test `eval echo '${'$as_ac_Header'}'` = yes; then
22119
if test "3" = "3" -o "3" = "4"; then
22120
# We generate a separate cache variable for each prefix and libname
22121
# we search under. That way, we avoid caching information that
22122
# changes if the user runs `configure' with a different set of
22125
cache_id="`echo apu_cv_check_berkeley_db_3_-1_-1_${bdb_header}_${bdb_libname}_in_${bdb_place} \
22126
| sed -e 's/[^a-zA-Z0-9_]/_/g'`"
22129
echo "$as_me:$LINENO: checking for -l$bdb_libname" >&5
22130
echo $ECHO_N "checking for -l$bdb_libname... $ECHO_C" >&6
22131
if eval "test \"\${$cache_id+set}\" = set"; then
22132
echo $ECHO_N "(cached) $ECHO_C" >&6
22136
apu_try_berkeley_db_save_libs="$LIBS"
22138
apu_check_berkeley_db_major=3
22139
apu_check_berkeley_db_minor=-1
22140
apu_check_berkeley_db_patch=-1
22141
apu_try_berkeley_db_header=$bdb_header
22142
apu_try_berkeley_db_libname=$bdb_libname
22144
LIBS="$LIBS -l$apu_try_berkeley_db_libname"
22145
if test "$cross_compiling" = yes; then
22146
apu_try_berkeley_db=yes
22149
cat >conftest.$ac_ext <<_ACEOF
22152
cat confdefs.h >>conftest.$ac_ext
22153
cat >>conftest.$ac_ext <<_ACEOF
22154
/* end confdefs.h. */
22157
#include <$apu_try_berkeley_db_header>
22160
int major, minor, patch;
22162
db_version(&major, &minor, &patch);
22164
/* Sanity check: ensure that db.h constants actually match the db library */
22165
if (major != DB_VERSION_MAJOR
22166
|| minor != DB_VERSION_MINOR
22167
|| patch != DB_VERSION_PATCH)
22170
/* Run-time check: ensure the library claims to be the correct version. */
22172
if ($apu_check_berkeley_db_major != -1) {
22173
if (major < $apu_check_berkeley_db_major)
22175
if (major > $apu_check_berkeley_db_major)
22179
if ($apu_check_berkeley_db_minor != -1) {
22180
if (minor < $apu_check_berkeley_db_minor)
22182
if (minor > $apu_check_berkeley_db_minor)
22186
if ($apu_check_berkeley_db_patch == -1
22187
|| patch >= $apu_check_berkeley_db_patch)
22194
rm -f conftest$ac_exeext
22195
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22196
(eval $ac_link) 2>&5
22198
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22199
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22200
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22201
(eval $ac_try) 2>&5
22203
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22204
(exit $ac_status); }; }; then
22205
apu_try_berkeley_db=yes
22207
echo "$as_me: program exited with status $ac_status" >&5
22208
echo "$as_me: failed program was:" >&5
22209
sed 's/^/| /' conftest.$ac_ext >&5
22211
( exit $ac_status )
22212
apu_try_berkeley_db=no
22214
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22217
LIBS="$apu_try_berkeley_db_save_libs"
22220
eval "$cache_id=$apu_try_berkeley_db"
22224
result="`eval echo '$'$cache_id`"
22225
echo "$as_me:$LINENO: result: $result" >&5
22226
echo "${ECHO_T}$result" >&6
22227
elif test "3" = "1"; then
22228
as_ac_Lib=`echo "ac_cv_lib_$bdb_libname''_dbopen" | $as_tr_sh`
22229
echo "$as_me:$LINENO: checking for dbopen in -l$bdb_libname" >&5
22230
echo $ECHO_N "checking for dbopen in -l$bdb_libname... $ECHO_C" >&6
22231
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
22232
echo $ECHO_N "(cached) $ECHO_C" >&6
22234
ac_check_lib_save_LIBS=$LIBS
22235
LIBS="-l$bdb_libname $LIBS"
22236
cat >conftest.$ac_ext <<_ACEOF
22239
cat confdefs.h >>conftest.$ac_ext
22240
cat >>conftest.$ac_ext <<_ACEOF
22241
/* end confdefs.h. */
22243
/* Override any gcc2 internal prototype to avoid an error. */
22247
/* We use char because int might match the return type of a gcc2
22248
builtin and then its argument prototype would still apply. */
22258
rm -f conftest.$ac_objext conftest$ac_exeext
22259
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22260
(eval $ac_link) 2>conftest.er1
22262
grep -v '^ *+' conftest.er1 >conftest.err
22264
cat conftest.err >&5
22265
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22266
(exit $ac_status); } &&
22267
{ ac_try='test -z "$ac_c_werror_flag"
22268
|| test ! -s conftest.err'
22269
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22270
(eval $ac_try) 2>&5
22272
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22273
(exit $ac_status); }; } &&
22274
{ ac_try='test -s conftest$ac_exeext'
22275
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22276
(eval $ac_try) 2>&5
22278
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22279
(exit $ac_status); }; }; then
22280
eval "$as_ac_Lib=yes"
22282
echo "$as_me: failed program was:" >&5
22283
sed 's/^/| /' conftest.$ac_ext >&5
22285
eval "$as_ac_Lib=no"
22287
rm -f conftest.err conftest.$ac_objext \
22288
conftest$ac_exeext conftest.$ac_ext
22289
LIBS=$ac_check_lib_save_LIBS
22291
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
22292
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
22293
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
22300
elif test "3" = "2"; then
22301
as_ac_Lib=`echo "ac_cv_lib_$bdb_libname''_db_open" | $as_tr_sh`
22302
echo "$as_me:$LINENO: checking for db_open in -l$bdb_libname" >&5
22303
echo $ECHO_N "checking for db_open in -l$bdb_libname... $ECHO_C" >&6
22304
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
22305
echo $ECHO_N "(cached) $ECHO_C" >&6
22307
ac_check_lib_save_LIBS=$LIBS
22308
LIBS="-l$bdb_libname $LIBS"
22309
cat >conftest.$ac_ext <<_ACEOF
22312
cat confdefs.h >>conftest.$ac_ext
22313
cat >>conftest.$ac_ext <<_ACEOF
22314
/* end confdefs.h. */
22316
/* Override any gcc2 internal prototype to avoid an error. */
22320
/* We use char because int might match the return type of a gcc2
22321
builtin and then its argument prototype would still apply. */
22331
rm -f conftest.$ac_objext conftest$ac_exeext
22332
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22333
(eval $ac_link) 2>conftest.er1
22335
grep -v '^ *+' conftest.er1 >conftest.err
22337
cat conftest.err >&5
22338
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22339
(exit $ac_status); } &&
22340
{ ac_try='test -z "$ac_c_werror_flag"
22341
|| test ! -s conftest.err'
22342
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22343
(eval $ac_try) 2>&5
22345
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22346
(exit $ac_status); }; } &&
22347
{ ac_try='test -s conftest$ac_exeext'
22348
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22349
(eval $ac_try) 2>&5
22351
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22352
(exit $ac_status); }; }; then
22353
eval "$as_ac_Lib=yes"
22355
echo "$as_me: failed program was:" >&5
22356
sed 's/^/| /' conftest.$ac_ext >&5
22358
eval "$as_ac_Lib=no"
22360
rm -f conftest.err conftest.$ac_objext \
22361
conftest$ac_exeext conftest.$ac_ext
22362
LIBS=$ac_check_lib_save_LIBS
22364
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
22365
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
22366
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
22381
# If we found it, no need to search any more.
22382
if test "$result" = "yes"; then
22387
test "$found" != "not" && break
22389
test "$found" != "not" && break
22392
# Restore the original values of the flags we tweak.
22393
LDFLAGS="$apu_check_lib_save_ldflags"
22394
CPPFLAGS="$apu_check_lib_save_cppflags"
22401
apu_db_header=$bdb_header
22402
apu_db_lib=$bdb_libname
22406
header="`echo $found | sed -e 's/:.*$//'`"
22407
lib="`echo $found | sed -e 's/^.*://'`"
22410
if test "x$APRUTIL_INCLUDES" = "x"; then
22411
test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$header\""
22412
APRUTIL_INCLUDES="-I$header"
22414
apr_addto_bugger="-I$header"
22415
for i in $apr_addto_bugger; do
22416
apr_addto_duplicate="0"
22417
for j in $APRUTIL_INCLUDES; do
22418
if test "x$i" = "x$j"; then
22419
apr_addto_duplicate="1"
22423
if test $apr_addto_duplicate = "0"; then
22424
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES"
22425
APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
22431
if test "x$APRUTIL_LDFLAGS" = "x"; then
22432
test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$lib\""
22433
APRUTIL_LDFLAGS="-L$lib"
22435
apr_addto_bugger="-L$lib"
22436
for i in $apr_addto_bugger; do
22437
apr_addto_duplicate="0"
22438
for j in $APRUTIL_LDFLAGS; do
22439
if test "x$i" = "x$j"; then
22440
apr_addto_duplicate="1"
22444
if test $apr_addto_duplicate = "0"; then
22445
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS"
22446
APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
22451
apu_db_header=$bdb_header
22452
apu_db_lib=$bdb_libname
22457
if test "x$APRUTIL_INCLUDES" = "x"; then
22458
test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$found/include\""
22459
APRUTIL_INCLUDES="-I$found/include"
22461
apr_addto_bugger="-I$found/include"
22462
for i in $apr_addto_bugger; do
22463
apr_addto_duplicate="0"
22464
for j in $APRUTIL_INCLUDES; do
22465
if test "x$i" = "x$j"; then
22466
apr_addto_duplicate="1"
22470
if test $apr_addto_duplicate = "0"; then
22471
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES"
22472
APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
22478
if test "x$APRUTIL_LDFLAGS" = "x"; then
22479
test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$found/lib\""
22480
APRUTIL_LDFLAGS="-L$found/lib"
22482
apr_addto_bugger="-L$found/lib"
22483
for i in $apr_addto_bugger; do
22484
apr_addto_duplicate="0"
22485
for j in $APRUTIL_LDFLAGS; do
22486
if test "x$i" = "x$j"; then
22487
apr_addto_duplicate="1"
22491
if test $apr_addto_duplicate = "0"; then
22492
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS"
22493
APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
22498
apu_db_header=$bdb_header
22499
apu_db_lib=$bdb_libname
22504
if test "$apu_have_db" = "1"; then
22508
if test "$apu_db_version" != "3"; then
22509
{ { echo "$as_me:$LINENO: error: Berkeley db3 not found" >&5
22510
echo "$as_me: error: Berkeley db3 not found" >&2;}
22511
{ (exit 1); exit 1; }; }
22516
places="$check_places"
22517
if test -z "$places"; then
22518
places="std /usr/local /usr/local/BerkeleyDB.4.0 /boot/home/config"
22522
if test ""0"" != "-1"; then
22523
bdb_version="$bdb_version."0""
22524
if test ""-1"" != "-1"; then
22525
bdb_version="$bdb_version."-1""
22528
bdb_places="$places"
22529
bdb_default_search_headers="db4/db.h db.h"
22530
bdb_default_search_lib_names="db-4.0 db4 db"
22535
# Save the original values of the flags we tweak.
22536
apu_check_lib_save_libs="$LIBS"
22537
apu_check_lib_save_ldflags="$LDFLAGS"
22538
apu_check_lib_save_cppflags="$CPPFLAGS"
22540
# The variable `found' is the prefix under which we've found
22541
# Berkeley DB, or `not' if we haven't found it anywhere yet.
22543
for bdb_place in $bdb_places; do
22545
LDFLAGS="$apu_check_lib_save_ldflags"
22546
CPPFLAGS="$apu_check_lib_save_cppflags"
22547
case "$bdb_place" in
22549
description="the standard places"
22552
header="`echo $bdb_place | sed -e 's/:.*$//'`"
22553
lib="`echo $bdb_place | sed -e 's/^.*://'`"
22554
CPPFLAGS="$CPPFLAGS -I$header"
22555
LDFLAGS="$LDFLAGS -L$lib"
22556
description="$header and $lib"
22559
if test -d $bdb_place; then
22560
LDFLAGS="$LDFLAGS -L$bdb_place/lib"
22561
CPPFLAGS="$CPPFLAGS -I$bdb_place/include"
22563
echo "$as_me:$LINENO: checking for Berkeley DB $bdb_version in $bdb_place" >&5
22564
echo $ECHO_N "checking for Berkeley DB $bdb_version in $bdb_place... $ECHO_C" >&6
22565
echo "$as_me:$LINENO: result: directory not found" >&5
22566
echo "${ECHO_T}directory not found" >&6
22569
description="$bdb_place"
22573
# Since there is no AC_MSG_NOTICE in autoconf 2.13, we use this
22574
# trick to display a message instead.
22575
echo "$as_me:$LINENO: checking for Berkeley DB $bdb_version in $description" >&5
22576
echo $ECHO_N "checking for Berkeley DB $bdb_version in $description... $ECHO_C" >&6
22577
echo "$as_me:$LINENO: result: " >&5
22578
echo "${ECHO_T}" >&6
22580
for bdb_libname in $bdb_default_search_lib_names; do
22581
for bdb_header in $bdb_default_search_headers; do
22582
# Clear the header cache variable for each location
22584
cache_id="`echo ac_cv_header_${bdb_header} \
22585
| sed -e 's/[^a-zA-Z0-9_]/_/g'`"
22588
as_ac_Header=`echo "ac_cv_header_$bdb_header" | $as_tr_sh`
22589
if eval "test \"\${$as_ac_Header+set}\" = set"; then
22590
echo "$as_me:$LINENO: checking for $bdb_header" >&5
22591
echo $ECHO_N "checking for $bdb_header... $ECHO_C" >&6
22592
if eval "test \"\${$as_ac_Header+set}\" = set"; then
22593
echo $ECHO_N "(cached) $ECHO_C" >&6
22595
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22596
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22598
# Is the header compilable?
22599
echo "$as_me:$LINENO: checking $bdb_header usability" >&5
22600
echo $ECHO_N "checking $bdb_header usability... $ECHO_C" >&6
22601
cat >conftest.$ac_ext <<_ACEOF
22604
cat confdefs.h >>conftest.$ac_ext
22605
cat >>conftest.$ac_ext <<_ACEOF
22606
/* end confdefs.h. */
22607
$ac_includes_default
22608
#include <$bdb_header>
22610
rm -f conftest.$ac_objext
22611
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22612
(eval $ac_compile) 2>conftest.er1
22614
grep -v '^ *+' conftest.er1 >conftest.err
22616
cat conftest.err >&5
22617
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22618
(exit $ac_status); } &&
22619
{ ac_try='test -z "$ac_c_werror_flag"
22620
|| test ! -s conftest.err'
22621
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22622
(eval $ac_try) 2>&5
22624
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22625
(exit $ac_status); }; } &&
22626
{ ac_try='test -s conftest.$ac_objext'
22627
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22628
(eval $ac_try) 2>&5
22630
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22631
(exit $ac_status); }; }; then
22632
ac_header_compiler=yes
22634
echo "$as_me: failed program was:" >&5
22635
sed 's/^/| /' conftest.$ac_ext >&5
22637
ac_header_compiler=no
22639
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22640
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22641
echo "${ECHO_T}$ac_header_compiler" >&6
22643
# Is the header present?
22644
echo "$as_me:$LINENO: checking $bdb_header presence" >&5
22645
echo $ECHO_N "checking $bdb_header presence... $ECHO_C" >&6
22646
cat >conftest.$ac_ext <<_ACEOF
22649
cat confdefs.h >>conftest.$ac_ext
22650
cat >>conftest.$ac_ext <<_ACEOF
22651
/* end confdefs.h. */
22652
#include <$bdb_header>
22654
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22655
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22657
grep -v '^ *+' conftest.er1 >conftest.err
22659
cat conftest.err >&5
22660
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22661
(exit $ac_status); } >/dev/null; then
22662
if test -s conftest.err; then
22663
ac_cpp_err=$ac_c_preproc_warn_flag
22664
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22671
if test -z "$ac_cpp_err"; then
22672
ac_header_preproc=yes
22674
echo "$as_me: failed program was:" >&5
22675
sed 's/^/| /' conftest.$ac_ext >&5
22677
ac_header_preproc=no
22679
rm -f conftest.err conftest.$ac_ext
22680
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22681
echo "${ECHO_T}$ac_header_preproc" >&6
22683
# So? What about this header?
22684
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22686
{ echo "$as_me:$LINENO: WARNING: $bdb_header: accepted by the compiler, rejected by the preprocessor!" >&5
22687
echo "$as_me: WARNING: $bdb_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22688
{ echo "$as_me:$LINENO: WARNING: $bdb_header: proceeding with the compiler's result" >&5
22689
echo "$as_me: WARNING: $bdb_header: proceeding with the compiler's result" >&2;}
22690
ac_header_preproc=yes
22693
{ echo "$as_me:$LINENO: WARNING: $bdb_header: present but cannot be compiled" >&5
22694
echo "$as_me: WARNING: $bdb_header: present but cannot be compiled" >&2;}
22695
{ echo "$as_me:$LINENO: WARNING: $bdb_header: check for missing prerequisite headers?" >&5
22696
echo "$as_me: WARNING: $bdb_header: check for missing prerequisite headers?" >&2;}
22697
{ echo "$as_me:$LINENO: WARNING: $bdb_header: see the Autoconf documentation" >&5
22698
echo "$as_me: WARNING: $bdb_header: see the Autoconf documentation" >&2;}
22699
{ echo "$as_me:$LINENO: WARNING: $bdb_header: section \"Present But Cannot Be Compiled\"" >&5
22700
echo "$as_me: WARNING: $bdb_header: section \"Present But Cannot Be Compiled\"" >&2;}
22701
{ echo "$as_me:$LINENO: WARNING: $bdb_header: proceeding with the preprocessor's result" >&5
22702
echo "$as_me: WARNING: $bdb_header: proceeding with the preprocessor's result" >&2;}
22703
{ echo "$as_me:$LINENO: WARNING: $bdb_header: in the future, the compiler will take precedence" >&5
22704
echo "$as_me: WARNING: $bdb_header: in the future, the compiler will take precedence" >&2;}
22707
## ------------------------------------------ ##
22708
## Report this to the AC_PACKAGE_NAME lists. ##
22709
## ------------------------------------------ ##
22712
sed "s/^/$as_me: WARNING: /" >&2
22715
echo "$as_me:$LINENO: checking for $bdb_header" >&5
22716
echo $ECHO_N "checking for $bdb_header... $ECHO_C" >&6
22717
if eval "test \"\${$as_ac_Header+set}\" = set"; then
22718
echo $ECHO_N "(cached) $ECHO_C" >&6
22720
eval "$as_ac_Header=\$ac_header_preproc"
22722
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22723
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22726
if test `eval echo '${'$as_ac_Header'}'` = yes; then
22728
if test ""4"" = "3" -o ""4"" = "4"; then
22729
# We generate a separate cache variable for each prefix and libname
22730
# we search under. That way, we avoid caching information that
22731
# changes if the user runs `configure' with a different set of
22734
cache_id="`echo apu_cv_check_berkeley_db_"4"_"0"_"-1"_${bdb_header}_${bdb_libname}_in_${bdb_place} \
22735
| sed -e 's/[^a-zA-Z0-9_]/_/g'`"
22738
echo "$as_me:$LINENO: checking for -l$bdb_libname" >&5
22739
echo $ECHO_N "checking for -l$bdb_libname... $ECHO_C" >&6
22740
if eval "test \"\${$cache_id+set}\" = set"; then
22741
echo $ECHO_N "(cached) $ECHO_C" >&6
22745
apu_try_berkeley_db_save_libs="$LIBS"
22747
apu_check_berkeley_db_major="4"
22748
apu_check_berkeley_db_minor="0"
22749
apu_check_berkeley_db_patch="-1"
22750
apu_try_berkeley_db_header=$bdb_header
22751
apu_try_berkeley_db_libname=$bdb_libname
22753
LIBS="$LIBS -l$apu_try_berkeley_db_libname"
22754
if test "$cross_compiling" = yes; then
22755
apu_try_berkeley_db=yes
22758
cat >conftest.$ac_ext <<_ACEOF
22761
cat confdefs.h >>conftest.$ac_ext
22762
cat >>conftest.$ac_ext <<_ACEOF
22763
/* end confdefs.h. */
22766
#include <$apu_try_berkeley_db_header>
22769
int major, minor, patch;
22771
db_version(&major, &minor, &patch);
22773
/* Sanity check: ensure that db.h constants actually match the db library */
22774
if (major != DB_VERSION_MAJOR
22775
|| minor != DB_VERSION_MINOR
22776
|| patch != DB_VERSION_PATCH)
22779
/* Run-time check: ensure the library claims to be the correct version. */
22781
if ($apu_check_berkeley_db_major != -1) {
22782
if (major < $apu_check_berkeley_db_major)
22784
if (major > $apu_check_berkeley_db_major)
22788
if ($apu_check_berkeley_db_minor != -1) {
22789
if (minor < $apu_check_berkeley_db_minor)
22791
if (minor > $apu_check_berkeley_db_minor)
22795
if ($apu_check_berkeley_db_patch == -1
22796
|| patch >= $apu_check_berkeley_db_patch)
22803
rm -f conftest$ac_exeext
22804
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22805
(eval $ac_link) 2>&5
22807
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22808
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22809
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22810
(eval $ac_try) 2>&5
22812
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22813
(exit $ac_status); }; }; then
22814
apu_try_berkeley_db=yes
22816
echo "$as_me: program exited with status $ac_status" >&5
22817
echo "$as_me: failed program was:" >&5
22818
sed 's/^/| /' conftest.$ac_ext >&5
22820
( exit $ac_status )
22821
apu_try_berkeley_db=no
22823
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22826
LIBS="$apu_try_berkeley_db_save_libs"
22829
eval "$cache_id=$apu_try_berkeley_db"
22833
result="`eval echo '$'$cache_id`"
22834
echo "$as_me:$LINENO: result: $result" >&5
22835
echo "${ECHO_T}$result" >&6
22836
elif test ""4"" = "1"; then
22837
as_ac_Lib=`echo "ac_cv_lib_$bdb_libname''_dbopen" | $as_tr_sh`
22838
echo "$as_me:$LINENO: checking for dbopen in -l$bdb_libname" >&5
22839
echo $ECHO_N "checking for dbopen in -l$bdb_libname... $ECHO_C" >&6
22840
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
22841
echo $ECHO_N "(cached) $ECHO_C" >&6
22843
ac_check_lib_save_LIBS=$LIBS
22844
LIBS="-l$bdb_libname $LIBS"
22845
cat >conftest.$ac_ext <<_ACEOF
22848
cat confdefs.h >>conftest.$ac_ext
22849
cat >>conftest.$ac_ext <<_ACEOF
22850
/* end confdefs.h. */
22852
/* Override any gcc2 internal prototype to avoid an error. */
22856
/* We use char because int might match the return type of a gcc2
22857
builtin and then its argument prototype would still apply. */
22867
rm -f conftest.$ac_objext conftest$ac_exeext
22868
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22869
(eval $ac_link) 2>conftest.er1
22871
grep -v '^ *+' conftest.er1 >conftest.err
22873
cat conftest.err >&5
22874
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22875
(exit $ac_status); } &&
22876
{ ac_try='test -z "$ac_c_werror_flag"
22877
|| test ! -s conftest.err'
22878
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22879
(eval $ac_try) 2>&5
22881
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22882
(exit $ac_status); }; } &&
22883
{ ac_try='test -s conftest$ac_exeext'
22884
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22885
(eval $ac_try) 2>&5
22887
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22888
(exit $ac_status); }; }; then
22889
eval "$as_ac_Lib=yes"
22891
echo "$as_me: failed program was:" >&5
22892
sed 's/^/| /' conftest.$ac_ext >&5
22894
eval "$as_ac_Lib=no"
22896
rm -f conftest.err conftest.$ac_objext \
22897
conftest$ac_exeext conftest.$ac_ext
22898
LIBS=$ac_check_lib_save_LIBS
22900
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
22901
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
22902
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
22909
elif test ""4"" = "2"; then
22910
as_ac_Lib=`echo "ac_cv_lib_$bdb_libname''_db_open" | $as_tr_sh`
22911
echo "$as_me:$LINENO: checking for db_open in -l$bdb_libname" >&5
22912
echo $ECHO_N "checking for db_open in -l$bdb_libname... $ECHO_C" >&6
22913
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
22914
echo $ECHO_N "(cached) $ECHO_C" >&6
22916
ac_check_lib_save_LIBS=$LIBS
22917
LIBS="-l$bdb_libname $LIBS"
22918
cat >conftest.$ac_ext <<_ACEOF
22921
cat confdefs.h >>conftest.$ac_ext
22922
cat >>conftest.$ac_ext <<_ACEOF
22923
/* end confdefs.h. */
22925
/* Override any gcc2 internal prototype to avoid an error. */
22929
/* We use char because int might match the return type of a gcc2
22930
builtin and then its argument prototype would still apply. */
22940
rm -f conftest.$ac_objext conftest$ac_exeext
22941
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22942
(eval $ac_link) 2>conftest.er1
22944
grep -v '^ *+' conftest.er1 >conftest.err
22946
cat conftest.err >&5
22947
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22948
(exit $ac_status); } &&
22949
{ ac_try='test -z "$ac_c_werror_flag"
22950
|| test ! -s conftest.err'
22951
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22952
(eval $ac_try) 2>&5
22954
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22955
(exit $ac_status); }; } &&
22956
{ ac_try='test -s conftest$ac_exeext'
22957
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22958
(eval $ac_try) 2>&5
22960
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22961
(exit $ac_status); }; }; then
22962
eval "$as_ac_Lib=yes"
22964
echo "$as_me: failed program was:" >&5
22965
sed 's/^/| /' conftest.$ac_ext >&5
22967
eval "$as_ac_Lib=no"
22969
rm -f conftest.err conftest.$ac_objext \
22970
conftest$ac_exeext conftest.$ac_ext
22971
LIBS=$ac_check_lib_save_LIBS
22973
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
22974
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
22975
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
22990
# If we found it, no need to search any more.
22991
if test "$result" = "yes"; then
22996
test "$found" != "not" && break
22998
test "$found" != "not" && break
23001
# Restore the original values of the flags we tweak.
23002
LDFLAGS="$apu_check_lib_save_ldflags"
23003
CPPFLAGS="$apu_check_lib_save_cppflags"
23010
apu_db_header=$bdb_header
23011
apu_db_lib=$bdb_libname
23015
header="`echo $found | sed -e 's/:.*$//'`"
23016
lib="`echo $found | sed -e 's/^.*://'`"
23019
if test "x$APRUTIL_INCLUDES" = "x"; then
23020
test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$header\""
23021
APRUTIL_INCLUDES="-I$header"
23023
apr_addto_bugger="-I$header"
23024
for i in $apr_addto_bugger; do
23025
apr_addto_duplicate="0"
23026
for j in $APRUTIL_INCLUDES; do
23027
if test "x$i" = "x$j"; then
23028
apr_addto_duplicate="1"
23032
if test $apr_addto_duplicate = "0"; then
23033
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES"
23034
APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
23040
if test "x$APRUTIL_LDFLAGS" = "x"; then
23041
test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$lib\""
23042
APRUTIL_LDFLAGS="-L$lib"
23044
apr_addto_bugger="-L$lib"
23045
for i in $apr_addto_bugger; do
23046
apr_addto_duplicate="0"
23047
for j in $APRUTIL_LDFLAGS; do
23048
if test "x$i" = "x$j"; then
23049
apr_addto_duplicate="1"
23053
if test $apr_addto_duplicate = "0"; then
23054
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS"
23055
APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
23060
apu_db_header=$bdb_header
23061
apu_db_lib=$bdb_libname
23066
if test "x$APRUTIL_INCLUDES" = "x"; then
23067
test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$found/include\""
23068
APRUTIL_INCLUDES="-I$found/include"
23070
apr_addto_bugger="-I$found/include"
23071
for i in $apr_addto_bugger; do
23072
apr_addto_duplicate="0"
23073
for j in $APRUTIL_INCLUDES; do
23074
if test "x$i" = "x$j"; then
23075
apr_addto_duplicate="1"
23079
if test $apr_addto_duplicate = "0"; then
23080
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES"
23081
APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
23087
if test "x$APRUTIL_LDFLAGS" = "x"; then
23088
test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$found/lib\""
23089
APRUTIL_LDFLAGS="-L$found/lib"
23091
apr_addto_bugger="-L$found/lib"
23092
for i in $apr_addto_bugger; do
23093
apr_addto_duplicate="0"
23094
for j in $APRUTIL_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 APRUTIL_LDFLAGS"
23102
APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
23107
apu_db_header=$bdb_header
23108
apu_db_lib=$bdb_libname
23113
if test "$apu_have_db" = "1"; then
23117
if test "$apu_db_version" != "4"; then
23118
{ { echo "$as_me:$LINENO: error: Berkeley db4 not found" >&5
23119
echo "$as_me: error: Berkeley db4 not found" >&2;}
23120
{ (exit 1); exit 1; }; }
23125
places="$check_places"
23126
if test -z "$places"; then
23127
places="std /usr/local /usr/local/BerkeleyDB.4.1 /boot/home/config"
23131
if test ""1"" != "-1"; then
23132
bdb_version="$bdb_version."1""
23133
if test ""-1"" != "-1"; then
23134
bdb_version="$bdb_version."-1""
23137
bdb_places="$places"
23138
bdb_default_search_headers="db41/db.h db4/db.h db.h"
23139
bdb_default_search_lib_names="db-4.1 db41 db4 db"
23144
# Save the original values of the flags we tweak.
23145
apu_check_lib_save_libs="$LIBS"
23146
apu_check_lib_save_ldflags="$LDFLAGS"
23147
apu_check_lib_save_cppflags="$CPPFLAGS"
23149
# The variable `found' is the prefix under which we've found
23150
# Berkeley DB, or `not' if we haven't found it anywhere yet.
23152
for bdb_place in $bdb_places; do
23154
LDFLAGS="$apu_check_lib_save_ldflags"
23155
CPPFLAGS="$apu_check_lib_save_cppflags"
23156
case "$bdb_place" in
23158
description="the standard places"
23161
header="`echo $bdb_place | sed -e 's/:.*$//'`"
23162
lib="`echo $bdb_place | sed -e 's/^.*://'`"
23163
CPPFLAGS="$CPPFLAGS -I$header"
23164
LDFLAGS="$LDFLAGS -L$lib"
23165
description="$header and $lib"
23168
if test -d $bdb_place; then
23169
LDFLAGS="$LDFLAGS -L$bdb_place/lib"
23170
CPPFLAGS="$CPPFLAGS -I$bdb_place/include"
23172
echo "$as_me:$LINENO: checking for Berkeley DB $bdb_version in $bdb_place" >&5
23173
echo $ECHO_N "checking for Berkeley DB $bdb_version in $bdb_place... $ECHO_C" >&6
23174
echo "$as_me:$LINENO: result: directory not found" >&5
23175
echo "${ECHO_T}directory not found" >&6
23178
description="$bdb_place"
23182
# Since there is no AC_MSG_NOTICE in autoconf 2.13, we use this
23183
# trick to display a message instead.
23184
echo "$as_me:$LINENO: checking for Berkeley DB $bdb_version in $description" >&5
23185
echo $ECHO_N "checking for Berkeley DB $bdb_version in $description... $ECHO_C" >&6
23186
echo "$as_me:$LINENO: result: " >&5
23187
echo "${ECHO_T}" >&6
23189
for bdb_libname in $bdb_default_search_lib_names; do
23190
for bdb_header in $bdb_default_search_headers; do
23191
# Clear the header cache variable for each location
23193
cache_id="`echo ac_cv_header_${bdb_header} \
23194
| sed -e 's/[^a-zA-Z0-9_]/_/g'`"
23197
as_ac_Header=`echo "ac_cv_header_$bdb_header" | $as_tr_sh`
23198
if eval "test \"\${$as_ac_Header+set}\" = set"; then
23199
echo "$as_me:$LINENO: checking for $bdb_header" >&5
23200
echo $ECHO_N "checking for $bdb_header... $ECHO_C" >&6
23201
if eval "test \"\${$as_ac_Header+set}\" = set"; then
23202
echo $ECHO_N "(cached) $ECHO_C" >&6
23204
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23205
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23207
# Is the header compilable?
23208
echo "$as_me:$LINENO: checking $bdb_header usability" >&5
23209
echo $ECHO_N "checking $bdb_header usability... $ECHO_C" >&6
23210
cat >conftest.$ac_ext <<_ACEOF
23213
cat confdefs.h >>conftest.$ac_ext
23214
cat >>conftest.$ac_ext <<_ACEOF
23215
/* end confdefs.h. */
23216
$ac_includes_default
23217
#include <$bdb_header>
23219
rm -f conftest.$ac_objext
23220
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23221
(eval $ac_compile) 2>conftest.er1
23223
grep -v '^ *+' conftest.er1 >conftest.err
23225
cat conftest.err >&5
23226
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23227
(exit $ac_status); } &&
23228
{ ac_try='test -z "$ac_c_werror_flag"
23229
|| test ! -s conftest.err'
23230
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23231
(eval $ac_try) 2>&5
23233
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23234
(exit $ac_status); }; } &&
23235
{ ac_try='test -s conftest.$ac_objext'
23236
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23237
(eval $ac_try) 2>&5
23239
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23240
(exit $ac_status); }; }; then
23241
ac_header_compiler=yes
23243
echo "$as_me: failed program was:" >&5
23244
sed 's/^/| /' conftest.$ac_ext >&5
23246
ac_header_compiler=no
23248
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23249
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23250
echo "${ECHO_T}$ac_header_compiler" >&6
23252
# Is the header present?
23253
echo "$as_me:$LINENO: checking $bdb_header presence" >&5
23254
echo $ECHO_N "checking $bdb_header presence... $ECHO_C" >&6
23255
cat >conftest.$ac_ext <<_ACEOF
23258
cat confdefs.h >>conftest.$ac_ext
23259
cat >>conftest.$ac_ext <<_ACEOF
23260
/* end confdefs.h. */
23261
#include <$bdb_header>
23263
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23264
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23266
grep -v '^ *+' conftest.er1 >conftest.err
23268
cat conftest.err >&5
23269
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23270
(exit $ac_status); } >/dev/null; then
23271
if test -s conftest.err; then
23272
ac_cpp_err=$ac_c_preproc_warn_flag
23273
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23280
if test -z "$ac_cpp_err"; then
23281
ac_header_preproc=yes
23283
echo "$as_me: failed program was:" >&5
23284
sed 's/^/| /' conftest.$ac_ext >&5
23286
ac_header_preproc=no
23288
rm -f conftest.err conftest.$ac_ext
23289
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23290
echo "${ECHO_T}$ac_header_preproc" >&6
23292
# So? What about this header?
23293
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23295
{ echo "$as_me:$LINENO: WARNING: $bdb_header: accepted by the compiler, rejected by the preprocessor!" >&5
23296
echo "$as_me: WARNING: $bdb_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23297
{ echo "$as_me:$LINENO: WARNING: $bdb_header: proceeding with the compiler's result" >&5
23298
echo "$as_me: WARNING: $bdb_header: proceeding with the compiler's result" >&2;}
23299
ac_header_preproc=yes
23302
{ echo "$as_me:$LINENO: WARNING: $bdb_header: present but cannot be compiled" >&5
23303
echo "$as_me: WARNING: $bdb_header: present but cannot be compiled" >&2;}
23304
{ echo "$as_me:$LINENO: WARNING: $bdb_header: check for missing prerequisite headers?" >&5
23305
echo "$as_me: WARNING: $bdb_header: check for missing prerequisite headers?" >&2;}
23306
{ echo "$as_me:$LINENO: WARNING: $bdb_header: see the Autoconf documentation" >&5
23307
echo "$as_me: WARNING: $bdb_header: see the Autoconf documentation" >&2;}
23308
{ echo "$as_me:$LINENO: WARNING: $bdb_header: section \"Present But Cannot Be Compiled\"" >&5
23309
echo "$as_me: WARNING: $bdb_header: section \"Present But Cannot Be Compiled\"" >&2;}
23310
{ echo "$as_me:$LINENO: WARNING: $bdb_header: proceeding with the preprocessor's result" >&5
23311
echo "$as_me: WARNING: $bdb_header: proceeding with the preprocessor's result" >&2;}
23312
{ echo "$as_me:$LINENO: WARNING: $bdb_header: in the future, the compiler will take precedence" >&5
23313
echo "$as_me: WARNING: $bdb_header: in the future, the compiler will take precedence" >&2;}
23316
## ------------------------------------------ ##
23317
## Report this to the AC_PACKAGE_NAME lists. ##
23318
## ------------------------------------------ ##
23321
sed "s/^/$as_me: WARNING: /" >&2
23324
echo "$as_me:$LINENO: checking for $bdb_header" >&5
23325
echo $ECHO_N "checking for $bdb_header... $ECHO_C" >&6
23326
if eval "test \"\${$as_ac_Header+set}\" = set"; then
23327
echo $ECHO_N "(cached) $ECHO_C" >&6
23329
eval "$as_ac_Header=\$ac_header_preproc"
23331
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23332
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23335
if test `eval echo '${'$as_ac_Header'}'` = yes; then
23337
if test ""4"" = "3" -o ""4"" = "4"; then
23338
# We generate a separate cache variable for each prefix and libname
23339
# we search under. That way, we avoid caching information that
23340
# changes if the user runs `configure' with a different set of
23343
cache_id="`echo apu_cv_check_berkeley_db_"4"_"1"_"-1"_${bdb_header}_${bdb_libname}_in_${bdb_place} \
23344
| sed -e 's/[^a-zA-Z0-9_]/_/g'`"
23347
echo "$as_me:$LINENO: checking for -l$bdb_libname" >&5
23348
echo $ECHO_N "checking for -l$bdb_libname... $ECHO_C" >&6
23349
if eval "test \"\${$cache_id+set}\" = set"; then
23350
echo $ECHO_N "(cached) $ECHO_C" >&6
23354
apu_try_berkeley_db_save_libs="$LIBS"
23356
apu_check_berkeley_db_major="4"
23357
apu_check_berkeley_db_minor="1"
23358
apu_check_berkeley_db_patch="-1"
23359
apu_try_berkeley_db_header=$bdb_header
23360
apu_try_berkeley_db_libname=$bdb_libname
23362
LIBS="$LIBS -l$apu_try_berkeley_db_libname"
23363
if test "$cross_compiling" = yes; then
23364
apu_try_berkeley_db=yes
23367
cat >conftest.$ac_ext <<_ACEOF
23370
cat confdefs.h >>conftest.$ac_ext
23371
cat >>conftest.$ac_ext <<_ACEOF
23372
/* end confdefs.h. */
23375
#include <$apu_try_berkeley_db_header>
23378
int major, minor, patch;
23380
db_version(&major, &minor, &patch);
23382
/* Sanity check: ensure that db.h constants actually match the db library */
23383
if (major != DB_VERSION_MAJOR
23384
|| minor != DB_VERSION_MINOR
23385
|| patch != DB_VERSION_PATCH)
23388
/* Run-time check: ensure the library claims to be the correct version. */
23390
if ($apu_check_berkeley_db_major != -1) {
23391
if (major < $apu_check_berkeley_db_major)
23393
if (major > $apu_check_berkeley_db_major)
23397
if ($apu_check_berkeley_db_minor != -1) {
23398
if (minor < $apu_check_berkeley_db_minor)
23400
if (minor > $apu_check_berkeley_db_minor)
23404
if ($apu_check_berkeley_db_patch == -1
23405
|| patch >= $apu_check_berkeley_db_patch)
23412
rm -f conftest$ac_exeext
23413
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23414
(eval $ac_link) 2>&5
23416
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23417
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23418
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23419
(eval $ac_try) 2>&5
23421
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23422
(exit $ac_status); }; }; then
23423
apu_try_berkeley_db=yes
23425
echo "$as_me: program exited with status $ac_status" >&5
23426
echo "$as_me: failed program was:" >&5
23427
sed 's/^/| /' conftest.$ac_ext >&5
23429
( exit $ac_status )
23430
apu_try_berkeley_db=no
23432
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23435
LIBS="$apu_try_berkeley_db_save_libs"
23438
eval "$cache_id=$apu_try_berkeley_db"
23442
result="`eval echo '$'$cache_id`"
23443
echo "$as_me:$LINENO: result: $result" >&5
23444
echo "${ECHO_T}$result" >&6
23445
elif test ""4"" = "1"; then
23446
as_ac_Lib=`echo "ac_cv_lib_$bdb_libname''_dbopen" | $as_tr_sh`
23447
echo "$as_me:$LINENO: checking for dbopen in -l$bdb_libname" >&5
23448
echo $ECHO_N "checking for dbopen in -l$bdb_libname... $ECHO_C" >&6
23449
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
23450
echo $ECHO_N "(cached) $ECHO_C" >&6
23452
ac_check_lib_save_LIBS=$LIBS
23453
LIBS="-l$bdb_libname $LIBS"
23454
cat >conftest.$ac_ext <<_ACEOF
23457
cat confdefs.h >>conftest.$ac_ext
23458
cat >>conftest.$ac_ext <<_ACEOF
23459
/* end confdefs.h. */
23461
/* Override any gcc2 internal prototype to avoid an error. */
23465
/* We use char because int might match the return type of a gcc2
23466
builtin and then its argument prototype would still apply. */
23476
rm -f conftest.$ac_objext conftest$ac_exeext
23477
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23478
(eval $ac_link) 2>conftest.er1
23480
grep -v '^ *+' conftest.er1 >conftest.err
23482
cat conftest.err >&5
23483
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23484
(exit $ac_status); } &&
23485
{ ac_try='test -z "$ac_c_werror_flag"
23486
|| test ! -s conftest.err'
23487
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23488
(eval $ac_try) 2>&5
23490
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23491
(exit $ac_status); }; } &&
23492
{ ac_try='test -s conftest$ac_exeext'
23493
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23494
(eval $ac_try) 2>&5
23496
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23497
(exit $ac_status); }; }; then
23498
eval "$as_ac_Lib=yes"
23500
echo "$as_me: failed program was:" >&5
23501
sed 's/^/| /' conftest.$ac_ext >&5
23503
eval "$as_ac_Lib=no"
23505
rm -f conftest.err conftest.$ac_objext \
23506
conftest$ac_exeext conftest.$ac_ext
23507
LIBS=$ac_check_lib_save_LIBS
23509
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
23510
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
23511
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23518
elif test ""4"" = "2"; then
23519
as_ac_Lib=`echo "ac_cv_lib_$bdb_libname''_db_open" | $as_tr_sh`
23520
echo "$as_me:$LINENO: checking for db_open in -l$bdb_libname" >&5
23521
echo $ECHO_N "checking for db_open in -l$bdb_libname... $ECHO_C" >&6
23522
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
23523
echo $ECHO_N "(cached) $ECHO_C" >&6
23525
ac_check_lib_save_LIBS=$LIBS
23526
LIBS="-l$bdb_libname $LIBS"
23527
cat >conftest.$ac_ext <<_ACEOF
23530
cat confdefs.h >>conftest.$ac_ext
23531
cat >>conftest.$ac_ext <<_ACEOF
23532
/* end confdefs.h. */
23534
/* Override any gcc2 internal prototype to avoid an error. */
23538
/* We use char because int might match the return type of a gcc2
23539
builtin and then its argument prototype would still apply. */
23549
rm -f conftest.$ac_objext conftest$ac_exeext
23550
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23551
(eval $ac_link) 2>conftest.er1
23553
grep -v '^ *+' conftest.er1 >conftest.err
23555
cat conftest.err >&5
23556
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23557
(exit $ac_status); } &&
23558
{ ac_try='test -z "$ac_c_werror_flag"
23559
|| test ! -s conftest.err'
23560
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23561
(eval $ac_try) 2>&5
23563
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23564
(exit $ac_status); }; } &&
23565
{ ac_try='test -s conftest$ac_exeext'
23566
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23567
(eval $ac_try) 2>&5
23569
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23570
(exit $ac_status); }; }; then
23571
eval "$as_ac_Lib=yes"
23573
echo "$as_me: failed program was:" >&5
23574
sed 's/^/| /' conftest.$ac_ext >&5
23576
eval "$as_ac_Lib=no"
23578
rm -f conftest.err conftest.$ac_objext \
23579
conftest$ac_exeext conftest.$ac_ext
23580
LIBS=$ac_check_lib_save_LIBS
23582
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
23583
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
23584
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23599
# If we found it, no need to search any more.
23600
if test "$result" = "yes"; then
23605
test "$found" != "not" && break
23607
test "$found" != "not" && break
23610
# Restore the original values of the flags we tweak.
23611
LDFLAGS="$apu_check_lib_save_ldflags"
23612
CPPFLAGS="$apu_check_lib_save_cppflags"
23619
apu_db_header=$bdb_header
23620
apu_db_lib=$bdb_libname
23624
header="`echo $found | sed -e 's/:.*$//'`"
23625
lib="`echo $found | sed -e 's/^.*://'`"
23628
if test "x$APRUTIL_INCLUDES" = "x"; then
23629
test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$header\""
23630
APRUTIL_INCLUDES="-I$header"
23632
apr_addto_bugger="-I$header"
23633
for i in $apr_addto_bugger; do
23634
apr_addto_duplicate="0"
23635
for j in $APRUTIL_INCLUDES; do
23636
if test "x$i" = "x$j"; then
23637
apr_addto_duplicate="1"
23641
if test $apr_addto_duplicate = "0"; then
23642
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES"
23643
APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
23649
if test "x$APRUTIL_LDFLAGS" = "x"; then
23650
test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$lib\""
23651
APRUTIL_LDFLAGS="-L$lib"
23653
apr_addto_bugger="-L$lib"
23654
for i in $apr_addto_bugger; do
23655
apr_addto_duplicate="0"
23656
for j in $APRUTIL_LDFLAGS; do
23657
if test "x$i" = "x$j"; then
23658
apr_addto_duplicate="1"
23662
if test $apr_addto_duplicate = "0"; then
23663
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS"
23664
APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
23669
apu_db_header=$bdb_header
23670
apu_db_lib=$bdb_libname
23675
if test "x$APRUTIL_INCLUDES" = "x"; then
23676
test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$found/include\""
23677
APRUTIL_INCLUDES="-I$found/include"
23679
apr_addto_bugger="-I$found/include"
23680
for i in $apr_addto_bugger; do
23681
apr_addto_duplicate="0"
23682
for j in $APRUTIL_INCLUDES; do
23683
if test "x$i" = "x$j"; then
23684
apr_addto_duplicate="1"
23688
if test $apr_addto_duplicate = "0"; then
23689
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES"
23690
APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
23696
if test "x$APRUTIL_LDFLAGS" = "x"; then
23697
test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$found/lib\""
23698
APRUTIL_LDFLAGS="-L$found/lib"
23700
apr_addto_bugger="-L$found/lib"
23701
for i in $apr_addto_bugger; do
23702
apr_addto_duplicate="0"
23703
for j in $APRUTIL_LDFLAGS; do
23704
if test "x$i" = "x$j"; then
23705
apr_addto_duplicate="1"
23709
if test $apr_addto_duplicate = "0"; then
23710
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS"
23711
APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
23716
apu_db_header=$bdb_header
23717
apu_db_lib=$bdb_libname
23722
if test "$apu_have_db" = "1"; then
23726
if test "$apu_db_version" != "4"; then
23727
{ { echo "$as_me:$LINENO: error: Berkeley db4 not found" >&5
23728
echo "$as_me: error: Berkeley db4 not found" >&2;}
23729
{ (exit 1); exit 1; }; }
23734
places="$check_places"
23735
if test -z "$places"; then
23736
places="std /usr/local /usr/local/BerkeleyDB.4.2 /boot/home/config"
23740
if test ""2"" != "-1"; then
23741
bdb_version="$bdb_version."2""
23742
if test ""-1"" != "-1"; then
23743
bdb_version="$bdb_version."-1""
23746
bdb_places="$places"
23747
bdb_default_search_headers="db42/db.h db4/db.h db.h"
23748
bdb_default_search_lib_names="db-4.2 db42 db4 db"
23753
# Save the original values of the flags we tweak.
23754
apu_check_lib_save_libs="$LIBS"
23755
apu_check_lib_save_ldflags="$LDFLAGS"
23756
apu_check_lib_save_cppflags="$CPPFLAGS"
23758
# The variable `found' is the prefix under which we've found
23759
# Berkeley DB, or `not' if we haven't found it anywhere yet.
23761
for bdb_place in $bdb_places; do
23763
LDFLAGS="$apu_check_lib_save_ldflags"
23764
CPPFLAGS="$apu_check_lib_save_cppflags"
23765
case "$bdb_place" in
23767
description="the standard places"
23770
header="`echo $bdb_place | sed -e 's/:.*$//'`"
23771
lib="`echo $bdb_place | sed -e 's/^.*://'`"
23772
CPPFLAGS="$CPPFLAGS -I$header"
23773
LDFLAGS="$LDFLAGS -L$lib"
23774
description="$header and $lib"
23777
if test -d $bdb_place; then
23778
LDFLAGS="$LDFLAGS -L$bdb_place/lib"
23779
CPPFLAGS="$CPPFLAGS -I$bdb_place/include"
23781
echo "$as_me:$LINENO: checking for Berkeley DB $bdb_version in $bdb_place" >&5
23782
echo $ECHO_N "checking for Berkeley DB $bdb_version in $bdb_place... $ECHO_C" >&6
23783
echo "$as_me:$LINENO: result: directory not found" >&5
23784
echo "${ECHO_T}directory not found" >&6
23787
description="$bdb_place"
23791
# Since there is no AC_MSG_NOTICE in autoconf 2.13, we use this
23792
# trick to display a message instead.
23793
echo "$as_me:$LINENO: checking for Berkeley DB $bdb_version in $description" >&5
23794
echo $ECHO_N "checking for Berkeley DB $bdb_version in $description... $ECHO_C" >&6
23795
echo "$as_me:$LINENO: result: " >&5
23796
echo "${ECHO_T}" >&6
23798
for bdb_libname in $bdb_default_search_lib_names; do
23799
for bdb_header in $bdb_default_search_headers; do
23800
# Clear the header cache variable for each location
23802
cache_id="`echo ac_cv_header_${bdb_header} \
23803
| sed -e 's/[^a-zA-Z0-9_]/_/g'`"
23806
as_ac_Header=`echo "ac_cv_header_$bdb_header" | $as_tr_sh`
23807
if eval "test \"\${$as_ac_Header+set}\" = set"; then
23808
echo "$as_me:$LINENO: checking for $bdb_header" >&5
23809
echo $ECHO_N "checking for $bdb_header... $ECHO_C" >&6
23810
if eval "test \"\${$as_ac_Header+set}\" = set"; then
23811
echo $ECHO_N "(cached) $ECHO_C" >&6
23813
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23814
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23816
# Is the header compilable?
23817
echo "$as_me:$LINENO: checking $bdb_header usability" >&5
23818
echo $ECHO_N "checking $bdb_header usability... $ECHO_C" >&6
23819
cat >conftest.$ac_ext <<_ACEOF
23822
cat confdefs.h >>conftest.$ac_ext
23823
cat >>conftest.$ac_ext <<_ACEOF
23824
/* end confdefs.h. */
23825
$ac_includes_default
23826
#include <$bdb_header>
23828
rm -f conftest.$ac_objext
23829
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23830
(eval $ac_compile) 2>conftest.er1
23832
grep -v '^ *+' conftest.er1 >conftest.err
23834
cat conftest.err >&5
23835
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23836
(exit $ac_status); } &&
23837
{ ac_try='test -z "$ac_c_werror_flag"
23838
|| test ! -s conftest.err'
23839
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23840
(eval $ac_try) 2>&5
23842
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23843
(exit $ac_status); }; } &&
23844
{ ac_try='test -s conftest.$ac_objext'
23845
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23846
(eval $ac_try) 2>&5
23848
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23849
(exit $ac_status); }; }; then
23850
ac_header_compiler=yes
23852
echo "$as_me: failed program was:" >&5
23853
sed 's/^/| /' conftest.$ac_ext >&5
23855
ac_header_compiler=no
23857
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23858
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23859
echo "${ECHO_T}$ac_header_compiler" >&6
23861
# Is the header present?
23862
echo "$as_me:$LINENO: checking $bdb_header presence" >&5
23863
echo $ECHO_N "checking $bdb_header presence... $ECHO_C" >&6
23864
cat >conftest.$ac_ext <<_ACEOF
23867
cat confdefs.h >>conftest.$ac_ext
23868
cat >>conftest.$ac_ext <<_ACEOF
23869
/* end confdefs.h. */
23870
#include <$bdb_header>
23872
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23873
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23875
grep -v '^ *+' conftest.er1 >conftest.err
23877
cat conftest.err >&5
23878
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23879
(exit $ac_status); } >/dev/null; then
23880
if test -s conftest.err; then
23881
ac_cpp_err=$ac_c_preproc_warn_flag
23882
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23889
if test -z "$ac_cpp_err"; then
23890
ac_header_preproc=yes
23892
echo "$as_me: failed program was:" >&5
23893
sed 's/^/| /' conftest.$ac_ext >&5
23895
ac_header_preproc=no
23897
rm -f conftest.err conftest.$ac_ext
23898
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23899
echo "${ECHO_T}$ac_header_preproc" >&6
23901
# So? What about this header?
23902
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23904
{ echo "$as_me:$LINENO: WARNING: $bdb_header: accepted by the compiler, rejected by the preprocessor!" >&5
23905
echo "$as_me: WARNING: $bdb_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23906
{ echo "$as_me:$LINENO: WARNING: $bdb_header: proceeding with the compiler's result" >&5
23907
echo "$as_me: WARNING: $bdb_header: proceeding with the compiler's result" >&2;}
23908
ac_header_preproc=yes
23911
{ echo "$as_me:$LINENO: WARNING: $bdb_header: present but cannot be compiled" >&5
23912
echo "$as_me: WARNING: $bdb_header: present but cannot be compiled" >&2;}
23913
{ echo "$as_me:$LINENO: WARNING: $bdb_header: check for missing prerequisite headers?" >&5
23914
echo "$as_me: WARNING: $bdb_header: check for missing prerequisite headers?" >&2;}
23915
{ echo "$as_me:$LINENO: WARNING: $bdb_header: see the Autoconf documentation" >&5
23916
echo "$as_me: WARNING: $bdb_header: see the Autoconf documentation" >&2;}
23917
{ echo "$as_me:$LINENO: WARNING: $bdb_header: section \"Present But Cannot Be Compiled\"" >&5
23918
echo "$as_me: WARNING: $bdb_header: section \"Present But Cannot Be Compiled\"" >&2;}
23919
{ echo "$as_me:$LINENO: WARNING: $bdb_header: proceeding with the preprocessor's result" >&5
23920
echo "$as_me: WARNING: $bdb_header: proceeding with the preprocessor's result" >&2;}
23921
{ echo "$as_me:$LINENO: WARNING: $bdb_header: in the future, the compiler will take precedence" >&5
23922
echo "$as_me: WARNING: $bdb_header: in the future, the compiler will take precedence" >&2;}
23925
## ------------------------------------------ ##
23926
## Report this to the AC_PACKAGE_NAME lists. ##
23927
## ------------------------------------------ ##
23930
sed "s/^/$as_me: WARNING: /" >&2
23933
echo "$as_me:$LINENO: checking for $bdb_header" >&5
23934
echo $ECHO_N "checking for $bdb_header... $ECHO_C" >&6
23935
if eval "test \"\${$as_ac_Header+set}\" = set"; then
23936
echo $ECHO_N "(cached) $ECHO_C" >&6
23938
eval "$as_ac_Header=\$ac_header_preproc"
23940
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23941
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23944
if test `eval echo '${'$as_ac_Header'}'` = yes; then
23946
if test ""4"" = "3" -o ""4"" = "4"; then
23947
# We generate a separate cache variable for each prefix and libname
23948
# we search under. That way, we avoid caching information that
23949
# changes if the user runs `configure' with a different set of
23952
cache_id="`echo apu_cv_check_berkeley_db_"4"_"2"_"-1"_${bdb_header}_${bdb_libname}_in_${bdb_place} \
23953
| sed -e 's/[^a-zA-Z0-9_]/_/g'`"
23956
echo "$as_me:$LINENO: checking for -l$bdb_libname" >&5
23957
echo $ECHO_N "checking for -l$bdb_libname... $ECHO_C" >&6
23958
if eval "test \"\${$cache_id+set}\" = set"; then
23959
echo $ECHO_N "(cached) $ECHO_C" >&6
23963
apu_try_berkeley_db_save_libs="$LIBS"
23965
apu_check_berkeley_db_major="4"
23966
apu_check_berkeley_db_minor="2"
23967
apu_check_berkeley_db_patch="-1"
23968
apu_try_berkeley_db_header=$bdb_header
23969
apu_try_berkeley_db_libname=$bdb_libname
23971
LIBS="$LIBS -l$apu_try_berkeley_db_libname"
23972
if test "$cross_compiling" = yes; then
23973
apu_try_berkeley_db=yes
23976
cat >conftest.$ac_ext <<_ACEOF
23979
cat confdefs.h >>conftest.$ac_ext
23980
cat >>conftest.$ac_ext <<_ACEOF
23981
/* end confdefs.h. */
23984
#include <$apu_try_berkeley_db_header>
23987
int major, minor, patch;
23989
db_version(&major, &minor, &patch);
23991
/* Sanity check: ensure that db.h constants actually match the db library */
23992
if (major != DB_VERSION_MAJOR
23993
|| minor != DB_VERSION_MINOR
23994
|| patch != DB_VERSION_PATCH)
23997
/* Run-time check: ensure the library claims to be the correct version. */
23999
if ($apu_check_berkeley_db_major != -1) {
24000
if (major < $apu_check_berkeley_db_major)
24002
if (major > $apu_check_berkeley_db_major)
24006
if ($apu_check_berkeley_db_minor != -1) {
24007
if (minor < $apu_check_berkeley_db_minor)
24009
if (minor > $apu_check_berkeley_db_minor)
24013
if ($apu_check_berkeley_db_patch == -1
24014
|| patch >= $apu_check_berkeley_db_patch)
24021
rm -f conftest$ac_exeext
24022
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24023
(eval $ac_link) 2>&5
24025
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24026
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24027
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24028
(eval $ac_try) 2>&5
24030
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24031
(exit $ac_status); }; }; then
24032
apu_try_berkeley_db=yes
24034
echo "$as_me: program exited with status $ac_status" >&5
24035
echo "$as_me: failed program was:" >&5
24036
sed 's/^/| /' conftest.$ac_ext >&5
24038
( exit $ac_status )
24039
apu_try_berkeley_db=no
24041
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24044
LIBS="$apu_try_berkeley_db_save_libs"
24047
eval "$cache_id=$apu_try_berkeley_db"
24051
result="`eval echo '$'$cache_id`"
24052
echo "$as_me:$LINENO: result: $result" >&5
24053
echo "${ECHO_T}$result" >&6
24054
elif test ""4"" = "1"; then
24055
as_ac_Lib=`echo "ac_cv_lib_$bdb_libname''_dbopen" | $as_tr_sh`
24056
echo "$as_me:$LINENO: checking for dbopen in -l$bdb_libname" >&5
24057
echo $ECHO_N "checking for dbopen in -l$bdb_libname... $ECHO_C" >&6
24058
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
24059
echo $ECHO_N "(cached) $ECHO_C" >&6
24061
ac_check_lib_save_LIBS=$LIBS
24062
LIBS="-l$bdb_libname $LIBS"
24063
cat >conftest.$ac_ext <<_ACEOF
24066
cat confdefs.h >>conftest.$ac_ext
24067
cat >>conftest.$ac_ext <<_ACEOF
24068
/* end confdefs.h. */
24070
/* Override any gcc2 internal prototype to avoid an error. */
24074
/* We use char because int might match the return type of a gcc2
24075
builtin and then its argument prototype would still apply. */
24085
rm -f conftest.$ac_objext conftest$ac_exeext
24086
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24087
(eval $ac_link) 2>conftest.er1
24089
grep -v '^ *+' conftest.er1 >conftest.err
24091
cat conftest.err >&5
24092
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24093
(exit $ac_status); } &&
24094
{ ac_try='test -z "$ac_c_werror_flag"
24095
|| test ! -s conftest.err'
24096
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24097
(eval $ac_try) 2>&5
24099
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24100
(exit $ac_status); }; } &&
24101
{ ac_try='test -s conftest$ac_exeext'
24102
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24103
(eval $ac_try) 2>&5
24105
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24106
(exit $ac_status); }; }; then
24107
eval "$as_ac_Lib=yes"
24109
echo "$as_me: failed program was:" >&5
24110
sed 's/^/| /' conftest.$ac_ext >&5
24112
eval "$as_ac_Lib=no"
24114
rm -f conftest.err conftest.$ac_objext \
24115
conftest$ac_exeext conftest.$ac_ext
24116
LIBS=$ac_check_lib_save_LIBS
24118
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
24119
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
24120
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
24127
elif test ""4"" = "2"; then
24128
as_ac_Lib=`echo "ac_cv_lib_$bdb_libname''_db_open" | $as_tr_sh`
24129
echo "$as_me:$LINENO: checking for db_open in -l$bdb_libname" >&5
24130
echo $ECHO_N "checking for db_open in -l$bdb_libname... $ECHO_C" >&6
24131
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
24132
echo $ECHO_N "(cached) $ECHO_C" >&6
24134
ac_check_lib_save_LIBS=$LIBS
24135
LIBS="-l$bdb_libname $LIBS"
24136
cat >conftest.$ac_ext <<_ACEOF
24139
cat confdefs.h >>conftest.$ac_ext
24140
cat >>conftest.$ac_ext <<_ACEOF
24141
/* end confdefs.h. */
24143
/* Override any gcc2 internal prototype to avoid an error. */
24147
/* We use char because int might match the return type of a gcc2
24148
builtin and then its argument prototype would still apply. */
24158
rm -f conftest.$ac_objext conftest$ac_exeext
24159
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24160
(eval $ac_link) 2>conftest.er1
24162
grep -v '^ *+' conftest.er1 >conftest.err
24164
cat conftest.err >&5
24165
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24166
(exit $ac_status); } &&
24167
{ ac_try='test -z "$ac_c_werror_flag"
24168
|| test ! -s conftest.err'
24169
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24170
(eval $ac_try) 2>&5
24172
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24173
(exit $ac_status); }; } &&
24174
{ ac_try='test -s conftest$ac_exeext'
24175
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24176
(eval $ac_try) 2>&5
24178
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24179
(exit $ac_status); }; }; then
24180
eval "$as_ac_Lib=yes"
24182
echo "$as_me: failed program was:" >&5
24183
sed 's/^/| /' conftest.$ac_ext >&5
24185
eval "$as_ac_Lib=no"
24187
rm -f conftest.err conftest.$ac_objext \
24188
conftest$ac_exeext conftest.$ac_ext
24189
LIBS=$ac_check_lib_save_LIBS
24191
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
24192
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
24193
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
24208
# If we found it, no need to search any more.
24209
if test "$result" = "yes"; then
24214
test "$found" != "not" && break
24216
test "$found" != "not" && break
24219
# Restore the original values of the flags we tweak.
24220
LDFLAGS="$apu_check_lib_save_ldflags"
24221
CPPFLAGS="$apu_check_lib_save_cppflags"
24228
apu_db_header=$bdb_header
24229
apu_db_lib=$bdb_libname
24233
header="`echo $found | sed -e 's/:.*$//'`"
24234
lib="`echo $found | sed -e 's/^.*://'`"
24237
if test "x$APRUTIL_INCLUDES" = "x"; then
24238
test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$header\""
24239
APRUTIL_INCLUDES="-I$header"
24241
apr_addto_bugger="-I$header"
24242
for i in $apr_addto_bugger; do
24243
apr_addto_duplicate="0"
24244
for j in $APRUTIL_INCLUDES; do
24245
if test "x$i" = "x$j"; then
24246
apr_addto_duplicate="1"
24250
if test $apr_addto_duplicate = "0"; then
24251
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES"
24252
APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
24258
if test "x$APRUTIL_LDFLAGS" = "x"; then
24259
test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$lib\""
24260
APRUTIL_LDFLAGS="-L$lib"
24262
apr_addto_bugger="-L$lib"
24263
for i in $apr_addto_bugger; do
24264
apr_addto_duplicate="0"
24265
for j in $APRUTIL_LDFLAGS; do
24266
if test "x$i" = "x$j"; then
24267
apr_addto_duplicate="1"
24271
if test $apr_addto_duplicate = "0"; then
24272
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS"
24273
APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
24278
apu_db_header=$bdb_header
24279
apu_db_lib=$bdb_libname
24284
if test "x$APRUTIL_INCLUDES" = "x"; then
24285
test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$found/include\""
24286
APRUTIL_INCLUDES="-I$found/include"
24288
apr_addto_bugger="-I$found/include"
24289
for i in $apr_addto_bugger; do
24290
apr_addto_duplicate="0"
24291
for j in $APRUTIL_INCLUDES; do
24292
if test "x$i" = "x$j"; then
24293
apr_addto_duplicate="1"
24297
if test $apr_addto_duplicate = "0"; then
24298
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES"
24299
APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
24305
if test "x$APRUTIL_LDFLAGS" = "x"; then
24306
test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$found/lib\""
24307
APRUTIL_LDFLAGS="-L$found/lib"
24309
apr_addto_bugger="-L$found/lib"
24310
for i in $apr_addto_bugger; do
24311
apr_addto_duplicate="0"
24312
for j in $APRUTIL_LDFLAGS; do
24313
if test "x$i" = "x$j"; then
24314
apr_addto_duplicate="1"
24318
if test $apr_addto_duplicate = "0"; then
24319
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS"
24320
APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
24325
apu_db_header=$bdb_header
24326
apu_db_lib=$bdb_libname
24331
if test "$apu_have_db" = "1"; then
24335
if test "$apu_db_version" != "4"; then
24336
{ { echo "$as_me:$LINENO: error: Berkeley db4 not found" >&5
24337
echo "$as_me: error: Berkeley db4 not found" >&2;}
24338
{ (exit 1); exit 1; }; }
24343
places="$check_places"
24344
if test -z "$places"; then
24345
places="std /usr/local/BerkeleyDB.4.3 /boot/home/config"
24349
if test ""3"" != "-1"; then
24350
bdb_version="$bdb_version."3""
24351
if test ""-1"" != "-1"; then
24352
bdb_version="$bdb_version."-1""
24355
bdb_places="$places"
24356
bdb_default_search_headers="db43/db.h db4/db.h db.h"
24357
bdb_default_search_lib_names="db-4.3 db4-4.3 db43 db4 db"
24362
# Save the original values of the flags we tweak.
24363
apu_check_lib_save_libs="$LIBS"
24364
apu_check_lib_save_ldflags="$LDFLAGS"
24365
apu_check_lib_save_cppflags="$CPPFLAGS"
24367
# The variable `found' is the prefix under which we've found
24368
# Berkeley DB, or `not' if we haven't found it anywhere yet.
24370
for bdb_place in $bdb_places; do
24372
LDFLAGS="$apu_check_lib_save_ldflags"
24373
CPPFLAGS="$apu_check_lib_save_cppflags"
24374
case "$bdb_place" in
24376
description="the standard places"
24379
header="`echo $bdb_place | sed -e 's/:.*$//'`"
24380
lib="`echo $bdb_place | sed -e 's/^.*://'`"
24381
CPPFLAGS="$CPPFLAGS -I$header"
24382
LDFLAGS="$LDFLAGS -L$lib"
24383
description="$header and $lib"
24386
if test -d $bdb_place; then
24387
LDFLAGS="$LDFLAGS -L$bdb_place/lib"
24388
CPPFLAGS="$CPPFLAGS -I$bdb_place/include"
24390
echo "$as_me:$LINENO: checking for Berkeley DB $bdb_version in $bdb_place" >&5
24391
echo $ECHO_N "checking for Berkeley DB $bdb_version in $bdb_place... $ECHO_C" >&6
24392
echo "$as_me:$LINENO: result: directory not found" >&5
24393
echo "${ECHO_T}directory not found" >&6
24396
description="$bdb_place"
24400
# Since there is no AC_MSG_NOTICE in autoconf 2.13, we use this
24401
# trick to display a message instead.
24402
echo "$as_me:$LINENO: checking for Berkeley DB $bdb_version in $description" >&5
24403
echo $ECHO_N "checking for Berkeley DB $bdb_version in $description... $ECHO_C" >&6
24404
echo "$as_me:$LINENO: result: " >&5
24405
echo "${ECHO_T}" >&6
24407
for bdb_libname in $bdb_default_search_lib_names; do
24408
for bdb_header in $bdb_default_search_headers; do
24409
# Clear the header cache variable for each location
24411
cache_id="`echo ac_cv_header_${bdb_header} \
24412
| sed -e 's/[^a-zA-Z0-9_]/_/g'`"
24415
as_ac_Header=`echo "ac_cv_header_$bdb_header" | $as_tr_sh`
24416
if eval "test \"\${$as_ac_Header+set}\" = set"; then
24417
echo "$as_me:$LINENO: checking for $bdb_header" >&5
24418
echo $ECHO_N "checking for $bdb_header... $ECHO_C" >&6
24419
if eval "test \"\${$as_ac_Header+set}\" = set"; then
24420
echo $ECHO_N "(cached) $ECHO_C" >&6
24422
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24423
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24425
# Is the header compilable?
24426
echo "$as_me:$LINENO: checking $bdb_header usability" >&5
24427
echo $ECHO_N "checking $bdb_header usability... $ECHO_C" >&6
24428
cat >conftest.$ac_ext <<_ACEOF
24431
cat confdefs.h >>conftest.$ac_ext
24432
cat >>conftest.$ac_ext <<_ACEOF
24433
/* end confdefs.h. */
24434
$ac_includes_default
24435
#include <$bdb_header>
24437
rm -f conftest.$ac_objext
24438
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24439
(eval $ac_compile) 2>conftest.er1
24441
grep -v '^ *+' conftest.er1 >conftest.err
24443
cat conftest.err >&5
24444
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24445
(exit $ac_status); } &&
24446
{ ac_try='test -z "$ac_c_werror_flag"
24447
|| test ! -s conftest.err'
24448
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24449
(eval $ac_try) 2>&5
24451
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24452
(exit $ac_status); }; } &&
24453
{ ac_try='test -s conftest.$ac_objext'
24454
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24455
(eval $ac_try) 2>&5
24457
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24458
(exit $ac_status); }; }; then
24459
ac_header_compiler=yes
24461
echo "$as_me: failed program was:" >&5
24462
sed 's/^/| /' conftest.$ac_ext >&5
24464
ac_header_compiler=no
24466
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24467
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24468
echo "${ECHO_T}$ac_header_compiler" >&6
24470
# Is the header present?
24471
echo "$as_me:$LINENO: checking $bdb_header presence" >&5
24472
echo $ECHO_N "checking $bdb_header presence... $ECHO_C" >&6
24473
cat >conftest.$ac_ext <<_ACEOF
24476
cat confdefs.h >>conftest.$ac_ext
24477
cat >>conftest.$ac_ext <<_ACEOF
24478
/* end confdefs.h. */
24479
#include <$bdb_header>
24481
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24482
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24484
grep -v '^ *+' conftest.er1 >conftest.err
24486
cat conftest.err >&5
24487
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24488
(exit $ac_status); } >/dev/null; then
24489
if test -s conftest.err; then
24490
ac_cpp_err=$ac_c_preproc_warn_flag
24491
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24498
if test -z "$ac_cpp_err"; then
24499
ac_header_preproc=yes
24501
echo "$as_me: failed program was:" >&5
24502
sed 's/^/| /' conftest.$ac_ext >&5
24504
ac_header_preproc=no
24506
rm -f conftest.err conftest.$ac_ext
24507
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24508
echo "${ECHO_T}$ac_header_preproc" >&6
24510
# So? What about this header?
24511
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24513
{ echo "$as_me:$LINENO: WARNING: $bdb_header: accepted by the compiler, rejected by the preprocessor!" >&5
24514
echo "$as_me: WARNING: $bdb_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24515
{ echo "$as_me:$LINENO: WARNING: $bdb_header: proceeding with the compiler's result" >&5
24516
echo "$as_me: WARNING: $bdb_header: proceeding with the compiler's result" >&2;}
24517
ac_header_preproc=yes
24520
{ echo "$as_me:$LINENO: WARNING: $bdb_header: present but cannot be compiled" >&5
24521
echo "$as_me: WARNING: $bdb_header: present but cannot be compiled" >&2;}
24522
{ echo "$as_me:$LINENO: WARNING: $bdb_header: check for missing prerequisite headers?" >&5
24523
echo "$as_me: WARNING: $bdb_header: check for missing prerequisite headers?" >&2;}
24524
{ echo "$as_me:$LINENO: WARNING: $bdb_header: see the Autoconf documentation" >&5
24525
echo "$as_me: WARNING: $bdb_header: see the Autoconf documentation" >&2;}
24526
{ echo "$as_me:$LINENO: WARNING: $bdb_header: section \"Present But Cannot Be Compiled\"" >&5
24527
echo "$as_me: WARNING: $bdb_header: section \"Present But Cannot Be Compiled\"" >&2;}
24528
{ echo "$as_me:$LINENO: WARNING: $bdb_header: proceeding with the preprocessor's result" >&5
24529
echo "$as_me: WARNING: $bdb_header: proceeding with the preprocessor's result" >&2;}
24530
{ echo "$as_me:$LINENO: WARNING: $bdb_header: in the future, the compiler will take precedence" >&5
24531
echo "$as_me: WARNING: $bdb_header: in the future, the compiler will take precedence" >&2;}
24534
## ------------------------------------------ ##
24535
## Report this to the AC_PACKAGE_NAME lists. ##
24536
## ------------------------------------------ ##
24539
sed "s/^/$as_me: WARNING: /" >&2
24542
echo "$as_me:$LINENO: checking for $bdb_header" >&5
24543
echo $ECHO_N "checking for $bdb_header... $ECHO_C" >&6
24544
if eval "test \"\${$as_ac_Header+set}\" = set"; then
24545
echo $ECHO_N "(cached) $ECHO_C" >&6
24547
eval "$as_ac_Header=\$ac_header_preproc"
24549
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24550
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24553
if test `eval echo '${'$as_ac_Header'}'` = yes; then
24555
if test ""4"" = "3" -o ""4"" = "4"; then
24556
# We generate a separate cache variable for each prefix and libname
24557
# we search under. That way, we avoid caching information that
24558
# changes if the user runs `configure' with a different set of
24561
cache_id="`echo apu_cv_check_berkeley_db_"4"_"3"_"-1"_${bdb_header}_${bdb_libname}_in_${bdb_place} \
24562
| sed -e 's/[^a-zA-Z0-9_]/_/g'`"
24565
echo "$as_me:$LINENO: checking for -l$bdb_libname" >&5
24566
echo $ECHO_N "checking for -l$bdb_libname... $ECHO_C" >&6
24567
if eval "test \"\${$cache_id+set}\" = set"; then
24568
echo $ECHO_N "(cached) $ECHO_C" >&6
24572
apu_try_berkeley_db_save_libs="$LIBS"
24574
apu_check_berkeley_db_major="4"
24575
apu_check_berkeley_db_minor="3"
24576
apu_check_berkeley_db_patch="-1"
24577
apu_try_berkeley_db_header=$bdb_header
24578
apu_try_berkeley_db_libname=$bdb_libname
24580
LIBS="$LIBS -l$apu_try_berkeley_db_libname"
24581
if test "$cross_compiling" = yes; then
24582
apu_try_berkeley_db=yes
24585
cat >conftest.$ac_ext <<_ACEOF
24588
cat confdefs.h >>conftest.$ac_ext
24589
cat >>conftest.$ac_ext <<_ACEOF
24590
/* end confdefs.h. */
24593
#include <$apu_try_berkeley_db_header>
24596
int major, minor, patch;
24598
db_version(&major, &minor, &patch);
24600
/* Sanity check: ensure that db.h constants actually match the db library */
24601
if (major != DB_VERSION_MAJOR
24602
|| minor != DB_VERSION_MINOR
24603
|| patch != DB_VERSION_PATCH)
24606
/* Run-time check: ensure the library claims to be the correct version. */
24608
if ($apu_check_berkeley_db_major != -1) {
24609
if (major < $apu_check_berkeley_db_major)
24611
if (major > $apu_check_berkeley_db_major)
24615
if ($apu_check_berkeley_db_minor != -1) {
24616
if (minor < $apu_check_berkeley_db_minor)
24618
if (minor > $apu_check_berkeley_db_minor)
24622
if ($apu_check_berkeley_db_patch == -1
24623
|| patch >= $apu_check_berkeley_db_patch)
24630
rm -f conftest$ac_exeext
24631
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24632
(eval $ac_link) 2>&5
24634
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24635
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24636
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24637
(eval $ac_try) 2>&5
24639
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24640
(exit $ac_status); }; }; then
24641
apu_try_berkeley_db=yes
24643
echo "$as_me: program exited with status $ac_status" >&5
24644
echo "$as_me: failed program was:" >&5
24645
sed 's/^/| /' conftest.$ac_ext >&5
24647
( exit $ac_status )
24648
apu_try_berkeley_db=no
24650
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24653
LIBS="$apu_try_berkeley_db_save_libs"
24656
eval "$cache_id=$apu_try_berkeley_db"
24660
result="`eval echo '$'$cache_id`"
24661
echo "$as_me:$LINENO: result: $result" >&5
24662
echo "${ECHO_T}$result" >&6
24663
elif test ""4"" = "1"; then
24664
as_ac_Lib=`echo "ac_cv_lib_$bdb_libname''_dbopen" | $as_tr_sh`
24665
echo "$as_me:$LINENO: checking for dbopen in -l$bdb_libname" >&5
24666
echo $ECHO_N "checking for dbopen in -l$bdb_libname... $ECHO_C" >&6
24667
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
24668
echo $ECHO_N "(cached) $ECHO_C" >&6
24670
ac_check_lib_save_LIBS=$LIBS
24671
LIBS="-l$bdb_libname $LIBS"
24672
cat >conftest.$ac_ext <<_ACEOF
24675
cat confdefs.h >>conftest.$ac_ext
24676
cat >>conftest.$ac_ext <<_ACEOF
24677
/* end confdefs.h. */
24679
/* Override any gcc2 internal prototype to avoid an error. */
24683
/* We use char because int might match the return type of a gcc2
24684
builtin and then its argument prototype would still apply. */
24694
rm -f conftest.$ac_objext conftest$ac_exeext
24695
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24696
(eval $ac_link) 2>conftest.er1
24698
grep -v '^ *+' conftest.er1 >conftest.err
24700
cat conftest.err >&5
24701
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24702
(exit $ac_status); } &&
24703
{ ac_try='test -z "$ac_c_werror_flag"
24704
|| test ! -s conftest.err'
24705
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24706
(eval $ac_try) 2>&5
24708
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24709
(exit $ac_status); }; } &&
24710
{ ac_try='test -s conftest$ac_exeext'
24711
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24712
(eval $ac_try) 2>&5
24714
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24715
(exit $ac_status); }; }; then
24716
eval "$as_ac_Lib=yes"
24718
echo "$as_me: failed program was:" >&5
24719
sed 's/^/| /' conftest.$ac_ext >&5
24721
eval "$as_ac_Lib=no"
24723
rm -f conftest.err conftest.$ac_objext \
24724
conftest$ac_exeext conftest.$ac_ext
24725
LIBS=$ac_check_lib_save_LIBS
24727
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
24728
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
24729
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
24736
elif test ""4"" = "2"; then
24737
as_ac_Lib=`echo "ac_cv_lib_$bdb_libname''_db_open" | $as_tr_sh`
24738
echo "$as_me:$LINENO: checking for db_open in -l$bdb_libname" >&5
24739
echo $ECHO_N "checking for db_open in -l$bdb_libname... $ECHO_C" >&6
24740
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
24741
echo $ECHO_N "(cached) $ECHO_C" >&6
24743
ac_check_lib_save_LIBS=$LIBS
24744
LIBS="-l$bdb_libname $LIBS"
24745
cat >conftest.$ac_ext <<_ACEOF
24748
cat confdefs.h >>conftest.$ac_ext
24749
cat >>conftest.$ac_ext <<_ACEOF
24750
/* end confdefs.h. */
24752
/* Override any gcc2 internal prototype to avoid an error. */
24756
/* We use char because int might match the return type of a gcc2
24757
builtin and then its argument prototype would still apply. */
24767
rm -f conftest.$ac_objext conftest$ac_exeext
24768
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24769
(eval $ac_link) 2>conftest.er1
24771
grep -v '^ *+' conftest.er1 >conftest.err
24773
cat conftest.err >&5
24774
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24775
(exit $ac_status); } &&
24776
{ ac_try='test -z "$ac_c_werror_flag"
24777
|| test ! -s conftest.err'
24778
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24779
(eval $ac_try) 2>&5
24781
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24782
(exit $ac_status); }; } &&
24783
{ ac_try='test -s conftest$ac_exeext'
24784
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24785
(eval $ac_try) 2>&5
24787
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24788
(exit $ac_status); }; }; then
24789
eval "$as_ac_Lib=yes"
24791
echo "$as_me: failed program was:" >&5
24792
sed 's/^/| /' conftest.$ac_ext >&5
24794
eval "$as_ac_Lib=no"
24796
rm -f conftest.err conftest.$ac_objext \
24797
conftest$ac_exeext conftest.$ac_ext
24798
LIBS=$ac_check_lib_save_LIBS
24800
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
24801
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
24802
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
24817
# If we found it, no need to search any more.
24818
if test "$result" = "yes"; then
24823
test "$found" != "not" && break
24825
test "$found" != "not" && break
24828
# Restore the original values of the flags we tweak.
24829
LDFLAGS="$apu_check_lib_save_ldflags"
24830
CPPFLAGS="$apu_check_lib_save_cppflags"
24837
apu_db_header=$bdb_header
24838
apu_db_lib=$bdb_libname
24842
header="`echo $found | sed -e 's/:.*$//'`"
24843
lib="`echo $found | sed -e 's/^.*://'`"
24846
if test "x$APRUTIL_INCLUDES" = "x"; then
24847
test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$header\""
24848
APRUTIL_INCLUDES="-I$header"
24850
apr_addto_bugger="-I$header"
24851
for i in $apr_addto_bugger; do
24852
apr_addto_duplicate="0"
24853
for j in $APRUTIL_INCLUDES; do
24854
if test "x$i" = "x$j"; then
24855
apr_addto_duplicate="1"
24859
if test $apr_addto_duplicate = "0"; then
24860
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES"
24861
APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
24867
if test "x$APRUTIL_LDFLAGS" = "x"; then
24868
test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$lib\""
24869
APRUTIL_LDFLAGS="-L$lib"
24871
apr_addto_bugger="-L$lib"
24872
for i in $apr_addto_bugger; do
24873
apr_addto_duplicate="0"
24874
for j in $APRUTIL_LDFLAGS; do
24875
if test "x$i" = "x$j"; then
24876
apr_addto_duplicate="1"
24880
if test $apr_addto_duplicate = "0"; then
24881
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS"
24882
APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
24887
apu_db_header=$bdb_header
24888
apu_db_lib=$bdb_libname
24893
if test "x$APRUTIL_INCLUDES" = "x"; then
24894
test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$found/include\""
24895
APRUTIL_INCLUDES="-I$found/include"
24897
apr_addto_bugger="-I$found/include"
24898
for i in $apr_addto_bugger; do
24899
apr_addto_duplicate="0"
24900
for j in $APRUTIL_INCLUDES; do
24901
if test "x$i" = "x$j"; then
24902
apr_addto_duplicate="1"
24906
if test $apr_addto_duplicate = "0"; then
24907
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES"
24908
APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
24914
if test "x$APRUTIL_LDFLAGS" = "x"; then
24915
test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$found/lib\""
24916
APRUTIL_LDFLAGS="-L$found/lib"
24918
apr_addto_bugger="-L$found/lib"
24919
for i in $apr_addto_bugger; do
24920
apr_addto_duplicate="0"
24921
for j in $APRUTIL_LDFLAGS; do
24922
if test "x$i" = "x$j"; then
24923
apr_addto_duplicate="1"
24927
if test $apr_addto_duplicate = "0"; then
24928
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS"
24929
APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
24934
apu_db_header=$bdb_header
24935
apu_db_lib=$bdb_libname
24940
if test "$apu_have_db" = "1"; then
24944
if test "$apu_db_version" != "4"; then
24945
{ { echo "$as_me:$LINENO: error: Berkeley db4 not found" >&5
24946
echo "$as_me: error: Berkeley db4 not found" >&2;}
24947
{ (exit 1); exit 1; }; }
24952
places="$check_places"
24953
if test -z "$places"; then
24954
places="std /usr/local/BerkeleyDB.4.4 /boot/home/config"
24958
if test ""4"" != "-1"; then
24959
bdb_version="$bdb_version."4""
24960
if test ""-1"" != "-1"; then
24961
bdb_version="$bdb_version."-1""
24964
bdb_places="$places"
24965
bdb_default_search_headers="db44/db.h db4/db.h db.h"
24966
bdb_default_search_lib_names="db-4.4 db4-4.4 db44 db4 db"
24971
# Save the original values of the flags we tweak.
24972
apu_check_lib_save_libs="$LIBS"
24973
apu_check_lib_save_ldflags="$LDFLAGS"
24974
apu_check_lib_save_cppflags="$CPPFLAGS"
24976
# The variable `found' is the prefix under which we've found
24977
# Berkeley DB, or `not' if we haven't found it anywhere yet.
24979
for bdb_place in $bdb_places; do
24981
LDFLAGS="$apu_check_lib_save_ldflags"
24982
CPPFLAGS="$apu_check_lib_save_cppflags"
24983
case "$bdb_place" in
24985
description="the standard places"
24988
header="`echo $bdb_place | sed -e 's/:.*$//'`"
24989
lib="`echo $bdb_place | sed -e 's/^.*://'`"
24990
CPPFLAGS="$CPPFLAGS -I$header"
24991
LDFLAGS="$LDFLAGS -L$lib"
24992
description="$header and $lib"
24995
if test -d $bdb_place; then
24996
LDFLAGS="$LDFLAGS -L$bdb_place/lib"
24997
CPPFLAGS="$CPPFLAGS -I$bdb_place/include"
24999
echo "$as_me:$LINENO: checking for Berkeley DB $bdb_version in $bdb_place" >&5
25000
echo $ECHO_N "checking for Berkeley DB $bdb_version in $bdb_place... $ECHO_C" >&6
25001
echo "$as_me:$LINENO: result: directory not found" >&5
25002
echo "${ECHO_T}directory not found" >&6
25005
description="$bdb_place"
25009
# Since there is no AC_MSG_NOTICE in autoconf 2.13, we use this
25010
# trick to display a message instead.
25011
echo "$as_me:$LINENO: checking for Berkeley DB $bdb_version in $description" >&5
25012
echo $ECHO_N "checking for Berkeley DB $bdb_version in $description... $ECHO_C" >&6
25013
echo "$as_me:$LINENO: result: " >&5
25014
echo "${ECHO_T}" >&6
25016
for bdb_libname in $bdb_default_search_lib_names; do
25017
for bdb_header in $bdb_default_search_headers; do
25018
# Clear the header cache variable for each location
25020
cache_id="`echo ac_cv_header_${bdb_header} \
25021
| sed -e 's/[^a-zA-Z0-9_]/_/g'`"
25024
as_ac_Header=`echo "ac_cv_header_$bdb_header" | $as_tr_sh`
25025
if eval "test \"\${$as_ac_Header+set}\" = set"; then
25026
echo "$as_me:$LINENO: checking for $bdb_header" >&5
25027
echo $ECHO_N "checking for $bdb_header... $ECHO_C" >&6
25028
if eval "test \"\${$as_ac_Header+set}\" = set"; then
25029
echo $ECHO_N "(cached) $ECHO_C" >&6
25031
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25032
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25034
# Is the header compilable?
25035
echo "$as_me:$LINENO: checking $bdb_header usability" >&5
25036
echo $ECHO_N "checking $bdb_header usability... $ECHO_C" >&6
25037
cat >conftest.$ac_ext <<_ACEOF
25040
cat confdefs.h >>conftest.$ac_ext
25041
cat >>conftest.$ac_ext <<_ACEOF
25042
/* end confdefs.h. */
25043
$ac_includes_default
25044
#include <$bdb_header>
25046
rm -f conftest.$ac_objext
25047
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25048
(eval $ac_compile) 2>conftest.er1
25050
grep -v '^ *+' conftest.er1 >conftest.err
25052
cat conftest.err >&5
25053
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25054
(exit $ac_status); } &&
25055
{ ac_try='test -z "$ac_c_werror_flag"
25056
|| test ! -s conftest.err'
25057
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25058
(eval $ac_try) 2>&5
25060
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25061
(exit $ac_status); }; } &&
25062
{ ac_try='test -s conftest.$ac_objext'
25063
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25064
(eval $ac_try) 2>&5
25066
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25067
(exit $ac_status); }; }; then
25068
ac_header_compiler=yes
25070
echo "$as_me: failed program was:" >&5
25071
sed 's/^/| /' conftest.$ac_ext >&5
25073
ac_header_compiler=no
25075
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25076
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25077
echo "${ECHO_T}$ac_header_compiler" >&6
25079
# Is the header present?
25080
echo "$as_me:$LINENO: checking $bdb_header presence" >&5
25081
echo $ECHO_N "checking $bdb_header presence... $ECHO_C" >&6
25082
cat >conftest.$ac_ext <<_ACEOF
25085
cat confdefs.h >>conftest.$ac_ext
25086
cat >>conftest.$ac_ext <<_ACEOF
25087
/* end confdefs.h. */
25088
#include <$bdb_header>
25090
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25091
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25093
grep -v '^ *+' conftest.er1 >conftest.err
25095
cat conftest.err >&5
25096
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25097
(exit $ac_status); } >/dev/null; then
25098
if test -s conftest.err; then
25099
ac_cpp_err=$ac_c_preproc_warn_flag
25100
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25107
if test -z "$ac_cpp_err"; then
25108
ac_header_preproc=yes
25110
echo "$as_me: failed program was:" >&5
25111
sed 's/^/| /' conftest.$ac_ext >&5
25113
ac_header_preproc=no
25115
rm -f conftest.err conftest.$ac_ext
25116
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25117
echo "${ECHO_T}$ac_header_preproc" >&6
25119
# So? What about this header?
25120
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25122
{ echo "$as_me:$LINENO: WARNING: $bdb_header: accepted by the compiler, rejected by the preprocessor!" >&5
25123
echo "$as_me: WARNING: $bdb_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25124
{ echo "$as_me:$LINENO: WARNING: $bdb_header: proceeding with the compiler's result" >&5
25125
echo "$as_me: WARNING: $bdb_header: proceeding with the compiler's result" >&2;}
25126
ac_header_preproc=yes
25129
{ echo "$as_me:$LINENO: WARNING: $bdb_header: present but cannot be compiled" >&5
25130
echo "$as_me: WARNING: $bdb_header: present but cannot be compiled" >&2;}
25131
{ echo "$as_me:$LINENO: WARNING: $bdb_header: check for missing prerequisite headers?" >&5
25132
echo "$as_me: WARNING: $bdb_header: check for missing prerequisite headers?" >&2;}
25133
{ echo "$as_me:$LINENO: WARNING: $bdb_header: see the Autoconf documentation" >&5
25134
echo "$as_me: WARNING: $bdb_header: see the Autoconf documentation" >&2;}
25135
{ echo "$as_me:$LINENO: WARNING: $bdb_header: section \"Present But Cannot Be Compiled\"" >&5
25136
echo "$as_me: WARNING: $bdb_header: section \"Present But Cannot Be Compiled\"" >&2;}
25137
{ echo "$as_me:$LINENO: WARNING: $bdb_header: proceeding with the preprocessor's result" >&5
25138
echo "$as_me: WARNING: $bdb_header: proceeding with the preprocessor's result" >&2;}
25139
{ echo "$as_me:$LINENO: WARNING: $bdb_header: in the future, the compiler will take precedence" >&5
25140
echo "$as_me: WARNING: $bdb_header: in the future, the compiler will take precedence" >&2;}
25143
## ------------------------------------------ ##
25144
## Report this to the AC_PACKAGE_NAME lists. ##
25145
## ------------------------------------------ ##
25148
sed "s/^/$as_me: WARNING: /" >&2
25151
echo "$as_me:$LINENO: checking for $bdb_header" >&5
25152
echo $ECHO_N "checking for $bdb_header... $ECHO_C" >&6
25153
if eval "test \"\${$as_ac_Header+set}\" = set"; then
25154
echo $ECHO_N "(cached) $ECHO_C" >&6
25156
eval "$as_ac_Header=\$ac_header_preproc"
25158
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25159
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25162
if test `eval echo '${'$as_ac_Header'}'` = yes; then
25164
if test ""4"" = "3" -o ""4"" = "4"; then
25165
# We generate a separate cache variable for each prefix and libname
25166
# we search under. That way, we avoid caching information that
25167
# changes if the user runs `configure' with a different set of
25170
cache_id="`echo apu_cv_check_berkeley_db_"4"_"4"_"-1"_${bdb_header}_${bdb_libname}_in_${bdb_place} \
25171
| sed -e 's/[^a-zA-Z0-9_]/_/g'`"
25174
echo "$as_me:$LINENO: checking for -l$bdb_libname" >&5
25175
echo $ECHO_N "checking for -l$bdb_libname... $ECHO_C" >&6
25176
if eval "test \"\${$cache_id+set}\" = set"; then
25177
echo $ECHO_N "(cached) $ECHO_C" >&6
25181
apu_try_berkeley_db_save_libs="$LIBS"
25183
apu_check_berkeley_db_major="4"
25184
apu_check_berkeley_db_minor="4"
25185
apu_check_berkeley_db_patch="-1"
25186
apu_try_berkeley_db_header=$bdb_header
25187
apu_try_berkeley_db_libname=$bdb_libname
25189
LIBS="$LIBS -l$apu_try_berkeley_db_libname"
25190
if test "$cross_compiling" = yes; then
25191
apu_try_berkeley_db=yes
25194
cat >conftest.$ac_ext <<_ACEOF
25197
cat confdefs.h >>conftest.$ac_ext
25198
cat >>conftest.$ac_ext <<_ACEOF
25199
/* end confdefs.h. */
25202
#include <$apu_try_berkeley_db_header>
25205
int major, minor, patch;
25207
db_version(&major, &minor, &patch);
25209
/* Sanity check: ensure that db.h constants actually match the db library */
25210
if (major != DB_VERSION_MAJOR
25211
|| minor != DB_VERSION_MINOR
25212
|| patch != DB_VERSION_PATCH)
25215
/* Run-time check: ensure the library claims to be the correct version. */
25217
if ($apu_check_berkeley_db_major != -1) {
25218
if (major < $apu_check_berkeley_db_major)
25220
if (major > $apu_check_berkeley_db_major)
25224
if ($apu_check_berkeley_db_minor != -1) {
25225
if (minor < $apu_check_berkeley_db_minor)
25227
if (minor > $apu_check_berkeley_db_minor)
25231
if ($apu_check_berkeley_db_patch == -1
25232
|| patch >= $apu_check_berkeley_db_patch)
25239
rm -f conftest$ac_exeext
25240
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25241
(eval $ac_link) 2>&5
25243
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25244
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25245
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25246
(eval $ac_try) 2>&5
25248
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25249
(exit $ac_status); }; }; then
25250
apu_try_berkeley_db=yes
25252
echo "$as_me: program exited with status $ac_status" >&5
25253
echo "$as_me: failed program was:" >&5
25254
sed 's/^/| /' conftest.$ac_ext >&5
25256
( exit $ac_status )
25257
apu_try_berkeley_db=no
25259
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25262
LIBS="$apu_try_berkeley_db_save_libs"
25265
eval "$cache_id=$apu_try_berkeley_db"
25269
result="`eval echo '$'$cache_id`"
25270
echo "$as_me:$LINENO: result: $result" >&5
25271
echo "${ECHO_T}$result" >&6
25272
elif test ""4"" = "1"; then
25273
as_ac_Lib=`echo "ac_cv_lib_$bdb_libname''_dbopen" | $as_tr_sh`
25274
echo "$as_me:$LINENO: checking for dbopen in -l$bdb_libname" >&5
25275
echo $ECHO_N "checking for dbopen in -l$bdb_libname... $ECHO_C" >&6
25276
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
25277
echo $ECHO_N "(cached) $ECHO_C" >&6
25279
ac_check_lib_save_LIBS=$LIBS
25280
LIBS="-l$bdb_libname $LIBS"
25281
cat >conftest.$ac_ext <<_ACEOF
25284
cat confdefs.h >>conftest.$ac_ext
25285
cat >>conftest.$ac_ext <<_ACEOF
25286
/* end confdefs.h. */
25288
/* Override any gcc2 internal prototype to avoid an error. */
25292
/* We use char because int might match the return type of a gcc2
25293
builtin and then its argument prototype would still apply. */
25303
rm -f conftest.$ac_objext conftest$ac_exeext
25304
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25305
(eval $ac_link) 2>conftest.er1
25307
grep -v '^ *+' conftest.er1 >conftest.err
25309
cat conftest.err >&5
25310
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25311
(exit $ac_status); } &&
25312
{ ac_try='test -z "$ac_c_werror_flag"
25313
|| test ! -s conftest.err'
25314
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25315
(eval $ac_try) 2>&5
25317
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25318
(exit $ac_status); }; } &&
25319
{ ac_try='test -s conftest$ac_exeext'
25320
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25321
(eval $ac_try) 2>&5
25323
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25324
(exit $ac_status); }; }; then
25325
eval "$as_ac_Lib=yes"
25327
echo "$as_me: failed program was:" >&5
25328
sed 's/^/| /' conftest.$ac_ext >&5
25330
eval "$as_ac_Lib=no"
25332
rm -f conftest.err conftest.$ac_objext \
25333
conftest$ac_exeext conftest.$ac_ext
25334
LIBS=$ac_check_lib_save_LIBS
25336
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
25337
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
25338
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
25345
elif test ""4"" = "2"; then
25346
as_ac_Lib=`echo "ac_cv_lib_$bdb_libname''_db_open" | $as_tr_sh`
25347
echo "$as_me:$LINENO: checking for db_open in -l$bdb_libname" >&5
25348
echo $ECHO_N "checking for db_open in -l$bdb_libname... $ECHO_C" >&6
25349
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
25350
echo $ECHO_N "(cached) $ECHO_C" >&6
25352
ac_check_lib_save_LIBS=$LIBS
25353
LIBS="-l$bdb_libname $LIBS"
25354
cat >conftest.$ac_ext <<_ACEOF
25357
cat confdefs.h >>conftest.$ac_ext
25358
cat >>conftest.$ac_ext <<_ACEOF
25359
/* end confdefs.h. */
25361
/* Override any gcc2 internal prototype to avoid an error. */
25365
/* We use char because int might match the return type of a gcc2
25366
builtin and then its argument prototype would still apply. */
25376
rm -f conftest.$ac_objext conftest$ac_exeext
25377
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25378
(eval $ac_link) 2>conftest.er1
25380
grep -v '^ *+' conftest.er1 >conftest.err
25382
cat conftest.err >&5
25383
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25384
(exit $ac_status); } &&
25385
{ ac_try='test -z "$ac_c_werror_flag"
25386
|| test ! -s conftest.err'
25387
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25388
(eval $ac_try) 2>&5
25390
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25391
(exit $ac_status); }; } &&
25392
{ ac_try='test -s conftest$ac_exeext'
25393
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25394
(eval $ac_try) 2>&5
25396
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25397
(exit $ac_status); }; }; then
25398
eval "$as_ac_Lib=yes"
25400
echo "$as_me: failed program was:" >&5
25401
sed 's/^/| /' conftest.$ac_ext >&5
25403
eval "$as_ac_Lib=no"
25405
rm -f conftest.err conftest.$ac_objext \
25406
conftest$ac_exeext conftest.$ac_ext
25407
LIBS=$ac_check_lib_save_LIBS
25409
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
25410
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
25411
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
25426
# If we found it, no need to search any more.
25427
if test "$result" = "yes"; then
25432
test "$found" != "not" && break
25434
test "$found" != "not" && break
25437
# Restore the original values of the flags we tweak.
25438
LDFLAGS="$apu_check_lib_save_ldflags"
25439
CPPFLAGS="$apu_check_lib_save_cppflags"
25446
apu_db_header=$bdb_header
25447
apu_db_lib=$bdb_libname
25451
header="`echo $found | sed -e 's/:.*$//'`"
25452
lib="`echo $found | sed -e 's/^.*://'`"
25455
if test "x$APRUTIL_INCLUDES" = "x"; then
25456
test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$header\""
25457
APRUTIL_INCLUDES="-I$header"
25459
apr_addto_bugger="-I$header"
25460
for i in $apr_addto_bugger; do
25461
apr_addto_duplicate="0"
25462
for j in $APRUTIL_INCLUDES; do
25463
if test "x$i" = "x$j"; then
25464
apr_addto_duplicate="1"
25468
if test $apr_addto_duplicate = "0"; then
25469
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES"
25470
APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
25476
if test "x$APRUTIL_LDFLAGS" = "x"; then
25477
test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$lib\""
25478
APRUTIL_LDFLAGS="-L$lib"
25480
apr_addto_bugger="-L$lib"
25481
for i in $apr_addto_bugger; do
25482
apr_addto_duplicate="0"
25483
for j in $APRUTIL_LDFLAGS; do
25484
if test "x$i" = "x$j"; then
25485
apr_addto_duplicate="1"
25489
if test $apr_addto_duplicate = "0"; then
25490
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS"
25491
APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
25496
apu_db_header=$bdb_header
25497
apu_db_lib=$bdb_libname
25502
if test "x$APRUTIL_INCLUDES" = "x"; then
25503
test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$found/include\""
25504
APRUTIL_INCLUDES="-I$found/include"
25506
apr_addto_bugger="-I$found/include"
25507
for i in $apr_addto_bugger; do
25508
apr_addto_duplicate="0"
25509
for j in $APRUTIL_INCLUDES; do
25510
if test "x$i" = "x$j"; then
25511
apr_addto_duplicate="1"
25515
if test $apr_addto_duplicate = "0"; then
25516
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES"
25517
APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
25523
if test "x$APRUTIL_LDFLAGS" = "x"; then
25524
test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$found/lib\""
25525
APRUTIL_LDFLAGS="-L$found/lib"
25527
apr_addto_bugger="-L$found/lib"
25528
for i in $apr_addto_bugger; do
25529
apr_addto_duplicate="0"
25530
for j in $APRUTIL_LDFLAGS; do
25531
if test "x$i" = "x$j"; then
25532
apr_addto_duplicate="1"
25536
if test $apr_addto_duplicate = "0"; then
25537
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS"
25538
APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
25543
apu_db_header=$bdb_header
25544
apu_db_lib=$bdb_libname
25549
if test "$apu_have_db" = "1"; then
25553
if test "$apu_db_version" != "4"; then
25554
{ { echo "$as_me:$LINENO: error: Berkeley db4 not found" >&5
25555
echo "$as_me: error: Berkeley db4 not found" >&2;}
25556
{ (exit 1); exit 1; }; }
25561
all_places="$check_places"
25564
places="$all_places"
25565
if test -z "$places"; then
25566
places="std /usr/local/BerkeleyDB.4.4 /boot/home/config"
25570
if test ""4"" != "-1"; then
25571
bdb_version="$bdb_version."4""
25572
if test ""-1"" != "-1"; then
25573
bdb_version="$bdb_version."-1""
25576
bdb_places="$places"
25577
bdb_default_search_headers="db44/db.h db4/db.h db.h"
25578
bdb_default_search_lib_names="db-4.4 db4-4.4 db44 db4 db"
25583
# Save the original values of the flags we tweak.
25584
apu_check_lib_save_libs="$LIBS"
25585
apu_check_lib_save_ldflags="$LDFLAGS"
25586
apu_check_lib_save_cppflags="$CPPFLAGS"
25588
# The variable `found' is the prefix under which we've found
25589
# Berkeley DB, or `not' if we haven't found it anywhere yet.
25591
for bdb_place in $bdb_places; do
25593
LDFLAGS="$apu_check_lib_save_ldflags"
25594
CPPFLAGS="$apu_check_lib_save_cppflags"
25595
case "$bdb_place" in
25597
description="the standard places"
25600
header="`echo $bdb_place | sed -e 's/:.*$//'`"
25601
lib="`echo $bdb_place | sed -e 's/^.*://'`"
25602
CPPFLAGS="$CPPFLAGS -I$header"
25603
LDFLAGS="$LDFLAGS -L$lib"
25604
description="$header and $lib"
25607
if test -d $bdb_place; then
25608
LDFLAGS="$LDFLAGS -L$bdb_place/lib"
25609
CPPFLAGS="$CPPFLAGS -I$bdb_place/include"
25611
echo "$as_me:$LINENO: checking for Berkeley DB $bdb_version in $bdb_place" >&5
25612
echo $ECHO_N "checking for Berkeley DB $bdb_version in $bdb_place... $ECHO_C" >&6
25613
echo "$as_me:$LINENO: result: directory not found" >&5
25614
echo "${ECHO_T}directory not found" >&6
25617
description="$bdb_place"
25621
# Since there is no AC_MSG_NOTICE in autoconf 2.13, we use this
25622
# trick to display a message instead.
25623
echo "$as_me:$LINENO: checking for Berkeley DB $bdb_version in $description" >&5
25624
echo $ECHO_N "checking for Berkeley DB $bdb_version in $description... $ECHO_C" >&6
25625
echo "$as_me:$LINENO: result: " >&5
25626
echo "${ECHO_T}" >&6
25628
for bdb_libname in $bdb_default_search_lib_names; do
25629
for bdb_header in $bdb_default_search_headers; do
25630
# Clear the header cache variable for each location
25632
cache_id="`echo ac_cv_header_${bdb_header} \
25633
| sed -e 's/[^a-zA-Z0-9_]/_/g'`"
25636
as_ac_Header=`echo "ac_cv_header_$bdb_header" | $as_tr_sh`
25637
if eval "test \"\${$as_ac_Header+set}\" = set"; then
25638
echo "$as_me:$LINENO: checking for $bdb_header" >&5
25639
echo $ECHO_N "checking for $bdb_header... $ECHO_C" >&6
25640
if eval "test \"\${$as_ac_Header+set}\" = set"; then
25641
echo $ECHO_N "(cached) $ECHO_C" >&6
25643
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25644
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25646
# Is the header compilable?
25647
echo "$as_me:$LINENO: checking $bdb_header usability" >&5
25648
echo $ECHO_N "checking $bdb_header usability... $ECHO_C" >&6
25649
cat >conftest.$ac_ext <<_ACEOF
25652
cat confdefs.h >>conftest.$ac_ext
25653
cat >>conftest.$ac_ext <<_ACEOF
25654
/* end confdefs.h. */
25655
$ac_includes_default
25656
#include <$bdb_header>
25658
rm -f conftest.$ac_objext
25659
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25660
(eval $ac_compile) 2>conftest.er1
25662
grep -v '^ *+' conftest.er1 >conftest.err
25664
cat conftest.err >&5
25665
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25666
(exit $ac_status); } &&
25667
{ ac_try='test -z "$ac_c_werror_flag"
25668
|| test ! -s conftest.err'
25669
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25670
(eval $ac_try) 2>&5
25672
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25673
(exit $ac_status); }; } &&
25674
{ ac_try='test -s conftest.$ac_objext'
25675
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25676
(eval $ac_try) 2>&5
25678
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25679
(exit $ac_status); }; }; then
25680
ac_header_compiler=yes
25682
echo "$as_me: failed program was:" >&5
25683
sed 's/^/| /' conftest.$ac_ext >&5
25685
ac_header_compiler=no
25687
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25688
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25689
echo "${ECHO_T}$ac_header_compiler" >&6
25691
# Is the header present?
25692
echo "$as_me:$LINENO: checking $bdb_header presence" >&5
25693
echo $ECHO_N "checking $bdb_header presence... $ECHO_C" >&6
25694
cat >conftest.$ac_ext <<_ACEOF
25697
cat confdefs.h >>conftest.$ac_ext
25698
cat >>conftest.$ac_ext <<_ACEOF
25699
/* end confdefs.h. */
25700
#include <$bdb_header>
25702
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25703
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25705
grep -v '^ *+' conftest.er1 >conftest.err
25707
cat conftest.err >&5
25708
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25709
(exit $ac_status); } >/dev/null; then
25710
if test -s conftest.err; then
25711
ac_cpp_err=$ac_c_preproc_warn_flag
25712
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25719
if test -z "$ac_cpp_err"; then
25720
ac_header_preproc=yes
25722
echo "$as_me: failed program was:" >&5
25723
sed 's/^/| /' conftest.$ac_ext >&5
25725
ac_header_preproc=no
25727
rm -f conftest.err conftest.$ac_ext
25728
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25729
echo "${ECHO_T}$ac_header_preproc" >&6
25731
# So? What about this header?
25732
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25734
{ echo "$as_me:$LINENO: WARNING: $bdb_header: accepted by the compiler, rejected by the preprocessor!" >&5
25735
echo "$as_me: WARNING: $bdb_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25736
{ echo "$as_me:$LINENO: WARNING: $bdb_header: proceeding with the compiler's result" >&5
25737
echo "$as_me: WARNING: $bdb_header: proceeding with the compiler's result" >&2;}
25738
ac_header_preproc=yes
25741
{ echo "$as_me:$LINENO: WARNING: $bdb_header: present but cannot be compiled" >&5
25742
echo "$as_me: WARNING: $bdb_header: present but cannot be compiled" >&2;}
25743
{ echo "$as_me:$LINENO: WARNING: $bdb_header: check for missing prerequisite headers?" >&5
25744
echo "$as_me: WARNING: $bdb_header: check for missing prerequisite headers?" >&2;}
25745
{ echo "$as_me:$LINENO: WARNING: $bdb_header: see the Autoconf documentation" >&5
25746
echo "$as_me: WARNING: $bdb_header: see the Autoconf documentation" >&2;}
25747
{ echo "$as_me:$LINENO: WARNING: $bdb_header: section \"Present But Cannot Be Compiled\"" >&5
25748
echo "$as_me: WARNING: $bdb_header: section \"Present But Cannot Be Compiled\"" >&2;}
25749
{ echo "$as_me:$LINENO: WARNING: $bdb_header: proceeding with the preprocessor's result" >&5
25750
echo "$as_me: WARNING: $bdb_header: proceeding with the preprocessor's result" >&2;}
25751
{ echo "$as_me:$LINENO: WARNING: $bdb_header: in the future, the compiler will take precedence" >&5
25752
echo "$as_me: WARNING: $bdb_header: in the future, the compiler will take precedence" >&2;}
25755
## ------------------------------------------ ##
25756
## Report this to the AC_PACKAGE_NAME lists. ##
25757
## ------------------------------------------ ##
25760
sed "s/^/$as_me: WARNING: /" >&2
25763
echo "$as_me:$LINENO: checking for $bdb_header" >&5
25764
echo $ECHO_N "checking for $bdb_header... $ECHO_C" >&6
25765
if eval "test \"\${$as_ac_Header+set}\" = set"; then
25766
echo $ECHO_N "(cached) $ECHO_C" >&6
25768
eval "$as_ac_Header=\$ac_header_preproc"
25770
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25771
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25774
if test `eval echo '${'$as_ac_Header'}'` = yes; then
25776
if test ""4"" = "3" -o ""4"" = "4"; then
25777
# We generate a separate cache variable for each prefix and libname
25778
# we search under. That way, we avoid caching information that
25779
# changes if the user runs `configure' with a different set of
25782
cache_id="`echo apu_cv_check_berkeley_db_"4"_"4"_"-1"_${bdb_header}_${bdb_libname}_in_${bdb_place} \
25783
| sed -e 's/[^a-zA-Z0-9_]/_/g'`"
25786
echo "$as_me:$LINENO: checking for -l$bdb_libname" >&5
25787
echo $ECHO_N "checking for -l$bdb_libname... $ECHO_C" >&6
25788
if eval "test \"\${$cache_id+set}\" = set"; then
25789
echo $ECHO_N "(cached) $ECHO_C" >&6
25793
apu_try_berkeley_db_save_libs="$LIBS"
25795
apu_check_berkeley_db_major="4"
25796
apu_check_berkeley_db_minor="4"
25797
apu_check_berkeley_db_patch="-1"
25798
apu_try_berkeley_db_header=$bdb_header
25799
apu_try_berkeley_db_libname=$bdb_libname
25801
LIBS="$LIBS -l$apu_try_berkeley_db_libname"
25802
if test "$cross_compiling" = yes; then
25803
apu_try_berkeley_db=yes
25806
cat >conftest.$ac_ext <<_ACEOF
25809
cat confdefs.h >>conftest.$ac_ext
25810
cat >>conftest.$ac_ext <<_ACEOF
25811
/* end confdefs.h. */
25814
#include <$apu_try_berkeley_db_header>
25817
int major, minor, patch;
25819
db_version(&major, &minor, &patch);
25821
/* Sanity check: ensure that db.h constants actually match the db library */
25822
if (major != DB_VERSION_MAJOR
25823
|| minor != DB_VERSION_MINOR
25824
|| patch != DB_VERSION_PATCH)
25827
/* Run-time check: ensure the library claims to be the correct version. */
25829
if ($apu_check_berkeley_db_major != -1) {
25830
if (major < $apu_check_berkeley_db_major)
25832
if (major > $apu_check_berkeley_db_major)
25836
if ($apu_check_berkeley_db_minor != -1) {
25837
if (minor < $apu_check_berkeley_db_minor)
25839
if (minor > $apu_check_berkeley_db_minor)
25843
if ($apu_check_berkeley_db_patch == -1
25844
|| patch >= $apu_check_berkeley_db_patch)
25851
rm -f conftest$ac_exeext
25852
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25853
(eval $ac_link) 2>&5
25855
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25856
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25857
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25858
(eval $ac_try) 2>&5
25860
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25861
(exit $ac_status); }; }; then
25862
apu_try_berkeley_db=yes
25864
echo "$as_me: program exited with status $ac_status" >&5
25865
echo "$as_me: failed program was:" >&5
25866
sed 's/^/| /' conftest.$ac_ext >&5
25868
( exit $ac_status )
25869
apu_try_berkeley_db=no
25871
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25874
LIBS="$apu_try_berkeley_db_save_libs"
25877
eval "$cache_id=$apu_try_berkeley_db"
25881
result="`eval echo '$'$cache_id`"
25882
echo "$as_me:$LINENO: result: $result" >&5
25883
echo "${ECHO_T}$result" >&6
25884
elif test ""4"" = "1"; then
25885
as_ac_Lib=`echo "ac_cv_lib_$bdb_libname''_dbopen" | $as_tr_sh`
25886
echo "$as_me:$LINENO: checking for dbopen in -l$bdb_libname" >&5
25887
echo $ECHO_N "checking for dbopen in -l$bdb_libname... $ECHO_C" >&6
25888
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
25889
echo $ECHO_N "(cached) $ECHO_C" >&6
25891
ac_check_lib_save_LIBS=$LIBS
25892
LIBS="-l$bdb_libname $LIBS"
25893
cat >conftest.$ac_ext <<_ACEOF
25896
cat confdefs.h >>conftest.$ac_ext
25897
cat >>conftest.$ac_ext <<_ACEOF
25898
/* end confdefs.h. */
25900
/* Override any gcc2 internal prototype to avoid an error. */
25904
/* We use char because int might match the return type of a gcc2
25905
builtin and then its argument prototype would still apply. */
25915
rm -f conftest.$ac_objext conftest$ac_exeext
25916
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25917
(eval $ac_link) 2>conftest.er1
25919
grep -v '^ *+' conftest.er1 >conftest.err
25921
cat conftest.err >&5
25922
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25923
(exit $ac_status); } &&
25924
{ ac_try='test -z "$ac_c_werror_flag"
25925
|| test ! -s conftest.err'
25926
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25927
(eval $ac_try) 2>&5
25929
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25930
(exit $ac_status); }; } &&
25931
{ ac_try='test -s conftest$ac_exeext'
25932
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25933
(eval $ac_try) 2>&5
25935
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25936
(exit $ac_status); }; }; then
25937
eval "$as_ac_Lib=yes"
25939
echo "$as_me: failed program was:" >&5
25940
sed 's/^/| /' conftest.$ac_ext >&5
25942
eval "$as_ac_Lib=no"
25944
rm -f conftest.err conftest.$ac_objext \
25945
conftest$ac_exeext conftest.$ac_ext
25946
LIBS=$ac_check_lib_save_LIBS
25948
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
25949
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
25950
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
25957
elif test ""4"" = "2"; then
25958
as_ac_Lib=`echo "ac_cv_lib_$bdb_libname''_db_open" | $as_tr_sh`
25959
echo "$as_me:$LINENO: checking for db_open in -l$bdb_libname" >&5
25960
echo $ECHO_N "checking for db_open in -l$bdb_libname... $ECHO_C" >&6
25961
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
25962
echo $ECHO_N "(cached) $ECHO_C" >&6
25964
ac_check_lib_save_LIBS=$LIBS
25965
LIBS="-l$bdb_libname $LIBS"
25966
cat >conftest.$ac_ext <<_ACEOF
25969
cat confdefs.h >>conftest.$ac_ext
25970
cat >>conftest.$ac_ext <<_ACEOF
25971
/* end confdefs.h. */
25973
/* Override any gcc2 internal prototype to avoid an error. */
25977
/* We use char because int might match the return type of a gcc2
25978
builtin and then its argument prototype would still apply. */
25988
rm -f conftest.$ac_objext conftest$ac_exeext
25989
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25990
(eval $ac_link) 2>conftest.er1
25992
grep -v '^ *+' conftest.er1 >conftest.err
25994
cat conftest.err >&5
25995
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25996
(exit $ac_status); } &&
25997
{ ac_try='test -z "$ac_c_werror_flag"
25998
|| test ! -s conftest.err'
25999
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26000
(eval $ac_try) 2>&5
26002
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26003
(exit $ac_status); }; } &&
26004
{ ac_try='test -s conftest$ac_exeext'
26005
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26006
(eval $ac_try) 2>&5
26008
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26009
(exit $ac_status); }; }; then
26010
eval "$as_ac_Lib=yes"
26012
echo "$as_me: failed program was:" >&5
26013
sed 's/^/| /' conftest.$ac_ext >&5
26015
eval "$as_ac_Lib=no"
26017
rm -f conftest.err conftest.$ac_objext \
26018
conftest$ac_exeext conftest.$ac_ext
26019
LIBS=$ac_check_lib_save_LIBS
26021
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
26022
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
26023
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
26038
# If we found it, no need to search any more.
26039
if test "$result" = "yes"; then
26044
test "$found" != "not" && break
26046
test "$found" != "not" && break
26049
# Restore the original values of the flags we tweak.
26050
LDFLAGS="$apu_check_lib_save_ldflags"
26051
CPPFLAGS="$apu_check_lib_save_cppflags"
26058
apu_db_header=$bdb_header
26059
apu_db_lib=$bdb_libname
26063
header="`echo $found | sed -e 's/:.*$//'`"
26064
lib="`echo $found | sed -e 's/^.*://'`"
26067
if test "x$APRUTIL_INCLUDES" = "x"; then
26068
test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$header\""
26069
APRUTIL_INCLUDES="-I$header"
26071
apr_addto_bugger="-I$header"
26072
for i in $apr_addto_bugger; do
26073
apr_addto_duplicate="0"
26074
for j in $APRUTIL_INCLUDES; do
26075
if test "x$i" = "x$j"; then
26076
apr_addto_duplicate="1"
26080
if test $apr_addto_duplicate = "0"; then
26081
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES"
26082
APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
26088
if test "x$APRUTIL_LDFLAGS" = "x"; then
26089
test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$lib\""
26090
APRUTIL_LDFLAGS="-L$lib"
26092
apr_addto_bugger="-L$lib"
26093
for i in $apr_addto_bugger; do
26094
apr_addto_duplicate="0"
26095
for j in $APRUTIL_LDFLAGS; do
26096
if test "x$i" = "x$j"; then
26097
apr_addto_duplicate="1"
26101
if test $apr_addto_duplicate = "0"; then
26102
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS"
26103
APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
26108
apu_db_header=$bdb_header
26109
apu_db_lib=$bdb_libname
26114
if test "x$APRUTIL_INCLUDES" = "x"; then
26115
test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$found/include\""
26116
APRUTIL_INCLUDES="-I$found/include"
26118
apr_addto_bugger="-I$found/include"
26119
for i in $apr_addto_bugger; do
26120
apr_addto_duplicate="0"
26121
for j in $APRUTIL_INCLUDES; do
26122
if test "x$i" = "x$j"; then
26123
apr_addto_duplicate="1"
26127
if test $apr_addto_duplicate = "0"; then
26128
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES"
26129
APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
26135
if test "x$APRUTIL_LDFLAGS" = "x"; then
26136
test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$found/lib\""
26137
APRUTIL_LDFLAGS="-L$found/lib"
26139
apr_addto_bugger="-L$found/lib"
26140
for i in $apr_addto_bugger; do
26141
apr_addto_duplicate="0"
26142
for j in $APRUTIL_LDFLAGS; do
26143
if test "x$i" = "x$j"; then
26144
apr_addto_duplicate="1"
26148
if test $apr_addto_duplicate = "0"; then
26149
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS"
26150
APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
26155
apu_db_header=$bdb_header
26156
apu_db_lib=$bdb_libname
26161
if test "$apu_have_db" = "1"; then
26165
if test "$apu_db_version" != "4"; then
26167
places="$all_places"
26168
if test -z "$places"; then
26169
places="std /usr/local/BerkeleyDB.4.3 /boot/home/config"
26173
if test ""3"" != "-1"; then
26174
bdb_version="$bdb_version."3""
26175
if test ""-1"" != "-1"; then
26176
bdb_version="$bdb_version."-1""
26179
bdb_places="$places"
26180
bdb_default_search_headers="db43/db.h db4/db.h db.h"
26181
bdb_default_search_lib_names="db-4.3 db4-4.3 db43 db4 db"
26186
# Save the original values of the flags we tweak.
26187
apu_check_lib_save_libs="$LIBS"
26188
apu_check_lib_save_ldflags="$LDFLAGS"
26189
apu_check_lib_save_cppflags="$CPPFLAGS"
26191
# The variable `found' is the prefix under which we've found
26192
# Berkeley DB, or `not' if we haven't found it anywhere yet.
26194
for bdb_place in $bdb_places; do
26196
LDFLAGS="$apu_check_lib_save_ldflags"
26197
CPPFLAGS="$apu_check_lib_save_cppflags"
26198
case "$bdb_place" in
26200
description="the standard places"
26203
header="`echo $bdb_place | sed -e 's/:.*$//'`"
26204
lib="`echo $bdb_place | sed -e 's/^.*://'`"
26205
CPPFLAGS="$CPPFLAGS -I$header"
26206
LDFLAGS="$LDFLAGS -L$lib"
26207
description="$header and $lib"
26210
if test -d $bdb_place; then
26211
LDFLAGS="$LDFLAGS -L$bdb_place/lib"
26212
CPPFLAGS="$CPPFLAGS -I$bdb_place/include"
26214
echo "$as_me:$LINENO: checking for Berkeley DB $bdb_version in $bdb_place" >&5
26215
echo $ECHO_N "checking for Berkeley DB $bdb_version in $bdb_place... $ECHO_C" >&6
26216
echo "$as_me:$LINENO: result: directory not found" >&5
26217
echo "${ECHO_T}directory not found" >&6
26220
description="$bdb_place"
26224
# Since there is no AC_MSG_NOTICE in autoconf 2.13, we use this
26225
# trick to display a message instead.
26226
echo "$as_me:$LINENO: checking for Berkeley DB $bdb_version in $description" >&5
26227
echo $ECHO_N "checking for Berkeley DB $bdb_version in $description... $ECHO_C" >&6
26228
echo "$as_me:$LINENO: result: " >&5
26229
echo "${ECHO_T}" >&6
26231
for bdb_libname in $bdb_default_search_lib_names; do
26232
for bdb_header in $bdb_default_search_headers; do
26233
# Clear the header cache variable for each location
26235
cache_id="`echo ac_cv_header_${bdb_header} \
26236
| sed -e 's/[^a-zA-Z0-9_]/_/g'`"
26239
as_ac_Header=`echo "ac_cv_header_$bdb_header" | $as_tr_sh`
26240
if eval "test \"\${$as_ac_Header+set}\" = set"; then
26241
echo "$as_me:$LINENO: checking for $bdb_header" >&5
26242
echo $ECHO_N "checking for $bdb_header... $ECHO_C" >&6
26243
if eval "test \"\${$as_ac_Header+set}\" = set"; then
26244
echo $ECHO_N "(cached) $ECHO_C" >&6
26246
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26247
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26249
# Is the header compilable?
26250
echo "$as_me:$LINENO: checking $bdb_header usability" >&5
26251
echo $ECHO_N "checking $bdb_header usability... $ECHO_C" >&6
26252
cat >conftest.$ac_ext <<_ACEOF
26255
cat confdefs.h >>conftest.$ac_ext
26256
cat >>conftest.$ac_ext <<_ACEOF
26257
/* end confdefs.h. */
26258
$ac_includes_default
26259
#include <$bdb_header>
26261
rm -f conftest.$ac_objext
26262
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26263
(eval $ac_compile) 2>conftest.er1
26265
grep -v '^ *+' conftest.er1 >conftest.err
26267
cat conftest.err >&5
26268
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26269
(exit $ac_status); } &&
26270
{ ac_try='test -z "$ac_c_werror_flag"
26271
|| test ! -s conftest.err'
26272
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26273
(eval $ac_try) 2>&5
26275
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26276
(exit $ac_status); }; } &&
26277
{ ac_try='test -s conftest.$ac_objext'
26278
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26279
(eval $ac_try) 2>&5
26281
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26282
(exit $ac_status); }; }; then
26283
ac_header_compiler=yes
26285
echo "$as_me: failed program was:" >&5
26286
sed 's/^/| /' conftest.$ac_ext >&5
26288
ac_header_compiler=no
26290
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26291
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26292
echo "${ECHO_T}$ac_header_compiler" >&6
26294
# Is the header present?
26295
echo "$as_me:$LINENO: checking $bdb_header presence" >&5
26296
echo $ECHO_N "checking $bdb_header presence... $ECHO_C" >&6
26297
cat >conftest.$ac_ext <<_ACEOF
26300
cat confdefs.h >>conftest.$ac_ext
26301
cat >>conftest.$ac_ext <<_ACEOF
26302
/* end confdefs.h. */
26303
#include <$bdb_header>
26305
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26306
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26308
grep -v '^ *+' conftest.er1 >conftest.err
26310
cat conftest.err >&5
26311
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26312
(exit $ac_status); } >/dev/null; then
26313
if test -s conftest.err; then
26314
ac_cpp_err=$ac_c_preproc_warn_flag
26315
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26322
if test -z "$ac_cpp_err"; then
26323
ac_header_preproc=yes
26325
echo "$as_me: failed program was:" >&5
26326
sed 's/^/| /' conftest.$ac_ext >&5
26328
ac_header_preproc=no
26330
rm -f conftest.err conftest.$ac_ext
26331
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26332
echo "${ECHO_T}$ac_header_preproc" >&6
26334
# So? What about this header?
26335
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26337
{ echo "$as_me:$LINENO: WARNING: $bdb_header: accepted by the compiler, rejected by the preprocessor!" >&5
26338
echo "$as_me: WARNING: $bdb_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26339
{ echo "$as_me:$LINENO: WARNING: $bdb_header: proceeding with the compiler's result" >&5
26340
echo "$as_me: WARNING: $bdb_header: proceeding with the compiler's result" >&2;}
26341
ac_header_preproc=yes
26344
{ echo "$as_me:$LINENO: WARNING: $bdb_header: present but cannot be compiled" >&5
26345
echo "$as_me: WARNING: $bdb_header: present but cannot be compiled" >&2;}
26346
{ echo "$as_me:$LINENO: WARNING: $bdb_header: check for missing prerequisite headers?" >&5
26347
echo "$as_me: WARNING: $bdb_header: check for missing prerequisite headers?" >&2;}
26348
{ echo "$as_me:$LINENO: WARNING: $bdb_header: see the Autoconf documentation" >&5
26349
echo "$as_me: WARNING: $bdb_header: see the Autoconf documentation" >&2;}
26350
{ echo "$as_me:$LINENO: WARNING: $bdb_header: section \"Present But Cannot Be Compiled\"" >&5
26351
echo "$as_me: WARNING: $bdb_header: section \"Present But Cannot Be Compiled\"" >&2;}
26352
{ echo "$as_me:$LINENO: WARNING: $bdb_header: proceeding with the preprocessor's result" >&5
26353
echo "$as_me: WARNING: $bdb_header: proceeding with the preprocessor's result" >&2;}
26354
{ echo "$as_me:$LINENO: WARNING: $bdb_header: in the future, the compiler will take precedence" >&5
26355
echo "$as_me: WARNING: $bdb_header: in the future, the compiler will take precedence" >&2;}
26358
## ------------------------------------------ ##
26359
## Report this to the AC_PACKAGE_NAME lists. ##
26360
## ------------------------------------------ ##
26363
sed "s/^/$as_me: WARNING: /" >&2
26366
echo "$as_me:$LINENO: checking for $bdb_header" >&5
26367
echo $ECHO_N "checking for $bdb_header... $ECHO_C" >&6
26368
if eval "test \"\${$as_ac_Header+set}\" = set"; then
26369
echo $ECHO_N "(cached) $ECHO_C" >&6
26371
eval "$as_ac_Header=\$ac_header_preproc"
26373
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26374
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26377
if test `eval echo '${'$as_ac_Header'}'` = yes; then
26379
if test ""4"" = "3" -o ""4"" = "4"; then
26380
# We generate a separate cache variable for each prefix and libname
26381
# we search under. That way, we avoid caching information that
26382
# changes if the user runs `configure' with a different set of
26385
cache_id="`echo apu_cv_check_berkeley_db_"4"_"3"_"-1"_${bdb_header}_${bdb_libname}_in_${bdb_place} \
26386
| sed -e 's/[^a-zA-Z0-9_]/_/g'`"
26389
echo "$as_me:$LINENO: checking for -l$bdb_libname" >&5
26390
echo $ECHO_N "checking for -l$bdb_libname... $ECHO_C" >&6
26391
if eval "test \"\${$cache_id+set}\" = set"; then
26392
echo $ECHO_N "(cached) $ECHO_C" >&6
26396
apu_try_berkeley_db_save_libs="$LIBS"
26398
apu_check_berkeley_db_major="4"
26399
apu_check_berkeley_db_minor="3"
26400
apu_check_berkeley_db_patch="-1"
26401
apu_try_berkeley_db_header=$bdb_header
26402
apu_try_berkeley_db_libname=$bdb_libname
26404
LIBS="$LIBS -l$apu_try_berkeley_db_libname"
26405
if test "$cross_compiling" = yes; then
26406
apu_try_berkeley_db=yes
26409
cat >conftest.$ac_ext <<_ACEOF
26412
cat confdefs.h >>conftest.$ac_ext
26413
cat >>conftest.$ac_ext <<_ACEOF
26414
/* end confdefs.h. */
26417
#include <$apu_try_berkeley_db_header>
26420
int major, minor, patch;
26422
db_version(&major, &minor, &patch);
26424
/* Sanity check: ensure that db.h constants actually match the db library */
26425
if (major != DB_VERSION_MAJOR
26426
|| minor != DB_VERSION_MINOR
26427
|| patch != DB_VERSION_PATCH)
26430
/* Run-time check: ensure the library claims to be the correct version. */
26432
if ($apu_check_berkeley_db_major != -1) {
26433
if (major < $apu_check_berkeley_db_major)
26435
if (major > $apu_check_berkeley_db_major)
26439
if ($apu_check_berkeley_db_minor != -1) {
26440
if (minor < $apu_check_berkeley_db_minor)
26442
if (minor > $apu_check_berkeley_db_minor)
26446
if ($apu_check_berkeley_db_patch == -1
26447
|| patch >= $apu_check_berkeley_db_patch)
26454
rm -f conftest$ac_exeext
26455
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26456
(eval $ac_link) 2>&5
26458
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26459
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26460
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26461
(eval $ac_try) 2>&5
26463
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26464
(exit $ac_status); }; }; then
26465
apu_try_berkeley_db=yes
26467
echo "$as_me: program exited with status $ac_status" >&5
26468
echo "$as_me: failed program was:" >&5
26469
sed 's/^/| /' conftest.$ac_ext >&5
26471
( exit $ac_status )
26472
apu_try_berkeley_db=no
26474
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26477
LIBS="$apu_try_berkeley_db_save_libs"
26480
eval "$cache_id=$apu_try_berkeley_db"
26484
result="`eval echo '$'$cache_id`"
26485
echo "$as_me:$LINENO: result: $result" >&5
26486
echo "${ECHO_T}$result" >&6
26487
elif test ""4"" = "1"; then
26488
as_ac_Lib=`echo "ac_cv_lib_$bdb_libname''_dbopen" | $as_tr_sh`
26489
echo "$as_me:$LINENO: checking for dbopen in -l$bdb_libname" >&5
26490
echo $ECHO_N "checking for dbopen in -l$bdb_libname... $ECHO_C" >&6
26491
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
26492
echo $ECHO_N "(cached) $ECHO_C" >&6
26494
ac_check_lib_save_LIBS=$LIBS
26495
LIBS="-l$bdb_libname $LIBS"
26496
cat >conftest.$ac_ext <<_ACEOF
26499
cat confdefs.h >>conftest.$ac_ext
26500
cat >>conftest.$ac_ext <<_ACEOF
26501
/* end confdefs.h. */
26503
/* Override any gcc2 internal prototype to avoid an error. */
26507
/* We use char because int might match the return type of a gcc2
26508
builtin and then its argument prototype would still apply. */
26518
rm -f conftest.$ac_objext conftest$ac_exeext
26519
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26520
(eval $ac_link) 2>conftest.er1
26522
grep -v '^ *+' conftest.er1 >conftest.err
26524
cat conftest.err >&5
26525
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26526
(exit $ac_status); } &&
26527
{ ac_try='test -z "$ac_c_werror_flag"
26528
|| test ! -s conftest.err'
26529
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26530
(eval $ac_try) 2>&5
26532
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26533
(exit $ac_status); }; } &&
26534
{ ac_try='test -s conftest$ac_exeext'
26535
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26536
(eval $ac_try) 2>&5
26538
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26539
(exit $ac_status); }; }; then
26540
eval "$as_ac_Lib=yes"
26542
echo "$as_me: failed program was:" >&5
26543
sed 's/^/| /' conftest.$ac_ext >&5
26545
eval "$as_ac_Lib=no"
26547
rm -f conftest.err conftest.$ac_objext \
26548
conftest$ac_exeext conftest.$ac_ext
26549
LIBS=$ac_check_lib_save_LIBS
26551
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
26552
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
26553
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
26560
elif test ""4"" = "2"; then
26561
as_ac_Lib=`echo "ac_cv_lib_$bdb_libname''_db_open" | $as_tr_sh`
26562
echo "$as_me:$LINENO: checking for db_open in -l$bdb_libname" >&5
26563
echo $ECHO_N "checking for db_open in -l$bdb_libname... $ECHO_C" >&6
26564
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
26565
echo $ECHO_N "(cached) $ECHO_C" >&6
26567
ac_check_lib_save_LIBS=$LIBS
26568
LIBS="-l$bdb_libname $LIBS"
26569
cat >conftest.$ac_ext <<_ACEOF
26572
cat confdefs.h >>conftest.$ac_ext
26573
cat >>conftest.$ac_ext <<_ACEOF
26574
/* end confdefs.h. */
26576
/* Override any gcc2 internal prototype to avoid an error. */
26580
/* We use char because int might match the return type of a gcc2
26581
builtin and then its argument prototype would still apply. */
26591
rm -f conftest.$ac_objext conftest$ac_exeext
26592
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26593
(eval $ac_link) 2>conftest.er1
26595
grep -v '^ *+' conftest.er1 >conftest.err
26597
cat conftest.err >&5
26598
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26599
(exit $ac_status); } &&
26600
{ ac_try='test -z "$ac_c_werror_flag"
26601
|| test ! -s conftest.err'
26602
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26603
(eval $ac_try) 2>&5
26605
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26606
(exit $ac_status); }; } &&
26607
{ ac_try='test -s conftest$ac_exeext'
26608
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26609
(eval $ac_try) 2>&5
26611
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26612
(exit $ac_status); }; }; then
26613
eval "$as_ac_Lib=yes"
26615
echo "$as_me: failed program was:" >&5
26616
sed 's/^/| /' conftest.$ac_ext >&5
26618
eval "$as_ac_Lib=no"
26620
rm -f conftest.err conftest.$ac_objext \
26621
conftest$ac_exeext conftest.$ac_ext
26622
LIBS=$ac_check_lib_save_LIBS
26624
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
26625
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
26626
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
26641
# If we found it, no need to search any more.
26642
if test "$result" = "yes"; then
26647
test "$found" != "not" && break
26649
test "$found" != "not" && break
26652
# Restore the original values of the flags we tweak.
26653
LDFLAGS="$apu_check_lib_save_ldflags"
26654
CPPFLAGS="$apu_check_lib_save_cppflags"
26661
apu_db_header=$bdb_header
26662
apu_db_lib=$bdb_libname
26666
header="`echo $found | sed -e 's/:.*$//'`"
26667
lib="`echo $found | sed -e 's/^.*://'`"
26670
if test "x$APRUTIL_INCLUDES" = "x"; then
26671
test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$header\""
26672
APRUTIL_INCLUDES="-I$header"
26674
apr_addto_bugger="-I$header"
26675
for i in $apr_addto_bugger; do
26676
apr_addto_duplicate="0"
26677
for j in $APRUTIL_INCLUDES; do
26678
if test "x$i" = "x$j"; then
26679
apr_addto_duplicate="1"
26683
if test $apr_addto_duplicate = "0"; then
26684
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES"
26685
APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
26691
if test "x$APRUTIL_LDFLAGS" = "x"; then
26692
test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$lib\""
26693
APRUTIL_LDFLAGS="-L$lib"
26695
apr_addto_bugger="-L$lib"
26696
for i in $apr_addto_bugger; do
26697
apr_addto_duplicate="0"
26698
for j in $APRUTIL_LDFLAGS; do
26699
if test "x$i" = "x$j"; then
26700
apr_addto_duplicate="1"
26704
if test $apr_addto_duplicate = "0"; then
26705
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS"
26706
APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
26711
apu_db_header=$bdb_header
26712
apu_db_lib=$bdb_libname
26717
if test "x$APRUTIL_INCLUDES" = "x"; then
26718
test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$found/include\""
26719
APRUTIL_INCLUDES="-I$found/include"
26721
apr_addto_bugger="-I$found/include"
26722
for i in $apr_addto_bugger; do
26723
apr_addto_duplicate="0"
26724
for j in $APRUTIL_INCLUDES; do
26725
if test "x$i" = "x$j"; then
26726
apr_addto_duplicate="1"
26730
if test $apr_addto_duplicate = "0"; then
26731
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES"
26732
APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
26738
if test "x$APRUTIL_LDFLAGS" = "x"; then
26739
test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$found/lib\""
26740
APRUTIL_LDFLAGS="-L$found/lib"
26742
apr_addto_bugger="-L$found/lib"
26743
for i in $apr_addto_bugger; do
26744
apr_addto_duplicate="0"
26745
for j in $APRUTIL_LDFLAGS; do
26746
if test "x$i" = "x$j"; then
26747
apr_addto_duplicate="1"
26751
if test $apr_addto_duplicate = "0"; then
26752
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS"
26753
APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
26758
apu_db_header=$bdb_header
26759
apu_db_lib=$bdb_libname
26764
if test "$apu_have_db" = "1"; then
26768
if test "$apu_db_version" != "4"; then
26770
places="$all_places"
26771
if test -z "$places"; then
26772
places="std /usr/local /usr/local/BerkeleyDB.4.2 /boot/home/config"
26776
if test ""2"" != "-1"; then
26777
bdb_version="$bdb_version."2""
26778
if test ""-1"" != "-1"; then
26779
bdb_version="$bdb_version."-1""
26782
bdb_places="$places"
26783
bdb_default_search_headers="db42/db.h db4/db.h db.h"
26784
bdb_default_search_lib_names="db-4.2 db42 db4 db"
26789
# Save the original values of the flags we tweak.
26790
apu_check_lib_save_libs="$LIBS"
26791
apu_check_lib_save_ldflags="$LDFLAGS"
26792
apu_check_lib_save_cppflags="$CPPFLAGS"
26794
# The variable `found' is the prefix under which we've found
26795
# Berkeley DB, or `not' if we haven't found it anywhere yet.
26797
for bdb_place in $bdb_places; do
26799
LDFLAGS="$apu_check_lib_save_ldflags"
26800
CPPFLAGS="$apu_check_lib_save_cppflags"
26801
case "$bdb_place" in
26803
description="the standard places"
26806
header="`echo $bdb_place | sed -e 's/:.*$//'`"
26807
lib="`echo $bdb_place | sed -e 's/^.*://'`"
26808
CPPFLAGS="$CPPFLAGS -I$header"
26809
LDFLAGS="$LDFLAGS -L$lib"
26810
description="$header and $lib"
26813
if test -d $bdb_place; then
26814
LDFLAGS="$LDFLAGS -L$bdb_place/lib"
26815
CPPFLAGS="$CPPFLAGS -I$bdb_place/include"
26817
echo "$as_me:$LINENO: checking for Berkeley DB $bdb_version in $bdb_place" >&5
26818
echo $ECHO_N "checking for Berkeley DB $bdb_version in $bdb_place... $ECHO_C" >&6
26819
echo "$as_me:$LINENO: result: directory not found" >&5
26820
echo "${ECHO_T}directory not found" >&6
26823
description="$bdb_place"
26827
# Since there is no AC_MSG_NOTICE in autoconf 2.13, we use this
26828
# trick to display a message instead.
26829
echo "$as_me:$LINENO: checking for Berkeley DB $bdb_version in $description" >&5
26830
echo $ECHO_N "checking for Berkeley DB $bdb_version in $description... $ECHO_C" >&6
26831
echo "$as_me:$LINENO: result: " >&5
26832
echo "${ECHO_T}" >&6
26834
for bdb_libname in $bdb_default_search_lib_names; do
26835
for bdb_header in $bdb_default_search_headers; do
26836
# Clear the header cache variable for each location
26838
cache_id="`echo ac_cv_header_${bdb_header} \
26839
| sed -e 's/[^a-zA-Z0-9_]/_/g'`"
26842
as_ac_Header=`echo "ac_cv_header_$bdb_header" | $as_tr_sh`
26843
if eval "test \"\${$as_ac_Header+set}\" = set"; then
26844
echo "$as_me:$LINENO: checking for $bdb_header" >&5
26845
echo $ECHO_N "checking for $bdb_header... $ECHO_C" >&6
26846
if eval "test \"\${$as_ac_Header+set}\" = set"; then
26847
echo $ECHO_N "(cached) $ECHO_C" >&6
26849
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26850
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26852
# Is the header compilable?
26853
echo "$as_me:$LINENO: checking $bdb_header usability" >&5
26854
echo $ECHO_N "checking $bdb_header usability... $ECHO_C" >&6
26855
cat >conftest.$ac_ext <<_ACEOF
26858
cat confdefs.h >>conftest.$ac_ext
26859
cat >>conftest.$ac_ext <<_ACEOF
26860
/* end confdefs.h. */
26861
$ac_includes_default
26862
#include <$bdb_header>
26864
rm -f conftest.$ac_objext
26865
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26866
(eval $ac_compile) 2>conftest.er1
26868
grep -v '^ *+' conftest.er1 >conftest.err
26870
cat conftest.err >&5
26871
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26872
(exit $ac_status); } &&
26873
{ ac_try='test -z "$ac_c_werror_flag"
26874
|| test ! -s conftest.err'
26875
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26876
(eval $ac_try) 2>&5
26878
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26879
(exit $ac_status); }; } &&
26880
{ ac_try='test -s conftest.$ac_objext'
26881
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26882
(eval $ac_try) 2>&5
26884
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26885
(exit $ac_status); }; }; then
26886
ac_header_compiler=yes
26888
echo "$as_me: failed program was:" >&5
26889
sed 's/^/| /' conftest.$ac_ext >&5
26891
ac_header_compiler=no
26893
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26894
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26895
echo "${ECHO_T}$ac_header_compiler" >&6
26897
# Is the header present?
26898
echo "$as_me:$LINENO: checking $bdb_header presence" >&5
26899
echo $ECHO_N "checking $bdb_header presence... $ECHO_C" >&6
26900
cat >conftest.$ac_ext <<_ACEOF
26903
cat confdefs.h >>conftest.$ac_ext
26904
cat >>conftest.$ac_ext <<_ACEOF
26905
/* end confdefs.h. */
26906
#include <$bdb_header>
26908
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26909
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26911
grep -v '^ *+' conftest.er1 >conftest.err
26913
cat conftest.err >&5
26914
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26915
(exit $ac_status); } >/dev/null; then
26916
if test -s conftest.err; then
26917
ac_cpp_err=$ac_c_preproc_warn_flag
26918
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26925
if test -z "$ac_cpp_err"; then
26926
ac_header_preproc=yes
26928
echo "$as_me: failed program was:" >&5
26929
sed 's/^/| /' conftest.$ac_ext >&5
26931
ac_header_preproc=no
26933
rm -f conftest.err conftest.$ac_ext
26934
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26935
echo "${ECHO_T}$ac_header_preproc" >&6
26937
# So? What about this header?
26938
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26940
{ echo "$as_me:$LINENO: WARNING: $bdb_header: accepted by the compiler, rejected by the preprocessor!" >&5
26941
echo "$as_me: WARNING: $bdb_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26942
{ echo "$as_me:$LINENO: WARNING: $bdb_header: proceeding with the compiler's result" >&5
26943
echo "$as_me: WARNING: $bdb_header: proceeding with the compiler's result" >&2;}
26944
ac_header_preproc=yes
26947
{ echo "$as_me:$LINENO: WARNING: $bdb_header: present but cannot be compiled" >&5
26948
echo "$as_me: WARNING: $bdb_header: present but cannot be compiled" >&2;}
26949
{ echo "$as_me:$LINENO: WARNING: $bdb_header: check for missing prerequisite headers?" >&5
26950
echo "$as_me: WARNING: $bdb_header: check for missing prerequisite headers?" >&2;}
26951
{ echo "$as_me:$LINENO: WARNING: $bdb_header: see the Autoconf documentation" >&5
26952
echo "$as_me: WARNING: $bdb_header: see the Autoconf documentation" >&2;}
26953
{ echo "$as_me:$LINENO: WARNING: $bdb_header: section \"Present But Cannot Be Compiled\"" >&5
26954
echo "$as_me: WARNING: $bdb_header: section \"Present But Cannot Be Compiled\"" >&2;}
26955
{ echo "$as_me:$LINENO: WARNING: $bdb_header: proceeding with the preprocessor's result" >&5
26956
echo "$as_me: WARNING: $bdb_header: proceeding with the preprocessor's result" >&2;}
26957
{ echo "$as_me:$LINENO: WARNING: $bdb_header: in the future, the compiler will take precedence" >&5
26958
echo "$as_me: WARNING: $bdb_header: in the future, the compiler will take precedence" >&2;}
26961
## ------------------------------------------ ##
26962
## Report this to the AC_PACKAGE_NAME lists. ##
26963
## ------------------------------------------ ##
26966
sed "s/^/$as_me: WARNING: /" >&2
26969
echo "$as_me:$LINENO: checking for $bdb_header" >&5
26970
echo $ECHO_N "checking for $bdb_header... $ECHO_C" >&6
26971
if eval "test \"\${$as_ac_Header+set}\" = set"; then
26972
echo $ECHO_N "(cached) $ECHO_C" >&6
26974
eval "$as_ac_Header=\$ac_header_preproc"
26976
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26977
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26980
if test `eval echo '${'$as_ac_Header'}'` = yes; then
26982
if test ""4"" = "3" -o ""4"" = "4"; then
26983
# We generate a separate cache variable for each prefix and libname
26984
# we search under. That way, we avoid caching information that
26985
# changes if the user runs `configure' with a different set of
26988
cache_id="`echo apu_cv_check_berkeley_db_"4"_"2"_"-1"_${bdb_header}_${bdb_libname}_in_${bdb_place} \
26989
| sed -e 's/[^a-zA-Z0-9_]/_/g'`"
26992
echo "$as_me:$LINENO: checking for -l$bdb_libname" >&5
26993
echo $ECHO_N "checking for -l$bdb_libname... $ECHO_C" >&6
26994
if eval "test \"\${$cache_id+set}\" = set"; then
26995
echo $ECHO_N "(cached) $ECHO_C" >&6
26999
apu_try_berkeley_db_save_libs="$LIBS"
27001
apu_check_berkeley_db_major="4"
27002
apu_check_berkeley_db_minor="2"
27003
apu_check_berkeley_db_patch="-1"
27004
apu_try_berkeley_db_header=$bdb_header
27005
apu_try_berkeley_db_libname=$bdb_libname
27007
LIBS="$LIBS -l$apu_try_berkeley_db_libname"
27008
if test "$cross_compiling" = yes; then
27009
apu_try_berkeley_db=yes
27012
cat >conftest.$ac_ext <<_ACEOF
27015
cat confdefs.h >>conftest.$ac_ext
27016
cat >>conftest.$ac_ext <<_ACEOF
27017
/* end confdefs.h. */
27020
#include <$apu_try_berkeley_db_header>
27023
int major, minor, patch;
27025
db_version(&major, &minor, &patch);
27027
/* Sanity check: ensure that db.h constants actually match the db library */
27028
if (major != DB_VERSION_MAJOR
27029
|| minor != DB_VERSION_MINOR
27030
|| patch != DB_VERSION_PATCH)
27033
/* Run-time check: ensure the library claims to be the correct version. */
27035
if ($apu_check_berkeley_db_major != -1) {
27036
if (major < $apu_check_berkeley_db_major)
27038
if (major > $apu_check_berkeley_db_major)
27042
if ($apu_check_berkeley_db_minor != -1) {
27043
if (minor < $apu_check_berkeley_db_minor)
27045
if (minor > $apu_check_berkeley_db_minor)
27049
if ($apu_check_berkeley_db_patch == -1
27050
|| patch >= $apu_check_berkeley_db_patch)
27057
rm -f conftest$ac_exeext
27058
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27059
(eval $ac_link) 2>&5
27061
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27062
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27063
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27064
(eval $ac_try) 2>&5
27066
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27067
(exit $ac_status); }; }; then
27068
apu_try_berkeley_db=yes
27070
echo "$as_me: program exited with status $ac_status" >&5
27071
echo "$as_me: failed program was:" >&5
27072
sed 's/^/| /' conftest.$ac_ext >&5
27074
( exit $ac_status )
27075
apu_try_berkeley_db=no
27077
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27080
LIBS="$apu_try_berkeley_db_save_libs"
27083
eval "$cache_id=$apu_try_berkeley_db"
27087
result="`eval echo '$'$cache_id`"
27088
echo "$as_me:$LINENO: result: $result" >&5
27089
echo "${ECHO_T}$result" >&6
27090
elif test ""4"" = "1"; then
27091
as_ac_Lib=`echo "ac_cv_lib_$bdb_libname''_dbopen" | $as_tr_sh`
27092
echo "$as_me:$LINENO: checking for dbopen in -l$bdb_libname" >&5
27093
echo $ECHO_N "checking for dbopen in -l$bdb_libname... $ECHO_C" >&6
27094
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
27095
echo $ECHO_N "(cached) $ECHO_C" >&6
27097
ac_check_lib_save_LIBS=$LIBS
27098
LIBS="-l$bdb_libname $LIBS"
27099
cat >conftest.$ac_ext <<_ACEOF
27102
cat confdefs.h >>conftest.$ac_ext
27103
cat >>conftest.$ac_ext <<_ACEOF
27104
/* end confdefs.h. */
27106
/* Override any gcc2 internal prototype to avoid an error. */
27110
/* We use char because int might match the return type of a gcc2
27111
builtin and then its argument prototype would still apply. */
27121
rm -f conftest.$ac_objext conftest$ac_exeext
27122
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27123
(eval $ac_link) 2>conftest.er1
27125
grep -v '^ *+' conftest.er1 >conftest.err
27127
cat conftest.err >&5
27128
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27129
(exit $ac_status); } &&
27130
{ ac_try='test -z "$ac_c_werror_flag"
27131
|| test ! -s conftest.err'
27132
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27133
(eval $ac_try) 2>&5
27135
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27136
(exit $ac_status); }; } &&
27137
{ ac_try='test -s conftest$ac_exeext'
27138
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27139
(eval $ac_try) 2>&5
27141
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27142
(exit $ac_status); }; }; then
27143
eval "$as_ac_Lib=yes"
27145
echo "$as_me: failed program was:" >&5
27146
sed 's/^/| /' conftest.$ac_ext >&5
27148
eval "$as_ac_Lib=no"
27150
rm -f conftest.err conftest.$ac_objext \
27151
conftest$ac_exeext conftest.$ac_ext
27152
LIBS=$ac_check_lib_save_LIBS
27154
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
27155
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
27156
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
27163
elif test ""4"" = "2"; then
27164
as_ac_Lib=`echo "ac_cv_lib_$bdb_libname''_db_open" | $as_tr_sh`
27165
echo "$as_me:$LINENO: checking for db_open in -l$bdb_libname" >&5
27166
echo $ECHO_N "checking for db_open in -l$bdb_libname... $ECHO_C" >&6
27167
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
27168
echo $ECHO_N "(cached) $ECHO_C" >&6
27170
ac_check_lib_save_LIBS=$LIBS
27171
LIBS="-l$bdb_libname $LIBS"
27172
cat >conftest.$ac_ext <<_ACEOF
27175
cat confdefs.h >>conftest.$ac_ext
27176
cat >>conftest.$ac_ext <<_ACEOF
27177
/* end confdefs.h. */
27179
/* Override any gcc2 internal prototype to avoid an error. */
27183
/* We use char because int might match the return type of a gcc2
27184
builtin and then its argument prototype would still apply. */
27194
rm -f conftest.$ac_objext conftest$ac_exeext
27195
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27196
(eval $ac_link) 2>conftest.er1
27198
grep -v '^ *+' conftest.er1 >conftest.err
27200
cat conftest.err >&5
27201
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27202
(exit $ac_status); } &&
27203
{ ac_try='test -z "$ac_c_werror_flag"
27204
|| test ! -s conftest.err'
27205
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27206
(eval $ac_try) 2>&5
27208
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27209
(exit $ac_status); }; } &&
27210
{ ac_try='test -s conftest$ac_exeext'
27211
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27212
(eval $ac_try) 2>&5
27214
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27215
(exit $ac_status); }; }; then
27216
eval "$as_ac_Lib=yes"
27218
echo "$as_me: failed program was:" >&5
27219
sed 's/^/| /' conftest.$ac_ext >&5
27221
eval "$as_ac_Lib=no"
27223
rm -f conftest.err conftest.$ac_objext \
27224
conftest$ac_exeext conftest.$ac_ext
27225
LIBS=$ac_check_lib_save_LIBS
27227
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
27228
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
27229
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
27244
# If we found it, no need to search any more.
27245
if test "$result" = "yes"; then
27250
test "$found" != "not" && break
27252
test "$found" != "not" && break
27255
# Restore the original values of the flags we tweak.
27256
LDFLAGS="$apu_check_lib_save_ldflags"
27257
CPPFLAGS="$apu_check_lib_save_cppflags"
27264
apu_db_header=$bdb_header
27265
apu_db_lib=$bdb_libname
27269
header="`echo $found | sed -e 's/:.*$//'`"
27270
lib="`echo $found | sed -e 's/^.*://'`"
27273
if test "x$APRUTIL_INCLUDES" = "x"; then
27274
test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$header\""
27275
APRUTIL_INCLUDES="-I$header"
27277
apr_addto_bugger="-I$header"
27278
for i in $apr_addto_bugger; do
27279
apr_addto_duplicate="0"
27280
for j in $APRUTIL_INCLUDES; do
27281
if test "x$i" = "x$j"; then
27282
apr_addto_duplicate="1"
27286
if test $apr_addto_duplicate = "0"; then
27287
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES"
27288
APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
27294
if test "x$APRUTIL_LDFLAGS" = "x"; then
27295
test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$lib\""
27296
APRUTIL_LDFLAGS="-L$lib"
27298
apr_addto_bugger="-L$lib"
27299
for i in $apr_addto_bugger; do
27300
apr_addto_duplicate="0"
27301
for j in $APRUTIL_LDFLAGS; do
27302
if test "x$i" = "x$j"; then
27303
apr_addto_duplicate="1"
27307
if test $apr_addto_duplicate = "0"; then
27308
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS"
27309
APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
27314
apu_db_header=$bdb_header
27315
apu_db_lib=$bdb_libname
27320
if test "x$APRUTIL_INCLUDES" = "x"; then
27321
test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$found/include\""
27322
APRUTIL_INCLUDES="-I$found/include"
27324
apr_addto_bugger="-I$found/include"
27325
for i in $apr_addto_bugger; do
27326
apr_addto_duplicate="0"
27327
for j in $APRUTIL_INCLUDES; do
27328
if test "x$i" = "x$j"; then
27329
apr_addto_duplicate="1"
27333
if test $apr_addto_duplicate = "0"; then
27334
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES"
27335
APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
27341
if test "x$APRUTIL_LDFLAGS" = "x"; then
27342
test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$found/lib\""
27343
APRUTIL_LDFLAGS="-L$found/lib"
27345
apr_addto_bugger="-L$found/lib"
27346
for i in $apr_addto_bugger; do
27347
apr_addto_duplicate="0"
27348
for j in $APRUTIL_LDFLAGS; do
27349
if test "x$i" = "x$j"; then
27350
apr_addto_duplicate="1"
27354
if test $apr_addto_duplicate = "0"; then
27355
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS"
27356
APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
27361
apu_db_header=$bdb_header
27362
apu_db_lib=$bdb_libname
27367
if test "$apu_have_db" = "1"; then
27371
if test "$apu_db_version" != "4"; then
27373
places="$all_places"
27374
if test -z "$places"; then
27375
places="std /usr/local /usr/local/BerkeleyDB.4.1 /boot/home/config"
27379
if test ""1"" != "-1"; then
27380
bdb_version="$bdb_version."1""
27381
if test ""-1"" != "-1"; then
27382
bdb_version="$bdb_version."-1""
27385
bdb_places="$places"
27386
bdb_default_search_headers="db41/db.h db4/db.h db.h"
27387
bdb_default_search_lib_names="db-4.1 db41 db4 db"
27392
# Save the original values of the flags we tweak.
27393
apu_check_lib_save_libs="$LIBS"
27394
apu_check_lib_save_ldflags="$LDFLAGS"
27395
apu_check_lib_save_cppflags="$CPPFLAGS"
27397
# The variable `found' is the prefix under which we've found
27398
# Berkeley DB, or `not' if we haven't found it anywhere yet.
27400
for bdb_place in $bdb_places; do
27402
LDFLAGS="$apu_check_lib_save_ldflags"
27403
CPPFLAGS="$apu_check_lib_save_cppflags"
27404
case "$bdb_place" in
27406
description="the standard places"
27409
header="`echo $bdb_place | sed -e 's/:.*$//'`"
27410
lib="`echo $bdb_place | sed -e 's/^.*://'`"
27411
CPPFLAGS="$CPPFLAGS -I$header"
27412
LDFLAGS="$LDFLAGS -L$lib"
27413
description="$header and $lib"
27416
if test -d $bdb_place; then
27417
LDFLAGS="$LDFLAGS -L$bdb_place/lib"
27418
CPPFLAGS="$CPPFLAGS -I$bdb_place/include"
27420
echo "$as_me:$LINENO: checking for Berkeley DB $bdb_version in $bdb_place" >&5
27421
echo $ECHO_N "checking for Berkeley DB $bdb_version in $bdb_place... $ECHO_C" >&6
27422
echo "$as_me:$LINENO: result: directory not found" >&5
27423
echo "${ECHO_T}directory not found" >&6
27426
description="$bdb_place"
27430
# Since there is no AC_MSG_NOTICE in autoconf 2.13, we use this
27431
# trick to display a message instead.
27432
echo "$as_me:$LINENO: checking for Berkeley DB $bdb_version in $description" >&5
27433
echo $ECHO_N "checking for Berkeley DB $bdb_version in $description... $ECHO_C" >&6
27434
echo "$as_me:$LINENO: result: " >&5
27435
echo "${ECHO_T}" >&6
27437
for bdb_libname in $bdb_default_search_lib_names; do
27438
for bdb_header in $bdb_default_search_headers; do
27439
# Clear the header cache variable for each location
27441
cache_id="`echo ac_cv_header_${bdb_header} \
27442
| sed -e 's/[^a-zA-Z0-9_]/_/g'`"
27445
as_ac_Header=`echo "ac_cv_header_$bdb_header" | $as_tr_sh`
27446
if eval "test \"\${$as_ac_Header+set}\" = set"; then
27447
echo "$as_me:$LINENO: checking for $bdb_header" >&5
27448
echo $ECHO_N "checking for $bdb_header... $ECHO_C" >&6
27449
if eval "test \"\${$as_ac_Header+set}\" = set"; then
27450
echo $ECHO_N "(cached) $ECHO_C" >&6
27452
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27453
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27455
# Is the header compilable?
27456
echo "$as_me:$LINENO: checking $bdb_header usability" >&5
27457
echo $ECHO_N "checking $bdb_header usability... $ECHO_C" >&6
27458
cat >conftest.$ac_ext <<_ACEOF
27461
cat confdefs.h >>conftest.$ac_ext
27462
cat >>conftest.$ac_ext <<_ACEOF
27463
/* end confdefs.h. */
27464
$ac_includes_default
27465
#include <$bdb_header>
27467
rm -f conftest.$ac_objext
27468
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27469
(eval $ac_compile) 2>conftest.er1
27471
grep -v '^ *+' conftest.er1 >conftest.err
27473
cat conftest.err >&5
27474
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27475
(exit $ac_status); } &&
27476
{ ac_try='test -z "$ac_c_werror_flag"
27477
|| test ! -s conftest.err'
27478
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27479
(eval $ac_try) 2>&5
27481
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27482
(exit $ac_status); }; } &&
27483
{ ac_try='test -s conftest.$ac_objext'
27484
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27485
(eval $ac_try) 2>&5
27487
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27488
(exit $ac_status); }; }; then
27489
ac_header_compiler=yes
27491
echo "$as_me: failed program was:" >&5
27492
sed 's/^/| /' conftest.$ac_ext >&5
27494
ac_header_compiler=no
27496
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27497
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27498
echo "${ECHO_T}$ac_header_compiler" >&6
27500
# Is the header present?
27501
echo "$as_me:$LINENO: checking $bdb_header presence" >&5
27502
echo $ECHO_N "checking $bdb_header presence... $ECHO_C" >&6
27503
cat >conftest.$ac_ext <<_ACEOF
27506
cat confdefs.h >>conftest.$ac_ext
27507
cat >>conftest.$ac_ext <<_ACEOF
27508
/* end confdefs.h. */
27509
#include <$bdb_header>
27511
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27512
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27514
grep -v '^ *+' conftest.er1 >conftest.err
27516
cat conftest.err >&5
27517
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27518
(exit $ac_status); } >/dev/null; then
27519
if test -s conftest.err; then
27520
ac_cpp_err=$ac_c_preproc_warn_flag
27521
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27528
if test -z "$ac_cpp_err"; then
27529
ac_header_preproc=yes
27531
echo "$as_me: failed program was:" >&5
27532
sed 's/^/| /' conftest.$ac_ext >&5
27534
ac_header_preproc=no
27536
rm -f conftest.err conftest.$ac_ext
27537
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27538
echo "${ECHO_T}$ac_header_preproc" >&6
27540
# So? What about this header?
27541
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27543
{ echo "$as_me:$LINENO: WARNING: $bdb_header: accepted by the compiler, rejected by the preprocessor!" >&5
27544
echo "$as_me: WARNING: $bdb_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27545
{ echo "$as_me:$LINENO: WARNING: $bdb_header: proceeding with the compiler's result" >&5
27546
echo "$as_me: WARNING: $bdb_header: proceeding with the compiler's result" >&2;}
27547
ac_header_preproc=yes
27550
{ echo "$as_me:$LINENO: WARNING: $bdb_header: present but cannot be compiled" >&5
27551
echo "$as_me: WARNING: $bdb_header: present but cannot be compiled" >&2;}
27552
{ echo "$as_me:$LINENO: WARNING: $bdb_header: check for missing prerequisite headers?" >&5
27553
echo "$as_me: WARNING: $bdb_header: check for missing prerequisite headers?" >&2;}
27554
{ echo "$as_me:$LINENO: WARNING: $bdb_header: see the Autoconf documentation" >&5
27555
echo "$as_me: WARNING: $bdb_header: see the Autoconf documentation" >&2;}
27556
{ echo "$as_me:$LINENO: WARNING: $bdb_header: section \"Present But Cannot Be Compiled\"" >&5
27557
echo "$as_me: WARNING: $bdb_header: section \"Present But Cannot Be Compiled\"" >&2;}
27558
{ echo "$as_me:$LINENO: WARNING: $bdb_header: proceeding with the preprocessor's result" >&5
27559
echo "$as_me: WARNING: $bdb_header: proceeding with the preprocessor's result" >&2;}
27560
{ echo "$as_me:$LINENO: WARNING: $bdb_header: in the future, the compiler will take precedence" >&5
27561
echo "$as_me: WARNING: $bdb_header: in the future, the compiler will take precedence" >&2;}
27564
## ------------------------------------------ ##
27565
## Report this to the AC_PACKAGE_NAME lists. ##
27566
## ------------------------------------------ ##
27569
sed "s/^/$as_me: WARNING: /" >&2
27572
echo "$as_me:$LINENO: checking for $bdb_header" >&5
27573
echo $ECHO_N "checking for $bdb_header... $ECHO_C" >&6
27574
if eval "test \"\${$as_ac_Header+set}\" = set"; then
27575
echo $ECHO_N "(cached) $ECHO_C" >&6
27577
eval "$as_ac_Header=\$ac_header_preproc"
27579
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27580
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27583
if test `eval echo '${'$as_ac_Header'}'` = yes; then
27585
if test ""4"" = "3" -o ""4"" = "4"; then
27586
# We generate a separate cache variable for each prefix and libname
27587
# we search under. That way, we avoid caching information that
27588
# changes if the user runs `configure' with a different set of
27591
cache_id="`echo apu_cv_check_berkeley_db_"4"_"1"_"-1"_${bdb_header}_${bdb_libname}_in_${bdb_place} \
27592
| sed -e 's/[^a-zA-Z0-9_]/_/g'`"
27595
echo "$as_me:$LINENO: checking for -l$bdb_libname" >&5
27596
echo $ECHO_N "checking for -l$bdb_libname... $ECHO_C" >&6
27597
if eval "test \"\${$cache_id+set}\" = set"; then
27598
echo $ECHO_N "(cached) $ECHO_C" >&6
27602
apu_try_berkeley_db_save_libs="$LIBS"
27604
apu_check_berkeley_db_major="4"
27605
apu_check_berkeley_db_minor="1"
27606
apu_check_berkeley_db_patch="-1"
27607
apu_try_berkeley_db_header=$bdb_header
27608
apu_try_berkeley_db_libname=$bdb_libname
27610
LIBS="$LIBS -l$apu_try_berkeley_db_libname"
27611
if test "$cross_compiling" = yes; then
27612
apu_try_berkeley_db=yes
27615
cat >conftest.$ac_ext <<_ACEOF
27618
cat confdefs.h >>conftest.$ac_ext
27619
cat >>conftest.$ac_ext <<_ACEOF
27620
/* end confdefs.h. */
27623
#include <$apu_try_berkeley_db_header>
27626
int major, minor, patch;
27628
db_version(&major, &minor, &patch);
27630
/* Sanity check: ensure that db.h constants actually match the db library */
27631
if (major != DB_VERSION_MAJOR
27632
|| minor != DB_VERSION_MINOR
27633
|| patch != DB_VERSION_PATCH)
27636
/* Run-time check: ensure the library claims to be the correct version. */
27638
if ($apu_check_berkeley_db_major != -1) {
27639
if (major < $apu_check_berkeley_db_major)
27641
if (major > $apu_check_berkeley_db_major)
27645
if ($apu_check_berkeley_db_minor != -1) {
27646
if (minor < $apu_check_berkeley_db_minor)
27648
if (minor > $apu_check_berkeley_db_minor)
27652
if ($apu_check_berkeley_db_patch == -1
27653
|| patch >= $apu_check_berkeley_db_patch)
27660
rm -f conftest$ac_exeext
27661
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27662
(eval $ac_link) 2>&5
27664
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27665
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27666
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27667
(eval $ac_try) 2>&5
27669
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27670
(exit $ac_status); }; }; then
27671
apu_try_berkeley_db=yes
27673
echo "$as_me: program exited with status $ac_status" >&5
27674
echo "$as_me: failed program was:" >&5
27675
sed 's/^/| /' conftest.$ac_ext >&5
27677
( exit $ac_status )
27678
apu_try_berkeley_db=no
27680
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27683
LIBS="$apu_try_berkeley_db_save_libs"
27686
eval "$cache_id=$apu_try_berkeley_db"
27690
result="`eval echo '$'$cache_id`"
27691
echo "$as_me:$LINENO: result: $result" >&5
27692
echo "${ECHO_T}$result" >&6
27693
elif test ""4"" = "1"; then
27694
as_ac_Lib=`echo "ac_cv_lib_$bdb_libname''_dbopen" | $as_tr_sh`
27695
echo "$as_me:$LINENO: checking for dbopen in -l$bdb_libname" >&5
27696
echo $ECHO_N "checking for dbopen in -l$bdb_libname... $ECHO_C" >&6
27697
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
27698
echo $ECHO_N "(cached) $ECHO_C" >&6
27700
ac_check_lib_save_LIBS=$LIBS
27701
LIBS="-l$bdb_libname $LIBS"
27702
cat >conftest.$ac_ext <<_ACEOF
27705
cat confdefs.h >>conftest.$ac_ext
27706
cat >>conftest.$ac_ext <<_ACEOF
27707
/* end confdefs.h. */
27709
/* Override any gcc2 internal prototype to avoid an error. */
27713
/* We use char because int might match the return type of a gcc2
27714
builtin and then its argument prototype would still apply. */
27724
rm -f conftest.$ac_objext conftest$ac_exeext
27725
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27726
(eval $ac_link) 2>conftest.er1
27728
grep -v '^ *+' conftest.er1 >conftest.err
27730
cat conftest.err >&5
27731
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27732
(exit $ac_status); } &&
27733
{ ac_try='test -z "$ac_c_werror_flag"
27734
|| test ! -s conftest.err'
27735
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27736
(eval $ac_try) 2>&5
27738
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27739
(exit $ac_status); }; } &&
27740
{ ac_try='test -s conftest$ac_exeext'
27741
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27742
(eval $ac_try) 2>&5
27744
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27745
(exit $ac_status); }; }; then
27746
eval "$as_ac_Lib=yes"
27748
echo "$as_me: failed program was:" >&5
27749
sed 's/^/| /' conftest.$ac_ext >&5
27751
eval "$as_ac_Lib=no"
27753
rm -f conftest.err conftest.$ac_objext \
27754
conftest$ac_exeext conftest.$ac_ext
27755
LIBS=$ac_check_lib_save_LIBS
27757
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
27758
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
27759
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
27766
elif test ""4"" = "2"; then
27767
as_ac_Lib=`echo "ac_cv_lib_$bdb_libname''_db_open" | $as_tr_sh`
27768
echo "$as_me:$LINENO: checking for db_open in -l$bdb_libname" >&5
27769
echo $ECHO_N "checking for db_open in -l$bdb_libname... $ECHO_C" >&6
27770
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
27771
echo $ECHO_N "(cached) $ECHO_C" >&6
27773
ac_check_lib_save_LIBS=$LIBS
27774
LIBS="-l$bdb_libname $LIBS"
27775
cat >conftest.$ac_ext <<_ACEOF
27778
cat confdefs.h >>conftest.$ac_ext
27779
cat >>conftest.$ac_ext <<_ACEOF
27780
/* end confdefs.h. */
27782
/* Override any gcc2 internal prototype to avoid an error. */
27786
/* We use char because int might match the return type of a gcc2
27787
builtin and then its argument prototype would still apply. */
27797
rm -f conftest.$ac_objext conftest$ac_exeext
27798
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27799
(eval $ac_link) 2>conftest.er1
27801
grep -v '^ *+' conftest.er1 >conftest.err
27803
cat conftest.err >&5
27804
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27805
(exit $ac_status); } &&
27806
{ ac_try='test -z "$ac_c_werror_flag"
27807
|| test ! -s conftest.err'
27808
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27809
(eval $ac_try) 2>&5
27811
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27812
(exit $ac_status); }; } &&
27813
{ ac_try='test -s conftest$ac_exeext'
27814
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27815
(eval $ac_try) 2>&5
27817
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27818
(exit $ac_status); }; }; then
27819
eval "$as_ac_Lib=yes"
27821
echo "$as_me: failed program was:" >&5
27822
sed 's/^/| /' conftest.$ac_ext >&5
27824
eval "$as_ac_Lib=no"
27826
rm -f conftest.err conftest.$ac_objext \
27827
conftest$ac_exeext conftest.$ac_ext
27828
LIBS=$ac_check_lib_save_LIBS
27830
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
27831
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
27832
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
27847
# If we found it, no need to search any more.
27848
if test "$result" = "yes"; then
27853
test "$found" != "not" && break
27855
test "$found" != "not" && break
27858
# Restore the original values of the flags we tweak.
27859
LDFLAGS="$apu_check_lib_save_ldflags"
27860
CPPFLAGS="$apu_check_lib_save_cppflags"
27867
apu_db_header=$bdb_header
27868
apu_db_lib=$bdb_libname
27872
header="`echo $found | sed -e 's/:.*$//'`"
27873
lib="`echo $found | sed -e 's/^.*://'`"
27876
if test "x$APRUTIL_INCLUDES" = "x"; then
27877
test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$header\""
27878
APRUTIL_INCLUDES="-I$header"
27880
apr_addto_bugger="-I$header"
27881
for i in $apr_addto_bugger; do
27882
apr_addto_duplicate="0"
27883
for j in $APRUTIL_INCLUDES; do
27884
if test "x$i" = "x$j"; then
27885
apr_addto_duplicate="1"
27889
if test $apr_addto_duplicate = "0"; then
27890
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES"
27891
APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
27897
if test "x$APRUTIL_LDFLAGS" = "x"; then
27898
test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$lib\""
27899
APRUTIL_LDFLAGS="-L$lib"
27901
apr_addto_bugger="-L$lib"
27902
for i in $apr_addto_bugger; do
27903
apr_addto_duplicate="0"
27904
for j in $APRUTIL_LDFLAGS; do
27905
if test "x$i" = "x$j"; then
27906
apr_addto_duplicate="1"
27910
if test $apr_addto_duplicate = "0"; then
27911
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS"
27912
APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
27917
apu_db_header=$bdb_header
27918
apu_db_lib=$bdb_libname
27923
if test "x$APRUTIL_INCLUDES" = "x"; then
27924
test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$found/include\""
27925
APRUTIL_INCLUDES="-I$found/include"
27927
apr_addto_bugger="-I$found/include"
27928
for i in $apr_addto_bugger; do
27929
apr_addto_duplicate="0"
27930
for j in $APRUTIL_INCLUDES; do
27931
if test "x$i" = "x$j"; then
27932
apr_addto_duplicate="1"
27936
if test $apr_addto_duplicate = "0"; then
27937
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES"
27938
APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
27944
if test "x$APRUTIL_LDFLAGS" = "x"; then
27945
test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$found/lib\""
27946
APRUTIL_LDFLAGS="-L$found/lib"
27948
apr_addto_bugger="-L$found/lib"
27949
for i in $apr_addto_bugger; do
27950
apr_addto_duplicate="0"
27951
for j in $APRUTIL_LDFLAGS; do
27952
if test "x$i" = "x$j"; then
27953
apr_addto_duplicate="1"
27957
if test $apr_addto_duplicate = "0"; then
27958
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS"
27959
APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
27964
apu_db_header=$bdb_header
27965
apu_db_lib=$bdb_libname
27970
if test "$apu_have_db" = "1"; then
27974
if test "$apu_db_version" != "4"; then
27976
places="$all_places"
27977
if test -z "$places"; then
27978
places="std /usr/local /usr/local/BerkeleyDB.4.0 /boot/home/config"
27982
if test ""0"" != "-1"; then
27983
bdb_version="$bdb_version."0""
27984
if test ""-1"" != "-1"; then
27985
bdb_version="$bdb_version."-1""
27988
bdb_places="$places"
27989
bdb_default_search_headers="db4/db.h db.h"
27990
bdb_default_search_lib_names="db-4.0 db4 db"
27995
# Save the original values of the flags we tweak.
27996
apu_check_lib_save_libs="$LIBS"
27997
apu_check_lib_save_ldflags="$LDFLAGS"
27998
apu_check_lib_save_cppflags="$CPPFLAGS"
28000
# The variable `found' is the prefix under which we've found
28001
# Berkeley DB, or `not' if we haven't found it anywhere yet.
28003
for bdb_place in $bdb_places; do
28005
LDFLAGS="$apu_check_lib_save_ldflags"
28006
CPPFLAGS="$apu_check_lib_save_cppflags"
28007
case "$bdb_place" in
28009
description="the standard places"
28012
header="`echo $bdb_place | sed -e 's/:.*$//'`"
28013
lib="`echo $bdb_place | sed -e 's/^.*://'`"
28014
CPPFLAGS="$CPPFLAGS -I$header"
28015
LDFLAGS="$LDFLAGS -L$lib"
28016
description="$header and $lib"
28019
if test -d $bdb_place; then
28020
LDFLAGS="$LDFLAGS -L$bdb_place/lib"
28021
CPPFLAGS="$CPPFLAGS -I$bdb_place/include"
28023
echo "$as_me:$LINENO: checking for Berkeley DB $bdb_version in $bdb_place" >&5
28024
echo $ECHO_N "checking for Berkeley DB $bdb_version in $bdb_place... $ECHO_C" >&6
28025
echo "$as_me:$LINENO: result: directory not found" >&5
28026
echo "${ECHO_T}directory not found" >&6
28029
description="$bdb_place"
28033
# Since there is no AC_MSG_NOTICE in autoconf 2.13, we use this
28034
# trick to display a message instead.
28035
echo "$as_me:$LINENO: checking for Berkeley DB $bdb_version in $description" >&5
28036
echo $ECHO_N "checking for Berkeley DB $bdb_version in $description... $ECHO_C" >&6
28037
echo "$as_me:$LINENO: result: " >&5
28038
echo "${ECHO_T}" >&6
28040
for bdb_libname in $bdb_default_search_lib_names; do
28041
for bdb_header in $bdb_default_search_headers; do
28042
# Clear the header cache variable for each location
28044
cache_id="`echo ac_cv_header_${bdb_header} \
28045
| sed -e 's/[^a-zA-Z0-9_]/_/g'`"
28048
as_ac_Header=`echo "ac_cv_header_$bdb_header" | $as_tr_sh`
28049
if eval "test \"\${$as_ac_Header+set}\" = set"; then
28050
echo "$as_me:$LINENO: checking for $bdb_header" >&5
28051
echo $ECHO_N "checking for $bdb_header... $ECHO_C" >&6
28052
if eval "test \"\${$as_ac_Header+set}\" = set"; then
28053
echo $ECHO_N "(cached) $ECHO_C" >&6
28055
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28056
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28058
# Is the header compilable?
28059
echo "$as_me:$LINENO: checking $bdb_header usability" >&5
28060
echo $ECHO_N "checking $bdb_header usability... $ECHO_C" >&6
28061
cat >conftest.$ac_ext <<_ACEOF
28064
cat confdefs.h >>conftest.$ac_ext
28065
cat >>conftest.$ac_ext <<_ACEOF
28066
/* end confdefs.h. */
28067
$ac_includes_default
28068
#include <$bdb_header>
28070
rm -f conftest.$ac_objext
28071
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28072
(eval $ac_compile) 2>conftest.er1
28074
grep -v '^ *+' conftest.er1 >conftest.err
28076
cat conftest.err >&5
28077
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28078
(exit $ac_status); } &&
28079
{ ac_try='test -z "$ac_c_werror_flag"
28080
|| test ! -s conftest.err'
28081
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28082
(eval $ac_try) 2>&5
28084
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28085
(exit $ac_status); }; } &&
28086
{ ac_try='test -s conftest.$ac_objext'
28087
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28088
(eval $ac_try) 2>&5
28090
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28091
(exit $ac_status); }; }; then
28092
ac_header_compiler=yes
28094
echo "$as_me: failed program was:" >&5
28095
sed 's/^/| /' conftest.$ac_ext >&5
28097
ac_header_compiler=no
28099
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28100
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28101
echo "${ECHO_T}$ac_header_compiler" >&6
28103
# Is the header present?
28104
echo "$as_me:$LINENO: checking $bdb_header presence" >&5
28105
echo $ECHO_N "checking $bdb_header presence... $ECHO_C" >&6
28106
cat >conftest.$ac_ext <<_ACEOF
28109
cat confdefs.h >>conftest.$ac_ext
28110
cat >>conftest.$ac_ext <<_ACEOF
28111
/* end confdefs.h. */
28112
#include <$bdb_header>
28114
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28115
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28117
grep -v '^ *+' conftest.er1 >conftest.err
28119
cat conftest.err >&5
28120
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28121
(exit $ac_status); } >/dev/null; then
28122
if test -s conftest.err; then
28123
ac_cpp_err=$ac_c_preproc_warn_flag
28124
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28131
if test -z "$ac_cpp_err"; then
28132
ac_header_preproc=yes
28134
echo "$as_me: failed program was:" >&5
28135
sed 's/^/| /' conftest.$ac_ext >&5
28137
ac_header_preproc=no
28139
rm -f conftest.err conftest.$ac_ext
28140
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28141
echo "${ECHO_T}$ac_header_preproc" >&6
28143
# So? What about this header?
28144
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28146
{ echo "$as_me:$LINENO: WARNING: $bdb_header: accepted by the compiler, rejected by the preprocessor!" >&5
28147
echo "$as_me: WARNING: $bdb_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28148
{ echo "$as_me:$LINENO: WARNING: $bdb_header: proceeding with the compiler's result" >&5
28149
echo "$as_me: WARNING: $bdb_header: proceeding with the compiler's result" >&2;}
28150
ac_header_preproc=yes
28153
{ echo "$as_me:$LINENO: WARNING: $bdb_header: present but cannot be compiled" >&5
28154
echo "$as_me: WARNING: $bdb_header: present but cannot be compiled" >&2;}
28155
{ echo "$as_me:$LINENO: WARNING: $bdb_header: check for missing prerequisite headers?" >&5
28156
echo "$as_me: WARNING: $bdb_header: check for missing prerequisite headers?" >&2;}
28157
{ echo "$as_me:$LINENO: WARNING: $bdb_header: see the Autoconf documentation" >&5
28158
echo "$as_me: WARNING: $bdb_header: see the Autoconf documentation" >&2;}
28159
{ echo "$as_me:$LINENO: WARNING: $bdb_header: section \"Present But Cannot Be Compiled\"" >&5
28160
echo "$as_me: WARNING: $bdb_header: section \"Present But Cannot Be Compiled\"" >&2;}
28161
{ echo "$as_me:$LINENO: WARNING: $bdb_header: proceeding with the preprocessor's result" >&5
28162
echo "$as_me: WARNING: $bdb_header: proceeding with the preprocessor's result" >&2;}
28163
{ echo "$as_me:$LINENO: WARNING: $bdb_header: in the future, the compiler will take precedence" >&5
28164
echo "$as_me: WARNING: $bdb_header: in the future, the compiler will take precedence" >&2;}
28167
## ------------------------------------------ ##
28168
## Report this to the AC_PACKAGE_NAME lists. ##
28169
## ------------------------------------------ ##
28172
sed "s/^/$as_me: WARNING: /" >&2
28175
echo "$as_me:$LINENO: checking for $bdb_header" >&5
28176
echo $ECHO_N "checking for $bdb_header... $ECHO_C" >&6
28177
if eval "test \"\${$as_ac_Header+set}\" = set"; then
28178
echo $ECHO_N "(cached) $ECHO_C" >&6
28180
eval "$as_ac_Header=\$ac_header_preproc"
28182
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28183
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28186
if test `eval echo '${'$as_ac_Header'}'` = yes; then
28188
if test ""4"" = "3" -o ""4"" = "4"; then
28189
# We generate a separate cache variable for each prefix and libname
28190
# we search under. That way, we avoid caching information that
28191
# changes if the user runs `configure' with a different set of
28194
cache_id="`echo apu_cv_check_berkeley_db_"4"_"0"_"-1"_${bdb_header}_${bdb_libname}_in_${bdb_place} \
28195
| sed -e 's/[^a-zA-Z0-9_]/_/g'`"
28198
echo "$as_me:$LINENO: checking for -l$bdb_libname" >&5
28199
echo $ECHO_N "checking for -l$bdb_libname... $ECHO_C" >&6
28200
if eval "test \"\${$cache_id+set}\" = set"; then
28201
echo $ECHO_N "(cached) $ECHO_C" >&6
28205
apu_try_berkeley_db_save_libs="$LIBS"
28207
apu_check_berkeley_db_major="4"
28208
apu_check_berkeley_db_minor="0"
28209
apu_check_berkeley_db_patch="-1"
28210
apu_try_berkeley_db_header=$bdb_header
28211
apu_try_berkeley_db_libname=$bdb_libname
28213
LIBS="$LIBS -l$apu_try_berkeley_db_libname"
28214
if test "$cross_compiling" = yes; then
28215
apu_try_berkeley_db=yes
28218
cat >conftest.$ac_ext <<_ACEOF
28221
cat confdefs.h >>conftest.$ac_ext
28222
cat >>conftest.$ac_ext <<_ACEOF
28223
/* end confdefs.h. */
28226
#include <$apu_try_berkeley_db_header>
28229
int major, minor, patch;
28231
db_version(&major, &minor, &patch);
28233
/* Sanity check: ensure that db.h constants actually match the db library */
28234
if (major != DB_VERSION_MAJOR
28235
|| minor != DB_VERSION_MINOR
28236
|| patch != DB_VERSION_PATCH)
28239
/* Run-time check: ensure the library claims to be the correct version. */
28241
if ($apu_check_berkeley_db_major != -1) {
28242
if (major < $apu_check_berkeley_db_major)
28244
if (major > $apu_check_berkeley_db_major)
28248
if ($apu_check_berkeley_db_minor != -1) {
28249
if (minor < $apu_check_berkeley_db_minor)
28251
if (minor > $apu_check_berkeley_db_minor)
28255
if ($apu_check_berkeley_db_patch == -1
28256
|| patch >= $apu_check_berkeley_db_patch)
28263
rm -f conftest$ac_exeext
28264
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28265
(eval $ac_link) 2>&5
28267
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28268
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28269
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28270
(eval $ac_try) 2>&5
28272
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28273
(exit $ac_status); }; }; then
28274
apu_try_berkeley_db=yes
28276
echo "$as_me: program exited with status $ac_status" >&5
28277
echo "$as_me: failed program was:" >&5
28278
sed 's/^/| /' conftest.$ac_ext >&5
28280
( exit $ac_status )
28281
apu_try_berkeley_db=no
28283
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28286
LIBS="$apu_try_berkeley_db_save_libs"
28289
eval "$cache_id=$apu_try_berkeley_db"
28293
result="`eval echo '$'$cache_id`"
28294
echo "$as_me:$LINENO: result: $result" >&5
28295
echo "${ECHO_T}$result" >&6
28296
elif test ""4"" = "1"; then
28297
as_ac_Lib=`echo "ac_cv_lib_$bdb_libname''_dbopen" | $as_tr_sh`
28298
echo "$as_me:$LINENO: checking for dbopen in -l$bdb_libname" >&5
28299
echo $ECHO_N "checking for dbopen in -l$bdb_libname... $ECHO_C" >&6
28300
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
28301
echo $ECHO_N "(cached) $ECHO_C" >&6
28303
ac_check_lib_save_LIBS=$LIBS
28304
LIBS="-l$bdb_libname $LIBS"
28305
cat >conftest.$ac_ext <<_ACEOF
28308
cat confdefs.h >>conftest.$ac_ext
28309
cat >>conftest.$ac_ext <<_ACEOF
28310
/* end confdefs.h. */
28312
/* Override any gcc2 internal prototype to avoid an error. */
28316
/* We use char because int might match the return type of a gcc2
28317
builtin and then its argument prototype would still apply. */
28327
rm -f conftest.$ac_objext conftest$ac_exeext
28328
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28329
(eval $ac_link) 2>conftest.er1
28331
grep -v '^ *+' conftest.er1 >conftest.err
28333
cat conftest.err >&5
28334
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28335
(exit $ac_status); } &&
28336
{ ac_try='test -z "$ac_c_werror_flag"
28337
|| test ! -s conftest.err'
28338
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28339
(eval $ac_try) 2>&5
28341
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28342
(exit $ac_status); }; } &&
28343
{ ac_try='test -s conftest$ac_exeext'
28344
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28345
(eval $ac_try) 2>&5
28347
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28348
(exit $ac_status); }; }; then
28349
eval "$as_ac_Lib=yes"
28351
echo "$as_me: failed program was:" >&5
28352
sed 's/^/| /' conftest.$ac_ext >&5
28354
eval "$as_ac_Lib=no"
28356
rm -f conftest.err conftest.$ac_objext \
28357
conftest$ac_exeext conftest.$ac_ext
28358
LIBS=$ac_check_lib_save_LIBS
28360
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
28361
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
28362
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
28369
elif test ""4"" = "2"; then
28370
as_ac_Lib=`echo "ac_cv_lib_$bdb_libname''_db_open" | $as_tr_sh`
28371
echo "$as_me:$LINENO: checking for db_open in -l$bdb_libname" >&5
28372
echo $ECHO_N "checking for db_open in -l$bdb_libname... $ECHO_C" >&6
28373
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
28374
echo $ECHO_N "(cached) $ECHO_C" >&6
28376
ac_check_lib_save_LIBS=$LIBS
28377
LIBS="-l$bdb_libname $LIBS"
28378
cat >conftest.$ac_ext <<_ACEOF
28381
cat confdefs.h >>conftest.$ac_ext
28382
cat >>conftest.$ac_ext <<_ACEOF
28383
/* end confdefs.h. */
28385
/* Override any gcc2 internal prototype to avoid an error. */
28389
/* We use char because int might match the return type of a gcc2
28390
builtin and then its argument prototype would still apply. */
28400
rm -f conftest.$ac_objext conftest$ac_exeext
28401
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28402
(eval $ac_link) 2>conftest.er1
28404
grep -v '^ *+' conftest.er1 >conftest.err
28406
cat conftest.err >&5
28407
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28408
(exit $ac_status); } &&
28409
{ ac_try='test -z "$ac_c_werror_flag"
28410
|| test ! -s conftest.err'
28411
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28412
(eval $ac_try) 2>&5
28414
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28415
(exit $ac_status); }; } &&
28416
{ ac_try='test -s conftest$ac_exeext'
28417
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28418
(eval $ac_try) 2>&5
28420
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28421
(exit $ac_status); }; }; then
28422
eval "$as_ac_Lib=yes"
28424
echo "$as_me: failed program was:" >&5
28425
sed 's/^/| /' conftest.$ac_ext >&5
28427
eval "$as_ac_Lib=no"
28429
rm -f conftest.err conftest.$ac_objext \
28430
conftest$ac_exeext conftest.$ac_ext
28431
LIBS=$ac_check_lib_save_LIBS
28433
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
28434
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
28435
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
28450
# If we found it, no need to search any more.
28451
if test "$result" = "yes"; then
28456
test "$found" != "not" && break
28458
test "$found" != "not" && break
28461
# Restore the original values of the flags we tweak.
28462
LDFLAGS="$apu_check_lib_save_ldflags"
28463
CPPFLAGS="$apu_check_lib_save_cppflags"
28470
apu_db_header=$bdb_header
28471
apu_db_lib=$bdb_libname
28475
header="`echo $found | sed -e 's/:.*$//'`"
28476
lib="`echo $found | sed -e 's/^.*://'`"
28479
if test "x$APRUTIL_INCLUDES" = "x"; then
28480
test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$header\""
28481
APRUTIL_INCLUDES="-I$header"
28483
apr_addto_bugger="-I$header"
28484
for i in $apr_addto_bugger; do
28485
apr_addto_duplicate="0"
28486
for j in $APRUTIL_INCLUDES; do
28487
if test "x$i" = "x$j"; then
28488
apr_addto_duplicate="1"
28492
if test $apr_addto_duplicate = "0"; then
28493
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES"
28494
APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
28500
if test "x$APRUTIL_LDFLAGS" = "x"; then
28501
test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$lib\""
28502
APRUTIL_LDFLAGS="-L$lib"
28504
apr_addto_bugger="-L$lib"
28505
for i in $apr_addto_bugger; do
28506
apr_addto_duplicate="0"
28507
for j in $APRUTIL_LDFLAGS; do
28508
if test "x$i" = "x$j"; then
28509
apr_addto_duplicate="1"
28513
if test $apr_addto_duplicate = "0"; then
28514
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS"
28515
APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
28520
apu_db_header=$bdb_header
28521
apu_db_lib=$bdb_libname
28526
if test "x$APRUTIL_INCLUDES" = "x"; then
28527
test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$found/include\""
28528
APRUTIL_INCLUDES="-I$found/include"
28530
apr_addto_bugger="-I$found/include"
28531
for i in $apr_addto_bugger; do
28532
apr_addto_duplicate="0"
28533
for j in $APRUTIL_INCLUDES; do
28534
if test "x$i" = "x$j"; then
28535
apr_addto_duplicate="1"
28539
if test $apr_addto_duplicate = "0"; then
28540
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES"
28541
APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
28547
if test "x$APRUTIL_LDFLAGS" = "x"; then
28548
test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$found/lib\""
28549
APRUTIL_LDFLAGS="-L$found/lib"
28551
apr_addto_bugger="-L$found/lib"
28552
for i in $apr_addto_bugger; do
28553
apr_addto_duplicate="0"
28554
for j in $APRUTIL_LDFLAGS; do
28555
if test "x$i" = "x$j"; then
28556
apr_addto_duplicate="1"
28560
if test $apr_addto_duplicate = "0"; then
28561
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS"
28562
APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
28567
apu_db_header=$bdb_header
28568
apu_db_lib=$bdb_libname
28573
if test "$apu_have_db" = "1"; then
28577
if test "$apu_db_version" != "4"; then
28579
places="$all_places"
28580
if test -z "$places"; then
28585
if test "-1" != "-1"; then
28586
bdb_version="$bdb_version.-1"
28587
if test "-1" != "-1"; then
28588
bdb_version="$bdb_version.-1"
28591
bdb_places="$places"
28592
bdb_default_search_headers="db3/db.h db.h"
28593
bdb_default_search_lib_names="db3 db"
28598
# Save the original values of the flags we tweak.
28599
apu_check_lib_save_libs="$LIBS"
28600
apu_check_lib_save_ldflags="$LDFLAGS"
28601
apu_check_lib_save_cppflags="$CPPFLAGS"
28603
# The variable `found' is the prefix under which we've found
28604
# Berkeley DB, or `not' if we haven't found it anywhere yet.
28606
for bdb_place in $bdb_places; do
28608
LDFLAGS="$apu_check_lib_save_ldflags"
28609
CPPFLAGS="$apu_check_lib_save_cppflags"
28610
case "$bdb_place" in
28612
description="the standard places"
28615
header="`echo $bdb_place | sed -e 's/:.*$//'`"
28616
lib="`echo $bdb_place | sed -e 's/^.*://'`"
28617
CPPFLAGS="$CPPFLAGS -I$header"
28618
LDFLAGS="$LDFLAGS -L$lib"
28619
description="$header and $lib"
28622
if test -d $bdb_place; then
28623
LDFLAGS="$LDFLAGS -L$bdb_place/lib"
28624
CPPFLAGS="$CPPFLAGS -I$bdb_place/include"
28626
echo "$as_me:$LINENO: checking for Berkeley DB $bdb_version in $bdb_place" >&5
28627
echo $ECHO_N "checking for Berkeley DB $bdb_version in $bdb_place... $ECHO_C" >&6
28628
echo "$as_me:$LINENO: result: directory not found" >&5
28629
echo "${ECHO_T}directory not found" >&6
28632
description="$bdb_place"
28636
# Since there is no AC_MSG_NOTICE in autoconf 2.13, we use this
28637
# trick to display a message instead.
28638
echo "$as_me:$LINENO: checking for Berkeley DB $bdb_version in $description" >&5
28639
echo $ECHO_N "checking for Berkeley DB $bdb_version in $description... $ECHO_C" >&6
28640
echo "$as_me:$LINENO: result: " >&5
28641
echo "${ECHO_T}" >&6
28643
for bdb_libname in $bdb_default_search_lib_names; do
28644
for bdb_header in $bdb_default_search_headers; do
28645
# Clear the header cache variable for each location
28647
cache_id="`echo ac_cv_header_${bdb_header} \
28648
| sed -e 's/[^a-zA-Z0-9_]/_/g'`"
28651
as_ac_Header=`echo "ac_cv_header_$bdb_header" | $as_tr_sh`
28652
if eval "test \"\${$as_ac_Header+set}\" = set"; then
28653
echo "$as_me:$LINENO: checking for $bdb_header" >&5
28654
echo $ECHO_N "checking for $bdb_header... $ECHO_C" >&6
28655
if eval "test \"\${$as_ac_Header+set}\" = set"; then
28656
echo $ECHO_N "(cached) $ECHO_C" >&6
28658
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28659
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28661
# Is the header compilable?
28662
echo "$as_me:$LINENO: checking $bdb_header usability" >&5
28663
echo $ECHO_N "checking $bdb_header usability... $ECHO_C" >&6
28664
cat >conftest.$ac_ext <<_ACEOF
28667
cat confdefs.h >>conftest.$ac_ext
28668
cat >>conftest.$ac_ext <<_ACEOF
28669
/* end confdefs.h. */
28670
$ac_includes_default
28671
#include <$bdb_header>
28673
rm -f conftest.$ac_objext
28674
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28675
(eval $ac_compile) 2>conftest.er1
28677
grep -v '^ *+' conftest.er1 >conftest.err
28679
cat conftest.err >&5
28680
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28681
(exit $ac_status); } &&
28682
{ ac_try='test -z "$ac_c_werror_flag"
28683
|| test ! -s conftest.err'
28684
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28685
(eval $ac_try) 2>&5
28687
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28688
(exit $ac_status); }; } &&
28689
{ ac_try='test -s conftest.$ac_objext'
28690
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28691
(eval $ac_try) 2>&5
28693
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28694
(exit $ac_status); }; }; then
28695
ac_header_compiler=yes
28697
echo "$as_me: failed program was:" >&5
28698
sed 's/^/| /' conftest.$ac_ext >&5
28700
ac_header_compiler=no
28702
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28703
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28704
echo "${ECHO_T}$ac_header_compiler" >&6
28706
# Is the header present?
28707
echo "$as_me:$LINENO: checking $bdb_header presence" >&5
28708
echo $ECHO_N "checking $bdb_header presence... $ECHO_C" >&6
28709
cat >conftest.$ac_ext <<_ACEOF
28712
cat confdefs.h >>conftest.$ac_ext
28713
cat >>conftest.$ac_ext <<_ACEOF
28714
/* end confdefs.h. */
28715
#include <$bdb_header>
28717
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28718
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28720
grep -v '^ *+' conftest.er1 >conftest.err
28722
cat conftest.err >&5
28723
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28724
(exit $ac_status); } >/dev/null; then
28725
if test -s conftest.err; then
28726
ac_cpp_err=$ac_c_preproc_warn_flag
28727
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28734
if test -z "$ac_cpp_err"; then
28735
ac_header_preproc=yes
28737
echo "$as_me: failed program was:" >&5
28738
sed 's/^/| /' conftest.$ac_ext >&5
28740
ac_header_preproc=no
28742
rm -f conftest.err conftest.$ac_ext
28743
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28744
echo "${ECHO_T}$ac_header_preproc" >&6
28746
# So? What about this header?
28747
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28749
{ echo "$as_me:$LINENO: WARNING: $bdb_header: accepted by the compiler, rejected by the preprocessor!" >&5
28750
echo "$as_me: WARNING: $bdb_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28751
{ echo "$as_me:$LINENO: WARNING: $bdb_header: proceeding with the compiler's result" >&5
28752
echo "$as_me: WARNING: $bdb_header: proceeding with the compiler's result" >&2;}
28753
ac_header_preproc=yes
28756
{ echo "$as_me:$LINENO: WARNING: $bdb_header: present but cannot be compiled" >&5
28757
echo "$as_me: WARNING: $bdb_header: present but cannot be compiled" >&2;}
28758
{ echo "$as_me:$LINENO: WARNING: $bdb_header: check for missing prerequisite headers?" >&5
28759
echo "$as_me: WARNING: $bdb_header: check for missing prerequisite headers?" >&2;}
28760
{ echo "$as_me:$LINENO: WARNING: $bdb_header: see the Autoconf documentation" >&5
28761
echo "$as_me: WARNING: $bdb_header: see the Autoconf documentation" >&2;}
28762
{ echo "$as_me:$LINENO: WARNING: $bdb_header: section \"Present But Cannot Be Compiled\"" >&5
28763
echo "$as_me: WARNING: $bdb_header: section \"Present But Cannot Be Compiled\"" >&2;}
28764
{ echo "$as_me:$LINENO: WARNING: $bdb_header: proceeding with the preprocessor's result" >&5
28765
echo "$as_me: WARNING: $bdb_header: proceeding with the preprocessor's result" >&2;}
28766
{ echo "$as_me:$LINENO: WARNING: $bdb_header: in the future, the compiler will take precedence" >&5
28767
echo "$as_me: WARNING: $bdb_header: in the future, the compiler will take precedence" >&2;}
28770
## ------------------------------------------ ##
28771
## Report this to the AC_PACKAGE_NAME lists. ##
28772
## ------------------------------------------ ##
28775
sed "s/^/$as_me: WARNING: /" >&2
28778
echo "$as_me:$LINENO: checking for $bdb_header" >&5
28779
echo $ECHO_N "checking for $bdb_header... $ECHO_C" >&6
28780
if eval "test \"\${$as_ac_Header+set}\" = set"; then
28781
echo $ECHO_N "(cached) $ECHO_C" >&6
28783
eval "$as_ac_Header=\$ac_header_preproc"
28785
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28786
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28789
if test `eval echo '${'$as_ac_Header'}'` = yes; then
28791
if test "3" = "3" -o "3" = "4"; then
28792
# We generate a separate cache variable for each prefix and libname
28793
# we search under. That way, we avoid caching information that
28794
# changes if the user runs `configure' with a different set of
28797
cache_id="`echo apu_cv_check_berkeley_db_3_-1_-1_${bdb_header}_${bdb_libname}_in_${bdb_place} \
28798
| sed -e 's/[^a-zA-Z0-9_]/_/g'`"
28801
echo "$as_me:$LINENO: checking for -l$bdb_libname" >&5
28802
echo $ECHO_N "checking for -l$bdb_libname... $ECHO_C" >&6
28803
if eval "test \"\${$cache_id+set}\" = set"; then
28804
echo $ECHO_N "(cached) $ECHO_C" >&6
28808
apu_try_berkeley_db_save_libs="$LIBS"
28810
apu_check_berkeley_db_major=3
28811
apu_check_berkeley_db_minor=-1
28812
apu_check_berkeley_db_patch=-1
28813
apu_try_berkeley_db_header=$bdb_header
28814
apu_try_berkeley_db_libname=$bdb_libname
28816
LIBS="$LIBS -l$apu_try_berkeley_db_libname"
28817
if test "$cross_compiling" = yes; then
28818
apu_try_berkeley_db=yes
28821
cat >conftest.$ac_ext <<_ACEOF
28824
cat confdefs.h >>conftest.$ac_ext
28825
cat >>conftest.$ac_ext <<_ACEOF
28826
/* end confdefs.h. */
28829
#include <$apu_try_berkeley_db_header>
28832
int major, minor, patch;
28834
db_version(&major, &minor, &patch);
28836
/* Sanity check: ensure that db.h constants actually match the db library */
28837
if (major != DB_VERSION_MAJOR
28838
|| minor != DB_VERSION_MINOR
28839
|| patch != DB_VERSION_PATCH)
28842
/* Run-time check: ensure the library claims to be the correct version. */
28844
if ($apu_check_berkeley_db_major != -1) {
28845
if (major < $apu_check_berkeley_db_major)
28847
if (major > $apu_check_berkeley_db_major)
28851
if ($apu_check_berkeley_db_minor != -1) {
28852
if (minor < $apu_check_berkeley_db_minor)
28854
if (minor > $apu_check_berkeley_db_minor)
28858
if ($apu_check_berkeley_db_patch == -1
28859
|| patch >= $apu_check_berkeley_db_patch)
28866
rm -f conftest$ac_exeext
28867
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28868
(eval $ac_link) 2>&5
28870
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28871
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28872
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28873
(eval $ac_try) 2>&5
28875
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28876
(exit $ac_status); }; }; then
28877
apu_try_berkeley_db=yes
28879
echo "$as_me: program exited with status $ac_status" >&5
28880
echo "$as_me: failed program was:" >&5
28881
sed 's/^/| /' conftest.$ac_ext >&5
28883
( exit $ac_status )
28884
apu_try_berkeley_db=no
28886
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28889
LIBS="$apu_try_berkeley_db_save_libs"
28892
eval "$cache_id=$apu_try_berkeley_db"
28896
result="`eval echo '$'$cache_id`"
28897
echo "$as_me:$LINENO: result: $result" >&5
28898
echo "${ECHO_T}$result" >&6
28899
elif test "3" = "1"; then
28900
as_ac_Lib=`echo "ac_cv_lib_$bdb_libname''_dbopen" | $as_tr_sh`
28901
echo "$as_me:$LINENO: checking for dbopen in -l$bdb_libname" >&5
28902
echo $ECHO_N "checking for dbopen in -l$bdb_libname... $ECHO_C" >&6
28903
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
28904
echo $ECHO_N "(cached) $ECHO_C" >&6
28906
ac_check_lib_save_LIBS=$LIBS
28907
LIBS="-l$bdb_libname $LIBS"
28908
cat >conftest.$ac_ext <<_ACEOF
28911
cat confdefs.h >>conftest.$ac_ext
28912
cat >>conftest.$ac_ext <<_ACEOF
28913
/* end confdefs.h. */
28915
/* Override any gcc2 internal prototype to avoid an error. */
28919
/* We use char because int might match the return type of a gcc2
28920
builtin and then its argument prototype would still apply. */
28930
rm -f conftest.$ac_objext conftest$ac_exeext
28931
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28932
(eval $ac_link) 2>conftest.er1
28934
grep -v '^ *+' conftest.er1 >conftest.err
28936
cat conftest.err >&5
28937
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28938
(exit $ac_status); } &&
28939
{ ac_try='test -z "$ac_c_werror_flag"
28940
|| test ! -s conftest.err'
28941
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28942
(eval $ac_try) 2>&5
28944
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28945
(exit $ac_status); }; } &&
28946
{ ac_try='test -s conftest$ac_exeext'
28947
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28948
(eval $ac_try) 2>&5
28950
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28951
(exit $ac_status); }; }; then
28952
eval "$as_ac_Lib=yes"
28954
echo "$as_me: failed program was:" >&5
28955
sed 's/^/| /' conftest.$ac_ext >&5
28957
eval "$as_ac_Lib=no"
28959
rm -f conftest.err conftest.$ac_objext \
28960
conftest$ac_exeext conftest.$ac_ext
28961
LIBS=$ac_check_lib_save_LIBS
28963
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
28964
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
28965
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
28972
elif test "3" = "2"; then
28973
as_ac_Lib=`echo "ac_cv_lib_$bdb_libname''_db_open" | $as_tr_sh`
28974
echo "$as_me:$LINENO: checking for db_open in -l$bdb_libname" >&5
28975
echo $ECHO_N "checking for db_open in -l$bdb_libname... $ECHO_C" >&6
28976
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
28977
echo $ECHO_N "(cached) $ECHO_C" >&6
28979
ac_check_lib_save_LIBS=$LIBS
28980
LIBS="-l$bdb_libname $LIBS"
28981
cat >conftest.$ac_ext <<_ACEOF
28984
cat confdefs.h >>conftest.$ac_ext
28985
cat >>conftest.$ac_ext <<_ACEOF
28986
/* end confdefs.h. */
28988
/* Override any gcc2 internal prototype to avoid an error. */
28992
/* We use char because int might match the return type of a gcc2
28993
builtin and then its argument prototype would still apply. */
29003
rm -f conftest.$ac_objext conftest$ac_exeext
29004
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29005
(eval $ac_link) 2>conftest.er1
29007
grep -v '^ *+' conftest.er1 >conftest.err
29009
cat conftest.err >&5
29010
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29011
(exit $ac_status); } &&
29012
{ ac_try='test -z "$ac_c_werror_flag"
29013
|| test ! -s conftest.err'
29014
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29015
(eval $ac_try) 2>&5
29017
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29018
(exit $ac_status); }; } &&
29019
{ ac_try='test -s conftest$ac_exeext'
29020
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29021
(eval $ac_try) 2>&5
29023
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29024
(exit $ac_status); }; }; then
29025
eval "$as_ac_Lib=yes"
29027
echo "$as_me: failed program was:" >&5
29028
sed 's/^/| /' conftest.$ac_ext >&5
29030
eval "$as_ac_Lib=no"
29032
rm -f conftest.err conftest.$ac_objext \
29033
conftest$ac_exeext conftest.$ac_ext
29034
LIBS=$ac_check_lib_save_LIBS
29036
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
29037
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
29038
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
29053
# If we found it, no need to search any more.
29054
if test "$result" = "yes"; then
29059
test "$found" != "not" && break
29061
test "$found" != "not" && break
29064
# Restore the original values of the flags we tweak.
29065
LDFLAGS="$apu_check_lib_save_ldflags"
29066
CPPFLAGS="$apu_check_lib_save_cppflags"
29073
apu_db_header=$bdb_header
29074
apu_db_lib=$bdb_libname
29078
header="`echo $found | sed -e 's/:.*$//'`"
29079
lib="`echo $found | sed -e 's/^.*://'`"
29082
if test "x$APRUTIL_INCLUDES" = "x"; then
29083
test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$header\""
29084
APRUTIL_INCLUDES="-I$header"
29086
apr_addto_bugger="-I$header"
29087
for i in $apr_addto_bugger; do
29088
apr_addto_duplicate="0"
29089
for j in $APRUTIL_INCLUDES; do
29090
if test "x$i" = "x$j"; then
29091
apr_addto_duplicate="1"
29095
if test $apr_addto_duplicate = "0"; then
29096
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES"
29097
APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
29103
if test "x$APRUTIL_LDFLAGS" = "x"; then
29104
test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$lib\""
29105
APRUTIL_LDFLAGS="-L$lib"
29107
apr_addto_bugger="-L$lib"
29108
for i in $apr_addto_bugger; do
29109
apr_addto_duplicate="0"
29110
for j in $APRUTIL_LDFLAGS; do
29111
if test "x$i" = "x$j"; then
29112
apr_addto_duplicate="1"
29116
if test $apr_addto_duplicate = "0"; then
29117
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS"
29118
APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
29123
apu_db_header=$bdb_header
29124
apu_db_lib=$bdb_libname
29129
if test "x$APRUTIL_INCLUDES" = "x"; then
29130
test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$found/include\""
29131
APRUTIL_INCLUDES="-I$found/include"
29133
apr_addto_bugger="-I$found/include"
29134
for i in $apr_addto_bugger; do
29135
apr_addto_duplicate="0"
29136
for j in $APRUTIL_INCLUDES; do
29137
if test "x$i" = "x$j"; then
29138
apr_addto_duplicate="1"
29142
if test $apr_addto_duplicate = "0"; then
29143
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES"
29144
APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
29150
if test "x$APRUTIL_LDFLAGS" = "x"; then
29151
test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$found/lib\""
29152
APRUTIL_LDFLAGS="-L$found/lib"
29154
apr_addto_bugger="-L$found/lib"
29155
for i in $apr_addto_bugger; do
29156
apr_addto_duplicate="0"
29157
for j in $APRUTIL_LDFLAGS; do
29158
if test "x$i" = "x$j"; then
29159
apr_addto_duplicate="1"
29163
if test $apr_addto_duplicate = "0"; then
29164
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS"
29165
APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
29170
apu_db_header=$bdb_header
29171
apu_db_lib=$bdb_libname
29176
if test "$apu_have_db" = "1"; then
29180
if test "$apu_db_version" != "3"; then
29182
places="$all_places"
29183
if test -z "$places"; then
29188
if test "-1" != "-1"; then
29189
bdb_version="$bdb_version.-1"
29190
if test "-1" != "-1"; then
29191
bdb_version="$bdb_version.-1"
29194
bdb_places="$places"
29195
bdb_default_search_headers="db2/db.h db.h"
29196
bdb_default_search_lib_names="db2 db"
29201
# Save the original values of the flags we tweak.
29202
apu_check_lib_save_libs="$LIBS"
29203
apu_check_lib_save_ldflags="$LDFLAGS"
29204
apu_check_lib_save_cppflags="$CPPFLAGS"
29206
# The variable `found' is the prefix under which we've found
29207
# Berkeley DB, or `not' if we haven't found it anywhere yet.
29209
for bdb_place in $bdb_places; do
29211
LDFLAGS="$apu_check_lib_save_ldflags"
29212
CPPFLAGS="$apu_check_lib_save_cppflags"
29213
case "$bdb_place" in
29215
description="the standard places"
29218
header="`echo $bdb_place | sed -e 's/:.*$//'`"
29219
lib="`echo $bdb_place | sed -e 's/^.*://'`"
29220
CPPFLAGS="$CPPFLAGS -I$header"
29221
LDFLAGS="$LDFLAGS -L$lib"
29222
description="$header and $lib"
29225
if test -d $bdb_place; then
29226
LDFLAGS="$LDFLAGS -L$bdb_place/lib"
29227
CPPFLAGS="$CPPFLAGS -I$bdb_place/include"
29229
echo "$as_me:$LINENO: checking for Berkeley DB $bdb_version in $bdb_place" >&5
29230
echo $ECHO_N "checking for Berkeley DB $bdb_version in $bdb_place... $ECHO_C" >&6
29231
echo "$as_me:$LINENO: result: directory not found" >&5
29232
echo "${ECHO_T}directory not found" >&6
29235
description="$bdb_place"
29239
# Since there is no AC_MSG_NOTICE in autoconf 2.13, we use this
29240
# trick to display a message instead.
29241
echo "$as_me:$LINENO: checking for Berkeley DB $bdb_version in $description" >&5
29242
echo $ECHO_N "checking for Berkeley DB $bdb_version in $description... $ECHO_C" >&6
29243
echo "$as_me:$LINENO: result: " >&5
29244
echo "${ECHO_T}" >&6
29246
for bdb_libname in $bdb_default_search_lib_names; do
29247
for bdb_header in $bdb_default_search_headers; do
29248
# Clear the header cache variable for each location
29250
cache_id="`echo ac_cv_header_${bdb_header} \
29251
| sed -e 's/[^a-zA-Z0-9_]/_/g'`"
29254
as_ac_Header=`echo "ac_cv_header_$bdb_header" | $as_tr_sh`
29255
if eval "test \"\${$as_ac_Header+set}\" = set"; then
29256
echo "$as_me:$LINENO: checking for $bdb_header" >&5
29257
echo $ECHO_N "checking for $bdb_header... $ECHO_C" >&6
29258
if eval "test \"\${$as_ac_Header+set}\" = set"; then
29259
echo $ECHO_N "(cached) $ECHO_C" >&6
29261
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29262
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29264
# Is the header compilable?
29265
echo "$as_me:$LINENO: checking $bdb_header usability" >&5
29266
echo $ECHO_N "checking $bdb_header usability... $ECHO_C" >&6
29267
cat >conftest.$ac_ext <<_ACEOF
29270
cat confdefs.h >>conftest.$ac_ext
29271
cat >>conftest.$ac_ext <<_ACEOF
29272
/* end confdefs.h. */
29273
$ac_includes_default
29274
#include <$bdb_header>
29276
rm -f conftest.$ac_objext
29277
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29278
(eval $ac_compile) 2>conftest.er1
29280
grep -v '^ *+' conftest.er1 >conftest.err
29282
cat conftest.err >&5
29283
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29284
(exit $ac_status); } &&
29285
{ ac_try='test -z "$ac_c_werror_flag"
29286
|| test ! -s conftest.err'
29287
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29288
(eval $ac_try) 2>&5
29290
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29291
(exit $ac_status); }; } &&
29292
{ ac_try='test -s conftest.$ac_objext'
29293
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29294
(eval $ac_try) 2>&5
29296
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29297
(exit $ac_status); }; }; then
29298
ac_header_compiler=yes
29300
echo "$as_me: failed program was:" >&5
29301
sed 's/^/| /' conftest.$ac_ext >&5
29303
ac_header_compiler=no
29305
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29306
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29307
echo "${ECHO_T}$ac_header_compiler" >&6
29309
# Is the header present?
29310
echo "$as_me:$LINENO: checking $bdb_header presence" >&5
29311
echo $ECHO_N "checking $bdb_header presence... $ECHO_C" >&6
29312
cat >conftest.$ac_ext <<_ACEOF
29315
cat confdefs.h >>conftest.$ac_ext
29316
cat >>conftest.$ac_ext <<_ACEOF
29317
/* end confdefs.h. */
29318
#include <$bdb_header>
29320
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29321
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29323
grep -v '^ *+' conftest.er1 >conftest.err
29325
cat conftest.err >&5
29326
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29327
(exit $ac_status); } >/dev/null; then
29328
if test -s conftest.err; then
29329
ac_cpp_err=$ac_c_preproc_warn_flag
29330
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29337
if test -z "$ac_cpp_err"; then
29338
ac_header_preproc=yes
29340
echo "$as_me: failed program was:" >&5
29341
sed 's/^/| /' conftest.$ac_ext >&5
29343
ac_header_preproc=no
29345
rm -f conftest.err conftest.$ac_ext
29346
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29347
echo "${ECHO_T}$ac_header_preproc" >&6
29349
# So? What about this header?
29350
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29352
{ echo "$as_me:$LINENO: WARNING: $bdb_header: accepted by the compiler, rejected by the preprocessor!" >&5
29353
echo "$as_me: WARNING: $bdb_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29354
{ echo "$as_me:$LINENO: WARNING: $bdb_header: proceeding with the compiler's result" >&5
29355
echo "$as_me: WARNING: $bdb_header: proceeding with the compiler's result" >&2;}
29356
ac_header_preproc=yes
29359
{ echo "$as_me:$LINENO: WARNING: $bdb_header: present but cannot be compiled" >&5
29360
echo "$as_me: WARNING: $bdb_header: present but cannot be compiled" >&2;}
29361
{ echo "$as_me:$LINENO: WARNING: $bdb_header: check for missing prerequisite headers?" >&5
29362
echo "$as_me: WARNING: $bdb_header: check for missing prerequisite headers?" >&2;}
29363
{ echo "$as_me:$LINENO: WARNING: $bdb_header: see the Autoconf documentation" >&5
29364
echo "$as_me: WARNING: $bdb_header: see the Autoconf documentation" >&2;}
29365
{ echo "$as_me:$LINENO: WARNING: $bdb_header: section \"Present But Cannot Be Compiled\"" >&5
29366
echo "$as_me: WARNING: $bdb_header: section \"Present But Cannot Be Compiled\"" >&2;}
29367
{ echo "$as_me:$LINENO: WARNING: $bdb_header: proceeding with the preprocessor's result" >&5
29368
echo "$as_me: WARNING: $bdb_header: proceeding with the preprocessor's result" >&2;}
29369
{ echo "$as_me:$LINENO: WARNING: $bdb_header: in the future, the compiler will take precedence" >&5
29370
echo "$as_me: WARNING: $bdb_header: in the future, the compiler will take precedence" >&2;}
29373
## ------------------------------------------ ##
29374
## Report this to the AC_PACKAGE_NAME lists. ##
29375
## ------------------------------------------ ##
29378
sed "s/^/$as_me: WARNING: /" >&2
29381
echo "$as_me:$LINENO: checking for $bdb_header" >&5
29382
echo $ECHO_N "checking for $bdb_header... $ECHO_C" >&6
29383
if eval "test \"\${$as_ac_Header+set}\" = set"; then
29384
echo $ECHO_N "(cached) $ECHO_C" >&6
29386
eval "$as_ac_Header=\$ac_header_preproc"
29388
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29389
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29392
if test `eval echo '${'$as_ac_Header'}'` = yes; then
29394
if test "2" = "3" -o "2" = "4"; then
29395
# We generate a separate cache variable for each prefix and libname
29396
# we search under. That way, we avoid caching information that
29397
# changes if the user runs `configure' with a different set of
29400
cache_id="`echo apu_cv_check_berkeley_db_2_-1_-1_${bdb_header}_${bdb_libname}_in_${bdb_place} \
29401
| sed -e 's/[^a-zA-Z0-9_]/_/g'`"
29404
echo "$as_me:$LINENO: checking for -l$bdb_libname" >&5
29405
echo $ECHO_N "checking for -l$bdb_libname... $ECHO_C" >&6
29406
if eval "test \"\${$cache_id+set}\" = set"; then
29407
echo $ECHO_N "(cached) $ECHO_C" >&6
29411
apu_try_berkeley_db_save_libs="$LIBS"
29413
apu_check_berkeley_db_major=2
29414
apu_check_berkeley_db_minor=-1
29415
apu_check_berkeley_db_patch=-1
29416
apu_try_berkeley_db_header=$bdb_header
29417
apu_try_berkeley_db_libname=$bdb_libname
29419
LIBS="$LIBS -l$apu_try_berkeley_db_libname"
29420
if test "$cross_compiling" = yes; then
29421
apu_try_berkeley_db=yes
29424
cat >conftest.$ac_ext <<_ACEOF
29427
cat confdefs.h >>conftest.$ac_ext
29428
cat >>conftest.$ac_ext <<_ACEOF
29429
/* end confdefs.h. */
29432
#include <$apu_try_berkeley_db_header>
29435
int major, minor, patch;
29437
db_version(&major, &minor, &patch);
29439
/* Sanity check: ensure that db.h constants actually match the db library */
29440
if (major != DB_VERSION_MAJOR
29441
|| minor != DB_VERSION_MINOR
29442
|| patch != DB_VERSION_PATCH)
29445
/* Run-time check: ensure the library claims to be the correct version. */
29447
if ($apu_check_berkeley_db_major != -1) {
29448
if (major < $apu_check_berkeley_db_major)
29450
if (major > $apu_check_berkeley_db_major)
29454
if ($apu_check_berkeley_db_minor != -1) {
29455
if (minor < $apu_check_berkeley_db_minor)
29457
if (minor > $apu_check_berkeley_db_minor)
29461
if ($apu_check_berkeley_db_patch == -1
29462
|| patch >= $apu_check_berkeley_db_patch)
29469
rm -f conftest$ac_exeext
29470
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29471
(eval $ac_link) 2>&5
29473
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29474
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29475
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29476
(eval $ac_try) 2>&5
29478
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29479
(exit $ac_status); }; }; then
29480
apu_try_berkeley_db=yes
29482
echo "$as_me: program exited with status $ac_status" >&5
29483
echo "$as_me: failed program was:" >&5
29484
sed 's/^/| /' conftest.$ac_ext >&5
29486
( exit $ac_status )
29487
apu_try_berkeley_db=no
29489
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29492
LIBS="$apu_try_berkeley_db_save_libs"
29495
eval "$cache_id=$apu_try_berkeley_db"
29499
result="`eval echo '$'$cache_id`"
29500
echo "$as_me:$LINENO: result: $result" >&5
29501
echo "${ECHO_T}$result" >&6
29502
elif test "2" = "1"; then
29503
as_ac_Lib=`echo "ac_cv_lib_$bdb_libname''_dbopen" | $as_tr_sh`
29504
echo "$as_me:$LINENO: checking for dbopen in -l$bdb_libname" >&5
29505
echo $ECHO_N "checking for dbopen in -l$bdb_libname... $ECHO_C" >&6
29506
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
29507
echo $ECHO_N "(cached) $ECHO_C" >&6
29509
ac_check_lib_save_LIBS=$LIBS
29510
LIBS="-l$bdb_libname $LIBS"
29511
cat >conftest.$ac_ext <<_ACEOF
29514
cat confdefs.h >>conftest.$ac_ext
29515
cat >>conftest.$ac_ext <<_ACEOF
29516
/* end confdefs.h. */
29518
/* Override any gcc2 internal prototype to avoid an error. */
29522
/* We use char because int might match the return type of a gcc2
29523
builtin and then its argument prototype would still apply. */
29533
rm -f conftest.$ac_objext conftest$ac_exeext
29534
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29535
(eval $ac_link) 2>conftest.er1
29537
grep -v '^ *+' conftest.er1 >conftest.err
29539
cat conftest.err >&5
29540
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29541
(exit $ac_status); } &&
29542
{ ac_try='test -z "$ac_c_werror_flag"
29543
|| test ! -s conftest.err'
29544
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29545
(eval $ac_try) 2>&5
29547
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29548
(exit $ac_status); }; } &&
29549
{ ac_try='test -s conftest$ac_exeext'
29550
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29551
(eval $ac_try) 2>&5
29553
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29554
(exit $ac_status); }; }; then
29555
eval "$as_ac_Lib=yes"
29557
echo "$as_me: failed program was:" >&5
29558
sed 's/^/| /' conftest.$ac_ext >&5
29560
eval "$as_ac_Lib=no"
29562
rm -f conftest.err conftest.$ac_objext \
29563
conftest$ac_exeext conftest.$ac_ext
29564
LIBS=$ac_check_lib_save_LIBS
29566
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
29567
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
29568
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
29575
elif test "2" = "2"; then
29576
as_ac_Lib=`echo "ac_cv_lib_$bdb_libname''_db_open" | $as_tr_sh`
29577
echo "$as_me:$LINENO: checking for db_open in -l$bdb_libname" >&5
29578
echo $ECHO_N "checking for db_open in -l$bdb_libname... $ECHO_C" >&6
29579
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
29580
echo $ECHO_N "(cached) $ECHO_C" >&6
29582
ac_check_lib_save_LIBS=$LIBS
29583
LIBS="-l$bdb_libname $LIBS"
29584
cat >conftest.$ac_ext <<_ACEOF
29587
cat confdefs.h >>conftest.$ac_ext
29588
cat >>conftest.$ac_ext <<_ACEOF
29589
/* end confdefs.h. */
29591
/* Override any gcc2 internal prototype to avoid an error. */
29595
/* We use char because int might match the return type of a gcc2
29596
builtin and then its argument prototype would still apply. */
29606
rm -f conftest.$ac_objext conftest$ac_exeext
29607
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29608
(eval $ac_link) 2>conftest.er1
29610
grep -v '^ *+' conftest.er1 >conftest.err
29612
cat conftest.err >&5
29613
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29614
(exit $ac_status); } &&
29615
{ ac_try='test -z "$ac_c_werror_flag"
29616
|| test ! -s conftest.err'
29617
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29618
(eval $ac_try) 2>&5
29620
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29621
(exit $ac_status); }; } &&
29622
{ ac_try='test -s conftest$ac_exeext'
29623
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29624
(eval $ac_try) 2>&5
29626
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29627
(exit $ac_status); }; }; then
29628
eval "$as_ac_Lib=yes"
29630
echo "$as_me: failed program was:" >&5
29631
sed 's/^/| /' conftest.$ac_ext >&5
29633
eval "$as_ac_Lib=no"
29635
rm -f conftest.err conftest.$ac_objext \
29636
conftest$ac_exeext conftest.$ac_ext
29637
LIBS=$ac_check_lib_save_LIBS
29639
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
29640
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
29641
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
29656
# If we found it, no need to search any more.
29657
if test "$result" = "yes"; then
29662
test "$found" != "not" && break
29664
test "$found" != "not" && break
29667
# Restore the original values of the flags we tweak.
29668
LDFLAGS="$apu_check_lib_save_ldflags"
29669
CPPFLAGS="$apu_check_lib_save_cppflags"
29676
apu_db_header=$bdb_header
29677
apu_db_lib=$bdb_libname
29681
header="`echo $found | sed -e 's/:.*$//'`"
29682
lib="`echo $found | sed -e 's/^.*://'`"
29685
if test "x$APRUTIL_INCLUDES" = "x"; then
29686
test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$header\""
29687
APRUTIL_INCLUDES="-I$header"
29689
apr_addto_bugger="-I$header"
29690
for i in $apr_addto_bugger; do
29691
apr_addto_duplicate="0"
29692
for j in $APRUTIL_INCLUDES; do
29693
if test "x$i" = "x$j"; then
29694
apr_addto_duplicate="1"
29698
if test $apr_addto_duplicate = "0"; then
29699
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES"
29700
APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
29706
if test "x$APRUTIL_LDFLAGS" = "x"; then
29707
test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$lib\""
29708
APRUTIL_LDFLAGS="-L$lib"
29710
apr_addto_bugger="-L$lib"
29711
for i in $apr_addto_bugger; do
29712
apr_addto_duplicate="0"
29713
for j in $APRUTIL_LDFLAGS; do
29714
if test "x$i" = "x$j"; then
29715
apr_addto_duplicate="1"
29719
if test $apr_addto_duplicate = "0"; then
29720
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS"
29721
APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
29726
apu_db_header=$bdb_header
29727
apu_db_lib=$bdb_libname
29732
if test "x$APRUTIL_INCLUDES" = "x"; then
29733
test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$found/include\""
29734
APRUTIL_INCLUDES="-I$found/include"
29736
apr_addto_bugger="-I$found/include"
29737
for i in $apr_addto_bugger; do
29738
apr_addto_duplicate="0"
29739
for j in $APRUTIL_INCLUDES; do
29740
if test "x$i" = "x$j"; then
29741
apr_addto_duplicate="1"
29745
if test $apr_addto_duplicate = "0"; then
29746
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES"
29747
APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
29753
if test "x$APRUTIL_LDFLAGS" = "x"; then
29754
test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$found/lib\""
29755
APRUTIL_LDFLAGS="-L$found/lib"
29757
apr_addto_bugger="-L$found/lib"
29758
for i in $apr_addto_bugger; do
29759
apr_addto_duplicate="0"
29760
for j in $APRUTIL_LDFLAGS; do
29761
if test "x$i" = "x$j"; then
29762
apr_addto_duplicate="1"
29766
if test $apr_addto_duplicate = "0"; then
29767
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS"
29768
APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
29773
apu_db_header=$bdb_header
29774
apu_db_lib=$bdb_libname
29779
if test "$apu_have_db" = "1"; then
29783
if test "$apu_db_version" != "2"; then
29785
places="$all_places"
29786
if test -z "$places"; then
29791
if test "0" != "-1"; then
29792
bdb_version="$bdb_version.0"
29793
if test "0" != "-1"; then
29794
bdb_version="$bdb_version.0"
29797
bdb_places="$places"
29798
bdb_default_search_headers="db1/db.h db.h"
29799
bdb_default_search_lib_names="db1"
29804
# Save the original values of the flags we tweak.
29805
apu_check_lib_save_libs="$LIBS"
29806
apu_check_lib_save_ldflags="$LDFLAGS"
29807
apu_check_lib_save_cppflags="$CPPFLAGS"
29809
# The variable `found' is the prefix under which we've found
29810
# Berkeley DB, or `not' if we haven't found it anywhere yet.
29812
for bdb_place in $bdb_places; do
29814
LDFLAGS="$apu_check_lib_save_ldflags"
29815
CPPFLAGS="$apu_check_lib_save_cppflags"
29816
case "$bdb_place" in
29818
description="the standard places"
29821
header="`echo $bdb_place | sed -e 's/:.*$//'`"
29822
lib="`echo $bdb_place | sed -e 's/^.*://'`"
29823
CPPFLAGS="$CPPFLAGS -I$header"
29824
LDFLAGS="$LDFLAGS -L$lib"
29825
description="$header and $lib"
29828
if test -d $bdb_place; then
29829
LDFLAGS="$LDFLAGS -L$bdb_place/lib"
29830
CPPFLAGS="$CPPFLAGS -I$bdb_place/include"
29832
echo "$as_me:$LINENO: checking for Berkeley DB $bdb_version in $bdb_place" >&5
29833
echo $ECHO_N "checking for Berkeley DB $bdb_version in $bdb_place... $ECHO_C" >&6
29834
echo "$as_me:$LINENO: result: directory not found" >&5
29835
echo "${ECHO_T}directory not found" >&6
29838
description="$bdb_place"
29842
# Since there is no AC_MSG_NOTICE in autoconf 2.13, we use this
29843
# trick to display a message instead.
29844
echo "$as_me:$LINENO: checking for Berkeley DB $bdb_version in $description" >&5
29845
echo $ECHO_N "checking for Berkeley DB $bdb_version in $description... $ECHO_C" >&6
29846
echo "$as_me:$LINENO: result: " >&5
29847
echo "${ECHO_T}" >&6
29849
for bdb_libname in $bdb_default_search_lib_names; do
29850
for bdb_header in $bdb_default_search_headers; do
29851
# Clear the header cache variable for each location
29853
cache_id="`echo ac_cv_header_${bdb_header} \
29854
| sed -e 's/[^a-zA-Z0-9_]/_/g'`"
29857
as_ac_Header=`echo "ac_cv_header_$bdb_header" | $as_tr_sh`
29858
if eval "test \"\${$as_ac_Header+set}\" = set"; then
29859
echo "$as_me:$LINENO: checking for $bdb_header" >&5
29860
echo $ECHO_N "checking for $bdb_header... $ECHO_C" >&6
29861
if eval "test \"\${$as_ac_Header+set}\" = set"; then
29862
echo $ECHO_N "(cached) $ECHO_C" >&6
29864
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29865
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29867
# Is the header compilable?
29868
echo "$as_me:$LINENO: checking $bdb_header usability" >&5
29869
echo $ECHO_N "checking $bdb_header usability... $ECHO_C" >&6
29870
cat >conftest.$ac_ext <<_ACEOF
29873
cat confdefs.h >>conftest.$ac_ext
29874
cat >>conftest.$ac_ext <<_ACEOF
29875
/* end confdefs.h. */
29876
$ac_includes_default
29877
#include <$bdb_header>
29879
rm -f conftest.$ac_objext
29880
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29881
(eval $ac_compile) 2>conftest.er1
29883
grep -v '^ *+' conftest.er1 >conftest.err
29885
cat conftest.err >&5
29886
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29887
(exit $ac_status); } &&
29888
{ ac_try='test -z "$ac_c_werror_flag"
29889
|| test ! -s conftest.err'
29890
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29891
(eval $ac_try) 2>&5
29893
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29894
(exit $ac_status); }; } &&
29895
{ ac_try='test -s conftest.$ac_objext'
29896
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29897
(eval $ac_try) 2>&5
29899
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29900
(exit $ac_status); }; }; then
29901
ac_header_compiler=yes
29903
echo "$as_me: failed program was:" >&5
29904
sed 's/^/| /' conftest.$ac_ext >&5
29906
ac_header_compiler=no
29908
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29909
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29910
echo "${ECHO_T}$ac_header_compiler" >&6
29912
# Is the header present?
29913
echo "$as_me:$LINENO: checking $bdb_header presence" >&5
29914
echo $ECHO_N "checking $bdb_header presence... $ECHO_C" >&6
29915
cat >conftest.$ac_ext <<_ACEOF
29918
cat confdefs.h >>conftest.$ac_ext
29919
cat >>conftest.$ac_ext <<_ACEOF
29920
/* end confdefs.h. */
29921
#include <$bdb_header>
29923
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29924
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29926
grep -v '^ *+' conftest.er1 >conftest.err
29928
cat conftest.err >&5
29929
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29930
(exit $ac_status); } >/dev/null; then
29931
if test -s conftest.err; then
29932
ac_cpp_err=$ac_c_preproc_warn_flag
29933
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29940
if test -z "$ac_cpp_err"; then
29941
ac_header_preproc=yes
29943
echo "$as_me: failed program was:" >&5
29944
sed 's/^/| /' conftest.$ac_ext >&5
29946
ac_header_preproc=no
29948
rm -f conftest.err conftest.$ac_ext
29949
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29950
echo "${ECHO_T}$ac_header_preproc" >&6
29952
# So? What about this header?
29953
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29955
{ echo "$as_me:$LINENO: WARNING: $bdb_header: accepted by the compiler, rejected by the preprocessor!" >&5
29956
echo "$as_me: WARNING: $bdb_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29957
{ echo "$as_me:$LINENO: WARNING: $bdb_header: proceeding with the compiler's result" >&5
29958
echo "$as_me: WARNING: $bdb_header: proceeding with the compiler's result" >&2;}
29959
ac_header_preproc=yes
29962
{ echo "$as_me:$LINENO: WARNING: $bdb_header: present but cannot be compiled" >&5
29963
echo "$as_me: WARNING: $bdb_header: present but cannot be compiled" >&2;}
29964
{ echo "$as_me:$LINENO: WARNING: $bdb_header: check for missing prerequisite headers?" >&5
29965
echo "$as_me: WARNING: $bdb_header: check for missing prerequisite headers?" >&2;}
29966
{ echo "$as_me:$LINENO: WARNING: $bdb_header: see the Autoconf documentation" >&5
29967
echo "$as_me: WARNING: $bdb_header: see the Autoconf documentation" >&2;}
29968
{ echo "$as_me:$LINENO: WARNING: $bdb_header: section \"Present But Cannot Be Compiled\"" >&5
29969
echo "$as_me: WARNING: $bdb_header: section \"Present But Cannot Be Compiled\"" >&2;}
29970
{ echo "$as_me:$LINENO: WARNING: $bdb_header: proceeding with the preprocessor's result" >&5
29971
echo "$as_me: WARNING: $bdb_header: proceeding with the preprocessor's result" >&2;}
29972
{ echo "$as_me:$LINENO: WARNING: $bdb_header: in the future, the compiler will take precedence" >&5
29973
echo "$as_me: WARNING: $bdb_header: in the future, the compiler will take precedence" >&2;}
29976
## ------------------------------------------ ##
29977
## Report this to the AC_PACKAGE_NAME lists. ##
29978
## ------------------------------------------ ##
29981
sed "s/^/$as_me: WARNING: /" >&2
29984
echo "$as_me:$LINENO: checking for $bdb_header" >&5
29985
echo $ECHO_N "checking for $bdb_header... $ECHO_C" >&6
29986
if eval "test \"\${$as_ac_Header+set}\" = set"; then
29987
echo $ECHO_N "(cached) $ECHO_C" >&6
29989
eval "$as_ac_Header=\$ac_header_preproc"
29991
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29992
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29995
if test `eval echo '${'$as_ac_Header'}'` = yes; then
29997
if test "1" = "3" -o "1" = "4"; then
29998
# We generate a separate cache variable for each prefix and libname
29999
# we search under. That way, we avoid caching information that
30000
# changes if the user runs `configure' with a different set of
30003
cache_id="`echo apu_cv_check_berkeley_db_1_0_0_${bdb_header}_${bdb_libname}_in_${bdb_place} \
30004
| sed -e 's/[^a-zA-Z0-9_]/_/g'`"
30007
echo "$as_me:$LINENO: checking for -l$bdb_libname" >&5
30008
echo $ECHO_N "checking for -l$bdb_libname... $ECHO_C" >&6
30009
if eval "test \"\${$cache_id+set}\" = set"; then
30010
echo $ECHO_N "(cached) $ECHO_C" >&6
30014
apu_try_berkeley_db_save_libs="$LIBS"
30016
apu_check_berkeley_db_major=1
30017
apu_check_berkeley_db_minor=0
30018
apu_check_berkeley_db_patch=0
30019
apu_try_berkeley_db_header=$bdb_header
30020
apu_try_berkeley_db_libname=$bdb_libname
30022
LIBS="$LIBS -l$apu_try_berkeley_db_libname"
30023
if test "$cross_compiling" = yes; then
30024
apu_try_berkeley_db=yes
30027
cat >conftest.$ac_ext <<_ACEOF
30030
cat confdefs.h >>conftest.$ac_ext
30031
cat >>conftest.$ac_ext <<_ACEOF
30032
/* end confdefs.h. */
30035
#include <$apu_try_berkeley_db_header>
30038
int major, minor, patch;
30040
db_version(&major, &minor, &patch);
30042
/* Sanity check: ensure that db.h constants actually match the db library */
30043
if (major != DB_VERSION_MAJOR
30044
|| minor != DB_VERSION_MINOR
30045
|| patch != DB_VERSION_PATCH)
30048
/* Run-time check: ensure the library claims to be the correct version. */
30050
if ($apu_check_berkeley_db_major != -1) {
30051
if (major < $apu_check_berkeley_db_major)
30053
if (major > $apu_check_berkeley_db_major)
30057
if ($apu_check_berkeley_db_minor != -1) {
30058
if (minor < $apu_check_berkeley_db_minor)
30060
if (minor > $apu_check_berkeley_db_minor)
30064
if ($apu_check_berkeley_db_patch == -1
30065
|| patch >= $apu_check_berkeley_db_patch)
30072
rm -f conftest$ac_exeext
30073
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30074
(eval $ac_link) 2>&5
30076
echo "$as_me:$LINENO: \$? = $ac_status" >&5
30077
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30078
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30079
(eval $ac_try) 2>&5
30081
echo "$as_me:$LINENO: \$? = $ac_status" >&5
30082
(exit $ac_status); }; }; then
30083
apu_try_berkeley_db=yes
30085
echo "$as_me: program exited with status $ac_status" >&5
30086
echo "$as_me: failed program was:" >&5
30087
sed 's/^/| /' conftest.$ac_ext >&5
30089
( exit $ac_status )
30090
apu_try_berkeley_db=no
30092
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30095
LIBS="$apu_try_berkeley_db_save_libs"
30098
eval "$cache_id=$apu_try_berkeley_db"
30102
result="`eval echo '$'$cache_id`"
30103
echo "$as_me:$LINENO: result: $result" >&5
30104
echo "${ECHO_T}$result" >&6
30105
elif test "1" = "1"; then
30106
as_ac_Lib=`echo "ac_cv_lib_$bdb_libname''_dbopen" | $as_tr_sh`
30107
echo "$as_me:$LINENO: checking for dbopen in -l$bdb_libname" >&5
30108
echo $ECHO_N "checking for dbopen in -l$bdb_libname... $ECHO_C" >&6
30109
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
30110
echo $ECHO_N "(cached) $ECHO_C" >&6
30112
ac_check_lib_save_LIBS=$LIBS
30113
LIBS="-l$bdb_libname $LIBS"
30114
cat >conftest.$ac_ext <<_ACEOF
30117
cat confdefs.h >>conftest.$ac_ext
30118
cat >>conftest.$ac_ext <<_ACEOF
30119
/* end confdefs.h. */
30121
/* Override any gcc2 internal prototype to avoid an error. */
30125
/* We use char because int might match the return type of a gcc2
30126
builtin and then its argument prototype would still apply. */
30136
rm -f conftest.$ac_objext conftest$ac_exeext
30137
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30138
(eval $ac_link) 2>conftest.er1
30140
grep -v '^ *+' conftest.er1 >conftest.err
30142
cat conftest.err >&5
30143
echo "$as_me:$LINENO: \$? = $ac_status" >&5
30144
(exit $ac_status); } &&
30145
{ ac_try='test -z "$ac_c_werror_flag"
30146
|| test ! -s conftest.err'
30147
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30148
(eval $ac_try) 2>&5
30150
echo "$as_me:$LINENO: \$? = $ac_status" >&5
30151
(exit $ac_status); }; } &&
30152
{ ac_try='test -s conftest$ac_exeext'
30153
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30154
(eval $ac_try) 2>&5
30156
echo "$as_me:$LINENO: \$? = $ac_status" >&5
30157
(exit $ac_status); }; }; then
30158
eval "$as_ac_Lib=yes"
30160
echo "$as_me: failed program was:" >&5
30161
sed 's/^/| /' conftest.$ac_ext >&5
30163
eval "$as_ac_Lib=no"
30165
rm -f conftest.err conftest.$ac_objext \
30166
conftest$ac_exeext conftest.$ac_ext
30167
LIBS=$ac_check_lib_save_LIBS
30169
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
30170
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
30171
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
30178
elif test "1" = "2"; then
30179
as_ac_Lib=`echo "ac_cv_lib_$bdb_libname''_db_open" | $as_tr_sh`
30180
echo "$as_me:$LINENO: checking for db_open in -l$bdb_libname" >&5
30181
echo $ECHO_N "checking for db_open in -l$bdb_libname... $ECHO_C" >&6
30182
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
30183
echo $ECHO_N "(cached) $ECHO_C" >&6
30185
ac_check_lib_save_LIBS=$LIBS
30186
LIBS="-l$bdb_libname $LIBS"
30187
cat >conftest.$ac_ext <<_ACEOF
30190
cat confdefs.h >>conftest.$ac_ext
30191
cat >>conftest.$ac_ext <<_ACEOF
30192
/* end confdefs.h. */
30194
/* Override any gcc2 internal prototype to avoid an error. */
30198
/* We use char because int might match the return type of a gcc2
30199
builtin and then its argument prototype would still apply. */
30209
rm -f conftest.$ac_objext conftest$ac_exeext
30210
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30211
(eval $ac_link) 2>conftest.er1
30213
grep -v '^ *+' conftest.er1 >conftest.err
30215
cat conftest.err >&5
30216
echo "$as_me:$LINENO: \$? = $ac_status" >&5
30217
(exit $ac_status); } &&
30218
{ ac_try='test -z "$ac_c_werror_flag"
30219
|| test ! -s conftest.err'
30220
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30221
(eval $ac_try) 2>&5
30223
echo "$as_me:$LINENO: \$? = $ac_status" >&5
30224
(exit $ac_status); }; } &&
30225
{ ac_try='test -s conftest$ac_exeext'
30226
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30227
(eval $ac_try) 2>&5
30229
echo "$as_me:$LINENO: \$? = $ac_status" >&5
30230
(exit $ac_status); }; }; then
30231
eval "$as_ac_Lib=yes"
30233
echo "$as_me: failed program was:" >&5
30234
sed 's/^/| /' conftest.$ac_ext >&5
30236
eval "$as_ac_Lib=no"
30238
rm -f conftest.err conftest.$ac_objext \
30239
conftest$ac_exeext conftest.$ac_ext
30240
LIBS=$ac_check_lib_save_LIBS
30242
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
30243
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
30244
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
30259
# If we found it, no need to search any more.
30260
if test "$result" = "yes"; then
30265
test "$found" != "not" && break
30267
test "$found" != "not" && break
30270
# Restore the original values of the flags we tweak.
30271
LDFLAGS="$apu_check_lib_save_ldflags"
30272
CPPFLAGS="$apu_check_lib_save_cppflags"
30279
apu_db_header=$bdb_header
30280
apu_db_lib=$bdb_libname
30284
header="`echo $found | sed -e 's/:.*$//'`"
30285
lib="`echo $found | sed -e 's/^.*://'`"
30288
if test "x$APRUTIL_INCLUDES" = "x"; then
30289
test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$header\""
30290
APRUTIL_INCLUDES="-I$header"
30292
apr_addto_bugger="-I$header"
30293
for i in $apr_addto_bugger; do
30294
apr_addto_duplicate="0"
30295
for j in $APRUTIL_INCLUDES; do
30296
if test "x$i" = "x$j"; then
30297
apr_addto_duplicate="1"
30301
if test $apr_addto_duplicate = "0"; then
30302
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES"
30303
APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
30309
if test "x$APRUTIL_LDFLAGS" = "x"; then
30310
test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$lib\""
30311
APRUTIL_LDFLAGS="-L$lib"
30313
apr_addto_bugger="-L$lib"
30314
for i in $apr_addto_bugger; do
30315
apr_addto_duplicate="0"
30316
for j in $APRUTIL_LDFLAGS; do
30317
if test "x$i" = "x$j"; then
30318
apr_addto_duplicate="1"
30322
if test $apr_addto_duplicate = "0"; then
30323
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS"
30324
APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
30329
apu_db_header=$bdb_header
30330
apu_db_lib=$bdb_libname
30335
if test "x$APRUTIL_INCLUDES" = "x"; then
30336
test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$found/include\""
30337
APRUTIL_INCLUDES="-I$found/include"
30339
apr_addto_bugger="-I$found/include"
30340
for i in $apr_addto_bugger; do
30341
apr_addto_duplicate="0"
30342
for j in $APRUTIL_INCLUDES; do
30343
if test "x$i" = "x$j"; then
30344
apr_addto_duplicate="1"
30348
if test $apr_addto_duplicate = "0"; then
30349
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES"
30350
APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
30356
if test "x$APRUTIL_LDFLAGS" = "x"; then
30357
test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$found/lib\""
30358
APRUTIL_LDFLAGS="-L$found/lib"
30360
apr_addto_bugger="-L$found/lib"
30361
for i in $apr_addto_bugger; do
30362
apr_addto_duplicate="0"
30363
for j in $APRUTIL_LDFLAGS; do
30364
if test "x$i" = "x$j"; then
30365
apr_addto_duplicate="1"
30369
if test $apr_addto_duplicate = "0"; then
30370
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS"
30371
APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
30376
apu_db_header=$bdb_header
30377
apu_db_lib=$bdb_libname
30382
if test "$apu_have_db" = "1"; then
30386
if test "$apu_db_version" != "1"; then
30388
places="$all_places"
30389
if test -z "$places"; then
30394
if test "-1" != "-1"; then
30395
bdb_version="$bdb_version.-1"
30396
if test "-1" != "-1"; then
30397
bdb_version="$bdb_version.-1"
30400
bdb_places="$places"
30401
bdb_default_search_headers="db_185.h"
30402
bdb_default_search_lib_names="db"
30407
# Save the original values of the flags we tweak.
30408
apu_check_lib_save_libs="$LIBS"
30409
apu_check_lib_save_ldflags="$LDFLAGS"
30410
apu_check_lib_save_cppflags="$CPPFLAGS"
30412
# The variable `found' is the prefix under which we've found
30413
# Berkeley DB, or `not' if we haven't found it anywhere yet.
30415
for bdb_place in $bdb_places; do
30417
LDFLAGS="$apu_check_lib_save_ldflags"
30418
CPPFLAGS="$apu_check_lib_save_cppflags"
30419
case "$bdb_place" in
30421
description="the standard places"
30424
header="`echo $bdb_place | sed -e 's/:.*$//'`"
30425
lib="`echo $bdb_place | sed -e 's/^.*://'`"
30426
CPPFLAGS="$CPPFLAGS -I$header"
30427
LDFLAGS="$LDFLAGS -L$lib"
30428
description="$header and $lib"
30431
if test -d $bdb_place; then
30432
LDFLAGS="$LDFLAGS -L$bdb_place/lib"
30433
CPPFLAGS="$CPPFLAGS -I$bdb_place/include"
30435
echo "$as_me:$LINENO: checking for Berkeley DB $bdb_version in $bdb_place" >&5
30436
echo $ECHO_N "checking for Berkeley DB $bdb_version in $bdb_place... $ECHO_C" >&6
30437
echo "$as_me:$LINENO: result: directory not found" >&5
30438
echo "${ECHO_T}directory not found" >&6
30441
description="$bdb_place"
30445
# Since there is no AC_MSG_NOTICE in autoconf 2.13, we use this
30446
# trick to display a message instead.
30447
echo "$as_me:$LINENO: checking for Berkeley DB $bdb_version in $description" >&5
30448
echo $ECHO_N "checking for Berkeley DB $bdb_version in $description... $ECHO_C" >&6
30449
echo "$as_me:$LINENO: result: " >&5
30450
echo "${ECHO_T}" >&6
30452
for bdb_libname in $bdb_default_search_lib_names; do
30453
for bdb_header in $bdb_default_search_headers; do
30454
# Clear the header cache variable for each location
30456
cache_id="`echo ac_cv_header_${bdb_header} \
30457
| sed -e 's/[^a-zA-Z0-9_]/_/g'`"
30460
as_ac_Header=`echo "ac_cv_header_$bdb_header" | $as_tr_sh`
30461
if eval "test \"\${$as_ac_Header+set}\" = set"; then
30462
echo "$as_me:$LINENO: checking for $bdb_header" >&5
30463
echo $ECHO_N "checking for $bdb_header... $ECHO_C" >&6
30464
if eval "test \"\${$as_ac_Header+set}\" = set"; then
30465
echo $ECHO_N "(cached) $ECHO_C" >&6
30467
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30468
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30470
# Is the header compilable?
30471
echo "$as_me:$LINENO: checking $bdb_header usability" >&5
30472
echo $ECHO_N "checking $bdb_header usability... $ECHO_C" >&6
30473
cat >conftest.$ac_ext <<_ACEOF
30476
cat confdefs.h >>conftest.$ac_ext
30477
cat >>conftest.$ac_ext <<_ACEOF
30478
/* end confdefs.h. */
30479
$ac_includes_default
30480
#include <$bdb_header>
30482
rm -f conftest.$ac_objext
30483
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30484
(eval $ac_compile) 2>conftest.er1
30486
grep -v '^ *+' conftest.er1 >conftest.err
30488
cat conftest.err >&5
30489
echo "$as_me:$LINENO: \$? = $ac_status" >&5
30490
(exit $ac_status); } &&
30491
{ ac_try='test -z "$ac_c_werror_flag"
30492
|| test ! -s conftest.err'
30493
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30494
(eval $ac_try) 2>&5
30496
echo "$as_me:$LINENO: \$? = $ac_status" >&5
30497
(exit $ac_status); }; } &&
30498
{ ac_try='test -s conftest.$ac_objext'
30499
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30500
(eval $ac_try) 2>&5
30502
echo "$as_me:$LINENO: \$? = $ac_status" >&5
30503
(exit $ac_status); }; }; then
30504
ac_header_compiler=yes
30506
echo "$as_me: failed program was:" >&5
30507
sed 's/^/| /' conftest.$ac_ext >&5
30509
ac_header_compiler=no
30511
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30512
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30513
echo "${ECHO_T}$ac_header_compiler" >&6
30515
# Is the header present?
30516
echo "$as_me:$LINENO: checking $bdb_header presence" >&5
30517
echo $ECHO_N "checking $bdb_header presence... $ECHO_C" >&6
30518
cat >conftest.$ac_ext <<_ACEOF
30521
cat confdefs.h >>conftest.$ac_ext
30522
cat >>conftest.$ac_ext <<_ACEOF
30523
/* end confdefs.h. */
30524
#include <$bdb_header>
30526
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30527
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30529
grep -v '^ *+' conftest.er1 >conftest.err
30531
cat conftest.err >&5
30532
echo "$as_me:$LINENO: \$? = $ac_status" >&5
30533
(exit $ac_status); } >/dev/null; then
30534
if test -s conftest.err; then
30535
ac_cpp_err=$ac_c_preproc_warn_flag
30536
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30543
if test -z "$ac_cpp_err"; then
30544
ac_header_preproc=yes
30546
echo "$as_me: failed program was:" >&5
30547
sed 's/^/| /' conftest.$ac_ext >&5
30549
ac_header_preproc=no
30551
rm -f conftest.err conftest.$ac_ext
30552
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30553
echo "${ECHO_T}$ac_header_preproc" >&6
30555
# So? What about this header?
30556
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30558
{ echo "$as_me:$LINENO: WARNING: $bdb_header: accepted by the compiler, rejected by the preprocessor!" >&5
30559
echo "$as_me: WARNING: $bdb_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30560
{ echo "$as_me:$LINENO: WARNING: $bdb_header: proceeding with the compiler's result" >&5
30561
echo "$as_me: WARNING: $bdb_header: proceeding with the compiler's result" >&2;}
30562
ac_header_preproc=yes
30565
{ echo "$as_me:$LINENO: WARNING: $bdb_header: present but cannot be compiled" >&5
30566
echo "$as_me: WARNING: $bdb_header: present but cannot be compiled" >&2;}
30567
{ echo "$as_me:$LINENO: WARNING: $bdb_header: check for missing prerequisite headers?" >&5
30568
echo "$as_me: WARNING: $bdb_header: check for missing prerequisite headers?" >&2;}
30569
{ echo "$as_me:$LINENO: WARNING: $bdb_header: see the Autoconf documentation" >&5
30570
echo "$as_me: WARNING: $bdb_header: see the Autoconf documentation" >&2;}
30571
{ echo "$as_me:$LINENO: WARNING: $bdb_header: section \"Present But Cannot Be Compiled\"" >&5
30572
echo "$as_me: WARNING: $bdb_header: section \"Present But Cannot Be Compiled\"" >&2;}
30573
{ echo "$as_me:$LINENO: WARNING: $bdb_header: proceeding with the preprocessor's result" >&5
30574
echo "$as_me: WARNING: $bdb_header: proceeding with the preprocessor's result" >&2;}
30575
{ echo "$as_me:$LINENO: WARNING: $bdb_header: in the future, the compiler will take precedence" >&5
30576
echo "$as_me: WARNING: $bdb_header: in the future, the compiler will take precedence" >&2;}
30579
## ------------------------------------------ ##
30580
## Report this to the AC_PACKAGE_NAME lists. ##
30581
## ------------------------------------------ ##
30584
sed "s/^/$as_me: WARNING: /" >&2
30587
echo "$as_me:$LINENO: checking for $bdb_header" >&5
30588
echo $ECHO_N "checking for $bdb_header... $ECHO_C" >&6
30589
if eval "test \"\${$as_ac_Header+set}\" = set"; then
30590
echo $ECHO_N "(cached) $ECHO_C" >&6
30592
eval "$as_ac_Header=\$ac_header_preproc"
30594
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30595
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30598
if test `eval echo '${'$as_ac_Header'}'` = yes; then
30600
if test "1" = "3" -o "1" = "4"; then
30601
# We generate a separate cache variable for each prefix and libname
30602
# we search under. That way, we avoid caching information that
30603
# changes if the user runs `configure' with a different set of
30606
cache_id="`echo apu_cv_check_berkeley_db_1_-1_-1_${bdb_header}_${bdb_libname}_in_${bdb_place} \
30607
| sed -e 's/[^a-zA-Z0-9_]/_/g'`"
30610
echo "$as_me:$LINENO: checking for -l$bdb_libname" >&5
30611
echo $ECHO_N "checking for -l$bdb_libname... $ECHO_C" >&6
30612
if eval "test \"\${$cache_id+set}\" = set"; then
30613
echo $ECHO_N "(cached) $ECHO_C" >&6
30617
apu_try_berkeley_db_save_libs="$LIBS"
30619
apu_check_berkeley_db_major=1
30620
apu_check_berkeley_db_minor=-1
30621
apu_check_berkeley_db_patch=-1
30622
apu_try_berkeley_db_header=$bdb_header
30623
apu_try_berkeley_db_libname=$bdb_libname
30625
LIBS="$LIBS -l$apu_try_berkeley_db_libname"
30626
if test "$cross_compiling" = yes; then
30627
apu_try_berkeley_db=yes
30630
cat >conftest.$ac_ext <<_ACEOF
30633
cat confdefs.h >>conftest.$ac_ext
30634
cat >>conftest.$ac_ext <<_ACEOF
30635
/* end confdefs.h. */
30638
#include <$apu_try_berkeley_db_header>
30641
int major, minor, patch;
30643
db_version(&major, &minor, &patch);
30645
/* Sanity check: ensure that db.h constants actually match the db library */
30646
if (major != DB_VERSION_MAJOR
30647
|| minor != DB_VERSION_MINOR
30648
|| patch != DB_VERSION_PATCH)
30651
/* Run-time check: ensure the library claims to be the correct version. */
30653
if ($apu_check_berkeley_db_major != -1) {
30654
if (major < $apu_check_berkeley_db_major)
30656
if (major > $apu_check_berkeley_db_major)
30660
if ($apu_check_berkeley_db_minor != -1) {
30661
if (minor < $apu_check_berkeley_db_minor)
30663
if (minor > $apu_check_berkeley_db_minor)
30667
if ($apu_check_berkeley_db_patch == -1
30668
|| patch >= $apu_check_berkeley_db_patch)
30675
rm -f conftest$ac_exeext
30676
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30677
(eval $ac_link) 2>&5
30679
echo "$as_me:$LINENO: \$? = $ac_status" >&5
30680
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30681
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30682
(eval $ac_try) 2>&5
30684
echo "$as_me:$LINENO: \$? = $ac_status" >&5
30685
(exit $ac_status); }; }; then
30686
apu_try_berkeley_db=yes
30688
echo "$as_me: program exited with status $ac_status" >&5
30689
echo "$as_me: failed program was:" >&5
30690
sed 's/^/| /' conftest.$ac_ext >&5
30692
( exit $ac_status )
30693
apu_try_berkeley_db=no
30695
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30698
LIBS="$apu_try_berkeley_db_save_libs"
30701
eval "$cache_id=$apu_try_berkeley_db"
30705
result="`eval echo '$'$cache_id`"
30706
echo "$as_me:$LINENO: result: $result" >&5
30707
echo "${ECHO_T}$result" >&6
30708
elif test "1" = "1"; then
30709
as_ac_Lib=`echo "ac_cv_lib_$bdb_libname''_dbopen" | $as_tr_sh`
30710
echo "$as_me:$LINENO: checking for dbopen in -l$bdb_libname" >&5
30711
echo $ECHO_N "checking for dbopen in -l$bdb_libname... $ECHO_C" >&6
30712
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
30713
echo $ECHO_N "(cached) $ECHO_C" >&6
30715
ac_check_lib_save_LIBS=$LIBS
30716
LIBS="-l$bdb_libname $LIBS"
30717
cat >conftest.$ac_ext <<_ACEOF
30720
cat confdefs.h >>conftest.$ac_ext
30721
cat >>conftest.$ac_ext <<_ACEOF
30722
/* end confdefs.h. */
30724
/* Override any gcc2 internal prototype to avoid an error. */
30728
/* We use char because int might match the return type of a gcc2
30729
builtin and then its argument prototype would still apply. */
30739
rm -f conftest.$ac_objext conftest$ac_exeext
30740
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30741
(eval $ac_link) 2>conftest.er1
30743
grep -v '^ *+' conftest.er1 >conftest.err
30745
cat conftest.err >&5
30746
echo "$as_me:$LINENO: \$? = $ac_status" >&5
30747
(exit $ac_status); } &&
30748
{ ac_try='test -z "$ac_c_werror_flag"
30749
|| test ! -s conftest.err'
30750
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30751
(eval $ac_try) 2>&5
30753
echo "$as_me:$LINENO: \$? = $ac_status" >&5
30754
(exit $ac_status); }; } &&
30755
{ ac_try='test -s conftest$ac_exeext'
30756
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30757
(eval $ac_try) 2>&5
30759
echo "$as_me:$LINENO: \$? = $ac_status" >&5
30760
(exit $ac_status); }; }; then
30761
eval "$as_ac_Lib=yes"
30763
echo "$as_me: failed program was:" >&5
30764
sed 's/^/| /' conftest.$ac_ext >&5
30766
eval "$as_ac_Lib=no"
30768
rm -f conftest.err conftest.$ac_objext \
30769
conftest$ac_exeext conftest.$ac_ext
30770
LIBS=$ac_check_lib_save_LIBS
30772
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
30773
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
30774
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
30781
elif test "1" = "2"; then
30782
as_ac_Lib=`echo "ac_cv_lib_$bdb_libname''_db_open" | $as_tr_sh`
30783
echo "$as_me:$LINENO: checking for db_open in -l$bdb_libname" >&5
30784
echo $ECHO_N "checking for db_open in -l$bdb_libname... $ECHO_C" >&6
30785
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
30786
echo $ECHO_N "(cached) $ECHO_C" >&6
30788
ac_check_lib_save_LIBS=$LIBS
30789
LIBS="-l$bdb_libname $LIBS"
30790
cat >conftest.$ac_ext <<_ACEOF
30793
cat confdefs.h >>conftest.$ac_ext
30794
cat >>conftest.$ac_ext <<_ACEOF
30795
/* end confdefs.h. */
30797
/* Override any gcc2 internal prototype to avoid an error. */
30801
/* We use char because int might match the return type of a gcc2
30802
builtin and then its argument prototype would still apply. */
30812
rm -f conftest.$ac_objext conftest$ac_exeext
30813
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30814
(eval $ac_link) 2>conftest.er1
30816
grep -v '^ *+' conftest.er1 >conftest.err
30818
cat conftest.err >&5
30819
echo "$as_me:$LINENO: \$? = $ac_status" >&5
30820
(exit $ac_status); } &&
30821
{ ac_try='test -z "$ac_c_werror_flag"
30822
|| test ! -s conftest.err'
30823
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30824
(eval $ac_try) 2>&5
30826
echo "$as_me:$LINENO: \$? = $ac_status" >&5
30827
(exit $ac_status); }; } &&
30828
{ ac_try='test -s conftest$ac_exeext'
30829
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30830
(eval $ac_try) 2>&5
30832
echo "$as_me:$LINENO: \$? = $ac_status" >&5
30833
(exit $ac_status); }; }; then
30834
eval "$as_ac_Lib=yes"
30836
echo "$as_me: failed program was:" >&5
30837
sed 's/^/| /' conftest.$ac_ext >&5
30839
eval "$as_ac_Lib=no"
30841
rm -f conftest.err conftest.$ac_objext \
30842
conftest$ac_exeext conftest.$ac_ext
30843
LIBS=$ac_check_lib_save_LIBS
30845
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
30846
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
30847
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
30862
# If we found it, no need to search any more.
30863
if test "$result" = "yes"; then
30868
test "$found" != "not" && break
30870
test "$found" != "not" && break
30873
# Restore the original values of the flags we tweak.
30874
LDFLAGS="$apu_check_lib_save_ldflags"
30875
CPPFLAGS="$apu_check_lib_save_cppflags"
30882
apu_db_header=$bdb_header
30883
apu_db_lib=$bdb_libname
30887
header="`echo $found | sed -e 's/:.*$//'`"
30888
lib="`echo $found | sed -e 's/^.*://'`"
30891
if test "x$APRUTIL_INCLUDES" = "x"; then
30892
test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$header\""
30893
APRUTIL_INCLUDES="-I$header"
30895
apr_addto_bugger="-I$header"
30896
for i in $apr_addto_bugger; do
30897
apr_addto_duplicate="0"
30898
for j in $APRUTIL_INCLUDES; do
30899
if test "x$i" = "x$j"; then
30900
apr_addto_duplicate="1"
30904
if test $apr_addto_duplicate = "0"; then
30905
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES"
30906
APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
30912
if test "x$APRUTIL_LDFLAGS" = "x"; then
30913
test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$lib\""
30914
APRUTIL_LDFLAGS="-L$lib"
30916
apr_addto_bugger="-L$lib"
30917
for i in $apr_addto_bugger; do
30918
apr_addto_duplicate="0"
30919
for j in $APRUTIL_LDFLAGS; do
30920
if test "x$i" = "x$j"; then
30921
apr_addto_duplicate="1"
30925
if test $apr_addto_duplicate = "0"; then
30926
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS"
30927
APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
30932
apu_db_header=$bdb_header
30933
apu_db_lib=$bdb_libname
30938
if test "x$APRUTIL_INCLUDES" = "x"; then
30939
test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$found/include\""
30940
APRUTIL_INCLUDES="-I$found/include"
30942
apr_addto_bugger="-I$found/include"
30943
for i in $apr_addto_bugger; do
30944
apr_addto_duplicate="0"
30945
for j in $APRUTIL_INCLUDES; do
30946
if test "x$i" = "x$j"; then
30947
apr_addto_duplicate="1"
30951
if test $apr_addto_duplicate = "0"; then
30952
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES"
30953
APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
30959
if test "x$APRUTIL_LDFLAGS" = "x"; then
30960
test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$found/lib\""
30961
APRUTIL_LDFLAGS="-L$found/lib"
30963
apr_addto_bugger="-L$found/lib"
30964
for i in $apr_addto_bugger; do
30965
apr_addto_duplicate="0"
30966
for j in $APRUTIL_LDFLAGS; do
30967
if test "x$i" = "x$j"; then
30968
apr_addto_duplicate="1"
30972
if test $apr_addto_duplicate = "0"; then
30973
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS"
30974
APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
30979
apu_db_header=$bdb_header
30980
apu_db_lib=$bdb_libname
30985
if test "$apu_have_db" = "1"; then
30997
echo "$as_me:$LINENO: checking for Berkeley DB" >&5
30998
echo $ECHO_N "checking for Berkeley DB... $ECHO_C" >&6
30999
if test "$apu_have_db" = "1"; then
31000
echo "$as_me:$LINENO: result: found db$apu_db_version" >&5
31001
echo "${ECHO_T}found db$apu_db_version" >&6
31003
echo "$as_me:$LINENO: result: not found" >&5
31004
echo "${ECHO_T}not found" >&6
31010
if test "$apu_have_db" = "0"; then
31011
{ { echo "$as_me:$LINENO: error: Berkeley DB not found." >&5
31012
echo "$as_me: error: Berkeley DB not found." >&2;}
31013
{ (exit 1); exit 1; }; }
31019
if test -n "$apu_db_xtra_libs"; then
31020
LIBS="$saveddbxtralibs"
31023
case "$requested" in
31026
apu_default_dbm=sdbm
31030
apu_default_dbm=gdbm
31034
apu_default_dbm=ndbm
31042
apu_default_dbm=db1
31046
apu_default_dbm=db185
31050
apu_default_dbm=db2
31054
apu_default_dbm=db3
31058
apu_default_dbm=db4
31062
apu_default_dbm=db4
31066
apu_default_dbm=db4
31070
apu_default_dbm=db4
31074
apu_default_dbm=db4
31077
apu_default_dbm="sdbm (default)"
31081
{ { echo "$as_me:$LINENO: error: --with-dbm=$look_for is an unknown DBM type.
31082
Use one of: sdbm, gdbm, ndbm, db, db1, db185, db2, db3, db4, db41, db42, db43, db44" >&5
31083
echo "$as_me: error: --with-dbm=$look_for is an unknown DBM type.
31084
Use one of: sdbm, gdbm, ndbm, db, db1, db185, db2, db3, db4, db41, db42, db43, db44" >&2;}
31085
{ (exit 1); exit 1; }; }
31089
echo "$as_me:$LINENO: checking for default DBM" >&5
31090
echo $ECHO_N "checking for default DBM... $ECHO_C" >&6
31091
echo "$as_me:$LINENO: result: $apu_default_dbm" >&5
31092
echo "${ECHO_T}$apu_default_dbm" >&6
31106
if test "$apu_have_gdbm" = "1"; then
31108
if test "x$APRUTIL_EXPORT_LIBS" = "x"; then
31109
test "x$silent" != "xyes" && echo " setting APRUTIL_EXPORT_LIBS to \"-lgdbm\""
31110
APRUTIL_EXPORT_LIBS="-lgdbm"
31112
apr_addto_bugger="-lgdbm"
31113
for i in $apr_addto_bugger; do
31114
apr_addto_duplicate="0"
31115
for j in $APRUTIL_EXPORT_LIBS; do
31116
if test "x$i" = "x$j"; then
31117
apr_addto_duplicate="1"
31121
if test $apr_addto_duplicate = "0"; then
31122
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_EXPORT_LIBS"
31123
APRUTIL_EXPORT_LIBS="$APRUTIL_EXPORT_LIBS $i"
31129
if test "x$APRUTIL_LIBS" = "x"; then
31130
test "x$silent" != "xyes" && echo " setting APRUTIL_LIBS to \"-lgdbm\""
31131
APRUTIL_LIBS="-lgdbm"
31133
apr_addto_bugger="-lgdbm"
31134
for i in $apr_addto_bugger; do
31135
apr_addto_duplicate="0"
31136
for j in $APRUTIL_LIBS; do
31137
if test "x$i" = "x$j"; then
31138
apr_addto_duplicate="1"
31142
if test $apr_addto_duplicate = "0"; then
31143
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LIBS"
31144
APRUTIL_LIBS="$APRUTIL_LIBS $i"
31151
if test "$apu_have_ndbm" = "1"; then
31153
if test "x$APRUTIL_EXPORT_LIBS" = "x"; then
31154
test "x$silent" != "xyes" && echo " setting APRUTIL_EXPORT_LIBS to \"-l$apu_ndbm_lib\""
31155
APRUTIL_EXPORT_LIBS="-l$apu_ndbm_lib"
31157
apr_addto_bugger="-l$apu_ndbm_lib"
31158
for i in $apr_addto_bugger; do
31159
apr_addto_duplicate="0"
31160
for j in $APRUTIL_EXPORT_LIBS; do
31161
if test "x$i" = "x$j"; then
31162
apr_addto_duplicate="1"
31166
if test $apr_addto_duplicate = "0"; then
31167
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_EXPORT_LIBS"
31168
APRUTIL_EXPORT_LIBS="$APRUTIL_EXPORT_LIBS $i"
31174
if test "x$APRUTIL_LIBS" = "x"; then
31175
test "x$silent" != "xyes" && echo " setting APRUTIL_LIBS to \"-l$apu_ndbm_lib\""
31176
APRUTIL_LIBS="-l$apu_ndbm_lib"
31178
apr_addto_bugger="-l$apu_ndbm_lib"
31179
for i in $apr_addto_bugger; do
31180
apr_addto_duplicate="0"
31181
for j in $APRUTIL_LIBS; do
31182
if test "x$i" = "x$j"; then
31183
apr_addto_duplicate="1"
31187
if test $apr_addto_duplicate = "0"; then
31188
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LIBS"
31189
APRUTIL_LIBS="$APRUTIL_LIBS $i"
31196
if test "$apu_have_db" = "1"; then
31198
if test "x$APRUTIL_EXPORT_LIBS" = "x"; then
31199
test "x$silent" != "xyes" && echo " setting APRUTIL_EXPORT_LIBS to \"-l$apu_db_lib\""
31200
APRUTIL_EXPORT_LIBS="-l$apu_db_lib"
31202
apr_addto_bugger="-l$apu_db_lib"
31203
for i in $apr_addto_bugger; do
31204
apr_addto_duplicate="0"
31205
for j in $APRUTIL_EXPORT_LIBS; do
31206
if test "x$i" = "x$j"; then
31207
apr_addto_duplicate="1"
31211
if test $apr_addto_duplicate = "0"; then
31212
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_EXPORT_LIBS"
31213
APRUTIL_EXPORT_LIBS="$APRUTIL_EXPORT_LIBS $i"
31219
if test "x$APRUTIL_LIBS" = "x"; then
31220
test "x$silent" != "xyes" && echo " setting APRUTIL_LIBS to \"-l$apu_db_lib\""
31221
APRUTIL_LIBS="-l$apu_db_lib"
31223
apr_addto_bugger="-l$apu_db_lib"
31224
for i in $apr_addto_bugger; do
31225
apr_addto_duplicate="0"
31226
for j in $APRUTIL_LIBS; do
31227
if test "x$i" = "x$j"; then
31228
apr_addto_duplicate="1"
31232
if test $apr_addto_duplicate = "0"; then
31233
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LIBS"
31234
APRUTIL_LIBS="$APRUTIL_LIBS $i"
31239
if test -n "apu_db_xtra_libs"; then
31241
if test "x$APRUTIL_EXPORT_LIBS" = "x"; then
31242
test "x$silent" != "xyes" && echo " setting APRUTIL_EXPORT_LIBS to \"$apu_db_xtra_libs\""
31243
APRUTIL_EXPORT_LIBS="$apu_db_xtra_libs"
31245
apr_addto_bugger="$apu_db_xtra_libs"
31246
for i in $apr_addto_bugger; do
31247
apr_addto_duplicate="0"
31248
for j in $APRUTIL_EXPORT_LIBS; do
31249
if test "x$i" = "x$j"; then
31250
apr_addto_duplicate="1"
31254
if test $apr_addto_duplicate = "0"; then
31255
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_EXPORT_LIBS"
31256
APRUTIL_EXPORT_LIBS="$APRUTIL_EXPORT_LIBS $i"
31262
if test "x$APRUTIL_LIBS" = "x"; then
31263
test "x$silent" != "xyes" && echo " setting APRUTIL_LIBS to \"$apu_db_xtra_libs\""
31264
APRUTIL_LIBS="$apu_db_xtra_libs"
31266
apr_addto_bugger="$apu_db_xtra_libs"
31267
for i in $apr_addto_bugger; do
31268
apr_addto_duplicate="0"
31269
for j in $APRUTIL_LIBS; do
31270
if test "x$i" = "x$j"; then
31271
apr_addto_duplicate="1"
31275
if test $apr_addto_duplicate = "0"; then
31276
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LIBS"
31277
APRUTIL_LIBS="$APRUTIL_LIBS $i"
31289
# Check whether --with-pgsql or --without-pgsql was given.
31290
if test "${with_pgsql+set}" = set; then
31291
withval="$with_pgsql"
31294
if test "$withval" = "yes"; then
31295
if test "${ac_cv_header_libpq_fe_h+set}" = set; then
31296
echo "$as_me:$LINENO: checking for libpq-fe.h" >&5
31297
echo $ECHO_N "checking for libpq-fe.h... $ECHO_C" >&6
31298
if test "${ac_cv_header_libpq_fe_h+set}" = set; then
31299
echo $ECHO_N "(cached) $ECHO_C" >&6
31301
echo "$as_me:$LINENO: result: $ac_cv_header_libpq_fe_h" >&5
31302
echo "${ECHO_T}$ac_cv_header_libpq_fe_h" >&6
31304
# Is the header compilable?
31305
echo "$as_me:$LINENO: checking libpq-fe.h usability" >&5
31306
echo $ECHO_N "checking libpq-fe.h usability... $ECHO_C" >&6
31307
cat >conftest.$ac_ext <<_ACEOF
31310
cat confdefs.h >>conftest.$ac_ext
31311
cat >>conftest.$ac_ext <<_ACEOF
31312
/* end confdefs.h. */
31313
$ac_includes_default
31314
#include <libpq-fe.h>
31316
rm -f conftest.$ac_objext
31317
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31318
(eval $ac_compile) 2>conftest.er1
31320
grep -v '^ *+' conftest.er1 >conftest.err
31322
cat conftest.err >&5
31323
echo "$as_me:$LINENO: \$? = $ac_status" >&5
31324
(exit $ac_status); } &&
31325
{ ac_try='test -z "$ac_c_werror_flag"
31326
|| test ! -s conftest.err'
31327
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31328
(eval $ac_try) 2>&5
31330
echo "$as_me:$LINENO: \$? = $ac_status" >&5
31331
(exit $ac_status); }; } &&
31332
{ ac_try='test -s conftest.$ac_objext'
31333
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31334
(eval $ac_try) 2>&5
31336
echo "$as_me:$LINENO: \$? = $ac_status" >&5
31337
(exit $ac_status); }; }; then
31338
ac_header_compiler=yes
31340
echo "$as_me: failed program was:" >&5
31341
sed 's/^/| /' conftest.$ac_ext >&5
31343
ac_header_compiler=no
31345
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31346
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31347
echo "${ECHO_T}$ac_header_compiler" >&6
31349
# Is the header present?
31350
echo "$as_me:$LINENO: checking libpq-fe.h presence" >&5
31351
echo $ECHO_N "checking libpq-fe.h presence... $ECHO_C" >&6
31352
cat >conftest.$ac_ext <<_ACEOF
31355
cat confdefs.h >>conftest.$ac_ext
31356
cat >>conftest.$ac_ext <<_ACEOF
31357
/* end confdefs.h. */
31358
#include <libpq-fe.h>
31360
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31361
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31363
grep -v '^ *+' conftest.er1 >conftest.err
31365
cat conftest.err >&5
31366
echo "$as_me:$LINENO: \$? = $ac_status" >&5
31367
(exit $ac_status); } >/dev/null; then
31368
if test -s conftest.err; then
31369
ac_cpp_err=$ac_c_preproc_warn_flag
31370
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31377
if test -z "$ac_cpp_err"; then
31378
ac_header_preproc=yes
31380
echo "$as_me: failed program was:" >&5
31381
sed 's/^/| /' conftest.$ac_ext >&5
31383
ac_header_preproc=no
31385
rm -f conftest.err conftest.$ac_ext
31386
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31387
echo "${ECHO_T}$ac_header_preproc" >&6
31389
# So? What about this header?
31390
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31392
{ echo "$as_me:$LINENO: WARNING: libpq-fe.h: accepted by the compiler, rejected by the preprocessor!" >&5
31393
echo "$as_me: WARNING: libpq-fe.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31394
{ echo "$as_me:$LINENO: WARNING: libpq-fe.h: proceeding with the compiler's result" >&5
31395
echo "$as_me: WARNING: libpq-fe.h: proceeding with the compiler's result" >&2;}
31396
ac_header_preproc=yes
31399
{ echo "$as_me:$LINENO: WARNING: libpq-fe.h: present but cannot be compiled" >&5
31400
echo "$as_me: WARNING: libpq-fe.h: present but cannot be compiled" >&2;}
31401
{ echo "$as_me:$LINENO: WARNING: libpq-fe.h: check for missing prerequisite headers?" >&5
31402
echo "$as_me: WARNING: libpq-fe.h: check for missing prerequisite headers?" >&2;}
31403
{ echo "$as_me:$LINENO: WARNING: libpq-fe.h: see the Autoconf documentation" >&5
31404
echo "$as_me: WARNING: libpq-fe.h: see the Autoconf documentation" >&2;}
31405
{ echo "$as_me:$LINENO: WARNING: libpq-fe.h: section \"Present But Cannot Be Compiled\"" >&5
31406
echo "$as_me: WARNING: libpq-fe.h: section \"Present But Cannot Be Compiled\"" >&2;}
31407
{ echo "$as_me:$LINENO: WARNING: libpq-fe.h: proceeding with the preprocessor's result" >&5
31408
echo "$as_me: WARNING: libpq-fe.h: proceeding with the preprocessor's result" >&2;}
31409
{ echo "$as_me:$LINENO: WARNING: libpq-fe.h: in the future, the compiler will take precedence" >&5
31410
echo "$as_me: WARNING: libpq-fe.h: in the future, the compiler will take precedence" >&2;}
31413
## ------------------------------------------ ##
31414
## Report this to the AC_PACKAGE_NAME lists. ##
31415
## ------------------------------------------ ##
31418
sed "s/^/$as_me: WARNING: /" >&2
31421
echo "$as_me:$LINENO: checking for libpq-fe.h" >&5
31422
echo $ECHO_N "checking for libpq-fe.h... $ECHO_C" >&6
31423
if test "${ac_cv_header_libpq_fe_h+set}" = set; then
31424
echo $ECHO_N "(cached) $ECHO_C" >&6
31426
ac_cv_header_libpq_fe_h=$ac_header_preproc
31428
echo "$as_me:$LINENO: result: $ac_cv_header_libpq_fe_h" >&5
31429
echo "${ECHO_T}$ac_cv_header_libpq_fe_h" >&6
31432
if test $ac_cv_header_libpq_fe_h = yes; then
31433
echo "$as_me:$LINENO: checking for PQsendQueryPrepared in -lpq" >&5
31434
echo $ECHO_N "checking for PQsendQueryPrepared in -lpq... $ECHO_C" >&6
31435
if test "${ac_cv_lib_pq_PQsendQueryPrepared+set}" = set; then
31436
echo $ECHO_N "(cached) $ECHO_C" >&6
31438
ac_check_lib_save_LIBS=$LIBS
31440
cat >conftest.$ac_ext <<_ACEOF
31443
cat confdefs.h >>conftest.$ac_ext
31444
cat >>conftest.$ac_ext <<_ACEOF
31445
/* end confdefs.h. */
31447
/* Override any gcc2 internal prototype to avoid an error. */
31451
/* We use char because int might match the return type of a gcc2
31452
builtin and then its argument prototype would still apply. */
31453
char PQsendQueryPrepared ();
31457
PQsendQueryPrepared ();
31462
rm -f conftest.$ac_objext conftest$ac_exeext
31463
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31464
(eval $ac_link) 2>conftest.er1
31466
grep -v '^ *+' conftest.er1 >conftest.err
31468
cat conftest.err >&5
31469
echo "$as_me:$LINENO: \$? = $ac_status" >&5
31470
(exit $ac_status); } &&
31471
{ ac_try='test -z "$ac_c_werror_flag"
31472
|| test ! -s conftest.err'
31473
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31474
(eval $ac_try) 2>&5
31476
echo "$as_me:$LINENO: \$? = $ac_status" >&5
31477
(exit $ac_status); }; } &&
31478
{ ac_try='test -s conftest$ac_exeext'
31479
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31480
(eval $ac_try) 2>&5
31482
echo "$as_me:$LINENO: \$? = $ac_status" >&5
31483
(exit $ac_status); }; }; then
31484
ac_cv_lib_pq_PQsendQueryPrepared=yes
31486
echo "$as_me: failed program was:" >&5
31487
sed 's/^/| /' conftest.$ac_ext >&5
31489
ac_cv_lib_pq_PQsendQueryPrepared=no
31491
rm -f conftest.err conftest.$ac_objext \
31492
conftest$ac_exeext conftest.$ac_ext
31493
LIBS=$ac_check_lib_save_LIBS
31495
echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQsendQueryPrepared" >&5
31496
echo "${ECHO_T}$ac_cv_lib_pq_PQsendQueryPrepared" >&6
31497
if test $ac_cv_lib_pq_PQsendQueryPrepared = yes; then
31504
if test "$apu_have_pgsql" == "0"; then
31505
if test "${ac_cv_header_postgresql_libpq_fe_h+set}" = set; then
31506
echo "$as_me:$LINENO: checking for postgresql/libpq-fe.h" >&5
31507
echo $ECHO_N "checking for postgresql/libpq-fe.h... $ECHO_C" >&6
31508
if test "${ac_cv_header_postgresql_libpq_fe_h+set}" = set; then
31509
echo $ECHO_N "(cached) $ECHO_C" >&6
31511
echo "$as_me:$LINENO: result: $ac_cv_header_postgresql_libpq_fe_h" >&5
31512
echo "${ECHO_T}$ac_cv_header_postgresql_libpq_fe_h" >&6
31514
# Is the header compilable?
31515
echo "$as_me:$LINENO: checking postgresql/libpq-fe.h usability" >&5
31516
echo $ECHO_N "checking postgresql/libpq-fe.h usability... $ECHO_C" >&6
31517
cat >conftest.$ac_ext <<_ACEOF
31520
cat confdefs.h >>conftest.$ac_ext
31521
cat >>conftest.$ac_ext <<_ACEOF
31522
/* end confdefs.h. */
31523
$ac_includes_default
31524
#include <postgresql/libpq-fe.h>
31526
rm -f conftest.$ac_objext
31527
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31528
(eval $ac_compile) 2>conftest.er1
31530
grep -v '^ *+' conftest.er1 >conftest.err
31532
cat conftest.err >&5
31533
echo "$as_me:$LINENO: \$? = $ac_status" >&5
31534
(exit $ac_status); } &&
31535
{ ac_try='test -z "$ac_c_werror_flag"
31536
|| test ! -s conftest.err'
31537
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31538
(eval $ac_try) 2>&5
31540
echo "$as_me:$LINENO: \$? = $ac_status" >&5
31541
(exit $ac_status); }; } &&
31542
{ ac_try='test -s conftest.$ac_objext'
31543
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31544
(eval $ac_try) 2>&5
31546
echo "$as_me:$LINENO: \$? = $ac_status" >&5
31547
(exit $ac_status); }; }; then
31548
ac_header_compiler=yes
31550
echo "$as_me: failed program was:" >&5
31551
sed 's/^/| /' conftest.$ac_ext >&5
31553
ac_header_compiler=no
31555
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31556
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31557
echo "${ECHO_T}$ac_header_compiler" >&6
31559
# Is the header present?
31560
echo "$as_me:$LINENO: checking postgresql/libpq-fe.h presence" >&5
31561
echo $ECHO_N "checking postgresql/libpq-fe.h presence... $ECHO_C" >&6
31562
cat >conftest.$ac_ext <<_ACEOF
31565
cat confdefs.h >>conftest.$ac_ext
31566
cat >>conftest.$ac_ext <<_ACEOF
31567
/* end confdefs.h. */
31568
#include <postgresql/libpq-fe.h>
31570
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31571
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31573
grep -v '^ *+' conftest.er1 >conftest.err
31575
cat conftest.err >&5
31576
echo "$as_me:$LINENO: \$? = $ac_status" >&5
31577
(exit $ac_status); } >/dev/null; then
31578
if test -s conftest.err; then
31579
ac_cpp_err=$ac_c_preproc_warn_flag
31580
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31587
if test -z "$ac_cpp_err"; then
31588
ac_header_preproc=yes
31590
echo "$as_me: failed program was:" >&5
31591
sed 's/^/| /' conftest.$ac_ext >&5
31593
ac_header_preproc=no
31595
rm -f conftest.err conftest.$ac_ext
31596
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31597
echo "${ECHO_T}$ac_header_preproc" >&6
31599
# So? What about this header?
31600
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31602
{ echo "$as_me:$LINENO: WARNING: postgresql/libpq-fe.h: accepted by the compiler, rejected by the preprocessor!" >&5
31603
echo "$as_me: WARNING: postgresql/libpq-fe.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31604
{ echo "$as_me:$LINENO: WARNING: postgresql/libpq-fe.h: proceeding with the compiler's result" >&5
31605
echo "$as_me: WARNING: postgresql/libpq-fe.h: proceeding with the compiler's result" >&2;}
31606
ac_header_preproc=yes
31609
{ echo "$as_me:$LINENO: WARNING: postgresql/libpq-fe.h: present but cannot be compiled" >&5
31610
echo "$as_me: WARNING: postgresql/libpq-fe.h: present but cannot be compiled" >&2;}
31611
{ echo "$as_me:$LINENO: WARNING: postgresql/libpq-fe.h: check for missing prerequisite headers?" >&5
31612
echo "$as_me: WARNING: postgresql/libpq-fe.h: check for missing prerequisite headers?" >&2;}
31613
{ echo "$as_me:$LINENO: WARNING: postgresql/libpq-fe.h: see the Autoconf documentation" >&5
31614
echo "$as_me: WARNING: postgresql/libpq-fe.h: see the Autoconf documentation" >&2;}
31615
{ echo "$as_me:$LINENO: WARNING: postgresql/libpq-fe.h: section \"Present But Cannot Be Compiled\"" >&5
31616
echo "$as_me: WARNING: postgresql/libpq-fe.h: section \"Present But Cannot Be Compiled\"" >&2;}
31617
{ echo "$as_me:$LINENO: WARNING: postgresql/libpq-fe.h: proceeding with the preprocessor's result" >&5
31618
echo "$as_me: WARNING: postgresql/libpq-fe.h: proceeding with the preprocessor's result" >&2;}
31619
{ echo "$as_me:$LINENO: WARNING: postgresql/libpq-fe.h: in the future, the compiler will take precedence" >&5
31620
echo "$as_me: WARNING: postgresql/libpq-fe.h: in the future, the compiler will take precedence" >&2;}
31623
## ------------------------------------------ ##
31624
## Report this to the AC_PACKAGE_NAME lists. ##
31625
## ------------------------------------------ ##
31628
sed "s/^/$as_me: WARNING: /" >&2
31631
echo "$as_me:$LINENO: checking for postgresql/libpq-fe.h" >&5
31632
echo $ECHO_N "checking for postgresql/libpq-fe.h... $ECHO_C" >&6
31633
if test "${ac_cv_header_postgresql_libpq_fe_h+set}" = set; then
31634
echo $ECHO_N "(cached) $ECHO_C" >&6
31636
ac_cv_header_postgresql_libpq_fe_h=$ac_header_preproc
31638
echo "$as_me:$LINENO: result: $ac_cv_header_postgresql_libpq_fe_h" >&5
31639
echo "${ECHO_T}$ac_cv_header_postgresql_libpq_fe_h" >&6
31642
if test $ac_cv_header_postgresql_libpq_fe_h = yes; then
31643
echo "$as_me:$LINENO: checking for PQsendQueryPrepared in -lpq" >&5
31644
echo $ECHO_N "checking for PQsendQueryPrepared in -lpq... $ECHO_C" >&6
31645
if test "${ac_cv_lib_pq_PQsendQueryPrepared+set}" = set; then
31646
echo $ECHO_N "(cached) $ECHO_C" >&6
31648
ac_check_lib_save_LIBS=$LIBS
31650
cat >conftest.$ac_ext <<_ACEOF
31653
cat confdefs.h >>conftest.$ac_ext
31654
cat >>conftest.$ac_ext <<_ACEOF
31655
/* end confdefs.h. */
31657
/* Override any gcc2 internal prototype to avoid an error. */
31661
/* We use char because int might match the return type of a gcc2
31662
builtin and then its argument prototype would still apply. */
31663
char PQsendQueryPrepared ();
31667
PQsendQueryPrepared ();
31672
rm -f conftest.$ac_objext conftest$ac_exeext
31673
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31674
(eval $ac_link) 2>conftest.er1
31676
grep -v '^ *+' conftest.er1 >conftest.err
31678
cat conftest.err >&5
31679
echo "$as_me:$LINENO: \$? = $ac_status" >&5
31680
(exit $ac_status); } &&
31681
{ ac_try='test -z "$ac_c_werror_flag"
31682
|| test ! -s conftest.err'
31683
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31684
(eval $ac_try) 2>&5
31686
echo "$as_me:$LINENO: \$? = $ac_status" >&5
31687
(exit $ac_status); }; } &&
31688
{ ac_try='test -s conftest$ac_exeext'
31689
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31690
(eval $ac_try) 2>&5
31692
echo "$as_me:$LINENO: \$? = $ac_status" >&5
31693
(exit $ac_status); }; }; then
31694
ac_cv_lib_pq_PQsendQueryPrepared=yes
31696
echo "$as_me: failed program was:" >&5
31697
sed 's/^/| /' conftest.$ac_ext >&5
31699
ac_cv_lib_pq_PQsendQueryPrepared=no
31701
rm -f conftest.err conftest.$ac_objext \
31702
conftest$ac_exeext conftest.$ac_ext
31703
LIBS=$ac_check_lib_save_LIBS
31705
echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQsendQueryPrepared" >&5
31706
echo "${ECHO_T}$ac_cv_lib_pq_PQsendQueryPrepared" >&6
31707
if test $ac_cv_lib_pq_PQsendQueryPrepared = yes; then
31714
if test "$apu_have_pgsql" != "0"; then
31716
if test "x$APRUTIL_INCLUDES" = "x"; then
31717
test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$withval/include/postgresql\""
31718
APRUTIL_INCLUDES="-I$withval/include/postgresql"
31720
apr_addto_bugger="-I$withval/include/postgresql"
31721
for i in $apr_addto_bugger; do
31722
apr_addto_duplicate="0"
31723
for j in $APRUTIL_INCLUDES; do
31724
if test "x$i" = "x$j"; then
31725
apr_addto_duplicate="1"
31729
if test $apr_addto_duplicate = "0"; then
31730
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES"
31731
APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
31738
elif test "$withval" = "no"; then
31741
CPPFLAGS="-I$withval/include"
31742
LIBS="-L$withval/lib "
31744
{ echo "$as_me:$LINENO: checking for pgsql in $withval" >&5
31745
echo "$as_me: checking for pgsql in $withval" >&6;}
31746
if test "${ac_cv_header_libpq_fe_h+set}" = set; then
31747
echo "$as_me:$LINENO: checking for libpq-fe.h" >&5
31748
echo $ECHO_N "checking for libpq-fe.h... $ECHO_C" >&6
31749
if test "${ac_cv_header_libpq_fe_h+set}" = set; then
31750
echo $ECHO_N "(cached) $ECHO_C" >&6
31752
echo "$as_me:$LINENO: result: $ac_cv_header_libpq_fe_h" >&5
31753
echo "${ECHO_T}$ac_cv_header_libpq_fe_h" >&6
31755
# Is the header compilable?
31756
echo "$as_me:$LINENO: checking libpq-fe.h usability" >&5
31757
echo $ECHO_N "checking libpq-fe.h usability... $ECHO_C" >&6
31758
cat >conftest.$ac_ext <<_ACEOF
31761
cat confdefs.h >>conftest.$ac_ext
31762
cat >>conftest.$ac_ext <<_ACEOF
31763
/* end confdefs.h. */
31764
$ac_includes_default
31765
#include <libpq-fe.h>
31767
rm -f conftest.$ac_objext
31768
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31769
(eval $ac_compile) 2>conftest.er1
31771
grep -v '^ *+' conftest.er1 >conftest.err
31773
cat conftest.err >&5
31774
echo "$as_me:$LINENO: \$? = $ac_status" >&5
31775
(exit $ac_status); } &&
31776
{ ac_try='test -z "$ac_c_werror_flag"
31777
|| test ! -s conftest.err'
31778
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31779
(eval $ac_try) 2>&5
31781
echo "$as_me:$LINENO: \$? = $ac_status" >&5
31782
(exit $ac_status); }; } &&
31783
{ ac_try='test -s conftest.$ac_objext'
31784
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31785
(eval $ac_try) 2>&5
31787
echo "$as_me:$LINENO: \$? = $ac_status" >&5
31788
(exit $ac_status); }; }; then
31789
ac_header_compiler=yes
31791
echo "$as_me: failed program was:" >&5
31792
sed 's/^/| /' conftest.$ac_ext >&5
31794
ac_header_compiler=no
31796
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31797
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31798
echo "${ECHO_T}$ac_header_compiler" >&6
31800
# Is the header present?
31801
echo "$as_me:$LINENO: checking libpq-fe.h presence" >&5
31802
echo $ECHO_N "checking libpq-fe.h presence... $ECHO_C" >&6
31803
cat >conftest.$ac_ext <<_ACEOF
31806
cat confdefs.h >>conftest.$ac_ext
31807
cat >>conftest.$ac_ext <<_ACEOF
31808
/* end confdefs.h. */
31809
#include <libpq-fe.h>
31811
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31812
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31814
grep -v '^ *+' conftest.er1 >conftest.err
31816
cat conftest.err >&5
31817
echo "$as_me:$LINENO: \$? = $ac_status" >&5
31818
(exit $ac_status); } >/dev/null; then
31819
if test -s conftest.err; then
31820
ac_cpp_err=$ac_c_preproc_warn_flag
31821
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31828
if test -z "$ac_cpp_err"; then
31829
ac_header_preproc=yes
31831
echo "$as_me: failed program was:" >&5
31832
sed 's/^/| /' conftest.$ac_ext >&5
31834
ac_header_preproc=no
31836
rm -f conftest.err conftest.$ac_ext
31837
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31838
echo "${ECHO_T}$ac_header_preproc" >&6
31840
# So? What about this header?
31841
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31843
{ echo "$as_me:$LINENO: WARNING: libpq-fe.h: accepted by the compiler, rejected by the preprocessor!" >&5
31844
echo "$as_me: WARNING: libpq-fe.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31845
{ echo "$as_me:$LINENO: WARNING: libpq-fe.h: proceeding with the compiler's result" >&5
31846
echo "$as_me: WARNING: libpq-fe.h: proceeding with the compiler's result" >&2;}
31847
ac_header_preproc=yes
31850
{ echo "$as_me:$LINENO: WARNING: libpq-fe.h: present but cannot be compiled" >&5
31851
echo "$as_me: WARNING: libpq-fe.h: present but cannot be compiled" >&2;}
31852
{ echo "$as_me:$LINENO: WARNING: libpq-fe.h: check for missing prerequisite headers?" >&5
31853
echo "$as_me: WARNING: libpq-fe.h: check for missing prerequisite headers?" >&2;}
31854
{ echo "$as_me:$LINENO: WARNING: libpq-fe.h: see the Autoconf documentation" >&5
31855
echo "$as_me: WARNING: libpq-fe.h: see the Autoconf documentation" >&2;}
31856
{ echo "$as_me:$LINENO: WARNING: libpq-fe.h: section \"Present But Cannot Be Compiled\"" >&5
31857
echo "$as_me: WARNING: libpq-fe.h: section \"Present But Cannot Be Compiled\"" >&2;}
31858
{ echo "$as_me:$LINENO: WARNING: libpq-fe.h: proceeding with the preprocessor's result" >&5
31859
echo "$as_me: WARNING: libpq-fe.h: proceeding with the preprocessor's result" >&2;}
31860
{ echo "$as_me:$LINENO: WARNING: libpq-fe.h: in the future, the compiler will take precedence" >&5
31861
echo "$as_me: WARNING: libpq-fe.h: in the future, the compiler will take precedence" >&2;}
31864
## ------------------------------------------ ##
31865
## Report this to the AC_PACKAGE_NAME lists. ##
31866
## ------------------------------------------ ##
31869
sed "s/^/$as_me: WARNING: /" >&2
31872
echo "$as_me:$LINENO: checking for libpq-fe.h" >&5
31873
echo $ECHO_N "checking for libpq-fe.h... $ECHO_C" >&6
31874
if test "${ac_cv_header_libpq_fe_h+set}" = set; then
31875
echo $ECHO_N "(cached) $ECHO_C" >&6
31877
ac_cv_header_libpq_fe_h=$ac_header_preproc
31879
echo "$as_me:$LINENO: result: $ac_cv_header_libpq_fe_h" >&5
31880
echo "${ECHO_T}$ac_cv_header_libpq_fe_h" >&6
31883
if test $ac_cv_header_libpq_fe_h = yes; then
31884
echo "$as_me:$LINENO: checking for PQsendQueryPrepared in -lpq" >&5
31885
echo $ECHO_N "checking for PQsendQueryPrepared in -lpq... $ECHO_C" >&6
31886
if test "${ac_cv_lib_pq_PQsendQueryPrepared+set}" = set; then
31887
echo $ECHO_N "(cached) $ECHO_C" >&6
31889
ac_check_lib_save_LIBS=$LIBS
31891
cat >conftest.$ac_ext <<_ACEOF
31894
cat confdefs.h >>conftest.$ac_ext
31895
cat >>conftest.$ac_ext <<_ACEOF
31896
/* end confdefs.h. */
31898
/* Override any gcc2 internal prototype to avoid an error. */
31902
/* We use char because int might match the return type of a gcc2
31903
builtin and then its argument prototype would still apply. */
31904
char PQsendQueryPrepared ();
31908
PQsendQueryPrepared ();
31913
rm -f conftest.$ac_objext conftest$ac_exeext
31914
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31915
(eval $ac_link) 2>conftest.er1
31917
grep -v '^ *+' conftest.er1 >conftest.err
31919
cat conftest.err >&5
31920
echo "$as_me:$LINENO: \$? = $ac_status" >&5
31921
(exit $ac_status); } &&
31922
{ ac_try='test -z "$ac_c_werror_flag"
31923
|| test ! -s conftest.err'
31924
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31925
(eval $ac_try) 2>&5
31927
echo "$as_me:$LINENO: \$? = $ac_status" >&5
31928
(exit $ac_status); }; } &&
31929
{ ac_try='test -s conftest$ac_exeext'
31930
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31931
(eval $ac_try) 2>&5
31933
echo "$as_me:$LINENO: \$? = $ac_status" >&5
31934
(exit $ac_status); }; }; then
31935
ac_cv_lib_pq_PQsendQueryPrepared=yes
31937
echo "$as_me: failed program was:" >&5
31938
sed 's/^/| /' conftest.$ac_ext >&5
31940
ac_cv_lib_pq_PQsendQueryPrepared=no
31942
rm -f conftest.err conftest.$ac_objext \
31943
conftest$ac_exeext conftest.$ac_ext
31944
LIBS=$ac_check_lib_save_LIBS
31946
echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQsendQueryPrepared" >&5
31947
echo "${ECHO_T}$ac_cv_lib_pq_PQsendQueryPrepared" >&6
31948
if test $ac_cv_lib_pq_PQsendQueryPrepared = yes; then
31955
if test "$apu_have_pgsql" != "0"; then
31957
if test "x$APRUTIL_LDFLAGS" = "x"; then
31958
test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$withval/lib\""
31959
APRUTIL_LDFLAGS="-L$withval/lib"
31961
apr_addto_bugger="-L$withval/lib"
31962
for i in $apr_addto_bugger; do
31963
apr_addto_duplicate="0"
31964
for j in $APRUTIL_LDFLAGS; do
31965
if test "x$i" = "x$j"; then
31966
apr_addto_duplicate="1"
31970
if test $apr_addto_duplicate = "0"; then
31971
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS"
31972
APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
31978
if test "x$APRUTIL_INCLUDES" = "x"; then
31979
test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$withval/include\""
31980
APRUTIL_INCLUDES="-I$withval/include"
31982
apr_addto_bugger="-I$withval/include"
31983
for i in $apr_addto_bugger; do
31984
apr_addto_duplicate="0"
31985
for j in $APRUTIL_INCLUDES; do
31986
if test "x$i" = "x$j"; then
31987
apr_addto_duplicate="1"
31991
if test $apr_addto_duplicate = "0"; then
31992
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES"
31993
APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
31999
if test "$apu_have_pgsql" != "1"; then
32000
if test "${ac_cv_header_postgresql_libpq_fe_h+set}" = set; then
32001
echo "$as_me:$LINENO: checking for postgresql/libpq-fe.h" >&5
32002
echo $ECHO_N "checking for postgresql/libpq-fe.h... $ECHO_C" >&6
32003
if test "${ac_cv_header_postgresql_libpq_fe_h+set}" = set; then
32004
echo $ECHO_N "(cached) $ECHO_C" >&6
32006
echo "$as_me:$LINENO: result: $ac_cv_header_postgresql_libpq_fe_h" >&5
32007
echo "${ECHO_T}$ac_cv_header_postgresql_libpq_fe_h" >&6
32009
# Is the header compilable?
32010
echo "$as_me:$LINENO: checking postgresql/libpq-fe.h usability" >&5
32011
echo $ECHO_N "checking postgresql/libpq-fe.h usability... $ECHO_C" >&6
32012
cat >conftest.$ac_ext <<_ACEOF
32015
cat confdefs.h >>conftest.$ac_ext
32016
cat >>conftest.$ac_ext <<_ACEOF
32017
/* end confdefs.h. */
32018
$ac_includes_default
32019
#include <postgresql/libpq-fe.h>
32021
rm -f conftest.$ac_objext
32022
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32023
(eval $ac_compile) 2>conftest.er1
32025
grep -v '^ *+' conftest.er1 >conftest.err
32027
cat conftest.err >&5
32028
echo "$as_me:$LINENO: \$? = $ac_status" >&5
32029
(exit $ac_status); } &&
32030
{ ac_try='test -z "$ac_c_werror_flag"
32031
|| test ! -s conftest.err'
32032
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32033
(eval $ac_try) 2>&5
32035
echo "$as_me:$LINENO: \$? = $ac_status" >&5
32036
(exit $ac_status); }; } &&
32037
{ ac_try='test -s conftest.$ac_objext'
32038
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32039
(eval $ac_try) 2>&5
32041
echo "$as_me:$LINENO: \$? = $ac_status" >&5
32042
(exit $ac_status); }; }; then
32043
ac_header_compiler=yes
32045
echo "$as_me: failed program was:" >&5
32046
sed 's/^/| /' conftest.$ac_ext >&5
32048
ac_header_compiler=no
32050
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32051
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32052
echo "${ECHO_T}$ac_header_compiler" >&6
32054
# Is the header present?
32055
echo "$as_me:$LINENO: checking postgresql/libpq-fe.h presence" >&5
32056
echo $ECHO_N "checking postgresql/libpq-fe.h presence... $ECHO_C" >&6
32057
cat >conftest.$ac_ext <<_ACEOF
32060
cat confdefs.h >>conftest.$ac_ext
32061
cat >>conftest.$ac_ext <<_ACEOF
32062
/* end confdefs.h. */
32063
#include <postgresql/libpq-fe.h>
32065
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32066
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32068
grep -v '^ *+' conftest.er1 >conftest.err
32070
cat conftest.err >&5
32071
echo "$as_me:$LINENO: \$? = $ac_status" >&5
32072
(exit $ac_status); } >/dev/null; then
32073
if test -s conftest.err; then
32074
ac_cpp_err=$ac_c_preproc_warn_flag
32075
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32082
if test -z "$ac_cpp_err"; then
32083
ac_header_preproc=yes
32085
echo "$as_me: failed program was:" >&5
32086
sed 's/^/| /' conftest.$ac_ext >&5
32088
ac_header_preproc=no
32090
rm -f conftest.err conftest.$ac_ext
32091
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32092
echo "${ECHO_T}$ac_header_preproc" >&6
32094
# So? What about this header?
32095
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32097
{ echo "$as_me:$LINENO: WARNING: postgresql/libpq-fe.h: accepted by the compiler, rejected by the preprocessor!" >&5
32098
echo "$as_me: WARNING: postgresql/libpq-fe.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32099
{ echo "$as_me:$LINENO: WARNING: postgresql/libpq-fe.h: proceeding with the compiler's result" >&5
32100
echo "$as_me: WARNING: postgresql/libpq-fe.h: proceeding with the compiler's result" >&2;}
32101
ac_header_preproc=yes
32104
{ echo "$as_me:$LINENO: WARNING: postgresql/libpq-fe.h: present but cannot be compiled" >&5
32105
echo "$as_me: WARNING: postgresql/libpq-fe.h: present but cannot be compiled" >&2;}
32106
{ echo "$as_me:$LINENO: WARNING: postgresql/libpq-fe.h: check for missing prerequisite headers?" >&5
32107
echo "$as_me: WARNING: postgresql/libpq-fe.h: check for missing prerequisite headers?" >&2;}
32108
{ echo "$as_me:$LINENO: WARNING: postgresql/libpq-fe.h: see the Autoconf documentation" >&5
32109
echo "$as_me: WARNING: postgresql/libpq-fe.h: see the Autoconf documentation" >&2;}
32110
{ echo "$as_me:$LINENO: WARNING: postgresql/libpq-fe.h: section \"Present But Cannot Be Compiled\"" >&5
32111
echo "$as_me: WARNING: postgresql/libpq-fe.h: section \"Present But Cannot Be Compiled\"" >&2;}
32112
{ echo "$as_me:$LINENO: WARNING: postgresql/libpq-fe.h: proceeding with the preprocessor's result" >&5
32113
echo "$as_me: WARNING: postgresql/libpq-fe.h: proceeding with the preprocessor's result" >&2;}
32114
{ echo "$as_me:$LINENO: WARNING: postgresql/libpq-fe.h: in the future, the compiler will take precedence" >&5
32115
echo "$as_me: WARNING: postgresql/libpq-fe.h: in the future, the compiler will take precedence" >&2;}
32118
## ------------------------------------------ ##
32119
## Report this to the AC_PACKAGE_NAME lists. ##
32120
## ------------------------------------------ ##
32123
sed "s/^/$as_me: WARNING: /" >&2
32126
echo "$as_me:$LINENO: checking for postgresql/libpq-fe.h" >&5
32127
echo $ECHO_N "checking for postgresql/libpq-fe.h... $ECHO_C" >&6
32128
if test "${ac_cv_header_postgresql_libpq_fe_h+set}" = set; then
32129
echo $ECHO_N "(cached) $ECHO_C" >&6
32131
ac_cv_header_postgresql_libpq_fe_h=$ac_header_preproc
32133
echo "$as_me:$LINENO: result: $ac_cv_header_postgresql_libpq_fe_h" >&5
32134
echo "${ECHO_T}$ac_cv_header_postgresql_libpq_fe_h" >&6
32137
if test $ac_cv_header_postgresql_libpq_fe_h = yes; then
32138
echo "$as_me:$LINENO: checking for PQsendQueryPrepared in -lpq" >&5
32139
echo $ECHO_N "checking for PQsendQueryPrepared in -lpq... $ECHO_C" >&6
32140
if test "${ac_cv_lib_pq_PQsendQueryPrepared+set}" = set; then
32141
echo $ECHO_N "(cached) $ECHO_C" >&6
32143
ac_check_lib_save_LIBS=$LIBS
32145
cat >conftest.$ac_ext <<_ACEOF
32148
cat confdefs.h >>conftest.$ac_ext
32149
cat >>conftest.$ac_ext <<_ACEOF
32150
/* end confdefs.h. */
32152
/* Override any gcc2 internal prototype to avoid an error. */
32156
/* We use char because int might match the return type of a gcc2
32157
builtin and then its argument prototype would still apply. */
32158
char PQsendQueryPrepared ();
32162
PQsendQueryPrepared ();
32167
rm -f conftest.$ac_objext conftest$ac_exeext
32168
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32169
(eval $ac_link) 2>conftest.er1
32171
grep -v '^ *+' conftest.er1 >conftest.err
32173
cat conftest.err >&5
32174
echo "$as_me:$LINENO: \$? = $ac_status" >&5
32175
(exit $ac_status); } &&
32176
{ ac_try='test -z "$ac_c_werror_flag"
32177
|| test ! -s conftest.err'
32178
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32179
(eval $ac_try) 2>&5
32181
echo "$as_me:$LINENO: \$? = $ac_status" >&5
32182
(exit $ac_status); }; } &&
32183
{ ac_try='test -s conftest$ac_exeext'
32184
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32185
(eval $ac_try) 2>&5
32187
echo "$as_me:$LINENO: \$? = $ac_status" >&5
32188
(exit $ac_status); }; }; then
32189
ac_cv_lib_pq_PQsendQueryPrepared=yes
32191
echo "$as_me: failed program was:" >&5
32192
sed 's/^/| /' conftest.$ac_ext >&5
32194
ac_cv_lib_pq_PQsendQueryPrepared=no
32196
rm -f conftest.err conftest.$ac_objext \
32197
conftest$ac_exeext conftest.$ac_ext
32198
LIBS=$ac_check_lib_save_LIBS
32200
echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQsendQueryPrepared" >&5
32201
echo "${ECHO_T}$ac_cv_lib_pq_PQsendQueryPrepared" >&6
32202
if test $ac_cv_lib_pq_PQsendQueryPrepared = yes; then
32209
if test "$apu_have_pgsql" != "0"; then
32211
if test "x$APRUTIL_INCLUDES" = "x"; then
32212
test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$withval/include/postgresql\""
32213
APRUTIL_INCLUDES="-I$withval/include/postgresql"
32215
apr_addto_bugger="-I$withval/include/postgresql"
32216
for i in $apr_addto_bugger; do
32217
apr_addto_duplicate="0"
32218
for j in $APRUTIL_INCLUDES; do
32219
if test "x$i" = "x$j"; then
32220
apr_addto_duplicate="1"
32224
if test $apr_addto_duplicate = "0"; then
32225
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES"
32226
APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
32232
if test "x$APRUTIL_LDFLAGS" = "x"; then
32233
test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$withval/lib\""
32234
APRUTIL_LDFLAGS="-L$withval/lib"
32236
apr_addto_bugger="-L$withval/lib"
32237
for i in $apr_addto_bugger; do
32238
apr_addto_duplicate="0"
32239
for j in $APRUTIL_LDFLAGS; do
32240
if test "x$i" = "x$j"; then
32241
apr_addto_duplicate="1"
32245
if test $apr_addto_duplicate = "0"; then
32246
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS"
32247
APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
32259
if test "${ac_cv_header_libpq_fe_h+set}" = set; then
32260
echo "$as_me:$LINENO: checking for libpq-fe.h" >&5
32261
echo $ECHO_N "checking for libpq-fe.h... $ECHO_C" >&6
32262
if test "${ac_cv_header_libpq_fe_h+set}" = set; then
32263
echo $ECHO_N "(cached) $ECHO_C" >&6
32265
echo "$as_me:$LINENO: result: $ac_cv_header_libpq_fe_h" >&5
32266
echo "${ECHO_T}$ac_cv_header_libpq_fe_h" >&6
32268
# Is the header compilable?
32269
echo "$as_me:$LINENO: checking libpq-fe.h usability" >&5
32270
echo $ECHO_N "checking libpq-fe.h usability... $ECHO_C" >&6
32271
cat >conftest.$ac_ext <<_ACEOF
32274
cat confdefs.h >>conftest.$ac_ext
32275
cat >>conftest.$ac_ext <<_ACEOF
32276
/* end confdefs.h. */
32277
$ac_includes_default
32278
#include <libpq-fe.h>
32280
rm -f conftest.$ac_objext
32281
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32282
(eval $ac_compile) 2>conftest.er1
32284
grep -v '^ *+' conftest.er1 >conftest.err
32286
cat conftest.err >&5
32287
echo "$as_me:$LINENO: \$? = $ac_status" >&5
32288
(exit $ac_status); } &&
32289
{ ac_try='test -z "$ac_c_werror_flag"
32290
|| test ! -s conftest.err'
32291
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32292
(eval $ac_try) 2>&5
32294
echo "$as_me:$LINENO: \$? = $ac_status" >&5
32295
(exit $ac_status); }; } &&
32296
{ ac_try='test -s conftest.$ac_objext'
32297
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32298
(eval $ac_try) 2>&5
32300
echo "$as_me:$LINENO: \$? = $ac_status" >&5
32301
(exit $ac_status); }; }; then
32302
ac_header_compiler=yes
32304
echo "$as_me: failed program was:" >&5
32305
sed 's/^/| /' conftest.$ac_ext >&5
32307
ac_header_compiler=no
32309
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32310
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32311
echo "${ECHO_T}$ac_header_compiler" >&6
32313
# Is the header present?
32314
echo "$as_me:$LINENO: checking libpq-fe.h presence" >&5
32315
echo $ECHO_N "checking libpq-fe.h presence... $ECHO_C" >&6
32316
cat >conftest.$ac_ext <<_ACEOF
32319
cat confdefs.h >>conftest.$ac_ext
32320
cat >>conftest.$ac_ext <<_ACEOF
32321
/* end confdefs.h. */
32322
#include <libpq-fe.h>
32324
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32325
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32327
grep -v '^ *+' conftest.er1 >conftest.err
32329
cat conftest.err >&5
32330
echo "$as_me:$LINENO: \$? = $ac_status" >&5
32331
(exit $ac_status); } >/dev/null; then
32332
if test -s conftest.err; then
32333
ac_cpp_err=$ac_c_preproc_warn_flag
32334
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32341
if test -z "$ac_cpp_err"; then
32342
ac_header_preproc=yes
32344
echo "$as_me: failed program was:" >&5
32345
sed 's/^/| /' conftest.$ac_ext >&5
32347
ac_header_preproc=no
32349
rm -f conftest.err conftest.$ac_ext
32350
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32351
echo "${ECHO_T}$ac_header_preproc" >&6
32353
# So? What about this header?
32354
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32356
{ echo "$as_me:$LINENO: WARNING: libpq-fe.h: accepted by the compiler, rejected by the preprocessor!" >&5
32357
echo "$as_me: WARNING: libpq-fe.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32358
{ echo "$as_me:$LINENO: WARNING: libpq-fe.h: proceeding with the compiler's result" >&5
32359
echo "$as_me: WARNING: libpq-fe.h: proceeding with the compiler's result" >&2;}
32360
ac_header_preproc=yes
32363
{ echo "$as_me:$LINENO: WARNING: libpq-fe.h: present but cannot be compiled" >&5
32364
echo "$as_me: WARNING: libpq-fe.h: present but cannot be compiled" >&2;}
32365
{ echo "$as_me:$LINENO: WARNING: libpq-fe.h: check for missing prerequisite headers?" >&5
32366
echo "$as_me: WARNING: libpq-fe.h: check for missing prerequisite headers?" >&2;}
32367
{ echo "$as_me:$LINENO: WARNING: libpq-fe.h: see the Autoconf documentation" >&5
32368
echo "$as_me: WARNING: libpq-fe.h: see the Autoconf documentation" >&2;}
32369
{ echo "$as_me:$LINENO: WARNING: libpq-fe.h: section \"Present But Cannot Be Compiled\"" >&5
32370
echo "$as_me: WARNING: libpq-fe.h: section \"Present But Cannot Be Compiled\"" >&2;}
32371
{ echo "$as_me:$LINENO: WARNING: libpq-fe.h: proceeding with the preprocessor's result" >&5
32372
echo "$as_me: WARNING: libpq-fe.h: proceeding with the preprocessor's result" >&2;}
32373
{ echo "$as_me:$LINENO: WARNING: libpq-fe.h: in the future, the compiler will take precedence" >&5
32374
echo "$as_me: WARNING: libpq-fe.h: in the future, the compiler will take precedence" >&2;}
32377
## ------------------------------------------ ##
32378
## Report this to the AC_PACKAGE_NAME lists. ##
32379
## ------------------------------------------ ##
32382
sed "s/^/$as_me: WARNING: /" >&2
32385
echo "$as_me:$LINENO: checking for libpq-fe.h" >&5
32386
echo $ECHO_N "checking for libpq-fe.h... $ECHO_C" >&6
32387
if test "${ac_cv_header_libpq_fe_h+set}" = set; then
32388
echo $ECHO_N "(cached) $ECHO_C" >&6
32390
ac_cv_header_libpq_fe_h=$ac_header_preproc
32392
echo "$as_me:$LINENO: result: $ac_cv_header_libpq_fe_h" >&5
32393
echo "${ECHO_T}$ac_cv_header_libpq_fe_h" >&6
32396
if test $ac_cv_header_libpq_fe_h = yes; then
32397
echo "$as_me:$LINENO: checking for PQsendQueryPrepared in -lpq" >&5
32398
echo $ECHO_N "checking for PQsendQueryPrepared in -lpq... $ECHO_C" >&6
32399
if test "${ac_cv_lib_pq_PQsendQueryPrepared+set}" = set; then
32400
echo $ECHO_N "(cached) $ECHO_C" >&6
32402
ac_check_lib_save_LIBS=$LIBS
32404
cat >conftest.$ac_ext <<_ACEOF
32407
cat confdefs.h >>conftest.$ac_ext
32408
cat >>conftest.$ac_ext <<_ACEOF
32409
/* end confdefs.h. */
32411
/* Override any gcc2 internal prototype to avoid an error. */
32415
/* We use char because int might match the return type of a gcc2
32416
builtin and then its argument prototype would still apply. */
32417
char PQsendQueryPrepared ();
32421
PQsendQueryPrepared ();
32426
rm -f conftest.$ac_objext conftest$ac_exeext
32427
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32428
(eval $ac_link) 2>conftest.er1
32430
grep -v '^ *+' conftest.er1 >conftest.err
32432
cat conftest.err >&5
32433
echo "$as_me:$LINENO: \$? = $ac_status" >&5
32434
(exit $ac_status); } &&
32435
{ ac_try='test -z "$ac_c_werror_flag"
32436
|| test ! -s conftest.err'
32437
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32438
(eval $ac_try) 2>&5
32440
echo "$as_me:$LINENO: \$? = $ac_status" >&5
32441
(exit $ac_status); }; } &&
32442
{ ac_try='test -s conftest$ac_exeext'
32443
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32444
(eval $ac_try) 2>&5
32446
echo "$as_me:$LINENO: \$? = $ac_status" >&5
32447
(exit $ac_status); }; }; then
32448
ac_cv_lib_pq_PQsendQueryPrepared=yes
32450
echo "$as_me: failed program was:" >&5
32451
sed 's/^/| /' conftest.$ac_ext >&5
32453
ac_cv_lib_pq_PQsendQueryPrepared=no
32455
rm -f conftest.err conftest.$ac_objext \
32456
conftest$ac_exeext conftest.$ac_ext
32457
LIBS=$ac_check_lib_save_LIBS
32459
echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQsendQueryPrepared" >&5
32460
echo "${ECHO_T}$ac_cv_lib_pq_PQsendQueryPrepared" >&6
32461
if test $ac_cv_lib_pq_PQsendQueryPrepared = yes; then
32471
if test "$apu_have_pgsql" = "1"; then
32473
if test "x$APRUTIL_EXPORT_LIBS" = "x"; then
32474
test "x$silent" != "xyes" && echo " setting APRUTIL_EXPORT_LIBS to \"-lpq\""
32475
APRUTIL_EXPORT_LIBS="-lpq"
32477
apr_addto_bugger="-lpq"
32478
for i in $apr_addto_bugger; do
32479
apr_addto_duplicate="0"
32480
for j in $APRUTIL_EXPORT_LIBS; do
32481
if test "x$i" = "x$j"; then
32482
apr_addto_duplicate="1"
32486
if test $apr_addto_duplicate = "0"; then
32487
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_EXPORT_LIBS"
32488
APRUTIL_EXPORT_LIBS="$APRUTIL_EXPORT_LIBS $i"
32494
if test "x$APRUTIL_LIBS" = "x"; then
32495
test "x$silent" != "xyes" && echo " setting APRUTIL_LIBS to \"-lpq\""
32496
APRUTIL_LIBS="-lpq"
32498
apr_addto_bugger="-lpq"
32499
for i in $apr_addto_bugger; do
32500
apr_addto_duplicate="0"
32501
for j in $APRUTIL_LIBS; do
32502
if test "x$i" = "x$j"; then
32503
apr_addto_duplicate="1"
32507
if test $apr_addto_duplicate = "0"; then
32508
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LIBS"
32509
APRUTIL_LIBS="$APRUTIL_LIBS $i"
32520
# Check whether --with-mysql or --without-mysql was given.
32521
if test "${with_mysql+set}" = set; then
32522
withval="$with_mysql"
32525
if test "$withval" = "yes"; then
32526
if test "${ac_cv_header_mysql_h+set}" = set; then
32527
echo "$as_me:$LINENO: checking for mysql.h" >&5
32528
echo $ECHO_N "checking for mysql.h... $ECHO_C" >&6
32529
if test "${ac_cv_header_mysql_h+set}" = set; then
32530
echo $ECHO_N "(cached) $ECHO_C" >&6
32532
echo "$as_me:$LINENO: result: $ac_cv_header_mysql_h" >&5
32533
echo "${ECHO_T}$ac_cv_header_mysql_h" >&6
32535
# Is the header compilable?
32536
echo "$as_me:$LINENO: checking mysql.h usability" >&5
32537
echo $ECHO_N "checking mysql.h usability... $ECHO_C" >&6
32538
cat >conftest.$ac_ext <<_ACEOF
32541
cat confdefs.h >>conftest.$ac_ext
32542
cat >>conftest.$ac_ext <<_ACEOF
32543
/* end confdefs.h. */
32544
$ac_includes_default
32547
rm -f conftest.$ac_objext
32548
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32549
(eval $ac_compile) 2>conftest.er1
32551
grep -v '^ *+' conftest.er1 >conftest.err
32553
cat conftest.err >&5
32554
echo "$as_me:$LINENO: \$? = $ac_status" >&5
32555
(exit $ac_status); } &&
32556
{ ac_try='test -z "$ac_c_werror_flag"
32557
|| test ! -s conftest.err'
32558
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32559
(eval $ac_try) 2>&5
32561
echo "$as_me:$LINENO: \$? = $ac_status" >&5
32562
(exit $ac_status); }; } &&
32563
{ ac_try='test -s conftest.$ac_objext'
32564
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32565
(eval $ac_try) 2>&5
32567
echo "$as_me:$LINENO: \$? = $ac_status" >&5
32568
(exit $ac_status); }; }; then
32569
ac_header_compiler=yes
32571
echo "$as_me: failed program was:" >&5
32572
sed 's/^/| /' conftest.$ac_ext >&5
32574
ac_header_compiler=no
32576
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32577
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32578
echo "${ECHO_T}$ac_header_compiler" >&6
32580
# Is the header present?
32581
echo "$as_me:$LINENO: checking mysql.h presence" >&5
32582
echo $ECHO_N "checking mysql.h presence... $ECHO_C" >&6
32583
cat >conftest.$ac_ext <<_ACEOF
32586
cat confdefs.h >>conftest.$ac_ext
32587
cat >>conftest.$ac_ext <<_ACEOF
32588
/* end confdefs.h. */
32591
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32592
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32594
grep -v '^ *+' conftest.er1 >conftest.err
32596
cat conftest.err >&5
32597
echo "$as_me:$LINENO: \$? = $ac_status" >&5
32598
(exit $ac_status); } >/dev/null; then
32599
if test -s conftest.err; then
32600
ac_cpp_err=$ac_c_preproc_warn_flag
32601
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32608
if test -z "$ac_cpp_err"; then
32609
ac_header_preproc=yes
32611
echo "$as_me: failed program was:" >&5
32612
sed 's/^/| /' conftest.$ac_ext >&5
32614
ac_header_preproc=no
32616
rm -f conftest.err conftest.$ac_ext
32617
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32618
echo "${ECHO_T}$ac_header_preproc" >&6
32620
# So? What about this header?
32621
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32623
{ echo "$as_me:$LINENO: WARNING: mysql.h: accepted by the compiler, rejected by the preprocessor!" >&5
32624
echo "$as_me: WARNING: mysql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32625
{ echo "$as_me:$LINENO: WARNING: mysql.h: proceeding with the compiler's result" >&5
32626
echo "$as_me: WARNING: mysql.h: proceeding with the compiler's result" >&2;}
32627
ac_header_preproc=yes
32630
{ echo "$as_me:$LINENO: WARNING: mysql.h: present but cannot be compiled" >&5
32631
echo "$as_me: WARNING: mysql.h: present but cannot be compiled" >&2;}
32632
{ echo "$as_me:$LINENO: WARNING: mysql.h: check for missing prerequisite headers?" >&5
32633
echo "$as_me: WARNING: mysql.h: check for missing prerequisite headers?" >&2;}
32634
{ echo "$as_me:$LINENO: WARNING: mysql.h: see the Autoconf documentation" >&5
32635
echo "$as_me: WARNING: mysql.h: see the Autoconf documentation" >&2;}
32636
{ echo "$as_me:$LINENO: WARNING: mysql.h: section \"Present But Cannot Be Compiled\"" >&5
32637
echo "$as_me: WARNING: mysql.h: section \"Present But Cannot Be Compiled\"" >&2;}
32638
{ echo "$as_me:$LINENO: WARNING: mysql.h: proceeding with the preprocessor's result" >&5
32639
echo "$as_me: WARNING: mysql.h: proceeding with the preprocessor's result" >&2;}
32640
{ echo "$as_me:$LINENO: WARNING: mysql.h: in the future, the compiler will take precedence" >&5
32641
echo "$as_me: WARNING: mysql.h: in the future, the compiler will take precedence" >&2;}
32644
## ------------------------------------------ ##
32645
## Report this to the AC_PACKAGE_NAME lists. ##
32646
## ------------------------------------------ ##
32649
sed "s/^/$as_me: WARNING: /" >&2
32652
echo "$as_me:$LINENO: checking for mysql.h" >&5
32653
echo $ECHO_N "checking for mysql.h... $ECHO_C" >&6
32654
if test "${ac_cv_header_mysql_h+set}" = set; then
32655
echo $ECHO_N "(cached) $ECHO_C" >&6
32657
ac_cv_header_mysql_h=$ac_header_preproc
32659
echo "$as_me:$LINENO: result: $ac_cv_header_mysql_h" >&5
32660
echo "${ECHO_T}$ac_cv_header_mysql_h" >&6
32663
if test $ac_cv_header_mysql_h = yes; then
32664
echo "$as_me:$LINENO: checking for mysql_init in -lmysqlclient_r" >&5
32665
echo $ECHO_N "checking for mysql_init in -lmysqlclient_r... $ECHO_C" >&6
32666
if test "${ac_cv_lib_mysqlclient_r_mysql_init+set}" = set; then
32667
echo $ECHO_N "(cached) $ECHO_C" >&6
32669
ac_check_lib_save_LIBS=$LIBS
32670
LIBS="-lmysqlclient_r $LIBS"
32671
cat >conftest.$ac_ext <<_ACEOF
32674
cat confdefs.h >>conftest.$ac_ext
32675
cat >>conftest.$ac_ext <<_ACEOF
32676
/* end confdefs.h. */
32678
/* Override any gcc2 internal prototype to avoid an error. */
32682
/* We use char because int might match the return type of a gcc2
32683
builtin and then its argument prototype would still apply. */
32684
char mysql_init ();
32693
rm -f conftest.$ac_objext conftest$ac_exeext
32694
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32695
(eval $ac_link) 2>conftest.er1
32697
grep -v '^ *+' conftest.er1 >conftest.err
32699
cat conftest.err >&5
32700
echo "$as_me:$LINENO: \$? = $ac_status" >&5
32701
(exit $ac_status); } &&
32702
{ ac_try='test -z "$ac_c_werror_flag"
32703
|| test ! -s conftest.err'
32704
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32705
(eval $ac_try) 2>&5
32707
echo "$as_me:$LINENO: \$? = $ac_status" >&5
32708
(exit $ac_status); }; } &&
32709
{ ac_try='test -s conftest$ac_exeext'
32710
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32711
(eval $ac_try) 2>&5
32713
echo "$as_me:$LINENO: \$? = $ac_status" >&5
32714
(exit $ac_status); }; }; then
32715
ac_cv_lib_mysqlclient_r_mysql_init=yes
32717
echo "$as_me: failed program was:" >&5
32718
sed 's/^/| /' conftest.$ac_ext >&5
32720
ac_cv_lib_mysqlclient_r_mysql_init=no
32722
rm -f conftest.err conftest.$ac_objext \
32723
conftest$ac_exeext conftest.$ac_ext
32724
LIBS=$ac_check_lib_save_LIBS
32726
echo "$as_me:$LINENO: result: $ac_cv_lib_mysqlclient_r_mysql_init" >&5
32727
echo "${ECHO_T}$ac_cv_lib_mysqlclient_r_mysql_init" >&6
32728
if test $ac_cv_lib_mysqlclient_r_mysql_init = yes; then
32735
if test "$apu_have_mysql" == "0"; then
32736
if test "${ac_cv_header_mysql_mysql_h+set}" = set; then
32737
echo "$as_me:$LINENO: checking for mysql/mysql.h" >&5
32738
echo $ECHO_N "checking for mysql/mysql.h... $ECHO_C" >&6
32739
if test "${ac_cv_header_mysql_mysql_h+set}" = set; then
32740
echo $ECHO_N "(cached) $ECHO_C" >&6
32742
echo "$as_me:$LINENO: result: $ac_cv_header_mysql_mysql_h" >&5
32743
echo "${ECHO_T}$ac_cv_header_mysql_mysql_h" >&6
32745
# Is the header compilable?
32746
echo "$as_me:$LINENO: checking mysql/mysql.h usability" >&5
32747
echo $ECHO_N "checking mysql/mysql.h usability... $ECHO_C" >&6
32748
cat >conftest.$ac_ext <<_ACEOF
32751
cat confdefs.h >>conftest.$ac_ext
32752
cat >>conftest.$ac_ext <<_ACEOF
32753
/* end confdefs.h. */
32754
$ac_includes_default
32755
#include <mysql/mysql.h>
32757
rm -f conftest.$ac_objext
32758
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32759
(eval $ac_compile) 2>conftest.er1
32761
grep -v '^ *+' conftest.er1 >conftest.err
32763
cat conftest.err >&5
32764
echo "$as_me:$LINENO: \$? = $ac_status" >&5
32765
(exit $ac_status); } &&
32766
{ ac_try='test -z "$ac_c_werror_flag"
32767
|| test ! -s conftest.err'
32768
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32769
(eval $ac_try) 2>&5
32771
echo "$as_me:$LINENO: \$? = $ac_status" >&5
32772
(exit $ac_status); }; } &&
32773
{ ac_try='test -s conftest.$ac_objext'
32774
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32775
(eval $ac_try) 2>&5
32777
echo "$as_me:$LINENO: \$? = $ac_status" >&5
32778
(exit $ac_status); }; }; then
32779
ac_header_compiler=yes
32781
echo "$as_me: failed program was:" >&5
32782
sed 's/^/| /' conftest.$ac_ext >&5
32784
ac_header_compiler=no
32786
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32787
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32788
echo "${ECHO_T}$ac_header_compiler" >&6
32790
# Is the header present?
32791
echo "$as_me:$LINENO: checking mysql/mysql.h presence" >&5
32792
echo $ECHO_N "checking mysql/mysql.h presence... $ECHO_C" >&6
32793
cat >conftest.$ac_ext <<_ACEOF
32796
cat confdefs.h >>conftest.$ac_ext
32797
cat >>conftest.$ac_ext <<_ACEOF
32798
/* end confdefs.h. */
32799
#include <mysql/mysql.h>
32801
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32802
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32804
grep -v '^ *+' conftest.er1 >conftest.err
32806
cat conftest.err >&5
32807
echo "$as_me:$LINENO: \$? = $ac_status" >&5
32808
(exit $ac_status); } >/dev/null; then
32809
if test -s conftest.err; then
32810
ac_cpp_err=$ac_c_preproc_warn_flag
32811
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32818
if test -z "$ac_cpp_err"; then
32819
ac_header_preproc=yes
32821
echo "$as_me: failed program was:" >&5
32822
sed 's/^/| /' conftest.$ac_ext >&5
32824
ac_header_preproc=no
32826
rm -f conftest.err conftest.$ac_ext
32827
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32828
echo "${ECHO_T}$ac_header_preproc" >&6
32830
# So? What about this header?
32831
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32833
{ echo "$as_me:$LINENO: WARNING: mysql/mysql.h: accepted by the compiler, rejected by the preprocessor!" >&5
32834
echo "$as_me: WARNING: mysql/mysql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32835
{ echo "$as_me:$LINENO: WARNING: mysql/mysql.h: proceeding with the compiler's result" >&5
32836
echo "$as_me: WARNING: mysql/mysql.h: proceeding with the compiler's result" >&2;}
32837
ac_header_preproc=yes
32840
{ echo "$as_me:$LINENO: WARNING: mysql/mysql.h: present but cannot be compiled" >&5
32841
echo "$as_me: WARNING: mysql/mysql.h: present but cannot be compiled" >&2;}
32842
{ echo "$as_me:$LINENO: WARNING: mysql/mysql.h: check for missing prerequisite headers?" >&5
32843
echo "$as_me: WARNING: mysql/mysql.h: check for missing prerequisite headers?" >&2;}
32844
{ echo "$as_me:$LINENO: WARNING: mysql/mysql.h: see the Autoconf documentation" >&5
32845
echo "$as_me: WARNING: mysql/mysql.h: see the Autoconf documentation" >&2;}
32846
{ echo "$as_me:$LINENO: WARNING: mysql/mysql.h: section \"Present But Cannot Be Compiled\"" >&5
32847
echo "$as_me: WARNING: mysql/mysql.h: section \"Present But Cannot Be Compiled\"" >&2;}
32848
{ echo "$as_me:$LINENO: WARNING: mysql/mysql.h: proceeding with the preprocessor's result" >&5
32849
echo "$as_me: WARNING: mysql/mysql.h: proceeding with the preprocessor's result" >&2;}
32850
{ echo "$as_me:$LINENO: WARNING: mysql/mysql.h: in the future, the compiler will take precedence" >&5
32851
echo "$as_me: WARNING: mysql/mysql.h: in the future, the compiler will take precedence" >&2;}
32854
## ------------------------------------------ ##
32855
## Report this to the AC_PACKAGE_NAME lists. ##
32856
## ------------------------------------------ ##
32859
sed "s/^/$as_me: WARNING: /" >&2
32862
echo "$as_me:$LINENO: checking for mysql/mysql.h" >&5
32863
echo $ECHO_N "checking for mysql/mysql.h... $ECHO_C" >&6
32864
if test "${ac_cv_header_mysql_mysql_h+set}" = set; then
32865
echo $ECHO_N "(cached) $ECHO_C" >&6
32867
ac_cv_header_mysql_mysql_h=$ac_header_preproc
32869
echo "$as_me:$LINENO: result: $ac_cv_header_mysql_mysql_h" >&5
32870
echo "${ECHO_T}$ac_cv_header_mysql_mysql_h" >&6
32873
if test $ac_cv_header_mysql_mysql_h = yes; then
32874
echo "$as_me:$LINENO: checking for mysql_init in -lmysqlclient_r" >&5
32875
echo $ECHO_N "checking for mysql_init in -lmysqlclient_r... $ECHO_C" >&6
32876
if test "${ac_cv_lib_mysqlclient_r_mysql_init+set}" = set; then
32877
echo $ECHO_N "(cached) $ECHO_C" >&6
32879
ac_check_lib_save_LIBS=$LIBS
32880
LIBS="-lmysqlclient_r $LIBS"
32881
cat >conftest.$ac_ext <<_ACEOF
32884
cat confdefs.h >>conftest.$ac_ext
32885
cat >>conftest.$ac_ext <<_ACEOF
32886
/* end confdefs.h. */
32888
/* Override any gcc2 internal prototype to avoid an error. */
32892
/* We use char because int might match the return type of a gcc2
32893
builtin and then its argument prototype would still apply. */
32894
char mysql_init ();
32903
rm -f conftest.$ac_objext conftest$ac_exeext
32904
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32905
(eval $ac_link) 2>conftest.er1
32907
grep -v '^ *+' conftest.er1 >conftest.err
32909
cat conftest.err >&5
32910
echo "$as_me:$LINENO: \$? = $ac_status" >&5
32911
(exit $ac_status); } &&
32912
{ ac_try='test -z "$ac_c_werror_flag"
32913
|| test ! -s conftest.err'
32914
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32915
(eval $ac_try) 2>&5
32917
echo "$as_me:$LINENO: \$? = $ac_status" >&5
32918
(exit $ac_status); }; } &&
32919
{ ac_try='test -s conftest$ac_exeext'
32920
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32921
(eval $ac_try) 2>&5
32923
echo "$as_me:$LINENO: \$? = $ac_status" >&5
32924
(exit $ac_status); }; }; then
32925
ac_cv_lib_mysqlclient_r_mysql_init=yes
32927
echo "$as_me: failed program was:" >&5
32928
sed 's/^/| /' conftest.$ac_ext >&5
32930
ac_cv_lib_mysqlclient_r_mysql_init=no
32932
rm -f conftest.err conftest.$ac_objext \
32933
conftest$ac_exeext conftest.$ac_ext
32934
LIBS=$ac_check_lib_save_LIBS
32936
echo "$as_me:$LINENO: result: $ac_cv_lib_mysqlclient_r_mysql_init" >&5
32937
echo "${ECHO_T}$ac_cv_lib_mysqlclient_r_mysql_init" >&6
32938
if test $ac_cv_lib_mysqlclient_r_mysql_init = yes; then
32945
if test "$apu_have_mysql" != "0"; then
32947
if test "x$APRUTIL_INCLUDES" = "x"; then
32948
test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$withval/include/myql\""
32949
APRUTIL_INCLUDES="-I$withval/include/myql"
32951
apr_addto_bugger="-I$withval/include/myql"
32952
for i in $apr_addto_bugger; do
32953
apr_addto_duplicate="0"
32954
for j in $APRUTIL_INCLUDES; do
32955
if test "x$i" = "x$j"; then
32956
apr_addto_duplicate="1"
32960
if test $apr_addto_duplicate = "0"; then
32961
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES"
32962
APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
32969
elif test "$withval" = "no"; then
32972
CPPFLAGS="-I$withval/include"
32973
LIBS="-L$withval/lib "
32975
{ echo "$as_me:$LINENO: checking for mysql in $withval" >&5
32976
echo "$as_me: checking for mysql in $withval" >&6;}
32977
if test "${ac_cv_header_mysql_h+set}" = set; then
32978
echo "$as_me:$LINENO: checking for mysql.h" >&5
32979
echo $ECHO_N "checking for mysql.h... $ECHO_C" >&6
32980
if test "${ac_cv_header_mysql_h+set}" = set; then
32981
echo $ECHO_N "(cached) $ECHO_C" >&6
32983
echo "$as_me:$LINENO: result: $ac_cv_header_mysql_h" >&5
32984
echo "${ECHO_T}$ac_cv_header_mysql_h" >&6
32986
# Is the header compilable?
32987
echo "$as_me:$LINENO: checking mysql.h usability" >&5
32988
echo $ECHO_N "checking mysql.h usability... $ECHO_C" >&6
32989
cat >conftest.$ac_ext <<_ACEOF
32992
cat confdefs.h >>conftest.$ac_ext
32993
cat >>conftest.$ac_ext <<_ACEOF
32994
/* end confdefs.h. */
32995
$ac_includes_default
32998
rm -f conftest.$ac_objext
32999
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33000
(eval $ac_compile) 2>conftest.er1
33002
grep -v '^ *+' conftest.er1 >conftest.err
33004
cat conftest.err >&5
33005
echo "$as_me:$LINENO: \$? = $ac_status" >&5
33006
(exit $ac_status); } &&
33007
{ ac_try='test -z "$ac_c_werror_flag"
33008
|| test ! -s conftest.err'
33009
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33010
(eval $ac_try) 2>&5
33012
echo "$as_me:$LINENO: \$? = $ac_status" >&5
33013
(exit $ac_status); }; } &&
33014
{ ac_try='test -s conftest.$ac_objext'
33015
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33016
(eval $ac_try) 2>&5
33018
echo "$as_me:$LINENO: \$? = $ac_status" >&5
33019
(exit $ac_status); }; }; then
33020
ac_header_compiler=yes
33022
echo "$as_me: failed program was:" >&5
33023
sed 's/^/| /' conftest.$ac_ext >&5
33025
ac_header_compiler=no
33027
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33028
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33029
echo "${ECHO_T}$ac_header_compiler" >&6
33031
# Is the header present?
33032
echo "$as_me:$LINENO: checking mysql.h presence" >&5
33033
echo $ECHO_N "checking mysql.h presence... $ECHO_C" >&6
33034
cat >conftest.$ac_ext <<_ACEOF
33037
cat confdefs.h >>conftest.$ac_ext
33038
cat >>conftest.$ac_ext <<_ACEOF
33039
/* end confdefs.h. */
33042
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33043
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33045
grep -v '^ *+' conftest.er1 >conftest.err
33047
cat conftest.err >&5
33048
echo "$as_me:$LINENO: \$? = $ac_status" >&5
33049
(exit $ac_status); } >/dev/null; then
33050
if test -s conftest.err; then
33051
ac_cpp_err=$ac_c_preproc_warn_flag
33052
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33059
if test -z "$ac_cpp_err"; then
33060
ac_header_preproc=yes
33062
echo "$as_me: failed program was:" >&5
33063
sed 's/^/| /' conftest.$ac_ext >&5
33065
ac_header_preproc=no
33067
rm -f conftest.err conftest.$ac_ext
33068
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33069
echo "${ECHO_T}$ac_header_preproc" >&6
33071
# So? What about this header?
33072
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33074
{ echo "$as_me:$LINENO: WARNING: mysql.h: accepted by the compiler, rejected by the preprocessor!" >&5
33075
echo "$as_me: WARNING: mysql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33076
{ echo "$as_me:$LINENO: WARNING: mysql.h: proceeding with the compiler's result" >&5
33077
echo "$as_me: WARNING: mysql.h: proceeding with the compiler's result" >&2;}
33078
ac_header_preproc=yes
33081
{ echo "$as_me:$LINENO: WARNING: mysql.h: present but cannot be compiled" >&5
33082
echo "$as_me: WARNING: mysql.h: present but cannot be compiled" >&2;}
33083
{ echo "$as_me:$LINENO: WARNING: mysql.h: check for missing prerequisite headers?" >&5
33084
echo "$as_me: WARNING: mysql.h: check for missing prerequisite headers?" >&2;}
33085
{ echo "$as_me:$LINENO: WARNING: mysql.h: see the Autoconf documentation" >&5
33086
echo "$as_me: WARNING: mysql.h: see the Autoconf documentation" >&2;}
33087
{ echo "$as_me:$LINENO: WARNING: mysql.h: section \"Present But Cannot Be Compiled\"" >&5
33088
echo "$as_me: WARNING: mysql.h: section \"Present But Cannot Be Compiled\"" >&2;}
33089
{ echo "$as_me:$LINENO: WARNING: mysql.h: proceeding with the preprocessor's result" >&5
33090
echo "$as_me: WARNING: mysql.h: proceeding with the preprocessor's result" >&2;}
33091
{ echo "$as_me:$LINENO: WARNING: mysql.h: in the future, the compiler will take precedence" >&5
33092
echo "$as_me: WARNING: mysql.h: in the future, the compiler will take precedence" >&2;}
33095
## ------------------------------------------ ##
33096
## Report this to the AC_PACKAGE_NAME lists. ##
33097
## ------------------------------------------ ##
33100
sed "s/^/$as_me: WARNING: /" >&2
33103
echo "$as_me:$LINENO: checking for mysql.h" >&5
33104
echo $ECHO_N "checking for mysql.h... $ECHO_C" >&6
33105
if test "${ac_cv_header_mysql_h+set}" = set; then
33106
echo $ECHO_N "(cached) $ECHO_C" >&6
33108
ac_cv_header_mysql_h=$ac_header_preproc
33110
echo "$as_me:$LINENO: result: $ac_cv_header_mysql_h" >&5
33111
echo "${ECHO_T}$ac_cv_header_mysql_h" >&6
33114
if test $ac_cv_header_mysql_h = yes; then
33115
echo "$as_me:$LINENO: checking for mysql_init in -lmysqlclient_r" >&5
33116
echo $ECHO_N "checking for mysql_init in -lmysqlclient_r... $ECHO_C" >&6
33117
if test "${ac_cv_lib_mysqlclient_r_mysql_init+set}" = set; then
33118
echo $ECHO_N "(cached) $ECHO_C" >&6
33120
ac_check_lib_save_LIBS=$LIBS
33121
LIBS="-lmysqlclient_r $LIBS"
33122
cat >conftest.$ac_ext <<_ACEOF
33125
cat confdefs.h >>conftest.$ac_ext
33126
cat >>conftest.$ac_ext <<_ACEOF
33127
/* end confdefs.h. */
33129
/* Override any gcc2 internal prototype to avoid an error. */
33133
/* We use char because int might match the return type of a gcc2
33134
builtin and then its argument prototype would still apply. */
33135
char mysql_init ();
33144
rm -f conftest.$ac_objext conftest$ac_exeext
33145
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33146
(eval $ac_link) 2>conftest.er1
33148
grep -v '^ *+' conftest.er1 >conftest.err
33150
cat conftest.err >&5
33151
echo "$as_me:$LINENO: \$? = $ac_status" >&5
33152
(exit $ac_status); } &&
33153
{ ac_try='test -z "$ac_c_werror_flag"
33154
|| test ! -s conftest.err'
33155
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33156
(eval $ac_try) 2>&5
33158
echo "$as_me:$LINENO: \$? = $ac_status" >&5
33159
(exit $ac_status); }; } &&
33160
{ ac_try='test -s conftest$ac_exeext'
33161
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33162
(eval $ac_try) 2>&5
33164
echo "$as_me:$LINENO: \$? = $ac_status" >&5
33165
(exit $ac_status); }; }; then
33166
ac_cv_lib_mysqlclient_r_mysql_init=yes
33168
echo "$as_me: failed program was:" >&5
33169
sed 's/^/| /' conftest.$ac_ext >&5
33171
ac_cv_lib_mysqlclient_r_mysql_init=no
33173
rm -f conftest.err conftest.$ac_objext \
33174
conftest$ac_exeext conftest.$ac_ext
33175
LIBS=$ac_check_lib_save_LIBS
33177
echo "$as_me:$LINENO: result: $ac_cv_lib_mysqlclient_r_mysql_init" >&5
33178
echo "${ECHO_T}$ac_cv_lib_mysqlclient_r_mysql_init" >&6
33179
if test $ac_cv_lib_mysqlclient_r_mysql_init = yes; then
33186
if test "$apu_have_mysql" != "0"; then
33188
if test "x$APRUTIL_LDFLAGS" = "x"; then
33189
test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$withval/lib\""
33190
APRUTIL_LDFLAGS="-L$withval/lib"
33192
apr_addto_bugger="-L$withval/lib"
33193
for i in $apr_addto_bugger; do
33194
apr_addto_duplicate="0"
33195
for j in $APRUTIL_LDFLAGS; do
33196
if test "x$i" = "x$j"; then
33197
apr_addto_duplicate="1"
33201
if test $apr_addto_duplicate = "0"; then
33202
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS"
33203
APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
33209
if test "x$APRUTIL_INCLUDES" = "x"; then
33210
test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$withval/include\""
33211
APRUTIL_INCLUDES="-I$withval/include"
33213
apr_addto_bugger="-I$withval/include"
33214
for i in $apr_addto_bugger; do
33215
apr_addto_duplicate="0"
33216
for j in $APRUTIL_INCLUDES; do
33217
if test "x$i" = "x$j"; then
33218
apr_addto_duplicate="1"
33222
if test $apr_addto_duplicate = "0"; then
33223
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES"
33224
APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
33231
if test "$apu_have_mysql" != "1"; then
33232
if test "${ac_cv_header_mysql_mysql_h+set}" = set; then
33233
echo "$as_me:$LINENO: checking for mysql/mysql.h" >&5
33234
echo $ECHO_N "checking for mysql/mysql.h... $ECHO_C" >&6
33235
if test "${ac_cv_header_mysql_mysql_h+set}" = set; then
33236
echo $ECHO_N "(cached) $ECHO_C" >&6
33238
echo "$as_me:$LINENO: result: $ac_cv_header_mysql_mysql_h" >&5
33239
echo "${ECHO_T}$ac_cv_header_mysql_mysql_h" >&6
33241
# Is the header compilable?
33242
echo "$as_me:$LINENO: checking mysql/mysql.h usability" >&5
33243
echo $ECHO_N "checking mysql/mysql.h usability... $ECHO_C" >&6
33244
cat >conftest.$ac_ext <<_ACEOF
33247
cat confdefs.h >>conftest.$ac_ext
33248
cat >>conftest.$ac_ext <<_ACEOF
33249
/* end confdefs.h. */
33250
$ac_includes_default
33251
#include <mysql/mysql.h>
33253
rm -f conftest.$ac_objext
33254
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33255
(eval $ac_compile) 2>conftest.er1
33257
grep -v '^ *+' conftest.er1 >conftest.err
33259
cat conftest.err >&5
33260
echo "$as_me:$LINENO: \$? = $ac_status" >&5
33261
(exit $ac_status); } &&
33262
{ ac_try='test -z "$ac_c_werror_flag"
33263
|| test ! -s conftest.err'
33264
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33265
(eval $ac_try) 2>&5
33267
echo "$as_me:$LINENO: \$? = $ac_status" >&5
33268
(exit $ac_status); }; } &&
33269
{ ac_try='test -s conftest.$ac_objext'
33270
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33271
(eval $ac_try) 2>&5
33273
echo "$as_me:$LINENO: \$? = $ac_status" >&5
33274
(exit $ac_status); }; }; then
33275
ac_header_compiler=yes
33277
echo "$as_me: failed program was:" >&5
33278
sed 's/^/| /' conftest.$ac_ext >&5
33280
ac_header_compiler=no
33282
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33283
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33284
echo "${ECHO_T}$ac_header_compiler" >&6
33286
# Is the header present?
33287
echo "$as_me:$LINENO: checking mysql/mysql.h presence" >&5
33288
echo $ECHO_N "checking mysql/mysql.h presence... $ECHO_C" >&6
33289
cat >conftest.$ac_ext <<_ACEOF
33292
cat confdefs.h >>conftest.$ac_ext
33293
cat >>conftest.$ac_ext <<_ACEOF
33294
/* end confdefs.h. */
33295
#include <mysql/mysql.h>
33297
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33298
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33300
grep -v '^ *+' conftest.er1 >conftest.err
33302
cat conftest.err >&5
33303
echo "$as_me:$LINENO: \$? = $ac_status" >&5
33304
(exit $ac_status); } >/dev/null; then
33305
if test -s conftest.err; then
33306
ac_cpp_err=$ac_c_preproc_warn_flag
33307
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33314
if test -z "$ac_cpp_err"; then
33315
ac_header_preproc=yes
33317
echo "$as_me: failed program was:" >&5
33318
sed 's/^/| /' conftest.$ac_ext >&5
33320
ac_header_preproc=no
33322
rm -f conftest.err conftest.$ac_ext
33323
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33324
echo "${ECHO_T}$ac_header_preproc" >&6
33326
# So? What about this header?
33327
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33329
{ echo "$as_me:$LINENO: WARNING: mysql/mysql.h: accepted by the compiler, rejected by the preprocessor!" >&5
33330
echo "$as_me: WARNING: mysql/mysql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33331
{ echo "$as_me:$LINENO: WARNING: mysql/mysql.h: proceeding with the compiler's result" >&5
33332
echo "$as_me: WARNING: mysql/mysql.h: proceeding with the compiler's result" >&2;}
33333
ac_header_preproc=yes
33336
{ echo "$as_me:$LINENO: WARNING: mysql/mysql.h: present but cannot be compiled" >&5
33337
echo "$as_me: WARNING: mysql/mysql.h: present but cannot be compiled" >&2;}
33338
{ echo "$as_me:$LINENO: WARNING: mysql/mysql.h: check for missing prerequisite headers?" >&5
33339
echo "$as_me: WARNING: mysql/mysql.h: check for missing prerequisite headers?" >&2;}
33340
{ echo "$as_me:$LINENO: WARNING: mysql/mysql.h: see the Autoconf documentation" >&5
33341
echo "$as_me: WARNING: mysql/mysql.h: see the Autoconf documentation" >&2;}
33342
{ echo "$as_me:$LINENO: WARNING: mysql/mysql.h: section \"Present But Cannot Be Compiled\"" >&5
33343
echo "$as_me: WARNING: mysql/mysql.h: section \"Present But Cannot Be Compiled\"" >&2;}
33344
{ echo "$as_me:$LINENO: WARNING: mysql/mysql.h: proceeding with the preprocessor's result" >&5
33345
echo "$as_me: WARNING: mysql/mysql.h: proceeding with the preprocessor's result" >&2;}
33346
{ echo "$as_me:$LINENO: WARNING: mysql/mysql.h: in the future, the compiler will take precedence" >&5
33347
echo "$as_me: WARNING: mysql/mysql.h: in the future, the compiler will take precedence" >&2;}
33350
## ------------------------------------------ ##
33351
## Report this to the AC_PACKAGE_NAME lists. ##
33352
## ------------------------------------------ ##
33355
sed "s/^/$as_me: WARNING: /" >&2
33358
echo "$as_me:$LINENO: checking for mysql/mysql.h" >&5
33359
echo $ECHO_N "checking for mysql/mysql.h... $ECHO_C" >&6
33360
if test "${ac_cv_header_mysql_mysql_h+set}" = set; then
33361
echo $ECHO_N "(cached) $ECHO_C" >&6
33363
ac_cv_header_mysql_mysql_h=$ac_header_preproc
33365
echo "$as_me:$LINENO: result: $ac_cv_header_mysql_mysql_h" >&5
33366
echo "${ECHO_T}$ac_cv_header_mysql_mysql_h" >&6
33369
if test $ac_cv_header_mysql_mysql_h = yes; then
33370
echo "$as_me:$LINENO: checking for mysql_init in -lmysqlclient_r" >&5
33371
echo $ECHO_N "checking for mysql_init in -lmysqlclient_r... $ECHO_C" >&6
33372
if test "${ac_cv_lib_mysqlclient_r_mysql_init+set}" = set; then
33373
echo $ECHO_N "(cached) $ECHO_C" >&6
33375
ac_check_lib_save_LIBS=$LIBS
33376
LIBS="-lmysqlclient_r $LIBS"
33377
cat >conftest.$ac_ext <<_ACEOF
33380
cat confdefs.h >>conftest.$ac_ext
33381
cat >>conftest.$ac_ext <<_ACEOF
33382
/* end confdefs.h. */
33384
/* Override any gcc2 internal prototype to avoid an error. */
33388
/* We use char because int might match the return type of a gcc2
33389
builtin and then its argument prototype would still apply. */
33390
char mysql_init ();
33399
rm -f conftest.$ac_objext conftest$ac_exeext
33400
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33401
(eval $ac_link) 2>conftest.er1
33403
grep -v '^ *+' conftest.er1 >conftest.err
33405
cat conftest.err >&5
33406
echo "$as_me:$LINENO: \$? = $ac_status" >&5
33407
(exit $ac_status); } &&
33408
{ ac_try='test -z "$ac_c_werror_flag"
33409
|| test ! -s conftest.err'
33410
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33411
(eval $ac_try) 2>&5
33413
echo "$as_me:$LINENO: \$? = $ac_status" >&5
33414
(exit $ac_status); }; } &&
33415
{ ac_try='test -s conftest$ac_exeext'
33416
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33417
(eval $ac_try) 2>&5
33419
echo "$as_me:$LINENO: \$? = $ac_status" >&5
33420
(exit $ac_status); }; }; then
33421
ac_cv_lib_mysqlclient_r_mysql_init=yes
33423
echo "$as_me: failed program was:" >&5
33424
sed 's/^/| /' conftest.$ac_ext >&5
33426
ac_cv_lib_mysqlclient_r_mysql_init=no
33428
rm -f conftest.err conftest.$ac_objext \
33429
conftest$ac_exeext conftest.$ac_ext
33430
LIBS=$ac_check_lib_save_LIBS
33432
echo "$as_me:$LINENO: result: $ac_cv_lib_mysqlclient_r_mysql_init" >&5
33433
echo "${ECHO_T}$ac_cv_lib_mysqlclient_r_mysql_init" >&6
33434
if test $ac_cv_lib_mysqlclient_r_mysql_init = yes; then
33441
if test "$apu_have_mysql" != "0"; then
33443
if test "x$APRUTIL_INCLUDES" = "x"; then
33444
test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$withval/include/mysql\""
33445
APRUTIL_INCLUDES="-I$withval/include/mysql"
33447
apr_addto_bugger="-I$withval/include/mysql"
33448
for i in $apr_addto_bugger; do
33449
apr_addto_duplicate="0"
33450
for j in $APRUTIL_INCLUDES; do
33451
if test "x$i" = "x$j"; then
33452
apr_addto_duplicate="1"
33456
if test $apr_addto_duplicate = "0"; then
33457
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES"
33458
APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
33464
if test "x$APRUTIL_LDFLAGS" = "x"; then
33465
test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$withval/lib\""
33466
APRUTIL_LDFLAGS="-L$withval/lib"
33468
apr_addto_bugger="-L$withval/lib"
33469
for i in $apr_addto_bugger; do
33470
apr_addto_duplicate="0"
33471
for j in $APRUTIL_LDFLAGS; do
33472
if test "x$i" = "x$j"; then
33473
apr_addto_duplicate="1"
33477
if test $apr_addto_duplicate = "0"; then
33478
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS"
33479
APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
33491
if test "${ac_cv_header_mysql_h+set}" = set; then
33492
echo "$as_me:$LINENO: checking for mysql.h" >&5
33493
echo $ECHO_N "checking for mysql.h... $ECHO_C" >&6
33494
if test "${ac_cv_header_mysql_h+set}" = set; then
33495
echo $ECHO_N "(cached) $ECHO_C" >&6
33497
echo "$as_me:$LINENO: result: $ac_cv_header_mysql_h" >&5
33498
echo "${ECHO_T}$ac_cv_header_mysql_h" >&6
33500
# Is the header compilable?
33501
echo "$as_me:$LINENO: checking mysql.h usability" >&5
33502
echo $ECHO_N "checking mysql.h usability... $ECHO_C" >&6
33503
cat >conftest.$ac_ext <<_ACEOF
33506
cat confdefs.h >>conftest.$ac_ext
33507
cat >>conftest.$ac_ext <<_ACEOF
33508
/* end confdefs.h. */
33509
$ac_includes_default
33512
rm -f conftest.$ac_objext
33513
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33514
(eval $ac_compile) 2>conftest.er1
33516
grep -v '^ *+' conftest.er1 >conftest.err
33518
cat conftest.err >&5
33519
echo "$as_me:$LINENO: \$? = $ac_status" >&5
33520
(exit $ac_status); } &&
33521
{ ac_try='test -z "$ac_c_werror_flag"
33522
|| test ! -s conftest.err'
33523
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33524
(eval $ac_try) 2>&5
33526
echo "$as_me:$LINENO: \$? = $ac_status" >&5
33527
(exit $ac_status); }; } &&
33528
{ ac_try='test -s conftest.$ac_objext'
33529
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33530
(eval $ac_try) 2>&5
33532
echo "$as_me:$LINENO: \$? = $ac_status" >&5
33533
(exit $ac_status); }; }; then
33534
ac_header_compiler=yes
33536
echo "$as_me: failed program was:" >&5
33537
sed 's/^/| /' conftest.$ac_ext >&5
33539
ac_header_compiler=no
33541
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33542
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33543
echo "${ECHO_T}$ac_header_compiler" >&6
33545
# Is the header present?
33546
echo "$as_me:$LINENO: checking mysql.h presence" >&5
33547
echo $ECHO_N "checking mysql.h presence... $ECHO_C" >&6
33548
cat >conftest.$ac_ext <<_ACEOF
33551
cat confdefs.h >>conftest.$ac_ext
33552
cat >>conftest.$ac_ext <<_ACEOF
33553
/* end confdefs.h. */
33556
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33557
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33559
grep -v '^ *+' conftest.er1 >conftest.err
33561
cat conftest.err >&5
33562
echo "$as_me:$LINENO: \$? = $ac_status" >&5
33563
(exit $ac_status); } >/dev/null; then
33564
if test -s conftest.err; then
33565
ac_cpp_err=$ac_c_preproc_warn_flag
33566
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33573
if test -z "$ac_cpp_err"; then
33574
ac_header_preproc=yes
33576
echo "$as_me: failed program was:" >&5
33577
sed 's/^/| /' conftest.$ac_ext >&5
33579
ac_header_preproc=no
33581
rm -f conftest.err conftest.$ac_ext
33582
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33583
echo "${ECHO_T}$ac_header_preproc" >&6
33585
# So? What about this header?
33586
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33588
{ echo "$as_me:$LINENO: WARNING: mysql.h: accepted by the compiler, rejected by the preprocessor!" >&5
33589
echo "$as_me: WARNING: mysql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33590
{ echo "$as_me:$LINENO: WARNING: mysql.h: proceeding with the compiler's result" >&5
33591
echo "$as_me: WARNING: mysql.h: proceeding with the compiler's result" >&2;}
33592
ac_header_preproc=yes
33595
{ echo "$as_me:$LINENO: WARNING: mysql.h: present but cannot be compiled" >&5
33596
echo "$as_me: WARNING: mysql.h: present but cannot be compiled" >&2;}
33597
{ echo "$as_me:$LINENO: WARNING: mysql.h: check for missing prerequisite headers?" >&5
33598
echo "$as_me: WARNING: mysql.h: check for missing prerequisite headers?" >&2;}
33599
{ echo "$as_me:$LINENO: WARNING: mysql.h: see the Autoconf documentation" >&5
33600
echo "$as_me: WARNING: mysql.h: see the Autoconf documentation" >&2;}
33601
{ echo "$as_me:$LINENO: WARNING: mysql.h: section \"Present But Cannot Be Compiled\"" >&5
33602
echo "$as_me: WARNING: mysql.h: section \"Present But Cannot Be Compiled\"" >&2;}
33603
{ echo "$as_me:$LINENO: WARNING: mysql.h: proceeding with the preprocessor's result" >&5
33604
echo "$as_me: WARNING: mysql.h: proceeding with the preprocessor's result" >&2;}
33605
{ echo "$as_me:$LINENO: WARNING: mysql.h: in the future, the compiler will take precedence" >&5
33606
echo "$as_me: WARNING: mysql.h: in the future, the compiler will take precedence" >&2;}
33609
## ------------------------------------------ ##
33610
## Report this to the AC_PACKAGE_NAME lists. ##
33611
## ------------------------------------------ ##
33614
sed "s/^/$as_me: WARNING: /" >&2
33617
echo "$as_me:$LINENO: checking for mysql.h" >&5
33618
echo $ECHO_N "checking for mysql.h... $ECHO_C" >&6
33619
if test "${ac_cv_header_mysql_h+set}" = set; then
33620
echo $ECHO_N "(cached) $ECHO_C" >&6
33622
ac_cv_header_mysql_h=$ac_header_preproc
33624
echo "$as_me:$LINENO: result: $ac_cv_header_mysql_h" >&5
33625
echo "${ECHO_T}$ac_cv_header_mysql_h" >&6
33628
if test $ac_cv_header_mysql_h = yes; then
33629
echo "$as_me:$LINENO: checking for mysql_init in -lmysqlclient_r" >&5
33630
echo $ECHO_N "checking for mysql_init in -lmysqlclient_r... $ECHO_C" >&6
33631
if test "${ac_cv_lib_mysqlclient_r_mysql_init+set}" = set; then
33632
echo $ECHO_N "(cached) $ECHO_C" >&6
33634
ac_check_lib_save_LIBS=$LIBS
33635
LIBS="-lmysqlclient_r $LIBS"
33636
cat >conftest.$ac_ext <<_ACEOF
33639
cat confdefs.h >>conftest.$ac_ext
33640
cat >>conftest.$ac_ext <<_ACEOF
33641
/* end confdefs.h. */
33643
/* Override any gcc2 internal prototype to avoid an error. */
33647
/* We use char because int might match the return type of a gcc2
33648
builtin and then its argument prototype would still apply. */
33649
char mysql_init ();
33658
rm -f conftest.$ac_objext conftest$ac_exeext
33659
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33660
(eval $ac_link) 2>conftest.er1
33662
grep -v '^ *+' conftest.er1 >conftest.err
33664
cat conftest.err >&5
33665
echo "$as_me:$LINENO: \$? = $ac_status" >&5
33666
(exit $ac_status); } &&
33667
{ ac_try='test -z "$ac_c_werror_flag"
33668
|| test ! -s conftest.err'
33669
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33670
(eval $ac_try) 2>&5
33672
echo "$as_me:$LINENO: \$? = $ac_status" >&5
33673
(exit $ac_status); }; } &&
33674
{ ac_try='test -s conftest$ac_exeext'
33675
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33676
(eval $ac_try) 2>&5
33678
echo "$as_me:$LINENO: \$? = $ac_status" >&5
33679
(exit $ac_status); }; }; then
33680
ac_cv_lib_mysqlclient_r_mysql_init=yes
33682
echo "$as_me: failed program was:" >&5
33683
sed 's/^/| /' conftest.$ac_ext >&5
33685
ac_cv_lib_mysqlclient_r_mysql_init=no
33687
rm -f conftest.err conftest.$ac_objext \
33688
conftest$ac_exeext conftest.$ac_ext
33689
LIBS=$ac_check_lib_save_LIBS
33691
echo "$as_me:$LINENO: result: $ac_cv_lib_mysqlclient_r_mysql_init" >&5
33692
echo "${ECHO_T}$ac_cv_lib_mysqlclient_r_mysql_init" >&6
33693
if test $ac_cv_lib_mysqlclient_r_mysql_init = yes; then
33705
if test "$apu_have_mysql" = "1"; then
33707
if test "x$APRUTIL_EXPORT_LIBS" = "x"; then
33708
test "x$silent" != "xyes" && echo " setting APRUTIL_EXPORT_LIBS to \"-lmysqlclient_r\""
33709
APRUTIL_EXPORT_LIBS="-lmysqlclient_r"
33711
apr_addto_bugger="-lmysqlclient_r"
33712
for i in $apr_addto_bugger; do
33713
apr_addto_duplicate="0"
33714
for j in $APRUTIL_EXPORT_LIBS; do
33715
if test "x$i" = "x$j"; then
33716
apr_addto_duplicate="1"
33720
if test $apr_addto_duplicate = "0"; then
33721
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_EXPORT_LIBS"
33722
APRUTIL_EXPORT_LIBS="$APRUTIL_EXPORT_LIBS $i"
33728
if test "x$APRUTIL_LIBS" = "x"; then
33729
test "x$silent" != "xyes" && echo " setting APRUTIL_LIBS to \"-lmysqlclient_r\""
33730
APRUTIL_LIBS="-lmysqlclient_r"
33732
apr_addto_bugger="-lmysqlclient_r"
33733
for i in $apr_addto_bugger; do
33734
apr_addto_duplicate="0"
33735
for j in $APRUTIL_LIBS; do
33736
if test "x$i" = "x$j"; then
33737
apr_addto_duplicate="1"
33741
if test $apr_addto_duplicate = "0"; then
33742
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LIBS"
33743
APRUTIL_LIBS="$APRUTIL_LIBS $i"
33754
# Check whether --with-sqlite3 or --without-sqlite3 was given.
33755
if test "${with_sqlite3+set}" = set; then
33756
withval="$with_sqlite3"
33759
if test "$withval" = "yes"; then
33760
if test "${ac_cv_header_sqlite3_h+set}" = set; then
33761
echo "$as_me:$LINENO: checking for sqlite3.h" >&5
33762
echo $ECHO_N "checking for sqlite3.h... $ECHO_C" >&6
33763
if test "${ac_cv_header_sqlite3_h+set}" = set; then
33764
echo $ECHO_N "(cached) $ECHO_C" >&6
33766
echo "$as_me:$LINENO: result: $ac_cv_header_sqlite3_h" >&5
33767
echo "${ECHO_T}$ac_cv_header_sqlite3_h" >&6
33769
# Is the header compilable?
33770
echo "$as_me:$LINENO: checking sqlite3.h usability" >&5
33771
echo $ECHO_N "checking sqlite3.h usability... $ECHO_C" >&6
33772
cat >conftest.$ac_ext <<_ACEOF
33775
cat confdefs.h >>conftest.$ac_ext
33776
cat >>conftest.$ac_ext <<_ACEOF
33777
/* end confdefs.h. */
33778
$ac_includes_default
33779
#include <sqlite3.h>
33781
rm -f conftest.$ac_objext
33782
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33783
(eval $ac_compile) 2>conftest.er1
33785
grep -v '^ *+' conftest.er1 >conftest.err
33787
cat conftest.err >&5
33788
echo "$as_me:$LINENO: \$? = $ac_status" >&5
33789
(exit $ac_status); } &&
33790
{ ac_try='test -z "$ac_c_werror_flag"
33791
|| test ! -s conftest.err'
33792
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33793
(eval $ac_try) 2>&5
33795
echo "$as_me:$LINENO: \$? = $ac_status" >&5
33796
(exit $ac_status); }; } &&
33797
{ ac_try='test -s conftest.$ac_objext'
33798
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33799
(eval $ac_try) 2>&5
33801
echo "$as_me:$LINENO: \$? = $ac_status" >&5
33802
(exit $ac_status); }; }; then
33803
ac_header_compiler=yes
33805
echo "$as_me: failed program was:" >&5
33806
sed 's/^/| /' conftest.$ac_ext >&5
33808
ac_header_compiler=no
33810
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33811
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33812
echo "${ECHO_T}$ac_header_compiler" >&6
33814
# Is the header present?
33815
echo "$as_me:$LINENO: checking sqlite3.h presence" >&5
33816
echo $ECHO_N "checking sqlite3.h presence... $ECHO_C" >&6
33817
cat >conftest.$ac_ext <<_ACEOF
33820
cat confdefs.h >>conftest.$ac_ext
33821
cat >>conftest.$ac_ext <<_ACEOF
33822
/* end confdefs.h. */
33823
#include <sqlite3.h>
33825
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33826
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33828
grep -v '^ *+' conftest.er1 >conftest.err
33830
cat conftest.err >&5
33831
echo "$as_me:$LINENO: \$? = $ac_status" >&5
33832
(exit $ac_status); } >/dev/null; then
33833
if test -s conftest.err; then
33834
ac_cpp_err=$ac_c_preproc_warn_flag
33835
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33842
if test -z "$ac_cpp_err"; then
33843
ac_header_preproc=yes
33845
echo "$as_me: failed program was:" >&5
33846
sed 's/^/| /' conftest.$ac_ext >&5
33848
ac_header_preproc=no
33850
rm -f conftest.err conftest.$ac_ext
33851
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33852
echo "${ECHO_T}$ac_header_preproc" >&6
33854
# So? What about this header?
33855
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33857
{ echo "$as_me:$LINENO: WARNING: sqlite3.h: accepted by the compiler, rejected by the preprocessor!" >&5
33858
echo "$as_me: WARNING: sqlite3.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33859
{ echo "$as_me:$LINENO: WARNING: sqlite3.h: proceeding with the compiler's result" >&5
33860
echo "$as_me: WARNING: sqlite3.h: proceeding with the compiler's result" >&2;}
33861
ac_header_preproc=yes
33864
{ echo "$as_me:$LINENO: WARNING: sqlite3.h: present but cannot be compiled" >&5
33865
echo "$as_me: WARNING: sqlite3.h: present but cannot be compiled" >&2;}
33866
{ echo "$as_me:$LINENO: WARNING: sqlite3.h: check for missing prerequisite headers?" >&5
33867
echo "$as_me: WARNING: sqlite3.h: check for missing prerequisite headers?" >&2;}
33868
{ echo "$as_me:$LINENO: WARNING: sqlite3.h: see the Autoconf documentation" >&5
33869
echo "$as_me: WARNING: sqlite3.h: see the Autoconf documentation" >&2;}
33870
{ echo "$as_me:$LINENO: WARNING: sqlite3.h: section \"Present But Cannot Be Compiled\"" >&5
33871
echo "$as_me: WARNING: sqlite3.h: section \"Present But Cannot Be Compiled\"" >&2;}
33872
{ echo "$as_me:$LINENO: WARNING: sqlite3.h: proceeding with the preprocessor's result" >&5
33873
echo "$as_me: WARNING: sqlite3.h: proceeding with the preprocessor's result" >&2;}
33874
{ echo "$as_me:$LINENO: WARNING: sqlite3.h: in the future, the compiler will take precedence" >&5
33875
echo "$as_me: WARNING: sqlite3.h: in the future, the compiler will take precedence" >&2;}
33878
## ------------------------------------------ ##
33879
## Report this to the AC_PACKAGE_NAME lists. ##
33880
## ------------------------------------------ ##
33883
sed "s/^/$as_me: WARNING: /" >&2
33886
echo "$as_me:$LINENO: checking for sqlite3.h" >&5
33887
echo $ECHO_N "checking for sqlite3.h... $ECHO_C" >&6
33888
if test "${ac_cv_header_sqlite3_h+set}" = set; then
33889
echo $ECHO_N "(cached) $ECHO_C" >&6
33891
ac_cv_header_sqlite3_h=$ac_header_preproc
33893
echo "$as_me:$LINENO: result: $ac_cv_header_sqlite3_h" >&5
33894
echo "${ECHO_T}$ac_cv_header_sqlite3_h" >&6
33897
if test $ac_cv_header_sqlite3_h = yes; then
33898
echo "$as_me:$LINENO: checking for sqlite3_open in -lsqlite3" >&5
33899
echo $ECHO_N "checking for sqlite3_open in -lsqlite3... $ECHO_C" >&6
33900
if test "${ac_cv_lib_sqlite3_sqlite3_open+set}" = set; then
33901
echo $ECHO_N "(cached) $ECHO_C" >&6
33903
ac_check_lib_save_LIBS=$LIBS
33904
LIBS="-lsqlite3 $LIBS"
33905
cat >conftest.$ac_ext <<_ACEOF
33908
cat confdefs.h >>conftest.$ac_ext
33909
cat >>conftest.$ac_ext <<_ACEOF
33910
/* end confdefs.h. */
33912
/* Override any gcc2 internal prototype to avoid an error. */
33916
/* We use char because int might match the return type of a gcc2
33917
builtin and then its argument prototype would still apply. */
33918
char sqlite3_open ();
33927
rm -f conftest.$ac_objext conftest$ac_exeext
33928
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33929
(eval $ac_link) 2>conftest.er1
33931
grep -v '^ *+' conftest.er1 >conftest.err
33933
cat conftest.err >&5
33934
echo "$as_me:$LINENO: \$? = $ac_status" >&5
33935
(exit $ac_status); } &&
33936
{ ac_try='test -z "$ac_c_werror_flag"
33937
|| test ! -s conftest.err'
33938
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33939
(eval $ac_try) 2>&5
33941
echo "$as_me:$LINENO: \$? = $ac_status" >&5
33942
(exit $ac_status); }; } &&
33943
{ ac_try='test -s conftest$ac_exeext'
33944
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33945
(eval $ac_try) 2>&5
33947
echo "$as_me:$LINENO: \$? = $ac_status" >&5
33948
(exit $ac_status); }; }; then
33949
ac_cv_lib_sqlite3_sqlite3_open=yes
33951
echo "$as_me: failed program was:" >&5
33952
sed 's/^/| /' conftest.$ac_ext >&5
33954
ac_cv_lib_sqlite3_sqlite3_open=no
33956
rm -f conftest.err conftest.$ac_objext \
33957
conftest$ac_exeext conftest.$ac_ext
33958
LIBS=$ac_check_lib_save_LIBS
33960
echo "$as_me:$LINENO: result: $ac_cv_lib_sqlite3_sqlite3_open" >&5
33961
echo "${ECHO_T}$ac_cv_lib_sqlite3_sqlite3_open" >&6
33962
if test $ac_cv_lib_sqlite3_sqlite3_open = yes; then
33969
elif test "$withval" = "no"; then
33972
CPPFLAGS="-I$withval/include"
33973
LIBS="-L$withval/lib "
33975
{ echo "$as_me:$LINENO: checking for sqlite3 in $withval" >&5
33976
echo "$as_me: checking for sqlite3 in $withval" >&6;}
33977
if test "${ac_cv_header_sqlite3_h+set}" = set; then
33978
echo "$as_me:$LINENO: checking for sqlite3.h" >&5
33979
echo $ECHO_N "checking for sqlite3.h... $ECHO_C" >&6
33980
if test "${ac_cv_header_sqlite3_h+set}" = set; then
33981
echo $ECHO_N "(cached) $ECHO_C" >&6
33983
echo "$as_me:$LINENO: result: $ac_cv_header_sqlite3_h" >&5
33984
echo "${ECHO_T}$ac_cv_header_sqlite3_h" >&6
33986
# Is the header compilable?
33987
echo "$as_me:$LINENO: checking sqlite3.h usability" >&5
33988
echo $ECHO_N "checking sqlite3.h usability... $ECHO_C" >&6
33989
cat >conftest.$ac_ext <<_ACEOF
33992
cat confdefs.h >>conftest.$ac_ext
33993
cat >>conftest.$ac_ext <<_ACEOF
33994
/* end confdefs.h. */
33995
$ac_includes_default
33996
#include <sqlite3.h>
33998
rm -f conftest.$ac_objext
33999
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34000
(eval $ac_compile) 2>conftest.er1
34002
grep -v '^ *+' conftest.er1 >conftest.err
34004
cat conftest.err >&5
34005
echo "$as_me:$LINENO: \$? = $ac_status" >&5
34006
(exit $ac_status); } &&
34007
{ ac_try='test -z "$ac_c_werror_flag"
34008
|| test ! -s conftest.err'
34009
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34010
(eval $ac_try) 2>&5
34012
echo "$as_me:$LINENO: \$? = $ac_status" >&5
34013
(exit $ac_status); }; } &&
34014
{ ac_try='test -s conftest.$ac_objext'
34015
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34016
(eval $ac_try) 2>&5
34018
echo "$as_me:$LINENO: \$? = $ac_status" >&5
34019
(exit $ac_status); }; }; then
34020
ac_header_compiler=yes
34022
echo "$as_me: failed program was:" >&5
34023
sed 's/^/| /' conftest.$ac_ext >&5
34025
ac_header_compiler=no
34027
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34028
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34029
echo "${ECHO_T}$ac_header_compiler" >&6
34031
# Is the header present?
34032
echo "$as_me:$LINENO: checking sqlite3.h presence" >&5
34033
echo $ECHO_N "checking sqlite3.h presence... $ECHO_C" >&6
34034
cat >conftest.$ac_ext <<_ACEOF
34037
cat confdefs.h >>conftest.$ac_ext
34038
cat >>conftest.$ac_ext <<_ACEOF
34039
/* end confdefs.h. */
34040
#include <sqlite3.h>
34042
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34043
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34045
grep -v '^ *+' conftest.er1 >conftest.err
34047
cat conftest.err >&5
34048
echo "$as_me:$LINENO: \$? = $ac_status" >&5
34049
(exit $ac_status); } >/dev/null; then
34050
if test -s conftest.err; then
34051
ac_cpp_err=$ac_c_preproc_warn_flag
34052
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34059
if test -z "$ac_cpp_err"; then
34060
ac_header_preproc=yes
34062
echo "$as_me: failed program was:" >&5
34063
sed 's/^/| /' conftest.$ac_ext >&5
34065
ac_header_preproc=no
34067
rm -f conftest.err conftest.$ac_ext
34068
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34069
echo "${ECHO_T}$ac_header_preproc" >&6
34071
# So? What about this header?
34072
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34074
{ echo "$as_me:$LINENO: WARNING: sqlite3.h: accepted by the compiler, rejected by the preprocessor!" >&5
34075
echo "$as_me: WARNING: sqlite3.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
34076
{ echo "$as_me:$LINENO: WARNING: sqlite3.h: proceeding with the compiler's result" >&5
34077
echo "$as_me: WARNING: sqlite3.h: proceeding with the compiler's result" >&2;}
34078
ac_header_preproc=yes
34081
{ echo "$as_me:$LINENO: WARNING: sqlite3.h: present but cannot be compiled" >&5
34082
echo "$as_me: WARNING: sqlite3.h: present but cannot be compiled" >&2;}
34083
{ echo "$as_me:$LINENO: WARNING: sqlite3.h: check for missing prerequisite headers?" >&5
34084
echo "$as_me: WARNING: sqlite3.h: check for missing prerequisite headers?" >&2;}
34085
{ echo "$as_me:$LINENO: WARNING: sqlite3.h: see the Autoconf documentation" >&5
34086
echo "$as_me: WARNING: sqlite3.h: see the Autoconf documentation" >&2;}
34087
{ echo "$as_me:$LINENO: WARNING: sqlite3.h: section \"Present But Cannot Be Compiled\"" >&5
34088
echo "$as_me: WARNING: sqlite3.h: section \"Present But Cannot Be Compiled\"" >&2;}
34089
{ echo "$as_me:$LINENO: WARNING: sqlite3.h: proceeding with the preprocessor's result" >&5
34090
echo "$as_me: WARNING: sqlite3.h: proceeding with the preprocessor's result" >&2;}
34091
{ echo "$as_me:$LINENO: WARNING: sqlite3.h: in the future, the compiler will take precedence" >&5
34092
echo "$as_me: WARNING: sqlite3.h: in the future, the compiler will take precedence" >&2;}
34095
## ------------------------------------------ ##
34096
## Report this to the AC_PACKAGE_NAME lists. ##
34097
## ------------------------------------------ ##
34100
sed "s/^/$as_me: WARNING: /" >&2
34103
echo "$as_me:$LINENO: checking for sqlite3.h" >&5
34104
echo $ECHO_N "checking for sqlite3.h... $ECHO_C" >&6
34105
if test "${ac_cv_header_sqlite3_h+set}" = set; then
34106
echo $ECHO_N "(cached) $ECHO_C" >&6
34108
ac_cv_header_sqlite3_h=$ac_header_preproc
34110
echo "$as_me:$LINENO: result: $ac_cv_header_sqlite3_h" >&5
34111
echo "${ECHO_T}$ac_cv_header_sqlite3_h" >&6
34114
if test $ac_cv_header_sqlite3_h = yes; then
34115
echo "$as_me:$LINENO: checking for sqlite3_open in -lsqlite3" >&5
34116
echo $ECHO_N "checking for sqlite3_open in -lsqlite3... $ECHO_C" >&6
34117
if test "${ac_cv_lib_sqlite3_sqlite3_open+set}" = set; then
34118
echo $ECHO_N "(cached) $ECHO_C" >&6
34120
ac_check_lib_save_LIBS=$LIBS
34121
LIBS="-lsqlite3 $LIBS"
34122
cat >conftest.$ac_ext <<_ACEOF
34125
cat confdefs.h >>conftest.$ac_ext
34126
cat >>conftest.$ac_ext <<_ACEOF
34127
/* end confdefs.h. */
34129
/* Override any gcc2 internal prototype to avoid an error. */
34133
/* We use char because int might match the return type of a gcc2
34134
builtin and then its argument prototype would still apply. */
34135
char sqlite3_open ();
34144
rm -f conftest.$ac_objext conftest$ac_exeext
34145
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34146
(eval $ac_link) 2>conftest.er1
34148
grep -v '^ *+' conftest.er1 >conftest.err
34150
cat conftest.err >&5
34151
echo "$as_me:$LINENO: \$? = $ac_status" >&5
34152
(exit $ac_status); } &&
34153
{ ac_try='test -z "$ac_c_werror_flag"
34154
|| test ! -s conftest.err'
34155
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34156
(eval $ac_try) 2>&5
34158
echo "$as_me:$LINENO: \$? = $ac_status" >&5
34159
(exit $ac_status); }; } &&
34160
{ ac_try='test -s conftest$ac_exeext'
34161
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34162
(eval $ac_try) 2>&5
34164
echo "$as_me:$LINENO: \$? = $ac_status" >&5
34165
(exit $ac_status); }; }; then
34166
ac_cv_lib_sqlite3_sqlite3_open=yes
34168
echo "$as_me: failed program was:" >&5
34169
sed 's/^/| /' conftest.$ac_ext >&5
34171
ac_cv_lib_sqlite3_sqlite3_open=no
34173
rm -f conftest.err conftest.$ac_objext \
34174
conftest$ac_exeext conftest.$ac_ext
34175
LIBS=$ac_check_lib_save_LIBS
34177
echo "$as_me:$LINENO: result: $ac_cv_lib_sqlite3_sqlite3_open" >&5
34178
echo "${ECHO_T}$ac_cv_lib_sqlite3_sqlite3_open" >&6
34179
if test $ac_cv_lib_sqlite3_sqlite3_open = yes; then
34186
if test "$apu_have_sqlite3" != "0"; then
34188
if test "x$APRUTIL_LDFLAGS" = "x"; then
34189
test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$withval/lib\""
34190
APRUTIL_LDFLAGS="-L$withval/lib"
34192
apr_addto_bugger="-L$withval/lib"
34193
for i in $apr_addto_bugger; do
34194
apr_addto_duplicate="0"
34195
for j in $APRUTIL_LDFLAGS; do
34196
if test "x$i" = "x$j"; then
34197
apr_addto_duplicate="1"
34201
if test $apr_addto_duplicate = "0"; then
34202
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS"
34203
APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
34209
if test "x$APRUTIL_INCLUDES" = "x"; then
34210
test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$withval/include\""
34211
APRUTIL_INCLUDES="-I$withval/include"
34213
apr_addto_bugger="-I$withval/include"
34214
for i in $apr_addto_bugger; do
34215
apr_addto_duplicate="0"
34216
for j in $APRUTIL_INCLUDES; do
34217
if test "x$i" = "x$j"; then
34218
apr_addto_duplicate="1"
34222
if test $apr_addto_duplicate = "0"; then
34223
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES"
34224
APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
34235
if test "${ac_cv_header_sqlite3_h+set}" = set; then
34236
echo "$as_me:$LINENO: checking for sqlite3.h" >&5
34237
echo $ECHO_N "checking for sqlite3.h... $ECHO_C" >&6
34238
if test "${ac_cv_header_sqlite3_h+set}" = set; then
34239
echo $ECHO_N "(cached) $ECHO_C" >&6
34241
echo "$as_me:$LINENO: result: $ac_cv_header_sqlite3_h" >&5
34242
echo "${ECHO_T}$ac_cv_header_sqlite3_h" >&6
34244
# Is the header compilable?
34245
echo "$as_me:$LINENO: checking sqlite3.h usability" >&5
34246
echo $ECHO_N "checking sqlite3.h usability... $ECHO_C" >&6
34247
cat >conftest.$ac_ext <<_ACEOF
34250
cat confdefs.h >>conftest.$ac_ext
34251
cat >>conftest.$ac_ext <<_ACEOF
34252
/* end confdefs.h. */
34253
$ac_includes_default
34254
#include <sqlite3.h>
34256
rm -f conftest.$ac_objext
34257
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34258
(eval $ac_compile) 2>conftest.er1
34260
grep -v '^ *+' conftest.er1 >conftest.err
34262
cat conftest.err >&5
34263
echo "$as_me:$LINENO: \$? = $ac_status" >&5
34264
(exit $ac_status); } &&
34265
{ ac_try='test -z "$ac_c_werror_flag"
34266
|| test ! -s conftest.err'
34267
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34268
(eval $ac_try) 2>&5
34270
echo "$as_me:$LINENO: \$? = $ac_status" >&5
34271
(exit $ac_status); }; } &&
34272
{ ac_try='test -s conftest.$ac_objext'
34273
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34274
(eval $ac_try) 2>&5
34276
echo "$as_me:$LINENO: \$? = $ac_status" >&5
34277
(exit $ac_status); }; }; then
34278
ac_header_compiler=yes
34280
echo "$as_me: failed program was:" >&5
34281
sed 's/^/| /' conftest.$ac_ext >&5
34283
ac_header_compiler=no
34285
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34286
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34287
echo "${ECHO_T}$ac_header_compiler" >&6
34289
# Is the header present?
34290
echo "$as_me:$LINENO: checking sqlite3.h presence" >&5
34291
echo $ECHO_N "checking sqlite3.h presence... $ECHO_C" >&6
34292
cat >conftest.$ac_ext <<_ACEOF
34295
cat confdefs.h >>conftest.$ac_ext
34296
cat >>conftest.$ac_ext <<_ACEOF
34297
/* end confdefs.h. */
34298
#include <sqlite3.h>
34300
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34301
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34303
grep -v '^ *+' conftest.er1 >conftest.err
34305
cat conftest.err >&5
34306
echo "$as_me:$LINENO: \$? = $ac_status" >&5
34307
(exit $ac_status); } >/dev/null; then
34308
if test -s conftest.err; then
34309
ac_cpp_err=$ac_c_preproc_warn_flag
34310
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34317
if test -z "$ac_cpp_err"; then
34318
ac_header_preproc=yes
34320
echo "$as_me: failed program was:" >&5
34321
sed 's/^/| /' conftest.$ac_ext >&5
34323
ac_header_preproc=no
34325
rm -f conftest.err conftest.$ac_ext
34326
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34327
echo "${ECHO_T}$ac_header_preproc" >&6
34329
# So? What about this header?
34330
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34332
{ echo "$as_me:$LINENO: WARNING: sqlite3.h: accepted by the compiler, rejected by the preprocessor!" >&5
34333
echo "$as_me: WARNING: sqlite3.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
34334
{ echo "$as_me:$LINENO: WARNING: sqlite3.h: proceeding with the compiler's result" >&5
34335
echo "$as_me: WARNING: sqlite3.h: proceeding with the compiler's result" >&2;}
34336
ac_header_preproc=yes
34339
{ echo "$as_me:$LINENO: WARNING: sqlite3.h: present but cannot be compiled" >&5
34340
echo "$as_me: WARNING: sqlite3.h: present but cannot be compiled" >&2;}
34341
{ echo "$as_me:$LINENO: WARNING: sqlite3.h: check for missing prerequisite headers?" >&5
34342
echo "$as_me: WARNING: sqlite3.h: check for missing prerequisite headers?" >&2;}
34343
{ echo "$as_me:$LINENO: WARNING: sqlite3.h: see the Autoconf documentation" >&5
34344
echo "$as_me: WARNING: sqlite3.h: see the Autoconf documentation" >&2;}
34345
{ echo "$as_me:$LINENO: WARNING: sqlite3.h: section \"Present But Cannot Be Compiled\"" >&5
34346
echo "$as_me: WARNING: sqlite3.h: section \"Present But Cannot Be Compiled\"" >&2;}
34347
{ echo "$as_me:$LINENO: WARNING: sqlite3.h: proceeding with the preprocessor's result" >&5
34348
echo "$as_me: WARNING: sqlite3.h: proceeding with the preprocessor's result" >&2;}
34349
{ echo "$as_me:$LINENO: WARNING: sqlite3.h: in the future, the compiler will take precedence" >&5
34350
echo "$as_me: WARNING: sqlite3.h: in the future, the compiler will take precedence" >&2;}
34353
## ------------------------------------------ ##
34354
## Report this to the AC_PACKAGE_NAME lists. ##
34355
## ------------------------------------------ ##
34358
sed "s/^/$as_me: WARNING: /" >&2
34361
echo "$as_me:$LINENO: checking for sqlite3.h" >&5
34362
echo $ECHO_N "checking for sqlite3.h... $ECHO_C" >&6
34363
if test "${ac_cv_header_sqlite3_h+set}" = set; then
34364
echo $ECHO_N "(cached) $ECHO_C" >&6
34366
ac_cv_header_sqlite3_h=$ac_header_preproc
34368
echo "$as_me:$LINENO: result: $ac_cv_header_sqlite3_h" >&5
34369
echo "${ECHO_T}$ac_cv_header_sqlite3_h" >&6
34372
if test $ac_cv_header_sqlite3_h = yes; then
34373
echo "$as_me:$LINENO: checking for sqlite3_open in -lsqlite3" >&5
34374
echo $ECHO_N "checking for sqlite3_open in -lsqlite3... $ECHO_C" >&6
34375
if test "${ac_cv_lib_sqlite3_sqlite3_open+set}" = set; then
34376
echo $ECHO_N "(cached) $ECHO_C" >&6
34378
ac_check_lib_save_LIBS=$LIBS
34379
LIBS="-lsqlite3 $LIBS"
34380
cat >conftest.$ac_ext <<_ACEOF
34383
cat confdefs.h >>conftest.$ac_ext
34384
cat >>conftest.$ac_ext <<_ACEOF
34385
/* end confdefs.h. */
34387
/* Override any gcc2 internal prototype to avoid an error. */
34391
/* We use char because int might match the return type of a gcc2
34392
builtin and then its argument prototype would still apply. */
34393
char sqlite3_open ();
34402
rm -f conftest.$ac_objext conftest$ac_exeext
34403
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34404
(eval $ac_link) 2>conftest.er1
34406
grep -v '^ *+' conftest.er1 >conftest.err
34408
cat conftest.err >&5
34409
echo "$as_me:$LINENO: \$? = $ac_status" >&5
34410
(exit $ac_status); } &&
34411
{ ac_try='test -z "$ac_c_werror_flag"
34412
|| test ! -s conftest.err'
34413
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34414
(eval $ac_try) 2>&5
34416
echo "$as_me:$LINENO: \$? = $ac_status" >&5
34417
(exit $ac_status); }; } &&
34418
{ ac_try='test -s conftest$ac_exeext'
34419
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34420
(eval $ac_try) 2>&5
34422
echo "$as_me:$LINENO: \$? = $ac_status" >&5
34423
(exit $ac_status); }; }; then
34424
ac_cv_lib_sqlite3_sqlite3_open=yes
34426
echo "$as_me: failed program was:" >&5
34427
sed 's/^/| /' conftest.$ac_ext >&5
34429
ac_cv_lib_sqlite3_sqlite3_open=no
34431
rm -f conftest.err conftest.$ac_objext \
34432
conftest$ac_exeext conftest.$ac_ext
34433
LIBS=$ac_check_lib_save_LIBS
34435
echo "$as_me:$LINENO: result: $ac_cv_lib_sqlite3_sqlite3_open" >&5
34436
echo "${ECHO_T}$ac_cv_lib_sqlite3_sqlite3_open" >&6
34437
if test $ac_cv_lib_sqlite3_sqlite3_open = yes; then
34449
if test "$apu_have_sqlite3" = "1"; then
34451
if test "x$APRUTIL_EXPORT_LIBS" = "x"; then
34452
test "x$silent" != "xyes" && echo " setting APRUTIL_EXPORT_LIBS to \"-lsqlite3\""
34453
APRUTIL_EXPORT_LIBS="-lsqlite3"
34455
apr_addto_bugger="-lsqlite3"
34456
for i in $apr_addto_bugger; do
34457
apr_addto_duplicate="0"
34458
for j in $APRUTIL_EXPORT_LIBS; do
34459
if test "x$i" = "x$j"; then
34460
apr_addto_duplicate="1"
34464
if test $apr_addto_duplicate = "0"; then
34465
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_EXPORT_LIBS"
34466
APRUTIL_EXPORT_LIBS="$APRUTIL_EXPORT_LIBS $i"
34472
if test "x$APRUTIL_LIBS" = "x"; then
34473
test "x$silent" != "xyes" && echo " setting APRUTIL_LIBS to \"-lsqlite3\""
34474
APRUTIL_LIBS="-lsqlite3"
34476
apr_addto_bugger="-lsqlite3"
34477
for i in $apr_addto_bugger; do
34478
apr_addto_duplicate="0"
34479
for j in $APRUTIL_LIBS; do
34480
if test "x$i" = "x$j"; then
34481
apr_addto_duplicate="1"
34485
if test $apr_addto_duplicate = "0"; then
34486
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LIBS"
34487
APRUTIL_LIBS="$APRUTIL_LIBS $i"
34498
# Check whether --with-sqlite2 or --without-sqlite2 was given.
34499
if test "${with_sqlite2+set}" = set; then
34500
withval="$with_sqlite2"
34503
if test "$withval" = "yes"; then
34504
if test "${ac_cv_header_sqlite_h+set}" = set; then
34505
echo "$as_me:$LINENO: checking for sqlite.h" >&5
34506
echo $ECHO_N "checking for sqlite.h... $ECHO_C" >&6
34507
if test "${ac_cv_header_sqlite_h+set}" = set; then
34508
echo $ECHO_N "(cached) $ECHO_C" >&6
34510
echo "$as_me:$LINENO: result: $ac_cv_header_sqlite_h" >&5
34511
echo "${ECHO_T}$ac_cv_header_sqlite_h" >&6
34513
# Is the header compilable?
34514
echo "$as_me:$LINENO: checking sqlite.h usability" >&5
34515
echo $ECHO_N "checking sqlite.h usability... $ECHO_C" >&6
34516
cat >conftest.$ac_ext <<_ACEOF
34519
cat confdefs.h >>conftest.$ac_ext
34520
cat >>conftest.$ac_ext <<_ACEOF
34521
/* end confdefs.h. */
34522
$ac_includes_default
34523
#include <sqlite.h>
34525
rm -f conftest.$ac_objext
34526
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34527
(eval $ac_compile) 2>conftest.er1
34529
grep -v '^ *+' conftest.er1 >conftest.err
34531
cat conftest.err >&5
34532
echo "$as_me:$LINENO: \$? = $ac_status" >&5
34533
(exit $ac_status); } &&
34534
{ ac_try='test -z "$ac_c_werror_flag"
34535
|| test ! -s conftest.err'
34536
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34537
(eval $ac_try) 2>&5
34539
echo "$as_me:$LINENO: \$? = $ac_status" >&5
34540
(exit $ac_status); }; } &&
34541
{ ac_try='test -s conftest.$ac_objext'
34542
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34543
(eval $ac_try) 2>&5
34545
echo "$as_me:$LINENO: \$? = $ac_status" >&5
34546
(exit $ac_status); }; }; then
34547
ac_header_compiler=yes
34549
echo "$as_me: failed program was:" >&5
34550
sed 's/^/| /' conftest.$ac_ext >&5
34552
ac_header_compiler=no
34554
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34555
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34556
echo "${ECHO_T}$ac_header_compiler" >&6
34558
# Is the header present?
34559
echo "$as_me:$LINENO: checking sqlite.h presence" >&5
34560
echo $ECHO_N "checking sqlite.h presence... $ECHO_C" >&6
34561
cat >conftest.$ac_ext <<_ACEOF
34564
cat confdefs.h >>conftest.$ac_ext
34565
cat >>conftest.$ac_ext <<_ACEOF
34566
/* end confdefs.h. */
34567
#include <sqlite.h>
34569
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34570
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34572
grep -v '^ *+' conftest.er1 >conftest.err
34574
cat conftest.err >&5
34575
echo "$as_me:$LINENO: \$? = $ac_status" >&5
34576
(exit $ac_status); } >/dev/null; then
34577
if test -s conftest.err; then
34578
ac_cpp_err=$ac_c_preproc_warn_flag
34579
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34586
if test -z "$ac_cpp_err"; then
34587
ac_header_preproc=yes
34589
echo "$as_me: failed program was:" >&5
34590
sed 's/^/| /' conftest.$ac_ext >&5
34592
ac_header_preproc=no
34594
rm -f conftest.err conftest.$ac_ext
34595
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34596
echo "${ECHO_T}$ac_header_preproc" >&6
34598
# So? What about this header?
34599
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34601
{ echo "$as_me:$LINENO: WARNING: sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&5
34602
echo "$as_me: WARNING: sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
34603
{ echo "$as_me:$LINENO: WARNING: sqlite.h: proceeding with the compiler's result" >&5
34604
echo "$as_me: WARNING: sqlite.h: proceeding with the compiler's result" >&2;}
34605
ac_header_preproc=yes
34608
{ echo "$as_me:$LINENO: WARNING: sqlite.h: present but cannot be compiled" >&5
34609
echo "$as_me: WARNING: sqlite.h: present but cannot be compiled" >&2;}
34610
{ echo "$as_me:$LINENO: WARNING: sqlite.h: check for missing prerequisite headers?" >&5
34611
echo "$as_me: WARNING: sqlite.h: check for missing prerequisite headers?" >&2;}
34612
{ echo "$as_me:$LINENO: WARNING: sqlite.h: see the Autoconf documentation" >&5
34613
echo "$as_me: WARNING: sqlite.h: see the Autoconf documentation" >&2;}
34614
{ echo "$as_me:$LINENO: WARNING: sqlite.h: section \"Present But Cannot Be Compiled\"" >&5
34615
echo "$as_me: WARNING: sqlite.h: section \"Present But Cannot Be Compiled\"" >&2;}
34616
{ echo "$as_me:$LINENO: WARNING: sqlite.h: proceeding with the preprocessor's result" >&5
34617
echo "$as_me: WARNING: sqlite.h: proceeding with the preprocessor's result" >&2;}
34618
{ echo "$as_me:$LINENO: WARNING: sqlite.h: in the future, the compiler will take precedence" >&5
34619
echo "$as_me: WARNING: sqlite.h: in the future, the compiler will take precedence" >&2;}
34622
## ------------------------------------------ ##
34623
## Report this to the AC_PACKAGE_NAME lists. ##
34624
## ------------------------------------------ ##
34627
sed "s/^/$as_me: WARNING: /" >&2
34630
echo "$as_me:$LINENO: checking for sqlite.h" >&5
34631
echo $ECHO_N "checking for sqlite.h... $ECHO_C" >&6
34632
if test "${ac_cv_header_sqlite_h+set}" = set; then
34633
echo $ECHO_N "(cached) $ECHO_C" >&6
34635
ac_cv_header_sqlite_h=$ac_header_preproc
34637
echo "$as_me:$LINENO: result: $ac_cv_header_sqlite_h" >&5
34638
echo "${ECHO_T}$ac_cv_header_sqlite_h" >&6
34641
if test $ac_cv_header_sqlite_h = yes; then
34642
echo "$as_me:$LINENO: checking for sqlite_open in -lsqlite" >&5
34643
echo $ECHO_N "checking for sqlite_open in -lsqlite... $ECHO_C" >&6
34644
if test "${ac_cv_lib_sqlite_sqlite_open+set}" = set; then
34645
echo $ECHO_N "(cached) $ECHO_C" >&6
34647
ac_check_lib_save_LIBS=$LIBS
34648
LIBS="-lsqlite $LIBS"
34649
cat >conftest.$ac_ext <<_ACEOF
34652
cat confdefs.h >>conftest.$ac_ext
34653
cat >>conftest.$ac_ext <<_ACEOF
34654
/* end confdefs.h. */
34656
/* Override any gcc2 internal prototype to avoid an error. */
34660
/* We use char because int might match the return type of a gcc2
34661
builtin and then its argument prototype would still apply. */
34662
char sqlite_open ();
34671
rm -f conftest.$ac_objext conftest$ac_exeext
34672
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34673
(eval $ac_link) 2>conftest.er1
34675
grep -v '^ *+' conftest.er1 >conftest.err
34677
cat conftest.err >&5
34678
echo "$as_me:$LINENO: \$? = $ac_status" >&5
34679
(exit $ac_status); } &&
34680
{ ac_try='test -z "$ac_c_werror_flag"
34681
|| test ! -s conftest.err'
34682
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34683
(eval $ac_try) 2>&5
34685
echo "$as_me:$LINENO: \$? = $ac_status" >&5
34686
(exit $ac_status); }; } &&
34687
{ ac_try='test -s conftest$ac_exeext'
34688
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34689
(eval $ac_try) 2>&5
34691
echo "$as_me:$LINENO: \$? = $ac_status" >&5
34692
(exit $ac_status); }; }; then
34693
ac_cv_lib_sqlite_sqlite_open=yes
34695
echo "$as_me: failed program was:" >&5
34696
sed 's/^/| /' conftest.$ac_ext >&5
34698
ac_cv_lib_sqlite_sqlite_open=no
34700
rm -f conftest.err conftest.$ac_objext \
34701
conftest$ac_exeext conftest.$ac_ext
34702
LIBS=$ac_check_lib_save_LIBS
34704
echo "$as_me:$LINENO: result: $ac_cv_lib_sqlite_sqlite_open" >&5
34705
echo "${ECHO_T}$ac_cv_lib_sqlite_sqlite_open" >&6
34706
if test $ac_cv_lib_sqlite_sqlite_open = yes; then
34713
elif test "$withval" = "no"; then
34716
CPPFLAGS="-I$withval/include"
34717
LIBS="-L$withval/lib "
34719
{ echo "$as_me:$LINENO: checking for sqlite2 in $withval" >&5
34720
echo "$as_me: checking for sqlite2 in $withval" >&6;}
34721
if test "${ac_cv_header_sqlite_h+set}" = set; then
34722
echo "$as_me:$LINENO: checking for sqlite.h" >&5
34723
echo $ECHO_N "checking for sqlite.h... $ECHO_C" >&6
34724
if test "${ac_cv_header_sqlite_h+set}" = set; then
34725
echo $ECHO_N "(cached) $ECHO_C" >&6
34727
echo "$as_me:$LINENO: result: $ac_cv_header_sqlite_h" >&5
34728
echo "${ECHO_T}$ac_cv_header_sqlite_h" >&6
34730
# Is the header compilable?
34731
echo "$as_me:$LINENO: checking sqlite.h usability" >&5
34732
echo $ECHO_N "checking sqlite.h usability... $ECHO_C" >&6
34733
cat >conftest.$ac_ext <<_ACEOF
34736
cat confdefs.h >>conftest.$ac_ext
34737
cat >>conftest.$ac_ext <<_ACEOF
34738
/* end confdefs.h. */
34739
$ac_includes_default
34740
#include <sqlite.h>
34742
rm -f conftest.$ac_objext
34743
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34744
(eval $ac_compile) 2>conftest.er1
34746
grep -v '^ *+' conftest.er1 >conftest.err
34748
cat conftest.err >&5
34749
echo "$as_me:$LINENO: \$? = $ac_status" >&5
34750
(exit $ac_status); } &&
34751
{ ac_try='test -z "$ac_c_werror_flag"
34752
|| test ! -s conftest.err'
34753
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34754
(eval $ac_try) 2>&5
34756
echo "$as_me:$LINENO: \$? = $ac_status" >&5
34757
(exit $ac_status); }; } &&
34758
{ ac_try='test -s conftest.$ac_objext'
34759
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34760
(eval $ac_try) 2>&5
34762
echo "$as_me:$LINENO: \$? = $ac_status" >&5
34763
(exit $ac_status); }; }; then
34764
ac_header_compiler=yes
34766
echo "$as_me: failed program was:" >&5
34767
sed 's/^/| /' conftest.$ac_ext >&5
34769
ac_header_compiler=no
34771
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34772
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34773
echo "${ECHO_T}$ac_header_compiler" >&6
34775
# Is the header present?
34776
echo "$as_me:$LINENO: checking sqlite.h presence" >&5
34777
echo $ECHO_N "checking sqlite.h presence... $ECHO_C" >&6
34778
cat >conftest.$ac_ext <<_ACEOF
34781
cat confdefs.h >>conftest.$ac_ext
34782
cat >>conftest.$ac_ext <<_ACEOF
34783
/* end confdefs.h. */
34784
#include <sqlite.h>
34786
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34787
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34789
grep -v '^ *+' conftest.er1 >conftest.err
34791
cat conftest.err >&5
34792
echo "$as_me:$LINENO: \$? = $ac_status" >&5
34793
(exit $ac_status); } >/dev/null; then
34794
if test -s conftest.err; then
34795
ac_cpp_err=$ac_c_preproc_warn_flag
34796
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34803
if test -z "$ac_cpp_err"; then
34804
ac_header_preproc=yes
34806
echo "$as_me: failed program was:" >&5
34807
sed 's/^/| /' conftest.$ac_ext >&5
34809
ac_header_preproc=no
34811
rm -f conftest.err conftest.$ac_ext
34812
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34813
echo "${ECHO_T}$ac_header_preproc" >&6
34815
# So? What about this header?
34816
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34818
{ echo "$as_me:$LINENO: WARNING: sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&5
34819
echo "$as_me: WARNING: sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
34820
{ echo "$as_me:$LINENO: WARNING: sqlite.h: proceeding with the compiler's result" >&5
34821
echo "$as_me: WARNING: sqlite.h: proceeding with the compiler's result" >&2;}
34822
ac_header_preproc=yes
34825
{ echo "$as_me:$LINENO: WARNING: sqlite.h: present but cannot be compiled" >&5
34826
echo "$as_me: WARNING: sqlite.h: present but cannot be compiled" >&2;}
34827
{ echo "$as_me:$LINENO: WARNING: sqlite.h: check for missing prerequisite headers?" >&5
34828
echo "$as_me: WARNING: sqlite.h: check for missing prerequisite headers?" >&2;}
34829
{ echo "$as_me:$LINENO: WARNING: sqlite.h: see the Autoconf documentation" >&5
34830
echo "$as_me: WARNING: sqlite.h: see the Autoconf documentation" >&2;}
34831
{ echo "$as_me:$LINENO: WARNING: sqlite.h: section \"Present But Cannot Be Compiled\"" >&5
34832
echo "$as_me: WARNING: sqlite.h: section \"Present But Cannot Be Compiled\"" >&2;}
34833
{ echo "$as_me:$LINENO: WARNING: sqlite.h: proceeding with the preprocessor's result" >&5
34834
echo "$as_me: WARNING: sqlite.h: proceeding with the preprocessor's result" >&2;}
34835
{ echo "$as_me:$LINENO: WARNING: sqlite.h: in the future, the compiler will take precedence" >&5
34836
echo "$as_me: WARNING: sqlite.h: in the future, the compiler will take precedence" >&2;}
34839
## ------------------------------------------ ##
34840
## Report this to the AC_PACKAGE_NAME lists. ##
34841
## ------------------------------------------ ##
34844
sed "s/^/$as_me: WARNING: /" >&2
34847
echo "$as_me:$LINENO: checking for sqlite.h" >&5
34848
echo $ECHO_N "checking for sqlite.h... $ECHO_C" >&6
34849
if test "${ac_cv_header_sqlite_h+set}" = set; then
34850
echo $ECHO_N "(cached) $ECHO_C" >&6
34852
ac_cv_header_sqlite_h=$ac_header_preproc
34854
echo "$as_me:$LINENO: result: $ac_cv_header_sqlite_h" >&5
34855
echo "${ECHO_T}$ac_cv_header_sqlite_h" >&6
34858
if test $ac_cv_header_sqlite_h = yes; then
34859
echo "$as_me:$LINENO: checking for sqlite_open in -lsqlite" >&5
34860
echo $ECHO_N "checking for sqlite_open in -lsqlite... $ECHO_C" >&6
34861
if test "${ac_cv_lib_sqlite_sqlite_open+set}" = set; then
34862
echo $ECHO_N "(cached) $ECHO_C" >&6
34864
ac_check_lib_save_LIBS=$LIBS
34865
LIBS="-lsqlite $LIBS"
34866
cat >conftest.$ac_ext <<_ACEOF
34869
cat confdefs.h >>conftest.$ac_ext
34870
cat >>conftest.$ac_ext <<_ACEOF
34871
/* end confdefs.h. */
34873
/* Override any gcc2 internal prototype to avoid an error. */
34877
/* We use char because int might match the return type of a gcc2
34878
builtin and then its argument prototype would still apply. */
34879
char sqlite_open ();
34888
rm -f conftest.$ac_objext conftest$ac_exeext
34889
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34890
(eval $ac_link) 2>conftest.er1
34892
grep -v '^ *+' conftest.er1 >conftest.err
34894
cat conftest.err >&5
34895
echo "$as_me:$LINENO: \$? = $ac_status" >&5
34896
(exit $ac_status); } &&
34897
{ ac_try='test -z "$ac_c_werror_flag"
34898
|| test ! -s conftest.err'
34899
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34900
(eval $ac_try) 2>&5
34902
echo "$as_me:$LINENO: \$? = $ac_status" >&5
34903
(exit $ac_status); }; } &&
34904
{ ac_try='test -s conftest$ac_exeext'
34905
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34906
(eval $ac_try) 2>&5
34908
echo "$as_me:$LINENO: \$? = $ac_status" >&5
34909
(exit $ac_status); }; }; then
34910
ac_cv_lib_sqlite_sqlite_open=yes
34912
echo "$as_me: failed program was:" >&5
34913
sed 's/^/| /' conftest.$ac_ext >&5
34915
ac_cv_lib_sqlite_sqlite_open=no
34917
rm -f conftest.err conftest.$ac_objext \
34918
conftest$ac_exeext conftest.$ac_ext
34919
LIBS=$ac_check_lib_save_LIBS
34921
echo "$as_me:$LINENO: result: $ac_cv_lib_sqlite_sqlite_open" >&5
34922
echo "${ECHO_T}$ac_cv_lib_sqlite_sqlite_open" >&6
34923
if test $ac_cv_lib_sqlite_sqlite_open = yes; then
34930
if test "$apu_have_sqlite2" != "0"; then
34932
if test "x$APRUTIL_LDFLAGS" = "x"; then
34933
test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$withval/lib\""
34934
APRUTIL_LDFLAGS="-L$withval/lib"
34936
apr_addto_bugger="-L$withval/lib"
34937
for i in $apr_addto_bugger; do
34938
apr_addto_duplicate="0"
34939
for j in $APRUTIL_LDFLAGS; do
34940
if test "x$i" = "x$j"; then
34941
apr_addto_duplicate="1"
34945
if test $apr_addto_duplicate = "0"; then
34946
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS"
34947
APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
34953
if test "x$APRUTIL_INCLUDES" = "x"; then
34954
test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$withval/include\""
34955
APRUTIL_INCLUDES="-I$withval/include"
34957
apr_addto_bugger="-I$withval/include"
34958
for i in $apr_addto_bugger; do
34959
apr_addto_duplicate="0"
34960
for j in $APRUTIL_INCLUDES; do
34961
if test "x$i" = "x$j"; then
34962
apr_addto_duplicate="1"
34966
if test $apr_addto_duplicate = "0"; then
34967
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES"
34968
APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
34979
if test "${ac_cv_header_sqlite_h+set}" = set; then
34980
echo "$as_me:$LINENO: checking for sqlite.h" >&5
34981
echo $ECHO_N "checking for sqlite.h... $ECHO_C" >&6
34982
if test "${ac_cv_header_sqlite_h+set}" = set; then
34983
echo $ECHO_N "(cached) $ECHO_C" >&6
34985
echo "$as_me:$LINENO: result: $ac_cv_header_sqlite_h" >&5
34986
echo "${ECHO_T}$ac_cv_header_sqlite_h" >&6
34988
# Is the header compilable?
34989
echo "$as_me:$LINENO: checking sqlite.h usability" >&5
34990
echo $ECHO_N "checking sqlite.h usability... $ECHO_C" >&6
34991
cat >conftest.$ac_ext <<_ACEOF
34994
cat confdefs.h >>conftest.$ac_ext
34995
cat >>conftest.$ac_ext <<_ACEOF
34996
/* end confdefs.h. */
34997
$ac_includes_default
34998
#include <sqlite.h>
35000
rm -f conftest.$ac_objext
35001
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35002
(eval $ac_compile) 2>conftest.er1
35004
grep -v '^ *+' conftest.er1 >conftest.err
35006
cat conftest.err >&5
35007
echo "$as_me:$LINENO: \$? = $ac_status" >&5
35008
(exit $ac_status); } &&
35009
{ ac_try='test -z "$ac_c_werror_flag"
35010
|| test ! -s conftest.err'
35011
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35012
(eval $ac_try) 2>&5
35014
echo "$as_me:$LINENO: \$? = $ac_status" >&5
35015
(exit $ac_status); }; } &&
35016
{ ac_try='test -s conftest.$ac_objext'
35017
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35018
(eval $ac_try) 2>&5
35020
echo "$as_me:$LINENO: \$? = $ac_status" >&5
35021
(exit $ac_status); }; }; then
35022
ac_header_compiler=yes
35024
echo "$as_me: failed program was:" >&5
35025
sed 's/^/| /' conftest.$ac_ext >&5
35027
ac_header_compiler=no
35029
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35030
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35031
echo "${ECHO_T}$ac_header_compiler" >&6
35033
# Is the header present?
35034
echo "$as_me:$LINENO: checking sqlite.h presence" >&5
35035
echo $ECHO_N "checking sqlite.h presence... $ECHO_C" >&6
35036
cat >conftest.$ac_ext <<_ACEOF
35039
cat confdefs.h >>conftest.$ac_ext
35040
cat >>conftest.$ac_ext <<_ACEOF
35041
/* end confdefs.h. */
35042
#include <sqlite.h>
35044
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35045
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35047
grep -v '^ *+' conftest.er1 >conftest.err
35049
cat conftest.err >&5
35050
echo "$as_me:$LINENO: \$? = $ac_status" >&5
35051
(exit $ac_status); } >/dev/null; then
35052
if test -s conftest.err; then
35053
ac_cpp_err=$ac_c_preproc_warn_flag
35054
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35061
if test -z "$ac_cpp_err"; then
35062
ac_header_preproc=yes
35064
echo "$as_me: failed program was:" >&5
35065
sed 's/^/| /' conftest.$ac_ext >&5
35067
ac_header_preproc=no
35069
rm -f conftest.err conftest.$ac_ext
35070
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35071
echo "${ECHO_T}$ac_header_preproc" >&6
35073
# So? What about this header?
35074
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35076
{ echo "$as_me:$LINENO: WARNING: sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&5
35077
echo "$as_me: WARNING: sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
35078
{ echo "$as_me:$LINENO: WARNING: sqlite.h: proceeding with the compiler's result" >&5
35079
echo "$as_me: WARNING: sqlite.h: proceeding with the compiler's result" >&2;}
35080
ac_header_preproc=yes
35083
{ echo "$as_me:$LINENO: WARNING: sqlite.h: present but cannot be compiled" >&5
35084
echo "$as_me: WARNING: sqlite.h: present but cannot be compiled" >&2;}
35085
{ echo "$as_me:$LINENO: WARNING: sqlite.h: check for missing prerequisite headers?" >&5
35086
echo "$as_me: WARNING: sqlite.h: check for missing prerequisite headers?" >&2;}
35087
{ echo "$as_me:$LINENO: WARNING: sqlite.h: see the Autoconf documentation" >&5
35088
echo "$as_me: WARNING: sqlite.h: see the Autoconf documentation" >&2;}
35089
{ echo "$as_me:$LINENO: WARNING: sqlite.h: section \"Present But Cannot Be Compiled\"" >&5
35090
echo "$as_me: WARNING: sqlite.h: section \"Present But Cannot Be Compiled\"" >&2;}
35091
{ echo "$as_me:$LINENO: WARNING: sqlite.h: proceeding with the preprocessor's result" >&5
35092
echo "$as_me: WARNING: sqlite.h: proceeding with the preprocessor's result" >&2;}
35093
{ echo "$as_me:$LINENO: WARNING: sqlite.h: in the future, the compiler will take precedence" >&5
35094
echo "$as_me: WARNING: sqlite.h: in the future, the compiler will take precedence" >&2;}
35097
## ------------------------------------------ ##
35098
## Report this to the AC_PACKAGE_NAME lists. ##
35099
## ------------------------------------------ ##
35102
sed "s/^/$as_me: WARNING: /" >&2
35105
echo "$as_me:$LINENO: checking for sqlite.h" >&5
35106
echo $ECHO_N "checking for sqlite.h... $ECHO_C" >&6
35107
if test "${ac_cv_header_sqlite_h+set}" = set; then
35108
echo $ECHO_N "(cached) $ECHO_C" >&6
35110
ac_cv_header_sqlite_h=$ac_header_preproc
35112
echo "$as_me:$LINENO: result: $ac_cv_header_sqlite_h" >&5
35113
echo "${ECHO_T}$ac_cv_header_sqlite_h" >&6
35116
if test $ac_cv_header_sqlite_h = yes; then
35117
echo "$as_me:$LINENO: checking for sqlite_open in -lsqlite" >&5
35118
echo $ECHO_N "checking for sqlite_open in -lsqlite... $ECHO_C" >&6
35119
if test "${ac_cv_lib_sqlite_sqlite_open+set}" = set; then
35120
echo $ECHO_N "(cached) $ECHO_C" >&6
35122
ac_check_lib_save_LIBS=$LIBS
35123
LIBS="-lsqlite $LIBS"
35124
cat >conftest.$ac_ext <<_ACEOF
35127
cat confdefs.h >>conftest.$ac_ext
35128
cat >>conftest.$ac_ext <<_ACEOF
35129
/* end confdefs.h. */
35131
/* Override any gcc2 internal prototype to avoid an error. */
35135
/* We use char because int might match the return type of a gcc2
35136
builtin and then its argument prototype would still apply. */
35137
char sqlite_open ();
35146
rm -f conftest.$ac_objext conftest$ac_exeext
35147
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35148
(eval $ac_link) 2>conftest.er1
35150
grep -v '^ *+' conftest.er1 >conftest.err
35152
cat conftest.err >&5
35153
echo "$as_me:$LINENO: \$? = $ac_status" >&5
35154
(exit $ac_status); } &&
35155
{ ac_try='test -z "$ac_c_werror_flag"
35156
|| test ! -s conftest.err'
35157
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35158
(eval $ac_try) 2>&5
35160
echo "$as_me:$LINENO: \$? = $ac_status" >&5
35161
(exit $ac_status); }; } &&
35162
{ ac_try='test -s conftest$ac_exeext'
35163
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35164
(eval $ac_try) 2>&5
35166
echo "$as_me:$LINENO: \$? = $ac_status" >&5
35167
(exit $ac_status); }; }; then
35168
ac_cv_lib_sqlite_sqlite_open=yes
35170
echo "$as_me: failed program was:" >&5
35171
sed 's/^/| /' conftest.$ac_ext >&5
35173
ac_cv_lib_sqlite_sqlite_open=no
35175
rm -f conftest.err conftest.$ac_objext \
35176
conftest$ac_exeext conftest.$ac_ext
35177
LIBS=$ac_check_lib_save_LIBS
35179
echo "$as_me:$LINENO: result: $ac_cv_lib_sqlite_sqlite_open" >&5
35180
echo "${ECHO_T}$ac_cv_lib_sqlite_sqlite_open" >&6
35181
if test $ac_cv_lib_sqlite_sqlite_open = yes; then
35193
if test "$apu_have_sqlite2" = "1"; then
35195
if test "x$APRUTIL_EXPORT_LIBS" = "x"; then
35196
test "x$silent" != "xyes" && echo " setting APRUTIL_EXPORT_LIBS to \"-lsqlite\""
35197
APRUTIL_EXPORT_LIBS="-lsqlite"
35199
apr_addto_bugger="-lsqlite"
35200
for i in $apr_addto_bugger; do
35201
apr_addto_duplicate="0"
35202
for j in $APRUTIL_EXPORT_LIBS; do
35203
if test "x$i" = "x$j"; then
35204
apr_addto_duplicate="1"
35208
if test $apr_addto_duplicate = "0"; then
35209
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_EXPORT_LIBS"
35210
APRUTIL_EXPORT_LIBS="$APRUTIL_EXPORT_LIBS $i"
35216
if test "x$APRUTIL_LIBS" = "x"; then
35217
test "x$silent" != "xyes" && echo " setting APRUTIL_LIBS to \"-lsqlite\""
35218
APRUTIL_LIBS="-lsqlite"
35220
apr_addto_bugger="-lsqlite"
35221
for i in $apr_addto_bugger; do
35222
apr_addto_duplicate="0"
35223
for j in $APRUTIL_LIBS; do
35224
if test "x$i" = "x$j"; then
35225
apr_addto_duplicate="1"
35229
if test $apr_addto_duplicate = "0"; then
35230
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LIBS"
35231
APRUTIL_LIBS="$APRUTIL_LIBS $i"
35241
# Check whether --with-expat or --without-expat was given.
35242
if test "${with_expat+set}" = set; then
35243
withval="$with_expat"
35245
if test "$withval" = "yes"; then
35246
{ { echo "$as_me:$LINENO: error: a directory must be specified for --with-expat" >&5
35247
echo "$as_me: error: a directory must be specified for --with-expat" >&2;}
35248
{ (exit 1); exit 1; }; }
35249
elif test "$withval" = "no"; then
35250
{ { echo "$as_me:$LINENO: error: Expat cannot be disabled (at this time)" >&5
35251
echo "$as_me: error: Expat cannot be disabled (at this time)" >&2;}
35252
{ (exit 1); exit 1; }; }
35253
elif test "$withval" = "builtin"; then
35254
abs_expatdir="`cd $srcdir/xml/expat && pwd`"
35255
if test -d $abs_expatdir/. -a ! -d xml/expat/.; then
35259
echo "$as_me:$LINENO: checking for Expat in xml/expat" >&5
35260
echo $ECHO_N "checking for Expat in xml/expat... $ECHO_C" >&6
35264
if test -r "$abs_expatdir/lib/expat.h.in"; then
35265
expat_include_dir="$abs_expatdir/lib"
35266
expat_ldflags="-L$abs_expatdir/lib"
35267
expat_libs="-lexpat"
35268
expat_libtool="$abs_expatdir/lib/libexpat.la"
35269
elif test -r "$abs_expatdir/include/expat.h" -a \
35270
-r "$abs_expatdir/lib/libexpat.la"; then
35271
expat_include_dir="$abs_expatdir/include"
35272
expat_ldflags="-L$abs_expatdir/lib"
35273
expat_libs="-lexpat"
35274
expat_libtool="$abs_expatdir/lib/libexpat.la"
35275
elif test -r "$abs_expatdir/include/expat.h" -a \
35276
-r "$abs_expatdir/lib64/libexpat.la"; then
35277
expat_include_dir="$abs_expatdir/include"
35278
expat_ldflags="-L$abs_expatdir/lib64"
35279
expat_libs="-lexpat"
35280
expat_libtool="$abs_expatdir/lib64/libexpat.la"
35281
elif test -r "$abs_expatdir/include/expat.h" -a \
35282
-r "$abs_expatdir/lib/libexpat.a"; then
35283
expat_include_dir="$abs_expatdir/include"
35284
expat_ldflags="-L$abs_expatdir/lib"
35285
expat_libs="-lexpat"
35286
elif test -r "$abs_expatdir/xmlparse.h"; then
35287
expat_include_dir="$abs_expatdir"
35288
expat_ldflags="-L$abs_expatdir"
35289
expat_libs="-lexpat"
35290
expat_libtool="$abs_expatdir/libexpat.la"
35292
elif test -r "$abs_expatdir/include/xmlparse.h" -a \
35293
-r "$abs_expatdir/lib/libexpat.a"; then
35294
expat_include_dir="$abs_expatdir/include"
35295
expat_ldflags="-L$abs_expatdir/lib"
35296
expat_libs="-lexpat"
35298
elif test -r "$abs_expatdir/include/xml/xmlparse.h" -a \
35299
-r "$abs_expatdir/lib/xml/libexpat.a"; then
35300
expat_include_dir="$abs_expatdir/include/xml"
35301
expat_ldflags="-L$abs_expatdir/lib"
35302
expat_libs="-lexpat"
35304
elif test -r "$abs_expatdir/include/xmltok/xmlparse.h"; then
35305
expat_include_dir="$abs_expatdir/include/xmltok"
35306
expat_ldflags="-L$abs_expatdir/lib"
35307
expat_libs="-lxmlparse -lxmltok"
35309
elif test -r "$abs_expatdir/include/xml/xmlparse.h" -a \
35310
-r "$abs_expatdir/lib/libexpat.a"; then
35311
expat_include_dir="$abs_expatdir/include/xml"
35312
expat_ldflags="-L$abs_expatdir/lib"
35313
expat_libs="-lexpat"
35315
elif test -r "$abs_expatdir/xmlparse/xmlparse.h"; then
35316
expat_include_dir="$abs_expatdir/xmlparse"
35317
expat_ldflags="-L$abs_expatdir"
35318
expat_libs="-lexpat"
35322
if test -n "$expat_include_dir"; then
35323
echo "$as_me:$LINENO: result: yes" >&5
35324
echo "${ECHO_T}yes" >&6
35326
echo "$as_me:$LINENO: result: no" >&5
35327
echo "${ECHO_T}no" >&6
35331
abs_expatdir="`cd $withval && pwd`"
35333
echo "$as_me:$LINENO: checking for Expat in $withval" >&5
35334
echo $ECHO_N "checking for Expat in $withval... $ECHO_C" >&6
35338
if test -r "$abs_expatdir/lib/expat.h.in"; then
35339
expat_include_dir="$abs_expatdir/lib"
35340
expat_ldflags="-L$abs_expatdir/lib"
35341
expat_libs="-lexpat"
35342
expat_libtool="$abs_expatdir/lib/libexpat.la"
35343
elif test -r "$abs_expatdir/include/expat.h" -a \
35344
-r "$abs_expatdir/lib/libexpat.la"; then
35345
expat_include_dir="$abs_expatdir/include"
35346
expat_ldflags="-L$abs_expatdir/lib"
35347
expat_libs="-lexpat"
35348
expat_libtool="$abs_expatdir/lib/libexpat.la"
35349
elif test -r "$abs_expatdir/include/expat.h" -a \
35350
-r "$abs_expatdir/lib64/libexpat.la"; then
35351
expat_include_dir="$abs_expatdir/include"
35352
expat_ldflags="-L$abs_expatdir/lib64"
35353
expat_libs="-lexpat"
35354
expat_libtool="$abs_expatdir/lib64/libexpat.la"
35355
elif test -r "$abs_expatdir/include/expat.h" -a \
35356
-r "$abs_expatdir/lib/libexpat.a"; then
35357
expat_include_dir="$abs_expatdir/include"
35358
expat_ldflags="-L$abs_expatdir/lib"
35359
expat_libs="-lexpat"
35360
elif test -r "$abs_expatdir/xmlparse.h"; then
35361
expat_include_dir="$abs_expatdir"
35362
expat_ldflags="-L$abs_expatdir"
35363
expat_libs="-lexpat"
35364
expat_libtool="$abs_expatdir/libexpat.la"
35366
elif test -r "$abs_expatdir/include/xmlparse.h" -a \
35367
-r "$abs_expatdir/lib/libexpat.a"; then
35368
expat_include_dir="$abs_expatdir/include"
35369
expat_ldflags="-L$abs_expatdir/lib"
35370
expat_libs="-lexpat"
35372
elif test -r "$abs_expatdir/include/xml/xmlparse.h" -a \
35373
-r "$abs_expatdir/lib/xml/libexpat.a"; then
35374
expat_include_dir="$abs_expatdir/include/xml"
35375
expat_ldflags="-L$abs_expatdir/lib"
35376
expat_libs="-lexpat"
35378
elif test -r "$abs_expatdir/include/xmltok/xmlparse.h"; then
35379
expat_include_dir="$abs_expatdir/include/xmltok"
35380
expat_ldflags="-L$abs_expatdir/lib"
35381
expat_libs="-lxmlparse -lxmltok"
35383
elif test -r "$abs_expatdir/include/xml/xmlparse.h" -a \
35384
-r "$abs_expatdir/lib/libexpat.a"; then
35385
expat_include_dir="$abs_expatdir/include/xml"
35386
expat_ldflags="-L$abs_expatdir/lib"
35387
expat_libs="-lexpat"
35389
elif test -r "$abs_expatdir/xmlparse/xmlparse.h"; then
35390
expat_include_dir="$abs_expatdir/xmlparse"
35391
expat_ldflags="-L$abs_expatdir"
35392
expat_libs="-lexpat"
35396
if test -n "$expat_include_dir"; then
35397
echo "$as_me:$LINENO: result: yes" >&5
35398
echo "${ECHO_T}yes" >&6
35400
echo "$as_me:$LINENO: result: no" >&5
35401
echo "${ECHO_T}no" >&6
35404
if test -z "$expat_include_dir"; then
35405
{ { echo "$as_me:$LINENO: error: Expat was not found (or recognized) in \"$withval\"" >&5
35406
echo "$as_me: error: Expat was not found (or recognized) in \"$withval\"" >&2;}
35407
{ (exit 1); exit 1; }; }
35413
if test -z "$expat_include_dir"; then
35414
for d in /usr /usr/local xml/expat-cvs xml/expat $srcdir/xml/expat ; do
35416
echo "$as_me:$LINENO: checking for Expat in $d" >&5
35417
echo $ECHO_N "checking for Expat in $d... $ECHO_C" >&6
35421
if test -r "$d/lib/expat.h.in"; then
35422
expat_include_dir="$d/lib"
35423
expat_ldflags="-L$d/lib"
35424
expat_libs="-lexpat"
35425
expat_libtool="$d/lib/libexpat.la"
35426
elif test -r "$d/include/expat.h" -a \
35427
-r "$d/lib/libexpat.la"; then
35428
expat_include_dir="$d/include"
35429
expat_ldflags="-L$d/lib"
35430
expat_libs="-lexpat"
35431
expat_libtool="$d/lib/libexpat.la"
35432
elif test -r "$d/include/expat.h" -a \
35433
-r "$d/lib64/libexpat.la"; then
35434
expat_include_dir="$d/include"
35435
expat_ldflags="-L$d/lib64"
35436
expat_libs="-lexpat"
35437
expat_libtool="$d/lib64/libexpat.la"
35438
elif test -r "$d/include/expat.h" -a \
35439
-r "$d/lib/libexpat.a"; then
35440
expat_include_dir="$d/include"
35441
expat_ldflags="-L$d/lib"
35442
expat_libs="-lexpat"
35443
elif test -r "$d/xmlparse.h"; then
35444
expat_include_dir="$d"
35445
expat_ldflags="-L$d"
35446
expat_libs="-lexpat"
35447
expat_libtool="$d/libexpat.la"
35449
elif test -r "$d/include/xmlparse.h" -a \
35450
-r "$d/lib/libexpat.a"; then
35451
expat_include_dir="$d/include"
35452
expat_ldflags="-L$d/lib"
35453
expat_libs="-lexpat"
35455
elif test -r "$d/include/xml/xmlparse.h" -a \
35456
-r "$d/lib/xml/libexpat.a"; then
35457
expat_include_dir="$d/include/xml"
35458
expat_ldflags="-L$d/lib"
35459
expat_libs="-lexpat"
35461
elif test -r "$d/include/xmltok/xmlparse.h"; then
35462
expat_include_dir="$d/include/xmltok"
35463
expat_ldflags="-L$d/lib"
35464
expat_libs="-lxmlparse -lxmltok"
35466
elif test -r "$d/include/xml/xmlparse.h" -a \
35467
-r "$d/lib/libexpat.a"; then
35468
expat_include_dir="$d/include/xml"
35469
expat_ldflags="-L$d/lib"
35470
expat_libs="-lexpat"
35472
elif test -r "$d/xmlparse/xmlparse.h"; then
35473
expat_include_dir="$d/xmlparse"
35474
expat_ldflags="-L$d"
35475
expat_libs="-lexpat"
35479
if test -n "$expat_include_dir"; then
35480
echo "$as_me:$LINENO: result: yes" >&5
35481
echo "${ECHO_T}yes" >&6
35483
echo "$as_me:$LINENO: result: no" >&5
35484
echo "${ECHO_T}no" >&6
35487
if test -n "$expat_include_dir"; then
35488
if test "$d" = "/usr"; then
35495
if test -z "$expat_include_dir"; then
35496
{ { echo "$as_me:$LINENO: error: could not locate Expat. use --with-expat" >&5
35497
echo "$as_me: error: could not locate Expat. use --with-expat" >&2;}
35498
{ (exit 1); exit 1; }; }
35501
if test -z "$expat_libtool"; then
35502
expat_libtool="$expat_ldflags $expat_libs"
35505
if test -n "$expat_old"; then
35507
cat >>confdefs.h <<\_ACEOF
35508
#define APR_HAVE_OLD_EXPAT 1
35513
if test "$expat_include_dir" = "xml/expat/lib" -o "$expat_include_dir" = "xml/expat-cvs/lib"; then
35514
bundled_subdir="`echo $expat_include_dir | sed -e 's%/lib%%'`"
35516
# save our work to this point; this allows the sub-package to use it
35517
cat >confcache <<\_ACEOF
35518
# This file is a shell script that caches the results of configure
35519
# tests run on this system so they can be shared between configure
35520
# scripts and configure runs, see configure's option --config-cache.
35521
# It is not useful on other systems. If it contains results you don't
35522
# want to keep, you may remove or edit it.
35524
# config.status only pays attention to the cache file if you give it
35525
# the --recheck option to rerun configure.
35527
# `ac_cv_env_foo' variables (set or unset) will be overridden when
35528
# loading this file, other *unset* `ac_cv_foo' will be assigned the
35529
# following values.
35533
# The following way of writing the cache mishandles newlines in values,
35534
# but we know of no workaround that is simple, portable, and efficient.
35535
# So, don't put newlines in cache variables' values.
35536
# Ultrix sh set writes to stderr and can't be redirected directly,
35537
# and sets the high bit in the cache file unless we assign to the vars.
35540
case `(ac_space=' '; set | grep ac_space) 2>&1` in
35542
# `set' does not quote correctly, so add quotes (double-quote
35543
# substitution turns \\\\ into \\, and sed turns \\ into \).
35546
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35549
# `set' quotes correctly as required by POSIX, so do not add quotes.
35551
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
35558
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35560
/^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35562
if diff $cache_file confcache >/dev/null 2>&1; then :; else
35563
if test -w $cache_file; then
35564
test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
35565
cat confcache >$cache_file
35567
echo "not updating unwritable cache $cache_file"
35572
echo "configuring package in $bundled_subdir now"
35574
apr_config_subdirs="$bundled_subdir"
35575
test -d $bundled_subdir || $mkdir_p $bundled_subdir
35576
ac_abs_srcdir=`(cd $srcdir/$bundled_subdir && pwd)`
35579
# A "../" for each directory in /$config_subdirs.
35580
ac_dots=`echo $apr_config_subdirs|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
35582
# Make the cache file pathname absolute for the subdirs
35583
# required to correctly handle subdirs that might actually
35585
case "$cache_file" in
35586
/*) # already absolute
35587
ac_sub_cache_file=$cache_file ;;
35588
*) # Was relative path.
35589
ac_sub_cache_file="$ac_popdir/$cache_file" ;;
35592
apr_configure_args=$ac_configure_args
35594
# autoconf doesn't add --silent to ac_configure_args; explicitly pass it
35595
test "x$silent" = "xyes" && apr_configure_args="$apr_configure_args --silent"
35597
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
35599
echo "$bundled_subdir configured properly"
35601
echo "configure failed for $bundled_subdir"
35607
# grab any updates from the sub-package
35608
if test -r "$cache_file"; then
35609
# Some versions of bash will fail to source /dev/null (special
35610
# files actually), so we avoid doing that.
35611
if test -f "$cache_file"; then
35612
{ echo "$as_me:$LINENO: loading cache $cache_file" >&5
35613
echo "$as_me: loading cache $cache_file" >&6;}
35614
case $cache_file in
35615
[\\/]* | ?:[\\/]* ) . $cache_file;;
35616
*) . ./$cache_file;;
35620
{ echo "$as_me:$LINENO: creating cache $cache_file" >&5
35621
echo "$as_me: creating cache $cache_file" >&6;}
35626
expat_include_dir=$top_builddir/$bundled_subdir/lib
35627
expat_ldflags="-L$top_builddir/$bundled_subdir/lib"
35628
expat_libs="-lexpat"
35629
expat_libtool=$top_builddir/$bundled_subdir/lib/libexpat.la
35630
APR_XML_SUBDIRS="`echo $bundled_subdir | sed -e 's%xml/%%'`"
35632
if test "x$APRUTIL_EXPORT_LIBS" = "x"; then
35633
test "x$silent" != "xyes" && echo " setting APRUTIL_EXPORT_LIBS to \"$expat_libtool\""
35634
APRUTIL_EXPORT_LIBS="$expat_libtool"
35636
apr_addto_bugger="$expat_libtool"
35637
for i in $apr_addto_bugger; do
35638
apr_addto_duplicate="0"
35639
for j in $APRUTIL_EXPORT_LIBS; do
35640
if test "x$i" = "x$j"; then
35641
apr_addto_duplicate="1"
35645
if test $apr_addto_duplicate = "0"; then
35646
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_EXPORT_LIBS"
35647
APRUTIL_EXPORT_LIBS="$APRUTIL_EXPORT_LIBS $i"
35653
if test "$expat_include_dir" = "$abs_srcdir/xml/expat/include" -o "$expat_include_dir" = "$abs_srcdir/xml/expat/lib"; then
35654
bundled_subdir="xml/expat"
35656
# save our work to this point; this allows the sub-package to use it
35657
cat >confcache <<\_ACEOF
35658
# This file is a shell script that caches the results of configure
35659
# tests run on this system so they can be shared between configure
35660
# scripts and configure runs, see configure's option --config-cache.
35661
# It is not useful on other systems. If it contains results you don't
35662
# want to keep, you may remove or edit it.
35664
# config.status only pays attention to the cache file if you give it
35665
# the --recheck option to rerun configure.
35667
# `ac_cv_env_foo' variables (set or unset) will be overridden when
35668
# loading this file, other *unset* `ac_cv_foo' will be assigned the
35669
# following values.
35673
# The following way of writing the cache mishandles newlines in values,
35674
# but we know of no workaround that is simple, portable, and efficient.
35675
# So, don't put newlines in cache variables' values.
35676
# Ultrix sh set writes to stderr and can't be redirected directly,
35677
# and sets the high bit in the cache file unless we assign to the vars.
35680
case `(ac_space=' '; set | grep ac_space) 2>&1` in
35682
# `set' does not quote correctly, so add quotes (double-quote
35683
# substitution turns \\\\ into \\, and sed turns \\ into \).
35686
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35689
# `set' quotes correctly as required by POSIX, so do not add quotes.
35691
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
35698
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35700
/^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35702
if diff $cache_file confcache >/dev/null 2>&1; then :; else
35703
if test -w $cache_file; then
35704
test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
35705
cat confcache >$cache_file
35707
echo "not updating unwritable cache $cache_file"
35712
echo "configuring package in $bundled_subdir now"
35714
apr_config_subdirs="$bundled_subdir"
35715
test -d $bundled_subdir || $mkdir_p $bundled_subdir
35716
ac_abs_srcdir=`(cd $srcdir/$bundled_subdir && pwd)`
35719
# A "../" for each directory in /$config_subdirs.
35720
ac_dots=`echo $apr_config_subdirs|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
35722
# Make the cache file pathname absolute for the subdirs
35723
# required to correctly handle subdirs that might actually
35725
case "$cache_file" in
35726
/*) # already absolute
35727
ac_sub_cache_file=$cache_file ;;
35728
*) # Was relative path.
35729
ac_sub_cache_file="$ac_popdir/$cache_file" ;;
35732
apr_configure_args=$ac_configure_args
35734
# autoconf doesn't add --silent to ac_configure_args; explicitly pass it
35735
test "x$silent" = "xyes" && apr_configure_args="$apr_configure_args --silent"
35737
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
35739
echo "$bundled_subdir configured properly"
35741
echo "configure failed for $bundled_subdir"
35747
# grab any updates from the sub-package
35748
if test -r "$cache_file"; then
35749
# Some versions of bash will fail to source /dev/null (special
35750
# files actually), so we avoid doing that.
35751
if test -f "$cache_file"; then
35752
{ echo "$as_me:$LINENO: loading cache $cache_file" >&5
35753
echo "$as_me: loading cache $cache_file" >&6;}
35754
case $cache_file in
35755
[\\/]* | ?:[\\/]* ) . $cache_file;;
35756
*) . ./$cache_file;;
35760
{ echo "$as_me:$LINENO: creating cache $cache_file" >&5
35761
echo "$as_me: creating cache $cache_file" >&6;}
35766
expat_include_dir=$top_builddir/$bundled_subdir/lib
35767
expat_ldflags="-L$top_builddir/$bundled_subdir/lib"
35768
expat_libs="-lexpat"
35769
expat_libtool=$top_builddir/$bundled_subdir/lib/libexpat.la
35770
APR_XML_SUBDIRS="`echo $bundled_subdir | sed -e 's%xml/%%'`"
35772
if test "x$APRUTIL_EXPORT_LIBS" = "x"; then
35773
test "x$silent" != "xyes" && echo " setting APRUTIL_EXPORT_LIBS to \"$expat_libtool\""
35774
APRUTIL_EXPORT_LIBS="$expat_libtool"
35776
apr_addto_bugger="$expat_libtool"
35777
for i in $apr_addto_bugger; do
35778
apr_addto_duplicate="0"
35779
for j in $APRUTIL_EXPORT_LIBS; do
35780
if test "x$i" = "x$j"; then
35781
apr_addto_duplicate="1"
35785
if test $apr_addto_duplicate = "0"; then
35786
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_EXPORT_LIBS"
35787
APRUTIL_EXPORT_LIBS="$APRUTIL_EXPORT_LIBS $i"
35794
if test "x$APRUTIL_EXPORT_LIBS" = "x"; then
35795
test "x$silent" != "xyes" && echo " setting APRUTIL_EXPORT_LIBS to \"$expat_libs\""
35796
APRUTIL_EXPORT_LIBS="$expat_libs"
35798
apr_addto_bugger="$expat_libs"
35799
for i in $apr_addto_bugger; do
35800
apr_addto_duplicate="0"
35801
for j in $APRUTIL_EXPORT_LIBS; do
35802
if test "x$i" = "x$j"; then
35803
apr_addto_duplicate="1"
35807
if test $apr_addto_duplicate = "0"; then
35808
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_EXPORT_LIBS"
35809
APRUTIL_EXPORT_LIBS="$APRUTIL_EXPORT_LIBS $i"
35816
APR_XML_DIR=$bundled_subdir
35817
APR_XML_EXPAT_OLD=$expat_old
35822
if test "$expat_include_dir" != "/usr/include"; then
35824
if test "x$APRUTIL_INCLUDES" = "x"; then
35825
test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$expat_include_dir\""
35826
APRUTIL_INCLUDES="-I$expat_include_dir"
35828
apr_addto_bugger="-I$expat_include_dir"
35829
for i in $apr_addto_bugger; do
35830
apr_addto_duplicate="0"
35831
for j in $APRUTIL_INCLUDES; do
35832
if test "x$i" = "x$j"; then
35833
apr_addto_duplicate="1"
35837
if test $apr_addto_duplicate = "0"; then
35838
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES"
35839
APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
35846
if test "x$APRUTIL_LDFLAGS" = "x"; then
35847
test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"$expat_ldflags\""
35848
APRUTIL_LDFLAGS="$expat_ldflags"
35850
apr_addto_bugger="$expat_ldflags"
35851
for i in $apr_addto_bugger; do
35852
apr_addto_duplicate="0"
35853
for j in $APRUTIL_LDFLAGS; do
35854
if test "x$i" = "x$j"; then
35855
apr_addto_duplicate="1"
35859
if test $apr_addto_duplicate = "0"; then
35860
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS"
35861
APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
35867
if test "x$APRUTIL_LIBS" = "x"; then
35868
test "x$silent" != "xyes" && echo " setting APRUTIL_LIBS to \"$expat_libtool\""
35869
APRUTIL_LIBS="$expat_libtool"
35871
apr_addto_bugger="$expat_libtool"
35872
for i in $apr_addto_bugger; do
35873
apr_addto_duplicate="0"
35874
for j in $APRUTIL_LIBS; do
35875
if test "x$i" = "x$j"; then
35876
apr_addto_duplicate="1"
35880
if test $apr_addto_duplicate = "0"; then
35881
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LIBS"
35882
APRUTIL_LIBS="$APRUTIL_LIBS $i"
35890
apu_iconv_dir="unknown"
35893
# Check whether --with-iconv or --without-iconv was given.
35894
if test "${with_iconv+set}" = set; then
35895
withval="$with_iconv"
35896
apu_iconv_dir="$withval"
35897
if test "$apu_iconv_dir" != "yes"; then
35899
if test "x$CPPFLAGS" = "x"; then
35900
test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-I$apu_iconv_dir/include\""
35901
CPPFLAGS="-I$apu_iconv_dir/include"
35903
apr_addto_bugger="-I$apu_iconv_dir/include"
35904
for i in $apr_addto_bugger; do
35905
apr_addto_duplicate="0"
35906
for j in $CPPFLAGS; do
35907
if test "x$i" = "x$j"; then
35908
apr_addto_duplicate="1"
35912
if test $apr_addto_duplicate = "0"; then
35913
test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
35914
CPPFLAGS="$CPPFLAGS $i"
35920
if test "x$LDFLAGS" = "x"; then
35921
test "x$silent" != "xyes" && echo " setting LDFLAGS to \"-L$apu_iconv_dir/lib\""
35922
LDFLAGS="-L$apu_iconv_dir/lib"
35924
apr_addto_bugger="-L$apu_iconv_dir/lib"
35925
for i in $apr_addto_bugger; do
35926
apr_addto_duplicate="0"
35927
for j in $LDFLAGS; do
35928
if test "x$i" = "x$j"; then
35929
apr_addto_duplicate="1"
35933
if test $apr_addto_duplicate = "0"; then
35934
test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS"
35935
LDFLAGS="$LDFLAGS $i"
35941
if test -f "$apu_iconv_dir/include/api_version.h"; then
35945
if test "x$LIBS" = "x-lapriconv"; then
35946
test "x$silent" != "xyes" && echo " nulling LIBS"
35952
if test "x$i" != "x-lapriconv"; then
35953
apr_new_bugger="$apr_new_bugger $i"
35958
if test $apr_removed = "1"; then
35959
test "x$silent" != "xyes" && echo " removed \"-lapriconv\" from LIBS"
35960
LIBS=$apr_new_bugger
35964
echo "$as_me:$LINENO: result: \"Using apr-iconv\"" >&5
35965
echo "${ECHO_T}\"Using apr-iconv\"" >&6
35970
if test "$have_apr_iconv" != "1"; then
35971
if test "${ac_cv_header_iconv_h+set}" = set; then
35972
echo "$as_me:$LINENO: checking for iconv.h" >&5
35973
echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
35974
if test "${ac_cv_header_iconv_h+set}" = set; then
35975
echo $ECHO_N "(cached) $ECHO_C" >&6
35977
echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
35978
echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
35980
# Is the header compilable?
35981
echo "$as_me:$LINENO: checking iconv.h usability" >&5
35982
echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
35983
cat >conftest.$ac_ext <<_ACEOF
35986
cat confdefs.h >>conftest.$ac_ext
35987
cat >>conftest.$ac_ext <<_ACEOF
35988
/* end confdefs.h. */
35989
$ac_includes_default
35992
rm -f conftest.$ac_objext
35993
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35994
(eval $ac_compile) 2>conftest.er1
35996
grep -v '^ *+' conftest.er1 >conftest.err
35998
cat conftest.err >&5
35999
echo "$as_me:$LINENO: \$? = $ac_status" >&5
36000
(exit $ac_status); } &&
36001
{ ac_try='test -z "$ac_c_werror_flag"
36002
|| test ! -s conftest.err'
36003
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36004
(eval $ac_try) 2>&5
36006
echo "$as_me:$LINENO: \$? = $ac_status" >&5
36007
(exit $ac_status); }; } &&
36008
{ ac_try='test -s conftest.$ac_objext'
36009
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36010
(eval $ac_try) 2>&5
36012
echo "$as_me:$LINENO: \$? = $ac_status" >&5
36013
(exit $ac_status); }; }; then
36014
ac_header_compiler=yes
36016
echo "$as_me: failed program was:" >&5
36017
sed 's/^/| /' conftest.$ac_ext >&5
36019
ac_header_compiler=no
36021
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36022
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36023
echo "${ECHO_T}$ac_header_compiler" >&6
36025
# Is the header present?
36026
echo "$as_me:$LINENO: checking iconv.h presence" >&5
36027
echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
36028
cat >conftest.$ac_ext <<_ACEOF
36031
cat confdefs.h >>conftest.$ac_ext
36032
cat >>conftest.$ac_ext <<_ACEOF
36033
/* end confdefs.h. */
36036
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36037
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36039
grep -v '^ *+' conftest.er1 >conftest.err
36041
cat conftest.err >&5
36042
echo "$as_me:$LINENO: \$? = $ac_status" >&5
36043
(exit $ac_status); } >/dev/null; then
36044
if test -s conftest.err; then
36045
ac_cpp_err=$ac_c_preproc_warn_flag
36046
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36053
if test -z "$ac_cpp_err"; then
36054
ac_header_preproc=yes
36056
echo "$as_me: failed program was:" >&5
36057
sed 's/^/| /' conftest.$ac_ext >&5
36059
ac_header_preproc=no
36061
rm -f conftest.err conftest.$ac_ext
36062
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36063
echo "${ECHO_T}$ac_header_preproc" >&6
36065
# So? What about this header?
36066
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36068
{ echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
36069
echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
36070
{ echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
36071
echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
36072
ac_header_preproc=yes
36075
{ echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
36076
echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
36077
{ echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
36078
echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
36079
{ echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
36080
echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
36081
{ echo "$as_me:$LINENO: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&5
36082
echo "$as_me: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&2;}
36083
{ echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
36084
echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
36085
{ echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
36086
echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
36089
## ------------------------------------------ ##
36090
## Report this to the AC_PACKAGE_NAME lists. ##
36091
## ------------------------------------------ ##
36094
sed "s/^/$as_me: WARNING: /" >&2
36097
echo "$as_me:$LINENO: checking for iconv.h" >&5
36098
echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
36099
if test "${ac_cv_header_iconv_h+set}" = set; then
36100
echo $ECHO_N "(cached) $ECHO_C" >&6
36102
ac_cv_header_iconv_h=$ac_header_preproc
36104
echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
36105
echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
36108
if test $ac_cv_header_iconv_h = yes; then
36111
cat >conftest.$ac_ext <<_ACEOF
36114
cat confdefs.h >>conftest.$ac_ext
36115
cat >>conftest.$ac_ext <<_ACEOF
36116
/* end confdefs.h. */
36118
#include <stdlib.h>
36125
iconv_t cd = iconv_open("", "");
36126
iconv(cd, NULL, NULL, NULL, NULL);
36132
rm -f conftest.$ac_objext conftest$ac_exeext
36133
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36134
(eval $ac_link) 2>conftest.er1
36136
grep -v '^ *+' conftest.er1 >conftest.err
36138
cat conftest.err >&5
36139
echo "$as_me:$LINENO: \$? = $ac_status" >&5
36140
(exit $ac_status); } &&
36141
{ ac_try='test -z "$ac_c_werror_flag"
36142
|| test ! -s conftest.err'
36143
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36144
(eval $ac_try) 2>&5
36146
echo "$as_me:$LINENO: \$? = $ac_status" >&5
36147
(exit $ac_status); }; } &&
36148
{ ac_try='test -s conftest$ac_exeext'
36149
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36150
(eval $ac_try) 2>&5
36152
echo "$as_me:$LINENO: \$? = $ac_status" >&5
36153
(exit $ac_status); }; }; then
36156
echo "$as_me: failed program was:" >&5
36157
sed 's/^/| /' conftest.$ac_ext >&5
36162
if test "x$LIBS" = "x"; then
36163
test "x$silent" != "xyes" && echo " setting LIBS to \"-liconv\""
36166
apr_addto_bugger="-liconv"
36167
for i in $apr_addto_bugger; do
36168
apr_addto_duplicate="0"
36170
if test "x$i" = "x$j"; then
36171
apr_addto_duplicate="1"
36175
if test $apr_addto_duplicate = "0"; then
36176
test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
36184
cat >conftest.$ac_ext <<_ACEOF
36187
cat confdefs.h >>conftest.$ac_ext
36188
cat >>conftest.$ac_ext <<_ACEOF
36189
/* end confdefs.h. */
36191
#include <stdlib.h>
36198
iconv_t cd = iconv_open("", "");
36199
iconv(cd, NULL, NULL, NULL, NULL);
36205
rm -f conftest.$ac_objext conftest$ac_exeext
36206
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36207
(eval $ac_link) 2>conftest.er1
36209
grep -v '^ *+' conftest.er1 >conftest.err
36211
cat conftest.err >&5
36212
echo "$as_me:$LINENO: \$? = $ac_status" >&5
36213
(exit $ac_status); } &&
36214
{ ac_try='test -z "$ac_c_werror_flag"
36215
|| test ! -s conftest.err'
36216
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36217
(eval $ac_try) 2>&5
36219
echo "$as_me:$LINENO: \$? = $ac_status" >&5
36220
(exit $ac_status); }; } &&
36221
{ ac_try='test -s conftest$ac_exeext'
36222
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36223
(eval $ac_try) 2>&5
36225
echo "$as_me:$LINENO: \$? = $ac_status" >&5
36226
(exit $ac_status); }; }; then
36229
if test "x$APRUTIL_LIBS" = "x"; then
36230
test "x$silent" != "xyes" && echo " setting APRUTIL_LIBS to \"-liconv\""
36231
APRUTIL_LIBS="-liconv"
36233
apr_addto_bugger="-liconv"
36234
for i in $apr_addto_bugger; do
36235
apr_addto_duplicate="0"
36236
for j in $APRUTIL_LIBS; do
36237
if test "x$i" = "x$j"; then
36238
apr_addto_duplicate="1"
36242
if test $apr_addto_duplicate = "0"; then
36243
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LIBS"
36244
APRUTIL_LIBS="$APRUTIL_LIBS $i"
36250
if test "x$APRUTIL_EXPORT_LIBS" = "x"; then
36251
test "x$silent" != "xyes" && echo " setting APRUTIL_EXPORT_LIBS to \"-liconv\""
36252
APRUTIL_EXPORT_LIBS="-liconv"
36254
apr_addto_bugger="-liconv"
36255
for i in $apr_addto_bugger; do
36256
apr_addto_duplicate="0"
36257
for j in $APRUTIL_EXPORT_LIBS; do
36258
if test "x$i" = "x$j"; then
36259
apr_addto_duplicate="1"
36263
if test $apr_addto_duplicate = "0"; then
36264
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_EXPORT_LIBS"
36265
APRUTIL_EXPORT_LIBS="$APRUTIL_EXPORT_LIBS $i"
36272
echo "$as_me: failed program was:" >&5
36273
sed 's/^/| /' conftest.$ac_ext >&5
36277
rm -f conftest.err conftest.$ac_objext \
36278
conftest$ac_exeext conftest.$ac_ext
36282
if test "x$LIBS" = "x-liconv"; then
36283
test "x$silent" != "xyes" && echo " nulling LIBS"
36289
if test "x$i" != "x-liconv"; then
36290
apr_new_bugger="$apr_new_bugger $i"
36295
if test $apr_removed = "1"; then
36296
test "x$silent" != "xyes" && echo " removed \"-liconv\" from LIBS"
36297
LIBS=$apr_new_bugger
36304
rm -f conftest.err conftest.$ac_objext \
36305
conftest$ac_exeext conftest.$ac_ext
36315
if test "$apu_iconv_dir" != "unknown"; then
36316
if test "$have_iconv" != "1"; then
36317
if test "$have_apr_iconv" != "1"; then
36318
{ { echo "$as_me:$LINENO: error: iconv support requested, but not found" >&5
36319
echo "$as_me: error: iconv support requested, but not found" >&2;}
36320
{ (exit 1); exit 1; }; }
36324
if test "x$CPPFLAGS" = "x-I$apu_iconv_dir/include"; then
36325
test "x$silent" != "xyes" && echo " nulling CPPFLAGS"
36330
for i in $CPPFLAGS; do
36331
if test "x$i" != "x-I$apu_iconv_dir/include"; then
36332
apr_new_bugger="$apr_new_bugger $i"
36337
if test $apr_removed = "1"; then
36338
test "x$silent" != "xyes" && echo " removed \"-I$apu_iconv_dir/include\" from CPPFLAGS"
36339
CPPFLAGS=$apr_new_bugger
36344
if test "x$LDFLAGS" = "x-L$apu_iconv_dir/lib"; then
36345
test "x$silent" != "xyes" && echo " nulling LDFLAGS"
36350
for i in $LDFLAGS; do
36351
if test "x$i" != "x-L$apu_iconv_dir/lib"; then
36352
apr_new_bugger="$apr_new_bugger $i"
36357
if test $apr_removed = "1"; then
36358
test "x$silent" != "xyes" && echo " removed \"-L$apu_iconv_dir/lib\" from LDFLAGS"
36359
LDFLAGS=$apr_new_bugger
36364
if test "x$APRUTIL_INCLUDES" = "x"; then
36365
test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$apu_iconv_dir/include\""
36366
APRUTIL_INCLUDES="-I$apu_iconv_dir/include"
36368
apr_addto_bugger="-I$apu_iconv_dir/include"
36369
for i in $apr_addto_bugger; do
36370
apr_addto_duplicate="0"
36371
for j in $APRUTIL_INCLUDES; do
36372
if test "x$i" = "x$j"; then
36373
apr_addto_duplicate="1"
36377
if test $apr_addto_duplicate = "0"; then
36378
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES"
36379
APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
36385
if test "x$APRUTIL_LDFLAGS" = "x"; then
36386
test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$apu_iconv_dir/lib\""
36387
APRUTIL_LDFLAGS="-L$apu_iconv_dir/lib"
36389
apr_addto_bugger="-L$apu_iconv_dir/lib"
36390
for i in $apr_addto_bugger; do
36391
apr_addto_duplicate="0"
36392
for j in $APRUTIL_LDFLAGS; do
36393
if test "x$i" = "x$j"; then
36394
apr_addto_duplicate="1"
36398
if test $apr_addto_duplicate = "0"; then
36399
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS"
36400
APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
36407
if test "$have_iconv" = "1"; then
36409
echo "$as_me:$LINENO: checking for type of inbuf parameter to iconv" >&5
36410
echo $ECHO_N "checking for type of inbuf parameter to iconv... $ECHO_C" >&6
36411
if test "x$apu_iconv_inbuf_const" = "x"; then
36412
apr_save_CFLAGS=$CFLAGS
36413
CFLAGS="$CFLAGS $CFLAGS_WARN"
36414
if test "$ac_cv_c_compiler_gnu" = "yes"; then
36415
CFLAGS="$CFLAGS -Werror"
36417
cat >conftest.$ac_ext <<_ACEOF
36418
#include "confdefs.h"
36421
#include <stddef.h>
36424
int main(int argc, const char *const *argv) {
36426
iconv(0,(char **)0,(size_t *)0,(char **)0,(size_t *)0);
36430
rm -f conftest.$ac_objext
36431
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36432
(eval $ac_compile) 2>conftest.er1
36434
grep -v '^ *+' conftest.er1 >conftest.err
36436
cat conftest.err >&5
36437
echo "$as_me:$LINENO: \$? = $ac_status" >&5
36438
(exit $ac_status); } &&
36439
{ ac_try='test -z "$ac_c_werror_flag"
36440
|| test ! -s conftest.err'
36441
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36442
(eval $ac_try) 2>&5
36444
echo "$as_me:$LINENO: \$? = $ac_status" >&5
36445
(exit $ac_status); }; } &&
36446
{ ac_try='test -s conftest.$ac_objext'
36447
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36448
(eval $ac_try) 2>&5
36450
echo "$as_me:$LINENO: \$? = $ac_status" >&5
36451
(exit $ac_status); }; }; then
36452
apu_iconv_inbuf_const="0"
36454
echo "$as_me: failed program was:" >&5
36455
sed 's/^/| /' conftest.$ac_ext >&5
36457
apu_iconv_inbuf_const="1"
36459
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36460
CFLAGS=$apr_save_CFLAGS
36463
if test "$apu_iconv_inbuf_const" = "1"; then
36465
cat >>confdefs.h <<\_ACEOF
36466
#define APU_ICONV_INBUF_CONST 1
36469
msg="const char **"
36473
echo "$as_me:$LINENO: result: $msg" >&5
36474
echo "${ECHO_T}$msg" >&6
36481
for ac_header in iconv.h langinfo.h
36483
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36484
if eval "test \"\${$as_ac_Header+set}\" = set"; then
36485
echo "$as_me:$LINENO: checking for $ac_header" >&5
36486
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36487
if eval "test \"\${$as_ac_Header+set}\" = set"; then
36488
echo $ECHO_N "(cached) $ECHO_C" >&6
36490
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36491
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36493
# Is the header compilable?
36494
echo "$as_me:$LINENO: checking $ac_header usability" >&5
36495
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36496
cat >conftest.$ac_ext <<_ACEOF
36499
cat confdefs.h >>conftest.$ac_ext
36500
cat >>conftest.$ac_ext <<_ACEOF
36501
/* end confdefs.h. */
36502
$ac_includes_default
36503
#include <$ac_header>
36505
rm -f conftest.$ac_objext
36506
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36507
(eval $ac_compile) 2>conftest.er1
36509
grep -v '^ *+' conftest.er1 >conftest.err
36511
cat conftest.err >&5
36512
echo "$as_me:$LINENO: \$? = $ac_status" >&5
36513
(exit $ac_status); } &&
36514
{ ac_try='test -z "$ac_c_werror_flag"
36515
|| test ! -s conftest.err'
36516
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36517
(eval $ac_try) 2>&5
36519
echo "$as_me:$LINENO: \$? = $ac_status" >&5
36520
(exit $ac_status); }; } &&
36521
{ ac_try='test -s conftest.$ac_objext'
36522
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36523
(eval $ac_try) 2>&5
36525
echo "$as_me:$LINENO: \$? = $ac_status" >&5
36526
(exit $ac_status); }; }; then
36527
ac_header_compiler=yes
36529
echo "$as_me: failed program was:" >&5
36530
sed 's/^/| /' conftest.$ac_ext >&5
36532
ac_header_compiler=no
36534
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36535
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36536
echo "${ECHO_T}$ac_header_compiler" >&6
36538
# Is the header present?
36539
echo "$as_me:$LINENO: checking $ac_header presence" >&5
36540
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36541
cat >conftest.$ac_ext <<_ACEOF
36544
cat confdefs.h >>conftest.$ac_ext
36545
cat >>conftest.$ac_ext <<_ACEOF
36546
/* end confdefs.h. */
36547
#include <$ac_header>
36549
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36550
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36552
grep -v '^ *+' conftest.er1 >conftest.err
36554
cat conftest.err >&5
36555
echo "$as_me:$LINENO: \$? = $ac_status" >&5
36556
(exit $ac_status); } >/dev/null; then
36557
if test -s conftest.err; then
36558
ac_cpp_err=$ac_c_preproc_warn_flag
36559
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36566
if test -z "$ac_cpp_err"; then
36567
ac_header_preproc=yes
36569
echo "$as_me: failed program was:" >&5
36570
sed 's/^/| /' conftest.$ac_ext >&5
36572
ac_header_preproc=no
36574
rm -f conftest.err conftest.$ac_ext
36575
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36576
echo "${ECHO_T}$ac_header_preproc" >&6
36578
# So? What about this header?
36579
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36581
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36582
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36583
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36584
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36585
ac_header_preproc=yes
36588
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36589
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36590
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36591
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36592
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36593
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36594
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36595
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36596
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36597
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36598
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36599
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36602
## ------------------------------------------ ##
36603
## Report this to the AC_PACKAGE_NAME lists. ##
36604
## ------------------------------------------ ##
36607
sed "s/^/$as_me: WARNING: /" >&2
36610
echo "$as_me:$LINENO: checking for $ac_header" >&5
36611
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36612
if eval "test \"\${$as_ac_Header+set}\" = set"; then
36613
echo $ECHO_N "(cached) $ECHO_C" >&6
36615
eval "$as_ac_Header=\$ac_header_preproc"
36617
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36618
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36621
if test `eval echo '${'$as_ac_Header'}'` = yes; then
36622
cat >>confdefs.h <<_ACEOF
36623
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36630
for aprt_i in iconv.h langinfo.h
36632
ac_safe=`echo "$aprt_i" | sed 'y%./+-%__p_%'`
36633
aprt_2=`echo "$aprt_i" | sed -e 's%/%_%g' -e 's/\.//g' -e 's/-//g'`
36634
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
36643
for ac_func in nl_langinfo
36645
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36646
echo "$as_me:$LINENO: checking for $ac_func" >&5
36647
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36648
if eval "test \"\${$as_ac_var+set}\" = set"; then
36649
echo $ECHO_N "(cached) $ECHO_C" >&6
36651
cat >conftest.$ac_ext <<_ACEOF
36654
cat confdefs.h >>conftest.$ac_ext
36655
cat >>conftest.$ac_ext <<_ACEOF
36656
/* end confdefs.h. */
36657
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36658
For example, HP-UX 11i <limits.h> declares gettimeofday. */
36659
#define $ac_func innocuous_$ac_func
36661
/* System header to define __stub macros and hopefully few prototypes,
36662
which can conflict with char $ac_func (); below.
36663
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36664
<limits.h> exists even on freestanding compilers. */
36667
# include <limits.h>
36669
# include <assert.h>
36674
/* Override any gcc2 internal prototype to avoid an error. */
36679
/* We use char because int might match the return type of a gcc2
36680
builtin and then its argument prototype would still apply. */
36682
/* The GNU C library defines this for functions which it implements
36683
to always fail with ENOSYS. Some functions are actually named
36684
something starting with __ and the normal name is an alias. */
36685
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36688
char (*f) () = $ac_func;
36697
return f != $ac_func;
36702
rm -f conftest.$ac_objext conftest$ac_exeext
36703
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36704
(eval $ac_link) 2>conftest.er1
36706
grep -v '^ *+' conftest.er1 >conftest.err
36708
cat conftest.err >&5
36709
echo "$as_me:$LINENO: \$? = $ac_status" >&5
36710
(exit $ac_status); } &&
36711
{ ac_try='test -z "$ac_c_werror_flag"
36712
|| test ! -s conftest.err'
36713
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36714
(eval $ac_try) 2>&5
36716
echo "$as_me:$LINENO: \$? = $ac_status" >&5
36717
(exit $ac_status); }; } &&
36718
{ ac_try='test -s conftest$ac_exeext'
36719
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36720
(eval $ac_try) 2>&5
36722
echo "$as_me:$LINENO: \$? = $ac_status" >&5
36723
(exit $ac_status); }; }; then
36724
eval "$as_ac_var=yes"
36726
echo "$as_me: failed program was:" >&5
36727
sed 's/^/| /' conftest.$ac_ext >&5
36729
eval "$as_ac_var=no"
36731
rm -f conftest.err conftest.$ac_objext \
36732
conftest$ac_exeext conftest.$ac_ext
36734
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36735
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36736
if test `eval echo '${'$as_ac_var'}'` = yes; then
36737
cat >>confdefs.h <<_ACEOF
36738
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36744
for aprt_j in nl_langinfo
36746
aprt_3="have_$aprt_j"
36747
if eval "test \"`echo '$ac_cv_func_'$aprt_j`\" = yes"; then
36755
echo "$as_me:$LINENO: checking for CODESET in langinfo.h" >&5
36756
echo $ECHO_N "checking for CODESET in langinfo.h... $ECHO_C" >&6
36757
if test "${ac_cv_define_CODESET+set}" = set; then
36758
echo $ECHO_N "(cached) $ECHO_C" >&6
36761
cat >conftest.$ac_ext <<_ACEOF
36764
cat confdefs.h >>conftest.$ac_ext
36765
cat >>conftest.$ac_ext <<_ACEOF
36766
/* end confdefs.h. */
36768
#include <langinfo.h>
36774
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36775
$EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then
36776
ac_cv_define_CODESET=yes
36778
ac_cv_define_CODESET=no
36784
echo "$as_me:$LINENO: result: $ac_cv_define_CODESET" >&5
36785
echo "${ECHO_T}$ac_cv_define_CODESET" >&6
36786
if test "$ac_cv_define_CODESET" = "yes"; then
36788
cat >>confdefs.h <<\_ACEOF
36789
#define HAVE_CODESET 1
36799
echo "$as_me:$LINENO: checking for library containing crypt" >&5
36800
echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
36801
if test "${ac_cv_search_crypt+set}" = set; then
36802
echo $ECHO_N "(cached) $ECHO_C" >&6
36804
ac_func_search_save_LIBS=$LIBS
36805
ac_cv_search_crypt=no
36806
cat >conftest.$ac_ext <<_ACEOF
36809
cat confdefs.h >>conftest.$ac_ext
36810
cat >>conftest.$ac_ext <<_ACEOF
36811
/* end confdefs.h. */
36813
/* Override any gcc2 internal prototype to avoid an error. */
36817
/* We use char because int might match the return type of a gcc2
36818
builtin and then its argument prototype would still apply. */
36828
rm -f conftest.$ac_objext conftest$ac_exeext
36829
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36830
(eval $ac_link) 2>conftest.er1
36832
grep -v '^ *+' conftest.er1 >conftest.err
36834
cat conftest.err >&5
36835
echo "$as_me:$LINENO: \$? = $ac_status" >&5
36836
(exit $ac_status); } &&
36837
{ ac_try='test -z "$ac_c_werror_flag"
36838
|| test ! -s conftest.err'
36839
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36840
(eval $ac_try) 2>&5
36842
echo "$as_me:$LINENO: \$? = $ac_status" >&5
36843
(exit $ac_status); }; } &&
36844
{ ac_try='test -s conftest$ac_exeext'
36845
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36846
(eval $ac_try) 2>&5
36848
echo "$as_me:$LINENO: \$? = $ac_status" >&5
36849
(exit $ac_status); }; }; then
36850
ac_cv_search_crypt="none required"
36852
echo "$as_me: failed program was:" >&5
36853
sed 's/^/| /' conftest.$ac_ext >&5
36856
rm -f conftest.err conftest.$ac_objext \
36857
conftest$ac_exeext conftest.$ac_ext
36858
if test "$ac_cv_search_crypt" = no; then
36859
for ac_lib in crypt ufc; do
36860
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
36861
cat >conftest.$ac_ext <<_ACEOF
36864
cat confdefs.h >>conftest.$ac_ext
36865
cat >>conftest.$ac_ext <<_ACEOF
36866
/* end confdefs.h. */
36868
/* Override any gcc2 internal prototype to avoid an error. */
36872
/* We use char because int might match the return type of a gcc2
36873
builtin and then its argument prototype would still apply. */
36883
rm -f conftest.$ac_objext conftest$ac_exeext
36884
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36885
(eval $ac_link) 2>conftest.er1
36887
grep -v '^ *+' conftest.er1 >conftest.err
36889
cat conftest.err >&5
36890
echo "$as_me:$LINENO: \$? = $ac_status" >&5
36891
(exit $ac_status); } &&
36892
{ ac_try='test -z "$ac_c_werror_flag"
36893
|| test ! -s conftest.err'
36894
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36895
(eval $ac_try) 2>&5
36897
echo "$as_me:$LINENO: \$? = $ac_status" >&5
36898
(exit $ac_status); }; } &&
36899
{ ac_try='test -s conftest$ac_exeext'
36900
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36901
(eval $ac_try) 2>&5
36903
echo "$as_me:$LINENO: \$? = $ac_status" >&5
36904
(exit $ac_status); }; }; then
36905
ac_cv_search_crypt="-l$ac_lib"
36908
echo "$as_me: failed program was:" >&5
36909
sed 's/^/| /' conftest.$ac_ext >&5
36912
rm -f conftest.err conftest.$ac_objext \
36913
conftest$ac_exeext conftest.$ac_ext
36916
LIBS=$ac_func_search_save_LIBS
36918
echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
36919
echo "${ECHO_T}$ac_cv_search_crypt" >&6
36920
if test "$ac_cv_search_crypt" != no; then
36921
test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
36925
echo "$as_me:$LINENO: checking if system crypt() function is threadsafe" >&5
36926
echo $ECHO_N "checking if system crypt() function is threadsafe... $ECHO_C" >&6
36927
if test "x$apu_crypt_threadsafe" = "x1"; then
36929
cat >>confdefs.h <<\_ACEOF
36930
#define APU_CRYPT_THREADSAFE 1
36937
echo "$as_me:$LINENO: result: $msg" >&5
36938
echo "${ECHO_T}$msg" >&6
36941
for ac_func in crypt_r
36943
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36944
echo "$as_me:$LINENO: checking for $ac_func" >&5
36945
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36946
if eval "test \"\${$as_ac_var+set}\" = set"; then
36947
echo $ECHO_N "(cached) $ECHO_C" >&6
36949
cat >conftest.$ac_ext <<_ACEOF
36952
cat confdefs.h >>conftest.$ac_ext
36953
cat >>conftest.$ac_ext <<_ACEOF
36954
/* end confdefs.h. */
36955
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36956
For example, HP-UX 11i <limits.h> declares gettimeofday. */
36957
#define $ac_func innocuous_$ac_func
36959
/* System header to define __stub macros and hopefully few prototypes,
36960
which can conflict with char $ac_func (); below.
36961
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36962
<limits.h> exists even on freestanding compilers. */
36965
# include <limits.h>
36967
# include <assert.h>
36972
/* Override any gcc2 internal prototype to avoid an error. */
36977
/* We use char because int might match the return type of a gcc2
36978
builtin and then its argument prototype would still apply. */
36980
/* The GNU C library defines this for functions which it implements
36981
to always fail with ENOSYS. Some functions are actually named
36982
something starting with __ and the normal name is an alias. */
36983
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36986
char (*f) () = $ac_func;
36995
return f != $ac_func;
37000
rm -f conftest.$ac_objext conftest$ac_exeext
37001
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37002
(eval $ac_link) 2>conftest.er1
37004
grep -v '^ *+' conftest.er1 >conftest.err
37006
cat conftest.err >&5
37007
echo "$as_me:$LINENO: \$? = $ac_status" >&5
37008
(exit $ac_status); } &&
37009
{ ac_try='test -z "$ac_c_werror_flag"
37010
|| test ! -s conftest.err'
37011
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37012
(eval $ac_try) 2>&5
37014
echo "$as_me:$LINENO: \$? = $ac_status" >&5
37015
(exit $ac_status); }; } &&
37016
{ ac_try='test -s conftest$ac_exeext'
37017
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37018
(eval $ac_try) 2>&5
37020
echo "$as_me:$LINENO: \$? = $ac_status" >&5
37021
(exit $ac_status); }; }; then
37022
eval "$as_ac_var=yes"
37024
echo "$as_me: failed program was:" >&5
37025
sed 's/^/| /' conftest.$ac_ext >&5
37027
eval "$as_ac_var=no"
37029
rm -f conftest.err conftest.$ac_objext \
37030
conftest$ac_exeext conftest.$ac_ext
37032
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37033
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37034
if test `eval echo '${'$as_ac_var'}'` = yes; then
37035
cat >>confdefs.h <<_ACEOF
37036
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37044
if test "$crypt_r" = "1"; then
37047
echo "$as_me:$LINENO: checking style of crypt_r" >&5
37048
echo $ECHO_N "checking style of crypt_r... $ECHO_C" >&6
37049
if test "${apr_cv_crypt_r_style+set}" = set; then
37050
echo $ECHO_N "(cached) $ECHO_C" >&6
37052
cat >conftest.$ac_ext <<_ACEOF
37055
cat confdefs.h >>conftest.$ac_ext
37056
cat >>conftest.$ac_ext <<_ACEOF
37057
/* end confdefs.h. */
37063
crypt_r("passwd", "hash", &buffer);
37068
rm -f conftest.$ac_objext
37069
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37070
(eval $ac_compile) 2>conftest.er1
37072
grep -v '^ *+' conftest.er1 >conftest.err
37074
cat conftest.err >&5
37075
echo "$as_me:$LINENO: \$? = $ac_status" >&5
37076
(exit $ac_status); } &&
37077
{ ac_try='test -z "$ac_c_werror_flag"
37078
|| test ! -s conftest.err'
37079
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37080
(eval $ac_try) 2>&5
37082
echo "$as_me:$LINENO: \$? = $ac_status" >&5
37083
(exit $ac_status); }; } &&
37084
{ ac_try='test -s conftest.$ac_objext'
37085
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37086
(eval $ac_try) 2>&5
37088
echo "$as_me:$LINENO: \$? = $ac_status" >&5
37089
(exit $ac_status); }; }; then
37090
apr_cv_crypt_r_style=cryptd
37092
echo "$as_me: failed program was:" >&5
37093
sed 's/^/| /' conftest.$ac_ext >&5
37095
cat >conftest.$ac_ext <<_ACEOF
37098
cat confdefs.h >>conftest.$ac_ext
37099
cat >>conftest.$ac_ext <<_ACEOF
37100
/* end confdefs.h. */
37105
struct crypt_data buffer;
37106
crypt_r("passwd", "hash", &buffer);
37111
rm -f conftest.$ac_objext
37112
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37113
(eval $ac_compile) 2>conftest.er1
37115
grep -v '^ *+' conftest.er1 >conftest.err
37117
cat conftest.err >&5
37118
echo "$as_me:$LINENO: \$? = $ac_status" >&5
37119
(exit $ac_status); } &&
37120
{ ac_try='test -z "$ac_c_werror_flag"
37121
|| test ! -s conftest.err'
37122
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37123
(eval $ac_try) 2>&5
37125
echo "$as_me:$LINENO: \$? = $ac_status" >&5
37126
(exit $ac_status); }; } &&
37127
{ ac_try='test -s conftest.$ac_objext'
37128
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37129
(eval $ac_try) 2>&5
37131
echo "$as_me:$LINENO: \$? = $ac_status" >&5
37132
(exit $ac_status); }; }; then
37133
apr_cv_crypt_r_style=struct_crypt_data
37135
echo "$as_me: failed program was:" >&5
37136
sed 's/^/| /' conftest.$ac_ext >&5
37138
apr_cv_crypt_r_style=none
37140
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37142
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37144
echo "$as_me:$LINENO: result: $apr_cv_crypt_r_style" >&5
37145
echo "${ECHO_T}$apr_cv_crypt_r_style" >&6
37147
if test "$apr_cv_crypt_r_style" = "cryptd"; then
37149
cat >>confdefs.h <<\_ACEOF
37150
#define CRYPT_R_CRYPTD 1
37153
elif test "$apr_cv_crypt_r_style" = "struct_crypt_data"; then
37155
cat >>confdefs.h <<\_ACEOF
37156
#define CRYPT_R_STRUCT_CRYPT_DATA 1
37164
lib_target=$APR_LIB_TARGET
37168
APRUTIL_LIBNAME="aprutil${libsuffix}"
37172
if test "x$APRUTIL_LIBS" = "x"; then
37173
test "x$silent" != "xyes" && echo " setting APRUTIL_LIBS to \"$APR_LIBS\""
37174
APRUTIL_LIBS="$APR_LIBS"
37176
apr_addto_bugger="$APR_LIBS"
37177
for i in $apr_addto_bugger; do
37178
apr_addto_duplicate="0"
37179
for j in $APRUTIL_LIBS; do
37180
if test "x$i" = "x$j"; then
37181
apr_addto_duplicate="1"
37185
if test $apr_addto_duplicate = "0"; then
37186
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LIBS"
37187
APRUTIL_LIBS="$APRUTIL_LIBS $i"
37200
if test ! -d ./build; then
37203
cp $APR_BUILD_DIR/apr_rules.mk $abs_builddir/build/rules.mk
37205
case "$host_alias" in
37207
# Check whether they've installed GNU make
37208
if make --version > /dev/null 2>&1; then
37209
INCLUDE_RULES="include $abs_builddir/build/rules.mk"
37210
INCLUDE_OUTPUTS="include $abs_srcdir/build-outputs.mk"
37212
INCLUDE_RULES=".include \"$abs_builddir/build/rules.mk\""
37213
INCLUDE_OUTPUTS=".include \"$abs_srcdir/build-outputs.mk\""
37217
INCLUDE_RULES="include $abs_builddir/build/rules.mk"
37218
INCLUDE_OUTPUTS="include $abs_srcdir/build-outputs.mk"
37224
for d in include include/private; do
37225
test -d $top_builddir/$d || mkdir $top_builddir/$d
37228
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"
37231
ac_config_commands="$ac_config_commands default"
37234
if test -d $srcdir/test; then
37235
ac_config_files="$ac_config_files test/Makefile"
37239
cat >confcache <<\_ACEOF
37240
# This file is a shell script that caches the results of configure
37241
# tests run on this system so they can be shared between configure
37242
# scripts and configure runs, see configure's option --config-cache.
37243
# It is not useful on other systems. If it contains results you don't
37244
# want to keep, you may remove or edit it.
37246
# config.status only pays attention to the cache file if you give it
37247
# the --recheck option to rerun configure.
37249
# `ac_cv_env_foo' variables (set or unset) will be overridden when
37250
# loading this file, other *unset* `ac_cv_foo' will be assigned the
37251
# following values.
37255
# The following way of writing the cache mishandles newlines in values,
37256
# but we know of no workaround that is simple, portable, and efficient.
37257
# So, don't put newlines in cache variables' values.
37258
# Ultrix sh set writes to stderr and can't be redirected directly,
37259
# and sets the high bit in the cache file unless we assign to the vars.
37262
case `(ac_space=' '; set | grep ac_space) 2>&1` in
37264
# `set' does not quote correctly, so add quotes (double-quote
37265
# substitution turns \\\\ into \\, and sed turns \\ into \).
37268
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
37271
# `set' quotes correctly as required by POSIX, so do not add quotes.
37273
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
37280
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
37282
/^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
37284
if diff $cache_file confcache >/dev/null 2>&1; then :; else
37285
if test -w $cache_file; then
37286
test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
37287
cat confcache >$cache_file
37289
echo "not updating unwritable cache $cache_file"
37294
test "x$prefix" = xNONE && prefix=$ac_default_prefix
37295
# Let make expand exec_prefix.
37296
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
37298
# VPATH may cause trouble with some makes, so we remove $(srcdir),
37299
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
37300
# trailing colons and then remove the whole line if VPATH becomes empty
37301
# (actually we leave an empty line to preserve line numbers).
37302
if test "x$srcdir" = x.; then
37303
ac_vpsub='/^[ ]*VPATH[ ]*=/{
37304
s/:*\$(srcdir):*/:/;
37305
s/:*\${srcdir}:*/:/;
37307
s/^\([^=]*=[ ]*\):*/\1/;
37313
DEFS=-DHAVE_CONFIG_H
37317
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
37318
# 1. Remove the extension, and $U if already installed.
37319
ac_i=`echo "$ac_i" |
37320
sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
37322
ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
37323
ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
37325
LIBOBJS=$ac_libobjs
37327
LTLIBOBJS=$ac_ltlibobjs
37331
: ${CONFIG_STATUS=./config.status}
37332
ac_clean_files_save=$ac_clean_files
37333
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
37334
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
37335
echo "$as_me: creating $CONFIG_STATUS" >&6;}
37336
cat >$CONFIG_STATUS <<_ACEOF
37338
# Generated by $as_me.
37339
# Run this file to recreate the current configuration.
37340
# Compiler output produced by configure, useful for debugging
37341
# configure, is in config.log if it exists.
37344
ac_cs_recheck=false
37346
SHELL=\${CONFIG_SHELL-$SHELL}
37349
cat >>$CONFIG_STATUS <<\_ACEOF
37350
## --------------------- ##
37351
## M4sh Initialization. ##
37352
## --------------------- ##
37354
# Be Bourne compatible
37355
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
37358
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
37359
# is contrary to our usage. Disable this feature.
37360
alias -g '${1+"$@"}'='"$@"'
37361
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
37364
DUALCASE=1; export DUALCASE # for MKS sh
37366
# Support unset when possible.
37367
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
37374
# Work around bugs in pre-3.0 UWIN ksh.
37375
$as_unset ENV MAIL MAILPATH
37382
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
37383
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
37384
LC_TELEPHONE LC_TIME
37386
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
37387
eval $as_var=C; export $as_var
37393
# Required to use basename.
37394
if expr a : '\(a\)' >/dev/null 2>&1; then
37400
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
37401
as_basename=basename
37407
# Name of the executable.
37408
as_me=`$as_basename "$0" ||
37409
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
37410
X"$0" : 'X\(//\)$' \| \
37411
X"$0" : 'X\(/\)$' \| \
37412
. : '\(.\)' 2>/dev/null ||
37414
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
37415
/^X\/\(\/\/\)$/{ s//\1/; q; }
37416
/^X\/\(\/\).*/{ s//\1/; q; }
37420
# PATH needs CR, and LINENO needs CR and PATH.
37421
# Avoid depending upon Character Ranges.
37422
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37423
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
37424
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37425
as_cr_digits='0123456789'
37426
as_cr_alnum=$as_cr_Letters$as_cr_digits
37428
# The user is always right.
37429
if test "${PATH_SEPARATOR+set}" != set; then
37430
echo "#! /bin/sh" >conf$$.sh
37431
echo "exit 0" >>conf$$.sh
37433
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
37442
as_lineno_1=$LINENO
37443
as_lineno_2=$LINENO
37444
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
37445
test "x$as_lineno_1" != "x$as_lineno_2" &&
37446
test "x$as_lineno_3" = "x$as_lineno_2" || {
37447
# Find who we are. Look in the path if we contain no path at all
37450
*[\\/]* ) as_myself=$0 ;;
37451
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37452
for as_dir in $PATH
37455
test -z "$as_dir" && as_dir=.
37456
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
37461
# We did not find ourselves, most probably we were run as `sh COMMAND'
37462
# in which case we are not to be found in the path.
37463
if test "x$as_myself" = x; then
37466
if test ! -f "$as_myself"; then
37467
{ { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
37468
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
37469
{ (exit 1); exit 1; }; }
37471
case $CONFIG_SHELL in
37473
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37474
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
37477
test -z "$as_dir" && as_dir=.
37478
for as_base in sh bash ksh sh5; do
37481
if ("$as_dir/$as_base" -c '
37482
as_lineno_1=$LINENO
37483
as_lineno_2=$LINENO
37484
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
37485
test "x$as_lineno_1" != "x$as_lineno_2" &&
37486
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
37487
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
37488
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
37489
CONFIG_SHELL=$as_dir/$as_base
37490
export CONFIG_SHELL
37491
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
37499
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
37500
# uniformly replaced by the line number. The first 'sed' inserts a
37501
# line-number line before each line; the second 'sed' does the real
37502
# work. The second script uses 'N' to pair each line-number line
37503
# with the numbered line, and appends trailing '-' during
37504
# substitution so that $LINENO is not a special case at line end.
37505
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
37506
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
37507
sed '=' <$as_myself |
37512
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
37515
s,^['$as_cr_digits']*\n,,
37516
' >$as_me.lineno &&
37517
chmod +x $as_me.lineno ||
37518
{ { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
37519
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
37520
{ (exit 1); exit 1; }; }
37522
# Don't try to exec as it changes $[0], causing all sort of problems
37523
# (the dirname of $[0] is not the place where we might find the
37524
# original and so on. Autoconf is especially sensible to this).
37526
# Exit status is that of the last command.
37531
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
37532
*c*,-n*) ECHO_N= ECHO_C='
37534
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
37535
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
37538
if expr a : '\(a\)' >/dev/null 2>&1; then
37544
rm -f conf$$ conf$$.exe conf$$.file
37546
if ln -s conf$$.file conf$$ 2>/dev/null; then
37547
# We could just check for DJGPP; but this test a) works b) is more generic
37548
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
37549
if test -f conf$$.exe; then
37550
# Don't use ln at all; we don't have any links
37555
elif ln conf$$.file conf$$ 2>/dev/null; then
37560
rm -f conf$$ conf$$.exe conf$$.file
37562
if mkdir -p . 2>/dev/null; then
37565
test -d ./-p && rmdir ./-p
37569
as_executable_p="test -f"
37571
# Sed expression to map a string onto a valid CPP name.
37572
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
37574
# Sed expression to map a string onto a valid variable name.
37575
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
37579
# We need space, tab and new line, in precisely that order.
37589
# Open the log real soon, to keep \$[0] and so on meaningful, and to
37590
# report actual input values of CONFIG_FILES etc. instead of their
37591
# values after options handling. Logging --version etc. is OK.
37595
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
37596
## Running $as_me. ##
37601
This file was extended by $as_me, which was
37602
generated by GNU Autoconf 2.59. Invocation command line was
37604
CONFIG_FILES = $CONFIG_FILES
37605
CONFIG_HEADERS = $CONFIG_HEADERS
37606
CONFIG_LINKS = $CONFIG_LINKS
37607
CONFIG_COMMANDS = $CONFIG_COMMANDS
37611
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
37615
# Files that config.status was made for.
37616
if test -n "$ac_config_files"; then
37617
echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
37620
if test -n "$ac_config_headers"; then
37621
echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
37624
if test -n "$ac_config_links"; then
37625
echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
37628
if test -n "$ac_config_commands"; then
37629
echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
37632
cat >>$CONFIG_STATUS <<\_ACEOF
37635
\`$as_me' instantiates files from templates according to the
37636
current configuration.
37638
Usage: $0 [OPTIONS] [FILE]...
37640
-h, --help print this help, then exit
37641
-V, --version print version number, then exit
37642
-q, --quiet do not print progress messages
37643
-d, --debug don't remove temporary files
37644
--recheck update $as_me by reconfiguring in the same conditions
37645
--file=FILE[:TEMPLATE]
37646
instantiate the configuration file FILE
37647
--header=FILE[:TEMPLATE]
37648
instantiate the configuration header FILE
37650
Configuration files:
37653
Configuration headers:
37656
Configuration commands:
37659
Report bugs to <bug-autoconf@gnu.org>."
37662
cat >>$CONFIG_STATUS <<_ACEOF
37665
configured by $0, generated by GNU Autoconf 2.59,
37666
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
37668
Copyright (C) 2003 Free Software Foundation, Inc.
37669
This config.status script is free software; the Free Software Foundation
37670
gives unlimited permission to copy, distribute and modify it."
37675
cat >>$CONFIG_STATUS <<\_ACEOF
37676
# If no file are specified by the user, then we need to provide default
37677
# value. By we need to know if files were specified by the user.
37683
ac_option=`expr "x$1" : 'x\([^=]*\)='`
37684
ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
37692
*) # This is not an option, so the user has probably given explicit
37695
ac_need_defaults=false;;
37699
# Handling of the options.
37701
cat >>$CONFIG_STATUS <<\_ACEOF
37702
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
37704
--version | --vers* | -V )
37705
echo "$ac_cs_version"; exit 0 ;;
37707
# Conflict between --help and --header
37708
{ { echo "$as_me:$LINENO: error: ambiguous option: $1
37709
Try \`$0 --help' for more information." >&5
37710
echo "$as_me: error: ambiguous option: $1
37711
Try \`$0 --help' for more information." >&2;}
37712
{ (exit 1); exit 1; }; };;
37713
--help | --hel | -h )
37714
echo "$ac_cs_usage"; exit 0 ;;
37715
--debug | --d* | -d )
37717
--file | --fil | --fi | --f )
37719
CONFIG_FILES="$CONFIG_FILES $ac_optarg"
37720
ac_need_defaults=false;;
37721
--header | --heade | --head | --hea )
37723
CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
37724
ac_need_defaults=false;;
37725
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
37726
| -silent | --silent | --silen | --sile | --sil | --si | --s)
37729
# This is an error.
37730
-*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
37731
Try \`$0 --help' for more information." >&5
37732
echo "$as_me: error: unrecognized option: $1
37733
Try \`$0 --help' for more information." >&2;}
37734
{ (exit 1); exit 1; }; } ;;
37736
*) ac_config_targets="$ac_config_targets $1" ;;
37742
ac_configure_extra_args=
37744
if $ac_cs_silent; then
37746
ac_configure_extra_args="$ac_configure_extra_args --silent"
37750
cat >>$CONFIG_STATUS <<_ACEOF
37751
if \$ac_cs_recheck; then
37752
echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
37753
exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
37758
cat >>$CONFIG_STATUS <<_ACEOF
37760
# INIT-COMMANDS section.
37764
APRUTIL_MAJOR_VERSION=$APRUTIL_MAJOR_VERSION
37771
cat >>$CONFIG_STATUS <<\_ACEOF
37772
for ac_config_target in $ac_config_targets
37774
case "$ac_config_target" in
37775
# Handling of arguments.
37776
"Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
37777
"export_vars.sh" ) CONFIG_FILES="$CONFIG_FILES export_vars.sh" ;;
37778
"build/pkg/pkginfo" ) CONFIG_FILES="$CONFIG_FILES build/pkg/pkginfo" ;;
37779
"apr-util.pc" ) CONFIG_FILES="$CONFIG_FILES apr-util.pc" ;;
37780
"apu-$APRUTIL_MAJOR_VERSION-config" ) CONFIG_FILES="$CONFIG_FILES apu-$APRUTIL_MAJOR_VERSION-config:apu-config.in" ;;
37781
"include/private/apu_select_dbm.h" ) CONFIG_FILES="$CONFIG_FILES include/private/apu_select_dbm.h" ;;
37782
"include/apr_ldap.h" ) CONFIG_FILES="$CONFIG_FILES include/apr_ldap.h" ;;
37783
"include/apu.h" ) CONFIG_FILES="$CONFIG_FILES include/apu.h" ;;
37784
"include/apu_want.h" ) CONFIG_FILES="$CONFIG_FILES include/apu_want.h" ;;
37785
"test/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
37786
"default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
37787
"include/private/apu_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/private/apu_config.h" ;;
37788
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
37789
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
37790
{ (exit 1); exit 1; }; };;
37794
# If the user did not use the arguments to specify the items to instantiate,
37795
# then the envvar interface is used. Set only those that are not.
37796
# We use the long form for the default assignment because of an extremely
37797
# bizarre bug on SunOS 4.1.3.
37798
if $ac_need_defaults; then
37799
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
37800
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
37801
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
37804
# Have a temporary directory for convenience. Make it in the build tree
37805
# simply because there is no reason to put it here, and in addition,
37806
# creating and moving files from /tmp can sometimes cause problems.
37807
# Create a temporary directory, and hook for its removal unless debugging.
37810
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
37811
trap '{ (exit 1); exit 1; }' 1 2 13 15
37814
# Create a (secure) tmp directory for tmp files.
37817
tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
37818
test -n "$tmp" && test -d "$tmp"
37821
tmp=./confstat$$-$RANDOM
37822
(umask 077 && mkdir $tmp)
37825
echo "$me: cannot create a temporary directory in ." >&2
37826
{ (exit 1); exit 1; }
37831
cat >>$CONFIG_STATUS <<_ACEOF
37834
# CONFIG_FILES section.
37837
# No need to generate the scripts if there are no CONFIG_FILES.
37838
# This happens for instance when ./config.status config.h
37839
if test -n "\$CONFIG_FILES"; then
37840
# Protect against being on the right side of a sed subst in config.status.
37841
sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
37842
s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
37843
s,@SHELL@,$SHELL,;t t
37844
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
37845
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
37846
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
37847
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
37848
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
37849
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
37850
s,@exec_prefix@,$exec_prefix,;t t
37851
s,@prefix@,$prefix,;t t
37852
s,@program_transform_name@,$program_transform_name,;t t
37853
s,@bindir@,$bindir,;t t
37854
s,@sbindir@,$sbindir,;t t
37855
s,@libexecdir@,$libexecdir,;t t
37856
s,@datadir@,$datadir,;t t
37857
s,@sysconfdir@,$sysconfdir,;t t
37858
s,@sharedstatedir@,$sharedstatedir,;t t
37859
s,@localstatedir@,$localstatedir,;t t
37860
s,@libdir@,$libdir,;t t
37861
s,@includedir@,$includedir,;t t
37862
s,@oldincludedir@,$oldincludedir,;t t
37863
s,@infodir@,$infodir,;t t
37864
s,@mandir@,$mandir,;t t
37865
s,@build_alias@,$build_alias,;t t
37866
s,@host_alias@,$host_alias,;t t
37867
s,@target_alias@,$target_alias,;t t
37868
s,@DEFS@,$DEFS,;t t
37869
s,@ECHO_C@,$ECHO_C,;t t
37870
s,@ECHO_N@,$ECHO_N,;t t
37871
s,@ECHO_T@,$ECHO_T,;t t
37872
s,@LIBS@,$LIBS,;t t
37873
s,@APU_CONFIG_LOCATION@,$APU_CONFIG_LOCATION,;t t
37874
s,@build@,$build,;t t
37875
s,@build_cpu@,$build_cpu,;t t
37876
s,@build_vendor@,$build_vendor,;t t
37877
s,@build_os@,$build_os,;t t
37878
s,@host@,$host,;t t
37879
s,@host_cpu@,$host_cpu,;t t
37880
s,@host_vendor@,$host_vendor,;t t
37881
s,@host_os@,$host_os,;t t
37882
s,@target@,$target,;t t
37883
s,@target_cpu@,$target_cpu,;t t
37884
s,@target_vendor@,$target_vendor,;t t
37885
s,@target_os@,$target_os,;t t
37886
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
37887
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
37888
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
37889
s,@top_builddir@,$top_builddir,;t t
37890
s,@abs_srcdir@,$abs_srcdir,;t t
37891
s,@abs_builddir@,$abs_builddir,;t t
37892
s,@APRUTIL_DOTTED_VERSION@,$APRUTIL_DOTTED_VERSION,;t t
37893
s,@APRUTIL_MAJOR_VERSION@,$APRUTIL_MAJOR_VERSION,;t t
37894
s,@APR_INCLUDES@,$APR_INCLUDES,;t t
37895
s,@APR_LIBS@,$APR_LIBS,;t t
37896
s,@APR_BUILD_DIR@,$APR_BUILD_DIR,;t t
37897
s,@APR_ICONV_DIR@,$APR_ICONV_DIR,;t t
37899
s,@CFLAGS@,$CFLAGS,;t t
37900
s,@LDFLAGS@,$LDFLAGS,;t t
37901
s,@CPPFLAGS@,$CPPFLAGS,;t t
37902
s,@ac_ct_CC@,$ac_ct_CC,;t t
37903
s,@EXEEXT@,$EXEEXT,;t t
37904
s,@OBJEXT@,$OBJEXT,;t t
37906
s,@EGREP@,$EGREP,;t t
37907
s,@ldap_h@,$ldap_h,;t t
37908
s,@lber_h@,$lber_h,;t t
37909
s,@ldap_ssl_h@,$ldap_ssl_h,;t t
37910
s,@apu_has_ldapssl_client_init@,$apu_has_ldapssl_client_init,;t t
37911
s,@apu_has_ldapssl_client_deinit@,$apu_has_ldapssl_client_deinit,;t t
37912
s,@apu_has_ldapssl_add_trusted_cert@,$apu_has_ldapssl_add_trusted_cert,;t t
37913
s,@apu_has_ldap_start_tls_s@,$apu_has_ldap_start_tls_s,;t t
37914
s,@apu_has_ldapssl_init@,$apu_has_ldapssl_init,;t t
37915
s,@apu_has_ldap_sslinit@,$apu_has_ldap_sslinit,;t t
37916
s,@apu_has_ldapssl_install_routines@,$apu_has_ldapssl_install_routines,;t t
37917
s,@apu_has_ldap@,$apu_has_ldap,;t t
37918
s,@apu_has_ldap_openldap@,$apu_has_ldap_openldap,;t t
37919
s,@apu_has_ldap_solaris@,$apu_has_ldap_solaris,;t t
37920
s,@apu_has_ldap_novell@,$apu_has_ldap_novell,;t t
37921
s,@apu_has_ldap_microsoft@,$apu_has_ldap_microsoft,;t t
37922
s,@apu_has_ldap_netscape@,$apu_has_ldap_netscape,;t t
37923
s,@apu_has_ldap_mozilla@,$apu_has_ldap_mozilla,;t t
37924
s,@apu_has_ldap_other@,$apu_has_ldap_other,;t t
37925
s,@apu_use_sdbm@,$apu_use_sdbm,;t t
37926
s,@apu_use_gdbm@,$apu_use_gdbm,;t t
37927
s,@apu_use_ndbm@,$apu_use_ndbm,;t t
37928
s,@apu_use_db@,$apu_use_db,;t t
37929
s,@apu_have_sdbm@,$apu_have_sdbm,;t t
37930
s,@apu_have_gdbm@,$apu_have_gdbm,;t t
37931
s,@apu_have_ndbm@,$apu_have_ndbm,;t t
37932
s,@apu_have_db@,$apu_have_db,;t t
37933
s,@apu_db_header@,$apu_db_header,;t t
37934
s,@apu_db_version@,$apu_db_version,;t t
37935
s,@apu_have_pgsql@,$apu_have_pgsql,;t t
37936
s,@apu_have_mysql@,$apu_have_mysql,;t t
37937
s,@apu_have_sqlite3@,$apu_have_sqlite3,;t t
37938
s,@apu_have_sqlite2@,$apu_have_sqlite2,;t t
37939
s,@APR_XML_SUBDIRS@,$APR_XML_SUBDIRS,;t t
37940
s,@APR_XML_DIR@,$APR_XML_DIR,;t t
37941
s,@APR_XML_EXPAT_OLD@,$APR_XML_EXPAT_OLD,;t t
37942
s,@have_iconv@,$have_iconv,;t t
37943
s,@have_apr_iconv@,$have_apr_iconv,;t t
37944
s,@so_ext@,$so_ext,;t t
37945
s,@lib_target@,$lib_target,;t t
37946
s,@APRUTIL_LIBNAME@,$APRUTIL_LIBNAME,;t t
37947
s,@APRUTIL_EXPORT_LIBS@,$APRUTIL_EXPORT_LIBS,;t t
37948
s,@APRUTIL_PRIV_INCLUDES@,$APRUTIL_PRIV_INCLUDES,;t t
37949
s,@APRUTIL_INCLUDES@,$APRUTIL_INCLUDES,;t t
37950
s,@APRUTIL_LDFLAGS@,$APRUTIL_LDFLAGS,;t t
37951
s,@APRUTIL_LIBS@,$APRUTIL_LIBS,;t t
37952
s,@INCLUDE_RULES@,$INCLUDE_RULES,;t t
37953
s,@INCLUDE_OUTPUTS@,$INCLUDE_OUTPUTS,;t t
37954
s,@LIBOBJS@,$LIBOBJS,;t t
37955
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
37960
cat >>$CONFIG_STATUS <<\_ACEOF
37961
# Split the substitutions into bite-sized pieces for seds with
37962
# small command number limits, like on Digital OSF/1 and HP-UX.
37963
ac_max_sed_lines=48
37964
ac_sed_frag=1 # Number of current file.
37965
ac_beg=1 # First line for current file.
37966
ac_end=$ac_max_sed_lines # Line after last line for current file.
37969
while $ac_more_lines; do
37970
if test $ac_beg -gt 1; then
37971
sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
37973
sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
37975
if test ! -s $tmp/subs.frag; then
37976
ac_more_lines=false
37978
# The purpose of the label and of the branching condition is to
37979
# speed up the sed processing (if there are no `@' at all, there
37980
# is no need to browse any of the substitutions).
37981
# These are the two extra sed commands mentioned above.
37983
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
37984
if test -z "$ac_sed_cmds"; then
37985
ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
37987
ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
37989
ac_sed_frag=`expr $ac_sed_frag + 1`
37991
ac_end=`expr $ac_end + $ac_max_sed_lines`
37994
if test -z "$ac_sed_cmds"; then
37997
fi # test -n "$CONFIG_FILES"
38000
cat >>$CONFIG_STATUS <<\_ACEOF
38001
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
38002
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
38004
- | *:- | *:-:* ) # input from stdin
38006
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
38007
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
38008
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
38009
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
38010
* ) ac_file_in=$ac_file.in ;;
38013
# Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
38014
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
38015
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38016
X"$ac_file" : 'X\(//\)[^/]' \| \
38017
X"$ac_file" : 'X\(//\)$' \| \
38018
X"$ac_file" : 'X\(/\)' \| \
38019
. : '\(.\)' 2>/dev/null ||
38021
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
38022
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
38023
/^X\(\/\/\)$/{ s//\1/; q; }
38024
/^X\(\/\).*/{ s//\1/; q; }
38026
{ if $as_mkdir_p; then
38031
while test ! -d "$as_dir"; do
38032
as_dirs="$as_dir $as_dirs"
38033
as_dir=`(dirname "$as_dir") 2>/dev/null ||
38034
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38035
X"$as_dir" : 'X\(//\)[^/]' \| \
38036
X"$as_dir" : 'X\(//\)$' \| \
38037
X"$as_dir" : 'X\(/\)' \| \
38038
. : '\(.\)' 2>/dev/null ||
38040
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
38041
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
38042
/^X\(\/\/\)$/{ s//\1/; q; }
38043
/^X\(\/\).*/{ s//\1/; q; }
38046
test ! -n "$as_dirs" || mkdir $as_dirs
38047
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
38048
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
38049
{ (exit 1); exit 1; }; }; }
38053
if test "$ac_dir" != .; then
38054
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
38055
# A "../" for each directory in $ac_dir_suffix.
38056
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
38058
ac_dir_suffix= ac_top_builddir=
38062
.) # No --srcdir option. We are building in place.
38064
if test -z "$ac_top_builddir"; then
38067
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
38069
[\\/]* | ?:[\\/]* ) # Absolute path.
38070
ac_srcdir=$srcdir$ac_dir_suffix;
38071
ac_top_srcdir=$srcdir ;;
38072
*) # Relative path.
38073
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
38074
ac_top_srcdir=$ac_top_builddir$srcdir ;;
38077
# Do not use `cd foo && pwd` to compute absolute paths, because
38078
# the directories may not exist.
38080
.) ac_abs_builddir="$ac_dir";;
38083
.) ac_abs_builddir=`pwd`;;
38084
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
38085
*) ac_abs_builddir=`pwd`/"$ac_dir";;
38088
case $ac_abs_builddir in
38089
.) ac_abs_top_builddir=${ac_top_builddir}.;;
38091
case ${ac_top_builddir}. in
38092
.) ac_abs_top_builddir=$ac_abs_builddir;;
38093
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
38094
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
38097
case $ac_abs_builddir in
38098
.) ac_abs_srcdir=$ac_srcdir;;
38101
.) ac_abs_srcdir=$ac_abs_builddir;;
38102
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
38103
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
38106
case $ac_abs_builddir in
38107
.) ac_abs_top_srcdir=$ac_top_srcdir;;
38109
case $ac_top_srcdir in
38110
.) ac_abs_top_srcdir=$ac_abs_builddir;;
38111
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
38112
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
38118
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
38119
*) ac_INSTALL=$ac_top_builddir$INSTALL ;;
38122
if test x"$ac_file" != x-; then
38123
{ echo "$as_me:$LINENO: creating $ac_file" >&5
38124
echo "$as_me: creating $ac_file" >&6;}
38127
# Let's still pretend it is `configure' which instantiates (i.e., don't
38128
# use $as_me), people would be surprised to read:
38129
# /* config.h. Generated by config.status. */
38130
if test x"$ac_file" = x-; then
38133
configure_input="$ac_file. "
38135
configure_input=$configure_input"Generated from `echo $ac_file_in |
38136
sed 's,.*/,,'` by configure."
38138
# First look for the input files in the build tree, otherwise in the
38140
ac_file_inputs=`IFS=:
38141
for f in $ac_file_in; do
38143
-) echo $tmp/stdin ;;
38145
# Absolute (can't be DOS-style, as IFS=:)
38146
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
38147
echo "$as_me: error: cannot find input file: $f" >&2;}
38148
{ (exit 1); exit 1; }; }
38151
if test -f "$f"; then
38154
elif test -f "$srcdir/$f"; then
38159
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
38160
echo "$as_me: error: cannot find input file: $f" >&2;}
38161
{ (exit 1); exit 1; }; }
38164
done` || { (exit 1); exit 1; }
38166
cat >>$CONFIG_STATUS <<_ACEOF
38170
cat >>$CONFIG_STATUS <<\_ACEOF
38172
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
38173
s,@configure_input@,$configure_input,;t t
38174
s,@srcdir@,$ac_srcdir,;t t
38175
s,@abs_srcdir@,$ac_abs_srcdir,;t t
38176
s,@top_srcdir@,$ac_top_srcdir,;t t
38177
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
38178
s,@builddir@,$ac_builddir,;t t
38179
s,@abs_builddir@,$ac_abs_builddir,;t t
38180
s,@top_builddir@,$ac_top_builddir,;t t
38181
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
38182
s,@INSTALL@,$ac_INSTALL,;t t
38183
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
38185
if test x"$ac_file" != x-; then
38186
mv $tmp/out $ac_file
38194
cat >>$CONFIG_STATUS <<\_ACEOF
38197
# CONFIG_HEADER section.
38200
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
38201
# NAME is the cpp macro being defined and VALUE is the value it is being given.
38203
# ac_d sets the value in "#define NAME VALUE" lines.
38204
ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
38205
ac_dB='[ ].*$,\1#\2'
38208
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
38209
ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
38210
ac_uB='$,\1#\2define\3'
38214
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
38215
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
38217
- | *:- | *:-:* ) # input from stdin
38219
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
38220
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
38221
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
38222
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
38223
* ) ac_file_in=$ac_file.in ;;
38226
test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
38227
echo "$as_me: creating $ac_file" >&6;}
38229
# First look for the input files in the build tree, otherwise in the
38231
ac_file_inputs=`IFS=:
38232
for f in $ac_file_in; do
38234
-) echo $tmp/stdin ;;
38236
# Absolute (can't be DOS-style, as IFS=:)
38237
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
38238
echo "$as_me: error: cannot find input file: $f" >&2;}
38239
{ (exit 1); exit 1; }; }
38240
# Do quote $f, to prevent DOS paths from being IFS'd.
38243
if test -f "$f"; then
38246
elif test -f "$srcdir/$f"; then
38251
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
38252
echo "$as_me: error: cannot find input file: $f" >&2;}
38253
{ (exit 1); exit 1; }; }
38256
done` || { (exit 1); exit 1; }
38257
# Remove the trailing spaces.
38258
sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
38262
# Transform confdefs.h into two sed scripts, `conftest.defines' and
38263
# `conftest.undefs', that substitutes the proper values into
38264
# config.h.in to produce config.h. The first handles `#define'
38265
# templates, and the second `#undef' templates.
38266
# And first: Protect against being on the right side of a sed subst in
38267
# config.status. Protect against being in an unquoted here document
38268
# in config.status.
38269
rm -f conftest.defines conftest.undefs
38270
# Using a here document instead of a string reduces the quoting nightmare.
38271
# Putting comments in sed scripts is not portable.
38273
# `end' is used to avoid that the second main sed command (meant for
38274
# 0-ary CPP macros) applies to n-ary macro definitions.
38275
# See the Autoconf documentation for `clear'.
38276
cat >confdef2sed.sed <<\_ACEOF
38281
s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
38283
s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
38286
# If some macros were called several times there might be several times
38287
# the same #defines, which is useless. Nevertheless, we may not want to
38288
# sort them, since we want the *last* AC-DEFINE to be honored.
38289
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
38290
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
38291
rm -f confdef2sed.sed
38293
# This sed command replaces #undef with comments. This is necessary, for
38294
# example, in the case of _POSIX_SOURCE, which is predefined and required
38295
# on some systems where configure will not decide to define it.
38296
cat >>conftest.undefs <<\_ACEOF
38297
s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
38300
# Break up conftest.defines because some shells have a limit on the size
38301
# of here documents, and old seds have small limits too (100 cmds).
38302
echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
38303
echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
38304
echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
38305
echo ' :' >>$CONFIG_STATUS
38306
rm -f conftest.tail
38307
while grep . conftest.defines >/dev/null
38309
# Write a limited-size here document to $tmp/defines.sed.
38310
echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
38311
# Speed up: don't consider the non `#define' lines.
38312
echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
38313
# Work around the forget-to-reset-the-flag bug.
38314
echo 't clr' >>$CONFIG_STATUS
38315
echo ': clr' >>$CONFIG_STATUS
38316
sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
38318
sed -f $tmp/defines.sed $tmp/in >$tmp/out
38320
mv $tmp/out $tmp/in
38322
sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
38323
rm -f conftest.defines
38324
mv conftest.tail conftest.defines
38326
rm -f conftest.defines
38327
echo ' fi # grep' >>$CONFIG_STATUS
38328
echo >>$CONFIG_STATUS
38330
# Break up conftest.undefs because some shells have a limit on the size
38331
# of here documents, and old seds have small limits too (100 cmds).
38332
echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
38333
rm -f conftest.tail
38334
while grep . conftest.undefs >/dev/null
38336
# Write a limited-size here document to $tmp/undefs.sed.
38337
echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
38338
# Speed up: don't consider the non `#undef'
38339
echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
38340
# Work around the forget-to-reset-the-flag bug.
38341
echo 't clr' >>$CONFIG_STATUS
38342
echo ': clr' >>$CONFIG_STATUS
38343
sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
38345
sed -f $tmp/undefs.sed $tmp/in >$tmp/out
38347
mv $tmp/out $tmp/in
38349
sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
38350
rm -f conftest.undefs
38351
mv conftest.tail conftest.undefs
38353
rm -f conftest.undefs
38355
cat >>$CONFIG_STATUS <<\_ACEOF
38356
# Let's still pretend it is `configure' which instantiates (i.e., don't
38357
# use $as_me), people would be surprised to read:
38358
# /* config.h. Generated by config.status. */
38359
if test x"$ac_file" = x-; then
38360
echo "/* Generated by configure. */" >$tmp/config.h
38362
echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
38364
cat $tmp/in >>$tmp/config.h
38366
if test x"$ac_file" != x-; then
38367
if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
38368
{ echo "$as_me:$LINENO: $ac_file is unchanged" >&5
38369
echo "$as_me: $ac_file is unchanged" >&6;}
38371
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
38372
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38373
X"$ac_file" : 'X\(//\)[^/]' \| \
38374
X"$ac_file" : 'X\(//\)$' \| \
38375
X"$ac_file" : 'X\(/\)' \| \
38376
. : '\(.\)' 2>/dev/null ||
38378
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
38379
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
38380
/^X\(\/\/\)$/{ s//\1/; q; }
38381
/^X\(\/\).*/{ s//\1/; q; }
38383
{ if $as_mkdir_p; then
38388
while test ! -d "$as_dir"; do
38389
as_dirs="$as_dir $as_dirs"
38390
as_dir=`(dirname "$as_dir") 2>/dev/null ||
38391
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38392
X"$as_dir" : 'X\(//\)[^/]' \| \
38393
X"$as_dir" : 'X\(//\)$' \| \
38394
X"$as_dir" : 'X\(/\)' \| \
38395
. : '\(.\)' 2>/dev/null ||
38397
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
38398
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
38399
/^X\(\/\/\)$/{ s//\1/; q; }
38400
/^X\(\/\).*/{ s//\1/; q; }
38403
test ! -n "$as_dirs" || mkdir $as_dirs
38404
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
38405
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
38406
{ (exit 1); exit 1; }; }; }
38409
mv $tmp/config.h $ac_file
38413
rm -f $tmp/config.h
38417
cat >>$CONFIG_STATUS <<\_ACEOF
38420
# CONFIG_COMMANDS section.
38422
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
38423
ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
38424
ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
38425
ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
38426
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38427
X"$ac_dest" : 'X\(//\)[^/]' \| \
38428
X"$ac_dest" : 'X\(//\)$' \| \
38429
X"$ac_dest" : 'X\(/\)' \| \
38430
. : '\(.\)' 2>/dev/null ||
38432
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
38433
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
38434
/^X\(\/\/\)$/{ s//\1/; q; }
38435
/^X\(\/\).*/{ s//\1/; q; }
38437
{ if $as_mkdir_p; then
38442
while test ! -d "$as_dir"; do
38443
as_dirs="$as_dir $as_dirs"
38444
as_dir=`(dirname "$as_dir") 2>/dev/null ||
38445
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38446
X"$as_dir" : 'X\(//\)[^/]' \| \
38447
X"$as_dir" : 'X\(//\)$' \| \
38448
X"$as_dir" : 'X\(/\)' \| \
38449
. : '\(.\)' 2>/dev/null ||
38451
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
38452
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
38453
/^X\(\/\/\)$/{ s//\1/; q; }
38454
/^X\(\/\).*/{ s//\1/; q; }
38457
test ! -n "$as_dirs" || mkdir $as_dirs
38458
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
38459
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
38460
{ (exit 1); exit 1; }; }; }
38464
if test "$ac_dir" != .; then
38465
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
38466
# A "../" for each directory in $ac_dir_suffix.
38467
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
38469
ac_dir_suffix= ac_top_builddir=
38473
.) # No --srcdir option. We are building in place.
38475
if test -z "$ac_top_builddir"; then
38478
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
38480
[\\/]* | ?:[\\/]* ) # Absolute path.
38481
ac_srcdir=$srcdir$ac_dir_suffix;
38482
ac_top_srcdir=$srcdir ;;
38483
*) # Relative path.
38484
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
38485
ac_top_srcdir=$ac_top_builddir$srcdir ;;
38488
# Do not use `cd foo && pwd` to compute absolute paths, because
38489
# the directories may not exist.
38491
.) ac_abs_builddir="$ac_dir";;
38494
.) ac_abs_builddir=`pwd`;;
38495
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
38496
*) ac_abs_builddir=`pwd`/"$ac_dir";;
38499
case $ac_abs_builddir in
38500
.) ac_abs_top_builddir=${ac_top_builddir}.;;
38502
case ${ac_top_builddir}. in
38503
.) ac_abs_top_builddir=$ac_abs_builddir;;
38504
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
38505
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
38508
case $ac_abs_builddir in
38509
.) ac_abs_srcdir=$ac_srcdir;;
38512
.) ac_abs_srcdir=$ac_abs_builddir;;
38513
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
38514
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
38517
case $ac_abs_builddir in
38518
.) ac_abs_top_srcdir=$ac_top_srcdir;;
38520
case $ac_top_srcdir in
38521
.) ac_abs_top_srcdir=$ac_abs_builddir;;
38522
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
38523
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
38528
{ echo "$as_me:$LINENO: executing $ac_dest commands" >&5
38529
echo "$as_me: executing $ac_dest commands" >&6;}
38532
chmod +x apu-$APRUTIL_MAJOR_VERSION-config
38538
cat >>$CONFIG_STATUS <<\_ACEOF
38540
{ (exit 0); exit 0; }
38542
chmod +x $CONFIG_STATUS
38543
ac_clean_files=$ac_clean_files_save
38546
# configure is writing to config.log, and then calls config.status.
38547
# config.status does its own redirection, appending to config.log.
38548
# Unfortunately, on DOS this fails, as config.log is still kept open
38549
# by configure, so config.status won't be able to write to it; its
38550
# output is simply discarded. So we exec the FD to /dev/null,
38551
# effectively closing config.log, so it can be properly (re)opened and
38552
# appended to by config.status. When coming back to configure, we
38553
# need to make the FD available again.
38554
if test "$no_create" != yes; then
38556
ac_config_status_args=
38557
test "$silent" = yes &&
38558
ac_config_status_args="$ac_config_status_args --quiet"
38560
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
38562
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
38563
# would make configure fail if this is the last instruction.
38564
$ac_cs_success || { (exit 1); exit 1; }