65
126
# Name of the executable.
66
as_me=`$as_basename "$0" ||
127
as_me=`$as_basename -- "$0" ||
67
128
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68
129
X"$0" : 'X\(//\)$' \| \
69
X"$0" : 'X\(/\)$' \| \
70
. : '\(.\)' 2>/dev/null ||
130
X"$0" : 'X\(/\)' \| . 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
132
sed '/^.*\/\([^/][^/]*\)\/*$/{
150
if test "x$CONFIG_SHELL" = x; then
151
if (eval ":") 2>/dev/null; then
157
if test $as_have_required = yes && (eval ":
167
as_func_ret_success () {
170
as_func_ret_failure () {
175
if as_func_success; then
179
echo as_func_success failed.
182
if as_func_failure; then
184
echo as_func_failure succeeded.
187
if as_func_ret_success; then
191
echo as_func_ret_success failed.
194
if as_func_ret_failure; then
196
echo as_func_ret_failure succeeded.
199
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
203
echo positional parameters were not saved.
206
test \$exitcode = 0) || { (exit 1); exit 1; }
211
test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
212
test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
213
") 2> /dev/null; then
130
217
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
218
for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134
221
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+"$@"}
224
for as_base in sh bash ksh sh5; do
225
as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232
for as_shell in $as_candidate_shells $SHELL; do
233
# Try only shells that exist, to save several forks.
234
if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
235
{ ("$as_shell") 2> /dev/null <<\_ASEOF
236
# Be Bourne compatible
237
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
240
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
241
# is contrary to our usage. Disable this feature.
242
alias -g '${1+"$@"}'='"$@"'
245
case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
247
BIN_SH=xpg4; export BIN_SH # for Tru64
248
DUALCASE=1; export DUALCASE # for MKS sh
253
CONFIG_SHELL=$as_shell
255
if { "$as_shell" 2> /dev/null <<\_ASEOF
256
# Be Bourne compatible
257
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
261
# is contrary to our usage. Disable this feature.
262
alias -g '${1+"$@"}'='"$@"'
265
case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
267
BIN_SH=xpg4; export BIN_SH # for Tru64
268
DUALCASE=1; export DUALCASE # for MKS sh
280
as_func_ret_success () {
283
as_func_ret_failure () {
288
if as_func_success; then
292
echo as_func_success failed.
295
if as_func_failure; then
297
echo as_func_failure succeeded.
300
if as_func_ret_success; then
304
echo as_func_ret_success failed.
307
if as_func_ret_failure; then
309
echo as_func_ret_failure succeeded.
312
if ( set x; as_func_ret_success y && test x = "$1" ); then
316
echo positional parameters were not saved.
319
test $exitcode = 0) || { (exit 1); exit 1; }
324
test "x$as_lineno_1" != "x$as_lineno_2" &&
325
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
336
if test "x$CONFIG_SHELL" != x; then
337
for as_var in BASH_ENV ENV
338
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
341
exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
345
if test $as_have_required = no; then
346
echo This script requires a shell more modern than all the
347
echo shells that I found on your system. Please install a
348
echo modern shell, or manually run the script under such a
349
echo shell if you do have one.
350
{ (exit 1); exit 1; }
360
(eval "as_func_return () {
369
as_func_ret_success () {
372
as_func_ret_failure () {
377
if as_func_success; then
381
echo as_func_success failed.
384
if as_func_failure; then
386
echo as_func_failure succeeded.
389
if as_func_ret_success; then
393
echo as_func_ret_success failed.
396
if as_func_ret_failure; then
398
echo as_func_ret_failure succeeded.
401
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
405
echo positional parameters were not saved.
408
test \$exitcode = 0") || {
409
echo No shell found that supports shell functions.
410
echo Please tell autoconf@gnu.org about your system,
411
echo including any error possibly output before this
419
test "x$as_lineno_1" != "x$as_lineno_2" &&
420
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
156
422
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157
423
# 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.
424
# line-number line after each line using $LINENO; the second 'sed'
425
# does the real work. The second script uses 'N' to pair each
426
# line-number line with the line containing $LINENO, and appends
427
# trailing '-' during substitution so that $LINENO is not a special
162
429
# (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 |
430
# scripts with optimization help from Paolo Bonzini. Blame Lee
431
# E. McMahon (1931-1989) for sed's syntax. :-)
169
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
443
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
172
s,^['$as_cr_digits']*\n,,
173
446
' >$as_me.lineno &&
174
chmod +x $as_me.lineno ||
447
chmod +x "$as_me.lineno" ||
175
448
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176
449
{ (exit 1); exit 1; }; }
178
451
# Don't try to exec as it changes $[0], causing all sort of problems
179
452
# (the dirname of $[0] is not the place where we might find the
180
# original and so on. Autoconf is especially sensible to this).
453
# original and so on. Autoconf is especially sensitive to this).
182
455
# 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= ;;
460
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
466
ECHO_C= ECHO_N= ECHO_T=
470
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
194
if expr a : '\(a\)' >/dev/null 2>&1; then
477
if expr a : '\(a\)' >/dev/null 2>&1 &&
478
test "X`expr 00001 : '.*\(...\)'`" = X001; then
200
484
rm -f conf$$ conf$$.exe conf$$.file
485
if test -d conf$$.dir; then
486
rm -f conf$$.dir/conf$$.file
201
491
echo >conf$$.file
202
492
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
494
# ... but there are two gotchas:
495
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497
# In both cases, we have to default to `cp -p'.
498
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
211
500
elif ln conf$$.file conf$$ 2>/dev/null; then
216
rm -f conf$$ conf$$.exe conf$$.file
505
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506
rmdir conf$$.dir 2>/dev/null
218
508
if mkdir -p . 2>/dev/null; then
2016
if test "x$apu_preload_done" != "xyes" ; then
2017
apu_preload_done="yes"
2019
echo "Applying apr-util hints file rules for $host"
2024
if test -z "$apu_crypt_threadsafe"; then
2025
test "x$silent" != "xyes" && echo " setting apu_crypt_threadsafe to \"1\""
2026
apu_crypt_threadsafe="1"
2032
if test -z "$apu_crypt_threadsafe"; then
2033
test "x$silent" != "xyes" && echo " setting apu_crypt_threadsafe to \"1\""
2034
apu_crypt_threadsafe="1"
2038
*-ibm-aix4*|*-ibm-aix5.1*)
2040
if test -z "$apu_iconv_inbuf_const"; then
2041
test "x$silent" != "xyes" && echo " setting apu_iconv_inbuf_const to \"1\""
2042
apu_iconv_inbuf_const="1"
2048
if test -z "$apu_crypt_threadsafe"; then
2049
test "x$silent" != "xyes" && echo " setting apu_crypt_threadsafe to \"1\""
2050
apu_crypt_threadsafe="1"
2056
if test -z "$apu_iconv_inbuf_const"; then
2057
test "x$silent" != "xyes" && echo " setting apu_iconv_inbuf_const to \"1\""
2058
apu_iconv_inbuf_const="1"
2062
if test -z "$apu_crypt_threadsafe"; then
2063
test "x$silent" != "xyes" && echo " setting apu_crypt_threadsafe to \"1\""
2064
apu_crypt_threadsafe="1"
2070
if test -z "$apu_db_xtra_libs"; then
2071
test "x$silent" != "xyes" && echo " setting apu_db_xtra_libs to \"-lsocket\""
2072
apu_db_xtra_libs="-lsocket"
2083
APRUTIL_PRIV_INCLUDES="-I$top_builddir/include -I$top_builddir/include/private"
2084
if test -n "$USE_VPATH"; then
2085
APRUTIL_PRIV_INCLUDES="$APRUTIL_PRIV_INCLUDES -I$abs_srcdir/include/private -I$abs_srcdir/include"
2093
if test "$target_os" = "os2-emx"; then
2094
# Scripts don't pass test -x on OS/2
2100
acceptable_majors="1"
2102
apr_temp_acceptable_apr_config=""
2103
for apr_temp_major in $acceptable_majors
2105
case $apr_temp_major in
2107
apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-config"
2110
apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-$apr_temp_major-config"
2115
echo "$as_me:$LINENO: checking for APR" >&5
2116
echo $ECHO_N "checking for APR... $ECHO_C" >&6
2118
# Check whether --with-apr or --without-apr was given.
2119
if test "${with_apr+set}" = set; then
2122
if test "$withval" = "no" || test "$withval" = "yes"; then
2123
{ { echo "$as_me:$LINENO: error: --with-apr requires a directory or file to be provided" >&5
2124
echo "$as_me: error: --with-apr requires a directory or file to be provided" >&2;}
2125
{ (exit 1); exit 1; }; }
2128
for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config
2130
for lookdir in "$withval/bin" "$withval"
2132
if $TEST_X "$lookdir/$apr_temp_apr_config_file"; then
2134
apr_config="$lookdir/$apr_temp_apr_config_file"
2140
if test "$apr_found" != "yes" && $TEST_X "$withval" && $withval --help > /dev/null 2>&1 ; then
2142
apr_config="$withval"
2145
if test "$apr_found" != "yes"; then
2146
{ { 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
2147
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;}
2148
{ (exit 1); exit 1; }; }
2153
if test -n "" && test "" = "1"; then
2154
for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config
2156
if $apr_temp_apr_config_file --help > /dev/null 2>&1 ; then
2158
apr_config="$apr_temp_apr_config_file"
2161
for lookdir in /usr /usr/local /usr/local/apr /opt/apr; do
2162
if $TEST_X "$lookdir/bin/$apr_temp_apr_config_file"; then
2164
apr_config="$lookdir/bin/$apr_temp_apr_config_file"
2171
if test "$apr_found" = "no" && test -d ""; then
2172
apr_temp_abs_srcdir="`cd && pwd`"
2173
apr_found="reconfig"
2174
apr_bundled_major="`sed -n '/#define.*APR_MAJOR_VERSION/s/^[^0-9]*\([0-9]*\).*$/\1/p' \"/include/apr_version.h\"`"
2175
case $apr_bundled_major in
2177
{ { echo "$as_me:$LINENO: error: failed to find major version of bundled APR" >&5
2178
echo "$as_me: error: failed to find major version of bundled APR" >&2;}
2179
{ (exit 1); exit 1; }; }
2182
apr_temp_apr_config_file="apr-config"
2185
apr_temp_apr_config_file="apr-$apr_bundled_major-config"
2189
apr_config="/$apr_temp_apr_config_file"
2191
apr_config="/$apr_temp_apr_config_file"
2197
echo "$as_me:$LINENO: result: $apr_found" >&5
2198
echo "${ECHO_T}$apr_found" >&6
2200
if test "$apr_found" = "no"; then
2201
{ { echo "$as_me:$LINENO: error: APR could not be located. Please use the --with-apr option." >&5
2202
echo "$as_me: error: APR could not be located. Please use the --with-apr option." >&2;}
2203
{ (exit 1); exit 1; }; }
2206
APR_BUILD_DIR="`$apr_config --installbuilddir`"
2208
APR_BUILD_DIR="`cd $APR_BUILD_DIR && pwd`"
2210
APR_INCLUDES="`$apr_config --includes`"
2211
APR_LIBS="`$apr_config --link-libtool --libs`"
2212
APR_SO_EXT="`$apr_config --apr-so-ext`"
2213
APR_LIB_TARGET="`$apr_config --apr-lib-target`"
2221
if test -z "$CC"; then
2222
test "x$silent" != "xyes" && echo " setting CC to \"`$apr_config --cc`\""
2223
CC="`$apr_config --cc`"
2227
if test -z "$CPP"; then
2228
test "x$silent" != "xyes" && echo " setting CPP to \"`$apr_config --cpp`\""
2229
CPP="`$apr_config --cpp`"
2233
if test "x$CFLAGS" = "x"; then
2234
test "x$silent" != "xyes" && echo " setting CFLAGS to \"`$apr_config --cflags`\""
2235
CFLAGS="`$apr_config --cflags`"
2237
apr_addto_bugger="`$apr_config --cflags`"
2238
for i in $apr_addto_bugger; do
2239
apr_addto_duplicate="0"
2240
for j in $CFLAGS; do
2241
if test "x$i" = "x$j"; then
2242
apr_addto_duplicate="1"
2246
if test $apr_addto_duplicate = "0"; then
2247
test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
2254
if test "x$CPPFLAGS" = "x"; then
2255
test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"`$apr_config --cppflags`\""
2256
CPPFLAGS="`$apr_config --cppflags`"
2258
apr_addto_bugger="`$apr_config --cppflags`"
2259
for i in $apr_addto_bugger; do
2260
apr_addto_duplicate="0"
2261
for j in $CPPFLAGS; do
2262
if test "x$i" = "x$j"; then
2263
apr_addto_duplicate="1"
2267
if test $apr_addto_duplicate = "0"; then
2268
test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
2269
CPPFLAGS="$CPPFLAGS $i"
2275
if test -d ../apr-iconv; then
2277
# save our work to this point; this allows the sub-package to use it
2278
cat >confcache <<\_ACEOF
2279
# This file is a shell script that caches the results of configure
2280
# tests run on this system so they can be shared between configure
2281
# scripts and configure runs, see configure's option --config-cache.
2282
# It is not useful on other systems. If it contains results you don't
2283
# want to keep, you may remove or edit it.
2285
# config.status only pays attention to the cache file if you give it
2286
# the --recheck option to rerun configure.
2288
# `ac_cv_env_foo' variables (set or unset) will be overridden when
2289
# loading this file, other *unset* `ac_cv_foo' will be assigned the
2294
# The following way of writing the cache mishandles newlines in values,
2295
# but we know of no workaround that is simple, portable, and efficient.
2296
# So, don't put newlines in cache variables' values.
2297
# Ultrix sh set writes to stderr and can't be redirected directly,
2298
# and sets the high bit in the cache file unless we assign to the vars.
2301
case `(ac_space=' '; set | grep ac_space) 2>&1` in
2303
# `set' does not quote correctly, so add quotes (double-quote
2304
# substitution turns \\\\ into \\, and sed turns \\ into \).
2307
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
2310
# `set' quotes correctly as required by POSIX, so do not add quotes.
2312
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
2319
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
2321
/^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
2323
if diff $cache_file confcache >/dev/null 2>&1; then :; else
2324
if test -w $cache_file; then
2325
test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
2326
cat confcache >$cache_file
2328
echo "not updating unwritable cache $cache_file"
2333
echo "configuring package in ../apr-iconv now"
2335
apr_config_subdirs="../apr-iconv"
2336
test -d ../apr-iconv || $mkdir_p ../apr-iconv
2337
ac_abs_srcdir=`(cd $srcdir/../apr-iconv && pwd)`
2340
# A "../" for each directory in /$config_subdirs.
2341
ac_dots=`echo $apr_config_subdirs|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
2343
# Make the cache file pathname absolute for the subdirs
2344
# required to correctly handle subdirs that might actually
2346
case "$cache_file" in
2347
/*) # already absolute
2348
ac_sub_cache_file=$cache_file ;;
2349
*) # Was relative path.
2350
ac_sub_cache_file="$ac_popdir/$cache_file" ;;
2356
for apr_configure_arg in $ac_configure_args
2358
case "$apr_configure_arg" in
2359
--enable-layout=*|\'--enable-layout=*)
2362
apr_configure_args="$apr_configure_args$apr_sep'$apr_configure_arg'"
2367
# autoconf doesn't add --silent to ac_configure_args; explicitly pass it
2368
test "x$silent" = "xyes" && apr_configure_args="$apr_configure_args --silent"
2370
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
2372
echo "../apr-iconv configured properly"
2374
echo "configure failed for ../apr-iconv"
2380
# grab any updates from the sub-package
2381
if test -r "$cache_file"; then
2382
# Some versions of bash will fail to source /dev/null (special
2383
# files actually), so we avoid doing that.
2384
if test -f "$cache_file"; then
2385
{ echo "$as_me:$LINENO: loading cache $cache_file" >&5
2386
echo "$as_me: loading cache $cache_file" >&6;}
2388
[\\/]* | ?:[\\/]* ) . $cache_file;;
2389
*) . ./$cache_file;;
2393
{ echo "$as_me:$LINENO: creating cache $cache_file" >&5
2394
echo "$as_me: creating cache $cache_file" >&6;}
2399
APRUTIL_EXPORT_LIBS="$abs_srcdir/../apr-iconv/lib/libapriconv.la $APRUTIL_EXPORT_LIBS"
2400
APRUTIL_INCLUDES="-I$abs_srcdir/../apr-iconv/include $APRUTIL_INCLUDES"
2401
APR_ICONV_DIR=../apr-iconv
2408
2508
ac_cpp='$CPP $CPPFLAGS'
2409
2509
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2990
3151
echo "$as_me: failed program was:" >&5
2991
3152
sed 's/^/| /' conftest.$ac_ext >&5
2995
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3157
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2996
3158
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2999
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3000
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3161
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3162
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3001
3163
GCC=`test $ac_compiler_gnu = yes && echo yes`
3002
3164
ac_test_CFLAGS=${CFLAGS+set}
3003
3165
ac_save_CFLAGS=$CFLAGS
3005
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3006
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3166
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3167
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3007
3168
if test "${ac_cv_prog_cc_g+set}" = set; then
3008
3169
echo $ECHO_N "(cached) $ECHO_C" >&6
3010
cat >conftest.$ac_ext <<_ACEOF
3013
cat confdefs.h >>conftest.$ac_ext
3014
cat >>conftest.$ac_ext <<_ACEOF
3015
/* end confdefs.h. */
3025
rm -f conftest.$ac_objext
3026
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3027
(eval $ac_compile) 2>conftest.er1
3029
grep -v '^ *+' conftest.er1 >conftest.err
3031
cat conftest.err >&5
3032
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3033
(exit $ac_status); } &&
3034
{ ac_try='test -z "$ac_c_werror_flag"
3035
|| test ! -s conftest.err'
3036
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3039
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3040
(exit $ac_status); }; } &&
3041
{ ac_try='test -s conftest.$ac_objext'
3042
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3045
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046
(exit $ac_status); }; }; then
3049
echo "$as_me: failed program was:" >&5
3050
sed 's/^/| /' conftest.$ac_ext >&5
3054
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3056
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3057
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3171
ac_save_c_werror_flag=$ac_c_werror_flag
3172
ac_c_werror_flag=yes
3175
cat >conftest.$ac_ext <<_ACEOF
3178
cat confdefs.h >>conftest.$ac_ext
3179
cat >>conftest.$ac_ext <<_ACEOF
3180
/* end confdefs.h. */
3190
rm -f conftest.$ac_objext
3191
if { (ac_try="$ac_compile"
3193
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3194
*) ac_try_echo=$ac_try;;
3196
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3197
(eval "$ac_compile") 2>conftest.er1
3199
grep -v '^ *+' conftest.er1 >conftest.err
3201
cat conftest.err >&5
3202
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3203
(exit $ac_status); } &&
3204
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3205
{ (case "(($ac_try" in
3206
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3207
*) ac_try_echo=$ac_try;;
3209
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3210
(eval "$ac_try") 2>&5
3212
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3213
(exit $ac_status); }; } &&
3214
{ ac_try='test -s conftest.$ac_objext'
3215
{ (case "(($ac_try" in
3216
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3217
*) ac_try_echo=$ac_try;;
3219
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3220
(eval "$ac_try") 2>&5
3222
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3223
(exit $ac_status); }; }; then
3226
echo "$as_me: failed program was:" >&5
3227
sed 's/^/| /' conftest.$ac_ext >&5
3230
cat >conftest.$ac_ext <<_ACEOF
3233
cat confdefs.h >>conftest.$ac_ext
3234
cat >>conftest.$ac_ext <<_ACEOF
3235
/* end confdefs.h. */
3245
rm -f conftest.$ac_objext
3246
if { (ac_try="$ac_compile"
3248
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3249
*) ac_try_echo=$ac_try;;
3251
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3252
(eval "$ac_compile") 2>conftest.er1
3254
grep -v '^ *+' conftest.er1 >conftest.err
3256
cat conftest.err >&5
3257
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3258
(exit $ac_status); } &&
3259
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3260
{ (case "(($ac_try" in
3261
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3262
*) ac_try_echo=$ac_try;;
3264
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3265
(eval "$ac_try") 2>&5
3267
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3268
(exit $ac_status); }; } &&
3269
{ ac_try='test -s conftest.$ac_objext'
3270
{ (case "(($ac_try" in
3271
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3272
*) ac_try_echo=$ac_try;;
3274
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3275
(eval "$ac_try") 2>&5
3277
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3278
(exit $ac_status); }; }; then
3281
echo "$as_me: failed program was:" >&5
3282
sed 's/^/| /' conftest.$ac_ext >&5
3284
ac_c_werror_flag=$ac_save_c_werror_flag
3286
cat >conftest.$ac_ext <<_ACEOF
3289
cat confdefs.h >>conftest.$ac_ext
3290
cat >>conftest.$ac_ext <<_ACEOF
3291
/* end confdefs.h. */
3301
rm -f conftest.$ac_objext
3302
if { (ac_try="$ac_compile"
3304
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3305
*) ac_try_echo=$ac_try;;
3307
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3308
(eval "$ac_compile") 2>conftest.er1
3310
grep -v '^ *+' conftest.er1 >conftest.err
3312
cat conftest.err >&5
3313
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3314
(exit $ac_status); } &&
3315
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3316
{ (case "(($ac_try" in
3317
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3318
*) ac_try_echo=$ac_try;;
3320
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3321
(eval "$ac_try") 2>&5
3323
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3324
(exit $ac_status); }; } &&
3325
{ ac_try='test -s conftest.$ac_objext'
3326
{ (case "(($ac_try" in
3327
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3328
*) ac_try_echo=$ac_try;;
3330
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3331
(eval "$ac_try") 2>&5
3333
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3334
(exit $ac_status); }; }; then
3337
echo "$as_me: failed program was:" >&5
3338
sed 's/^/| /' conftest.$ac_ext >&5
3343
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3346
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3349
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3350
ac_c_werror_flag=$ac_save_c_werror_flag
3352
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3353
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3058
3354
if test "$ac_test_CFLAGS" = set; then
3059
3355
CFLAGS=$ac_save_CFLAGS
3060
3356
elif test $ac_cv_prog_cc_g = yes; then
3132
# Don't try gcc -ansi; that turns off useful extensions and
3133
# breaks some systems' header files.
3134
# AIX -qlanglvl=ansi
3135
# Ultrix and OSF/1 -std1
3136
# HP-UX 10.20 and later -Ae
3137
# HP-UX older versions -Aa -D_HPUX_SOURCE
3138
# SVR4 -Xc -D__EXTENSIONS__
3139
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3433
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3434
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3141
3436
CC="$ac_save_CC $ac_arg"
3142
3437
rm -f conftest.$ac_objext
3143
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3144
(eval $ac_compile) 2>conftest.er1
3438
if { (ac_try="$ac_compile"
3440
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3441
*) ac_try_echo=$ac_try;;
3443
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3444
(eval "$ac_compile") 2>conftest.er1
3146
3446
grep -v '^ *+' conftest.er1 >conftest.err
3147
3447
rm -f conftest.er1
3148
3448
cat conftest.err >&5
3149
3449
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3150
3450
(exit $ac_status); } &&
3151
{ ac_try='test -z "$ac_c_werror_flag"
3152
|| test ! -s conftest.err'
3153
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3451
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3452
{ (case "(($ac_try" in
3453
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3454
*) ac_try_echo=$ac_try;;
3456
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3457
(eval "$ac_try") 2>&5
3156
3459
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3157
3460
(exit $ac_status); }; } &&
3158
3461
{ ac_try='test -s conftest.$ac_objext'
3159
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3462
{ (case "(($ac_try" in
3463
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3464
*) ac_try_echo=$ac_try;;
3466
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3467
(eval "$ac_try") 2>&5
3162
3469
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3163
3470
(exit $ac_status); }; }; then
3164
ac_cv_prog_cc_stdc=$ac_arg
3471
ac_cv_prog_cc_c89=$ac_arg
3167
3473
echo "$as_me: failed program was:" >&5
3168
3474
sed 's/^/| /' conftest.$ac_ext >&5
3171
rm -f conftest.err conftest.$ac_objext
3479
rm -f core conftest.err conftest.$ac_objext
3480
test "x$ac_cv_prog_cc_c89" != "xno" && break
3173
rm -f conftest.$ac_ext conftest.$ac_objext
3482
rm -f conftest.$ac_ext
3178
case "x$ac_cv_prog_cc_stdc" in
3180
echo "$as_me:$LINENO: result: none needed" >&5
3181
echo "${ECHO_T}none needed" >&6 ;;
3487
case "x$ac_cv_prog_cc_c89" in
3489
{ echo "$as_me:$LINENO: result: none needed" >&5
3490
echo "${ECHO_T}none needed" >&6; } ;;
3492
{ echo "$as_me:$LINENO: result: unsupported" >&5
3493
echo "${ECHO_T}unsupported" >&6; } ;;
3183
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3184
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3185
CC="$CC $ac_cv_prog_cc_stdc" ;;
3495
CC="$CC $ac_cv_prog_cc_c89"
3496
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3497
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3188
# Some people use a C++ compiler to compile C. Since we use `exit',
3189
# in C++ we need to declare it. In case someone uses the same compiler
3190
# for both compiling C and C++ we need to have the C++ compiler decide
3191
# the declaration of exit, since it's the most demanding environment.
3502
ac_cpp='$CPP $CPPFLAGS'
3503
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3504
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3505
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3509
if test "x$apu_preload_done" != "xyes" ; then
3510
apu_preload_done="yes"
3512
echo "Applying apr-util hints file rules for $host"
3517
if test -z "$apu_crypt_threadsafe"; then
3518
test "x$silent" != "xyes" && echo " setting apu_crypt_threadsafe to \"1\""
3519
apu_crypt_threadsafe="1"
3525
if test -z "$apu_crypt_threadsafe"; then
3526
test "x$silent" != "xyes" && echo " setting apu_crypt_threadsafe to \"1\""
3527
apu_crypt_threadsafe="1"
3531
*-ibm-aix4*|*-ibm-aix5.1*)
3533
if test -z "$apu_iconv_inbuf_const"; then
3534
test "x$silent" != "xyes" && echo " setting apu_iconv_inbuf_const to \"1\""
3535
apu_iconv_inbuf_const="1"
3541
if test -z "$apu_crypt_threadsafe"; then
3542
test "x$silent" != "xyes" && echo " setting apu_crypt_threadsafe to \"1\""
3543
apu_crypt_threadsafe="1"
3549
if test -z "$apu_iconv_inbuf_const"; then
3550
test "x$silent" != "xyes" && echo " setting apu_iconv_inbuf_const to \"1\""
3551
apu_iconv_inbuf_const="1"
3555
if test -z "$apu_crypt_threadsafe"; then
3556
test "x$silent" != "xyes" && echo " setting apu_crypt_threadsafe to \"1\""
3557
apu_crypt_threadsafe="1"
3560
{ echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
3561
echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6; }
3562
if test "${ac_cv_search_fdatasync+set}" = set; then
3563
echo $ECHO_N "(cached) $ECHO_C" >&6
3565
ac_func_search_save_LIBS=$LIBS
3192
3566
cat >conftest.$ac_ext <<_ACEOF
3569
cat confdefs.h >>conftest.$ac_ext
3570
cat >>conftest.$ac_ext <<_ACEOF
3571
/* end confdefs.h. */
3573
/* Override any GCC internal prototype to avoid an error.
3574
Use char because int might match the return type of a GCC
3575
builtin and then its argument prototype would still apply. */
3197
rm -f conftest.$ac_objext
3198
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3199
(eval $ac_compile) 2>conftest.er1
3201
grep -v '^ *+' conftest.er1 >conftest.err
3203
cat conftest.err >&5
3204
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3205
(exit $ac_status); } &&
3206
{ ac_try='test -z "$ac_c_werror_flag"
3207
|| test ! -s conftest.err'
3208
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3211
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3212
(exit $ac_status); }; } &&
3213
{ ac_try='test -s conftest.$ac_objext'
3214
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3217
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3218
(exit $ac_status); }; }; then
3219
for ac_declaration in \
3221
'extern "C" void std::exit (int) throw (); using std::exit;' \
3222
'extern "C" void std::exit (int); using std::exit;' \
3223
'extern "C" void exit (int) throw ();' \
3224
'extern "C" void exit (int);' \
3227
cat >conftest.$ac_ext <<_ACEOF
3230
cat confdefs.h >>conftest.$ac_ext
3231
cat >>conftest.$ac_ext <<_ACEOF
3232
/* end confdefs.h. */
3583
return fdatasync ();
3243
rm -f conftest.$ac_objext
3244
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3245
(eval $ac_compile) 2>conftest.er1
3588
for ac_lib in '' rt posix4; do
3589
if test -z "$ac_lib"; then
3590
ac_res="none required"
3593
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3595
rm -f conftest.$ac_objext conftest$ac_exeext
3596
if { (ac_try="$ac_link"
3598
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3599
*) ac_try_echo=$ac_try;;
3601
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3602
(eval "$ac_link") 2>conftest.er1
3247
3604
grep -v '^ *+' conftest.er1 >conftest.err
3248
3605
rm -f conftest.er1
3249
3606
cat conftest.err >&5
3250
3607
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3251
3608
(exit $ac_status); } &&
3252
{ ac_try='test -z "$ac_c_werror_flag"
3253
|| test ! -s conftest.err'
3254
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3609
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3610
{ (case "(($ac_try" in
3611
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3612
*) ac_try_echo=$ac_try;;
3614
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3615
(eval "$ac_try") 2>&5
3257
3617
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3258
3618
(exit $ac_status); }; } &&
3259
{ ac_try='test -s conftest.$ac_objext'
3260
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3619
{ ac_try='test -s conftest$ac_exeext'
3620
{ (case "(($ac_try" in
3621
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3622
*) ac_try_echo=$ac_try;;
3624
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3625
(eval "$ac_try") 2>&5
3263
3627
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3264
3628
(exit $ac_status); }; }; then
3629
ac_cv_search_fdatasync=$ac_res
3267
3631
echo "$as_me: failed program was:" >&5
3268
3632
sed 's/^/| /' conftest.$ac_ext >&5
3272
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3273
cat >conftest.$ac_ext <<_ACEOF
3276
cat confdefs.h >>conftest.$ac_ext
3277
cat >>conftest.$ac_ext <<_ACEOF
3278
/* end confdefs.h. */
3288
rm -f conftest.$ac_objext
3289
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3290
(eval $ac_compile) 2>conftest.er1
3292
grep -v '^ *+' conftest.er1 >conftest.err
3294
cat conftest.err >&5
3295
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3296
(exit $ac_status); } &&
3297
{ ac_try='test -z "$ac_c_werror_flag"
3298
|| test ! -s conftest.err'
3299
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3302
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3303
(exit $ac_status); }; } &&
3304
{ ac_try='test -s conftest.$ac_objext'
3305
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3308
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3309
(exit $ac_status); }; }; then
3637
rm -f core conftest.err conftest.$ac_objext \
3639
if test "${ac_cv_search_fdatasync+set}" = set; then
3312
echo "$as_me: failed program was:" >&5
3313
sed 's/^/| /' conftest.$ac_ext >&5
3316
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3319
if test -n "$ac_declaration"; then
3320
echo '#ifdef __cplusplus' >>confdefs.h
3321
echo $ac_declaration >>confdefs.h
3322
echo '#endif' >>confdefs.h
3326
echo "$as_me: failed program was:" >&5
3327
sed 's/^/| /' conftest.$ac_ext >&5
3330
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3332
ac_cpp='$CPP $CPPFLAGS'
3333
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3334
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3335
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3339
ac_cpp='$CPP $CPPFLAGS'
3340
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3341
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3342
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3343
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3344
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3643
if test "${ac_cv_search_fdatasync+set}" = set; then
3646
ac_cv_search_fdatasync=no
3649
LIBS=$ac_func_search_save_LIBS
3651
{ echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
3652
echo "${ECHO_T}$ac_cv_search_fdatasync" >&6; }
3653
ac_res=$ac_cv_search_fdatasync
3654
if test "$ac_res" != no; then
3655
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3662
if test -z "$apu_db_xtra_libs"; then
3663
test "x$silent" != "xyes" && echo " setting apu_db_xtra_libs to \"-lsocket\""
3664
apu_db_xtra_libs="-lsocket"
3675
APRUTIL_PRIV_INCLUDES="-I$top_builddir/include -I$top_builddir/include/private"
3676
if test -n "$USE_VPATH"; then
3677
APRUTIL_PRIV_INCLUDES="$APRUTIL_PRIV_INCLUDES -I$abs_srcdir/include/private -I$abs_srcdir/include"
3685
if test "$target_os" = "os2-emx"; then
3686
# Scripts don't pass test -x on OS/2
3692
acceptable_majors="1"
3694
apr_temp_acceptable_apr_config=""
3695
for apr_temp_major in $acceptable_majors
3697
case $apr_temp_major in
3699
apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-config"
3702
apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-$apr_temp_major-config"
3707
{ echo "$as_me:$LINENO: checking for APR" >&5
3708
echo $ECHO_N "checking for APR... $ECHO_C" >&6; }
3710
# Check whether --with-apr was given.
3711
if test "${with_apr+set}" = set; then
3713
if test "$withval" = "no" || test "$withval" = "yes"; then
3714
{ { echo "$as_me:$LINENO: error: --with-apr requires a directory or file to be provided" >&5
3715
echo "$as_me: error: --with-apr requires a directory or file to be provided" >&2;}
3716
{ (exit 1); exit 1; }; }
3719
for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config
3721
for lookdir in "$withval/bin" "$withval"
3723
if $TEST_X "$lookdir/$apr_temp_apr_config_file"; then
3725
apr_config="$lookdir/$apr_temp_apr_config_file"
3731
if test "$apr_found" != "yes" && $TEST_X "$withval" && $withval --help > /dev/null 2>&1 ; then
3733
apr_config="$withval"
3736
if test "$apr_found" != "yes"; then
3737
{ { 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
3738
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;}
3739
{ (exit 1); exit 1; }; }
3744
if test -n "" && test "" = "1"; then
3745
for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config
3747
if $apr_temp_apr_config_file --help > /dev/null 2>&1 ; then
3749
apr_config="$apr_temp_apr_config_file"
3752
for lookdir in /usr /usr/local /usr/local/apr /opt/apr; do
3753
if $TEST_X "$lookdir/bin/$apr_temp_apr_config_file"; then
3755
apr_config="$lookdir/bin/$apr_temp_apr_config_file"
3762
if test "$apr_found" = "no" && test -d ""; then
3763
apr_temp_abs_srcdir="`cd && pwd`"
3764
apr_found="reconfig"
3765
apr_bundled_major="`sed -n '/#define.*APR_MAJOR_VERSION/s/^[^0-9]*\([0-9]*\).*$/\1/p' \"/include/apr_version.h\"`"
3766
case $apr_bundled_major in
3768
{ { echo "$as_me:$LINENO: error: failed to find major version of bundled APR" >&5
3769
echo "$as_me: error: failed to find major version of bundled APR" >&2;}
3770
{ (exit 1); exit 1; }; }
3773
apr_temp_apr_config_file="apr-config"
3776
apr_temp_apr_config_file="apr-$apr_bundled_major-config"
3780
apr_config="/$apr_temp_apr_config_file"
3782
apr_config="/$apr_temp_apr_config_file"
3789
{ echo "$as_me:$LINENO: result: $apr_found" >&5
3790
echo "${ECHO_T}$apr_found" >&6; }
3792
if test "$apr_found" = "no"; then
3793
{ { echo "$as_me:$LINENO: error: APR could not be located. Please use the --with-apr option." >&5
3794
echo "$as_me: error: APR could not be located. Please use the --with-apr option." >&2;}
3795
{ (exit 1); exit 1; }; }
3798
APR_BUILD_DIR="`$apr_config --installbuilddir`"
3800
APR_BUILD_DIR="`cd $APR_BUILD_DIR && pwd`"
3802
APR_INCLUDES="`$apr_config --includes`"
3803
APR_LIBS="`$apr_config --link-libtool --libs`"
3804
APR_SO_EXT="`$apr_config --apr-so-ext`"
3805
APR_LIB_TARGET="`$apr_config --apr-lib-target`"
3813
if test -z "$CC"; then
3814
test "x$silent" != "xyes" && echo " setting CC to \"`$apr_config --cc`\""
3815
CC="`$apr_config --cc`"
3819
if test -z "$CPP"; then
3820
test "x$silent" != "xyes" && echo " setting CPP to \"`$apr_config --cpp`\""
3821
CPP="`$apr_config --cpp`"
3825
if test "x$CFLAGS" = "x"; then
3826
test "x$silent" != "xyes" && echo " setting CFLAGS to \"`$apr_config --cflags`\""
3827
CFLAGS="`$apr_config --cflags`"
3829
apr_addto_bugger="`$apr_config --cflags`"
3830
for i in $apr_addto_bugger; do
3831
apr_addto_duplicate="0"
3832
for j in $CFLAGS; do
3833
if test "x$i" = "x$j"; then
3834
apr_addto_duplicate="1"
3838
if test $apr_addto_duplicate = "0"; then
3839
test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
3846
if test "x$CPPFLAGS" = "x"; then
3847
test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"`$apr_config --cppflags`\""
3848
CPPFLAGS="`$apr_config --cppflags`"
3850
apr_addto_bugger="`$apr_config --cppflags`"
3851
for i in $apr_addto_bugger; do
3852
apr_addto_duplicate="0"
3853
for j in $CPPFLAGS; do
3854
if test "x$i" = "x$j"; then
3855
apr_addto_duplicate="1"
3859
if test $apr_addto_duplicate = "0"; then
3860
test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
3861
CPPFLAGS="$CPPFLAGS $i"
3867
if test -d ../apr-iconv; then
3869
# save our work to this point; this allows the sub-package to use it
3870
cat >confcache <<\_ACEOF
3871
# This file is a shell script that caches the results of configure
3872
# tests run on this system so they can be shared between configure
3873
# scripts and configure runs, see configure's option --config-cache.
3874
# It is not useful on other systems. If it contains results you don't
3875
# want to keep, you may remove or edit it.
3877
# config.status only pays attention to the cache file if you give it
3878
# the --recheck option to rerun configure.
3880
# `ac_cv_env_foo' variables (set or unset) will be overridden when
3881
# loading this file, other *unset* `ac_cv_foo' will be assigned the
3886
# The following way of writing the cache mishandles newlines in values,
3887
# but we know of no workaround that is simple, portable, and efficient.
3888
# So, we kill variables containing newlines.
3889
# Ultrix sh set writes to stderr and can't be redirected directly,
3890
# and sets the high bit in the cache file unless we assign to the vars.
3892
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
3893
eval ac_val=\$$ac_var
3897
*_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
3898
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
3901
_ | IFS | as_nl) ;; #(
3902
*) $as_unset $ac_var ;;
3908
case $as_nl`(ac_space=' '; set) 2>&1` in #(
3909
*${as_nl}ac_space=\ *)
3910
# `set' does not quote correctly, so add quotes (double-quote
3911
# substitution turns \\\\ into \\, and sed turns \\ into \).
3914
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3917
# `set' quotes correctly as required by POSIX, so do not add quotes.
3918
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3927
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3929
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3931
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
3932
if test -w "$cache_file"; then
3933
test "x$cache_file" != "x/dev/null" &&
3934
{ echo "$as_me:$LINENO: updating cache $cache_file" >&5
3935
echo "$as_me: updating cache $cache_file" >&6;}
3936
cat confcache >$cache_file
3938
{ echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
3939
echo "$as_me: not updating unwritable cache $cache_file" >&6;}
3944
echo "configuring package in ../apr-iconv now"
3946
apr_config_subdirs="../apr-iconv"
3947
test -d ../apr-iconv || $mkdir_p ../apr-iconv
3948
ac_abs_srcdir=`(cd $srcdir/../apr-iconv && pwd)`
3951
# A "../" for each directory in /$config_subdirs.
3952
ac_dots=`echo $apr_config_subdirs|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
3954
# Make the cache file pathname absolute for the subdirs
3955
# required to correctly handle subdirs that might actually
3957
case "$cache_file" in
3958
/*) # already absolute
3959
ac_sub_cache_file=$cache_file ;;
3960
*) # Was relative path.
3961
ac_sub_cache_file="$ac_popdir/$cache_file" ;;
3967
for apr_configure_arg in $ac_configure_args
3969
case "$apr_configure_arg" in
3970
--enable-layout=*|\'--enable-layout=*)
3973
apr_configure_args="$apr_configure_args$apr_sep'$apr_configure_arg'"
3978
# autoconf doesn't add --silent to ac_configure_args; explicitly pass it
3979
test "x$silent" = "xyes" && apr_configure_args="$apr_configure_args --silent"
3981
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
3983
echo "../apr-iconv configured properly"
3985
echo "configure failed for ../apr-iconv"
3991
# grab any updates from the sub-package
3992
if test -r "$cache_file"; then
3993
# Some versions of bash will fail to source /dev/null (special
3994
# files actually), so we avoid doing that.
3995
if test -f "$cache_file"; then
3996
{ echo "$as_me:$LINENO: loading cache $cache_file" >&5
3997
echo "$as_me: loading cache $cache_file" >&6;}
3999
[\\/]* | ?:[\\/]* ) . "$cache_file";;
4000
*) . "./$cache_file";;
4004
{ echo "$as_me:$LINENO: creating cache $cache_file" >&5
4005
echo "$as_me: creating cache $cache_file" >&6;}
4010
APRUTIL_EXPORT_LIBS="$abs_srcdir/../apr-iconv/lib/libapriconv.la $APRUTIL_EXPORT_LIBS"
4011
APRUTIL_INCLUDES="-I$abs_srcdir/../apr-iconv/include $APRUTIL_INCLUDES"
4012
APR_ICONV_DIR=../apr-iconv
4019
ac_cpp='$CPP $CPPFLAGS'
4020
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4021
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4022
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4023
{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4024
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3345
4025
# On Suns, sometimes $CPP names a directory.
3346
4026
if test -n "$CPP" && test -d "$CPP"; then
14638
17368
places="$all_places"
14639
17369
if test -z "$places"; then
17370
places="std /usr/local/BerkeleyDB.4.6 /boot/home/config"
17374
if test ""6"" != "-1"; then
17375
bdb_version="$bdb_version."6""
17376
if test ""-1"" != "-1"; then
17377
bdb_version="$bdb_version."-1""
17380
bdb_places="$places"
17381
bdb_default_search_headers="db46/db.h db4/db.h db.h"
17382
bdb_default_search_lib_names="db-4.6 db4-4.6 db46 db4 db"
17387
# Save the original values of the flags we tweak.
17388
apu_check_lib_save_libs="$LIBS"
17389
apu_check_lib_save_ldflags="$LDFLAGS"
17390
apu_check_lib_save_cppflags="$CPPFLAGS"
17392
# The variable `found' is the prefix under which we've found
17393
# Berkeley DB, or `not' if we haven't found it anywhere yet.
17395
for bdb_place in $bdb_places; do
17397
LDFLAGS="$apu_check_lib_save_ldflags"
17398
CPPFLAGS="$apu_check_lib_save_cppflags"
17399
case "$bdb_place" in
17401
description="the standard places"
17404
header="`echo $bdb_place | sed -e 's/:.*$//'`"
17405
lib="`echo $bdb_place | sed -e 's/^.*://'`"
17406
CPPFLAGS="$CPPFLAGS -I$header"
17407
LDFLAGS="$LDFLAGS -L$lib"
17408
description="$header and $lib"
17411
if test -d $bdb_place; then
17412
LDFLAGS="$LDFLAGS -L$bdb_place/lib"
17413
CPPFLAGS="$CPPFLAGS -I$bdb_place/include"
17415
{ echo "$as_me:$LINENO: checking for Berkeley DB $bdb_version in $bdb_place" >&5
17416
echo $ECHO_N "checking for Berkeley DB $bdb_version in $bdb_place... $ECHO_C" >&6; }
17417
{ echo "$as_me:$LINENO: result: directory not found" >&5
17418
echo "${ECHO_T}directory not found" >&6; }
17421
description="$bdb_place"
17425
# Since there is no AC_MSG_NOTICE in autoconf 2.13, we use this
17426
# trick to display a message instead.
17427
{ echo "$as_me:$LINENO: checking for Berkeley DB $bdb_version in $description" >&5
17428
echo $ECHO_N "checking for Berkeley DB $bdb_version in $description... $ECHO_C" >&6; }
17429
{ echo "$as_me:$LINENO: result: " >&5
17430
echo "${ECHO_T}" >&6; }
17432
for bdb_libname in $bdb_default_search_lib_names; do
17433
for bdb_header in $bdb_default_search_headers; do
17434
# Clear the header cache variable for each location
17436
cache_id="`echo ac_cv_header_${bdb_header} \
17437
| sed -e 's/[^a-zA-Z0-9_]/_/g'`"
17440
as_ac_Header=`echo "ac_cv_header_$bdb_header" | $as_tr_sh`
17441
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17442
{ echo "$as_me:$LINENO: checking for $bdb_header" >&5
17443
echo $ECHO_N "checking for $bdb_header... $ECHO_C" >&6; }
17444
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17445
echo $ECHO_N "(cached) $ECHO_C" >&6
17447
ac_res=`eval echo '${'$as_ac_Header'}'`
17448
{ echo "$as_me:$LINENO: result: $ac_res" >&5
17449
echo "${ECHO_T}$ac_res" >&6; }
17451
# Is the header compilable?
17452
{ echo "$as_me:$LINENO: checking $bdb_header usability" >&5
17453
echo $ECHO_N "checking $bdb_header usability... $ECHO_C" >&6; }
17454
cat >conftest.$ac_ext <<_ACEOF
17457
cat confdefs.h >>conftest.$ac_ext
17458
cat >>conftest.$ac_ext <<_ACEOF
17459
/* end confdefs.h. */
17460
$ac_includes_default
17461
#include <$bdb_header>
17463
rm -f conftest.$ac_objext
17464
if { (ac_try="$ac_compile"
17465
case "(($ac_try" in
17466
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17467
*) ac_try_echo=$ac_try;;
17469
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17470
(eval "$ac_compile") 2>conftest.er1
17472
grep -v '^ *+' conftest.er1 >conftest.err
17474
cat conftest.err >&5
17475
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17476
(exit $ac_status); } &&
17477
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17478
{ (case "(($ac_try" in
17479
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17480
*) ac_try_echo=$ac_try;;
17482
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17483
(eval "$ac_try") 2>&5
17485
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17486
(exit $ac_status); }; } &&
17487
{ ac_try='test -s conftest.$ac_objext'
17488
{ (case "(($ac_try" in
17489
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17490
*) ac_try_echo=$ac_try;;
17492
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17493
(eval "$ac_try") 2>&5
17495
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17496
(exit $ac_status); }; }; then
17497
ac_header_compiler=yes
17499
echo "$as_me: failed program was:" >&5
17500
sed 's/^/| /' conftest.$ac_ext >&5
17502
ac_header_compiler=no
17505
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17506
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17507
echo "${ECHO_T}$ac_header_compiler" >&6; }
17509
# Is the header present?
17510
{ echo "$as_me:$LINENO: checking $bdb_header presence" >&5
17511
echo $ECHO_N "checking $bdb_header presence... $ECHO_C" >&6; }
17512
cat >conftest.$ac_ext <<_ACEOF
17515
cat confdefs.h >>conftest.$ac_ext
17516
cat >>conftest.$ac_ext <<_ACEOF
17517
/* end confdefs.h. */
17518
#include <$bdb_header>
17520
if { (ac_try="$ac_cpp conftest.$ac_ext"
17521
case "(($ac_try" in
17522
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17523
*) ac_try_echo=$ac_try;;
17525
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17526
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17528
grep -v '^ *+' conftest.er1 >conftest.err
17530
cat conftest.err >&5
17531
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17532
(exit $ac_status); } >/dev/null; then
17533
if test -s conftest.err; then
17534
ac_cpp_err=$ac_c_preproc_warn_flag
17535
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17542
if test -z "$ac_cpp_err"; then
17543
ac_header_preproc=yes
17545
echo "$as_me: failed program was:" >&5
17546
sed 's/^/| /' conftest.$ac_ext >&5
17548
ac_header_preproc=no
17551
rm -f conftest.err conftest.$ac_ext
17552
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17553
echo "${ECHO_T}$ac_header_preproc" >&6; }
17555
# So? What about this header?
17556
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17558
{ echo "$as_me:$LINENO: WARNING: $bdb_header: accepted by the compiler, rejected by the preprocessor!" >&5
17559
echo "$as_me: WARNING: $bdb_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17560
{ echo "$as_me:$LINENO: WARNING: $bdb_header: proceeding with the compiler's result" >&5
17561
echo "$as_me: WARNING: $bdb_header: proceeding with the compiler's result" >&2;}
17562
ac_header_preproc=yes
17565
{ echo "$as_me:$LINENO: WARNING: $bdb_header: present but cannot be compiled" >&5
17566
echo "$as_me: WARNING: $bdb_header: present but cannot be compiled" >&2;}
17567
{ echo "$as_me:$LINENO: WARNING: $bdb_header: check for missing prerequisite headers?" >&5
17568
echo "$as_me: WARNING: $bdb_header: check for missing prerequisite headers?" >&2;}
17569
{ echo "$as_me:$LINENO: WARNING: $bdb_header: see the Autoconf documentation" >&5
17570
echo "$as_me: WARNING: $bdb_header: see the Autoconf documentation" >&2;}
17571
{ echo "$as_me:$LINENO: WARNING: $bdb_header: section \"Present But Cannot Be Compiled\"" >&5
17572
echo "$as_me: WARNING: $bdb_header: section \"Present But Cannot Be Compiled\"" >&2;}
17573
{ echo "$as_me:$LINENO: WARNING: $bdb_header: proceeding with the preprocessor's result" >&5
17574
echo "$as_me: WARNING: $bdb_header: proceeding with the preprocessor's result" >&2;}
17575
{ echo "$as_me:$LINENO: WARNING: $bdb_header: in the future, the compiler will take precedence" >&5
17576
echo "$as_me: WARNING: $bdb_header: in the future, the compiler will take precedence" >&2;}
17580
{ echo "$as_me:$LINENO: checking for $bdb_header" >&5
17581
echo $ECHO_N "checking for $bdb_header... $ECHO_C" >&6; }
17582
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17583
echo $ECHO_N "(cached) $ECHO_C" >&6
17585
eval "$as_ac_Header=\$ac_header_preproc"
17587
ac_res=`eval echo '${'$as_ac_Header'}'`
17588
{ echo "$as_me:$LINENO: result: $ac_res" >&5
17589
echo "${ECHO_T}$ac_res" >&6; }
17592
if test `eval echo '${'$as_ac_Header'}'` = yes; then
17594
if test ""4"" = "3" -o ""4"" = "4"; then
17595
# We generate a separate cache variable for each prefix and libname
17596
# we search under. That way, we avoid caching information that
17597
# changes if the user runs `configure' with a different set of
17600
cache_id="`echo apu_cv_check_berkeley_db_"4"_"6"_"-1"_${bdb_header}_${bdb_libname}_in_${bdb_place} \
17601
| sed -e 's/[^a-zA-Z0-9_]/_/g'`"
17604
{ echo "$as_me:$LINENO: checking for -l$bdb_libname" >&5
17605
echo $ECHO_N "checking for -l$bdb_libname... $ECHO_C" >&6; }
17606
if { as_var=$cache_id; eval "test \"\${$as_var+set}\" = set"; }; then
17607
echo $ECHO_N "(cached) $ECHO_C" >&6
17611
apu_try_berkeley_db_save_libs="$LIBS"
17613
apu_check_berkeley_db_major="4"
17614
apu_check_berkeley_db_minor="6"
17615
apu_check_berkeley_db_patch="-1"
17616
apu_try_berkeley_db_header=$bdb_header
17617
apu_try_berkeley_db_libname=$bdb_libname
17619
LIBS="$LIBS -l$apu_try_berkeley_db_libname"
17620
if test "$cross_compiling" = yes; then
17621
apu_try_berkeley_db=yes
17624
cat >conftest.$ac_ext <<_ACEOF
17627
cat confdefs.h >>conftest.$ac_ext
17628
cat >>conftest.$ac_ext <<_ACEOF
17629
/* end confdefs.h. */
17632
#include <$apu_try_berkeley_db_header>
17635
int major, minor, patch;
17637
db_version(&major, &minor, &patch);
17639
/* Sanity check: ensure that db.h constants actually match the db library */
17640
if (major != DB_VERSION_MAJOR
17641
|| minor != DB_VERSION_MINOR
17642
|| patch != DB_VERSION_PATCH)
17645
/* Run-time check: ensure the library claims to be the correct version. */
17647
if ($apu_check_berkeley_db_major != -1) {
17648
if (major < $apu_check_berkeley_db_major)
17650
if (major > $apu_check_berkeley_db_major)
17654
if ($apu_check_berkeley_db_minor != -1) {
17655
if (minor < $apu_check_berkeley_db_minor)
17657
if (minor > $apu_check_berkeley_db_minor)
17661
if ($apu_check_berkeley_db_patch == -1
17662
|| patch >= $apu_check_berkeley_db_patch)
17669
rm -f conftest$ac_exeext
17670
if { (ac_try="$ac_link"
17671
case "(($ac_try" in
17672
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17673
*) ac_try_echo=$ac_try;;
17675
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17676
(eval "$ac_link") 2>&5
17678
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17679
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17680
{ (case "(($ac_try" in
17681
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17682
*) ac_try_echo=$ac_try;;
17684
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17685
(eval "$ac_try") 2>&5
17687
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17688
(exit $ac_status); }; }; then
17689
apu_try_berkeley_db=yes
17691
echo "$as_me: program exited with status $ac_status" >&5
17692
echo "$as_me: failed program was:" >&5
17693
sed 's/^/| /' conftest.$ac_ext >&5
17695
( exit $ac_status )
17696
apu_try_berkeley_db=no
17698
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17703
LIBS="$apu_try_berkeley_db_save_libs"
17706
eval "$cache_id=$apu_try_berkeley_db"
17710
result="`eval echo '$'$cache_id`"
17711
{ echo "$as_me:$LINENO: result: $result" >&5
17712
echo "${ECHO_T}$result" >&6; }
17713
elif test ""4"" = "1"; then
17714
as_ac_Lib=`echo "ac_cv_lib_$bdb_libname''_dbopen" | $as_tr_sh`
17715
{ echo "$as_me:$LINENO: checking for dbopen in -l$bdb_libname" >&5
17716
echo $ECHO_N "checking for dbopen in -l$bdb_libname... $ECHO_C" >&6; }
17717
if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
17718
echo $ECHO_N "(cached) $ECHO_C" >&6
17720
ac_check_lib_save_LIBS=$LIBS
17721
LIBS="-l$bdb_libname $LIBS"
17722
cat >conftest.$ac_ext <<_ACEOF
17725
cat confdefs.h >>conftest.$ac_ext
17726
cat >>conftest.$ac_ext <<_ACEOF
17727
/* end confdefs.h. */
17729
/* Override any GCC internal prototype to avoid an error.
17730
Use char because int might match the return type of a GCC
17731
builtin and then its argument prototype would still apply. */
17744
rm -f conftest.$ac_objext conftest$ac_exeext
17745
if { (ac_try="$ac_link"
17746
case "(($ac_try" in
17747
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17748
*) ac_try_echo=$ac_try;;
17750
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17751
(eval "$ac_link") 2>conftest.er1
17753
grep -v '^ *+' conftest.er1 >conftest.err
17755
cat conftest.err >&5
17756
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17757
(exit $ac_status); } &&
17758
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17759
{ (case "(($ac_try" in
17760
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17761
*) ac_try_echo=$ac_try;;
17763
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17764
(eval "$ac_try") 2>&5
17766
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17767
(exit $ac_status); }; } &&
17768
{ ac_try='test -s conftest$ac_exeext'
17769
{ (case "(($ac_try" in
17770
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17771
*) ac_try_echo=$ac_try;;
17773
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17774
(eval "$ac_try") 2>&5
17776
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17777
(exit $ac_status); }; }; then
17778
eval "$as_ac_Lib=yes"
17780
echo "$as_me: failed program was:" >&5
17781
sed 's/^/| /' conftest.$ac_ext >&5
17783
eval "$as_ac_Lib=no"
17786
rm -f core conftest.err conftest.$ac_objext \
17787
conftest$ac_exeext conftest.$ac_ext
17788
LIBS=$ac_check_lib_save_LIBS
17790
ac_res=`eval echo '${'$as_ac_Lib'}'`
17791
{ echo "$as_me:$LINENO: result: $ac_res" >&5
17792
echo "${ECHO_T}$ac_res" >&6; }
17793
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
17800
elif test ""4"" = "2"; then
17801
as_ac_Lib=`echo "ac_cv_lib_$bdb_libname''_db_open" | $as_tr_sh`
17802
{ echo "$as_me:$LINENO: checking for db_open in -l$bdb_libname" >&5
17803
echo $ECHO_N "checking for db_open in -l$bdb_libname... $ECHO_C" >&6; }
17804
if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
17805
echo $ECHO_N "(cached) $ECHO_C" >&6
17807
ac_check_lib_save_LIBS=$LIBS
17808
LIBS="-l$bdb_libname $LIBS"
17809
cat >conftest.$ac_ext <<_ACEOF
17812
cat confdefs.h >>conftest.$ac_ext
17813
cat >>conftest.$ac_ext <<_ACEOF
17814
/* end confdefs.h. */
17816
/* Override any GCC internal prototype to avoid an error.
17817
Use char because int might match the return type of a GCC
17818
builtin and then its argument prototype would still apply. */
17831
rm -f conftest.$ac_objext conftest$ac_exeext
17832
if { (ac_try="$ac_link"
17833
case "(($ac_try" in
17834
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17835
*) ac_try_echo=$ac_try;;
17837
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17838
(eval "$ac_link") 2>conftest.er1
17840
grep -v '^ *+' conftest.er1 >conftest.err
17842
cat conftest.err >&5
17843
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17844
(exit $ac_status); } &&
17845
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17846
{ (case "(($ac_try" in
17847
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17848
*) ac_try_echo=$ac_try;;
17850
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17851
(eval "$ac_try") 2>&5
17853
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17854
(exit $ac_status); }; } &&
17855
{ ac_try='test -s conftest$ac_exeext'
17856
{ (case "(($ac_try" in
17857
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17858
*) ac_try_echo=$ac_try;;
17860
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17861
(eval "$ac_try") 2>&5
17863
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17864
(exit $ac_status); }; }; then
17865
eval "$as_ac_Lib=yes"
17867
echo "$as_me: failed program was:" >&5
17868
sed 's/^/| /' conftest.$ac_ext >&5
17870
eval "$as_ac_Lib=no"
17873
rm -f core conftest.err conftest.$ac_objext \
17874
conftest$ac_exeext conftest.$ac_ext
17875
LIBS=$ac_check_lib_save_LIBS
17877
ac_res=`eval echo '${'$as_ac_Lib'}'`
17878
{ echo "$as_me:$LINENO: result: $ac_res" >&5
17879
echo "${ECHO_T}$ac_res" >&6; }
17880
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
17895
# If we found it, no need to search any more.
17896
if test "$result" = "yes"; then
17901
test "$found" != "not" && break
17903
test "$found" != "not" && break
17906
# Restore the original values of the flags we tweak.
17907
LDFLAGS="$apu_check_lib_save_ldflags"
17908
CPPFLAGS="$apu_check_lib_save_cppflags"
17915
apu_db_header=$bdb_header
17916
apu_db_lib=$bdb_libname
17920
header="`echo $found | sed -e 's/:.*$//'`"
17921
lib="`echo $found | sed -e 's/^.*://'`"
17924
if test "x$APRUTIL_INCLUDES" = "x"; then
17925
test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$header\""
17926
APRUTIL_INCLUDES="-I$header"
17928
apr_addto_bugger="-I$header"
17929
for i in $apr_addto_bugger; do
17930
apr_addto_duplicate="0"
17931
for j in $APRUTIL_INCLUDES; do
17932
if test "x$i" = "x$j"; then
17933
apr_addto_duplicate="1"
17937
if test $apr_addto_duplicate = "0"; then
17938
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES"
17939
APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
17945
if test "x$APRUTIL_LDFLAGS" = "x"; then
17946
test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$lib\""
17947
APRUTIL_LDFLAGS="-L$lib"
17949
apr_addto_bugger="-L$lib"
17950
for i in $apr_addto_bugger; do
17951
apr_addto_duplicate="0"
17952
for j in $APRUTIL_LDFLAGS; do
17953
if test "x$i" = "x$j"; then
17954
apr_addto_duplicate="1"
17958
if test $apr_addto_duplicate = "0"; then
17959
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS"
17960
APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
17965
apu_db_header=$bdb_header
17966
apu_db_lib=$bdb_libname
17971
if test "x$APRUTIL_INCLUDES" = "x"; then
17972
test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$found/include\""
17973
APRUTIL_INCLUDES="-I$found/include"
17975
apr_addto_bugger="-I$found/include"
17976
for i in $apr_addto_bugger; do
17977
apr_addto_duplicate="0"
17978
for j in $APRUTIL_INCLUDES; do
17979
if test "x$i" = "x$j"; then
17980
apr_addto_duplicate="1"
17984
if test $apr_addto_duplicate = "0"; then
17985
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES"
17986
APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
17992
if test "x$APRUTIL_LDFLAGS" = "x"; then
17993
test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$found/lib\""
17994
APRUTIL_LDFLAGS="-L$found/lib"
17996
apr_addto_bugger="-L$found/lib"
17997
for i in $apr_addto_bugger; do
17998
apr_addto_duplicate="0"
17999
for j in $APRUTIL_LDFLAGS; do
18000
if test "x$i" = "x$j"; then
18001
apr_addto_duplicate="1"
18005
if test $apr_addto_duplicate = "0"; then
18006
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS"
18007
APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
18012
apu_db_header=$bdb_header
18013
apu_db_lib=$bdb_libname
18018
if test "$apu_have_db" = "1"; then
18022
if test "$apu_db_version" != "4"; then
18024
places="$all_places"
18025
if test -z "$places"; then
14640
18026
places="std /usr/local/BerkeleyDB.4.5 /boot/home/config"
26461
30869
rm -f conftest$ac_exeext
26462
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26463
(eval $ac_link) 2>&5
26465
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26466
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26467
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26468
(eval $ac_try) 2>&5
26470
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26471
(exit $ac_status); }; }; then
26472
apu_try_berkeley_db=yes
26474
echo "$as_me: program exited with status $ac_status" >&5
26475
echo "$as_me: failed program was:" >&5
26476
sed 's/^/| /' conftest.$ac_ext >&5
26478
( exit $ac_status )
26479
apu_try_berkeley_db=no
26481
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26484
LIBS="$apu_try_berkeley_db_save_libs"
26487
eval "$cache_id=$apu_try_berkeley_db"
26491
result="`eval echo '$'$cache_id`"
26492
echo "$as_me:$LINENO: result: $result" >&5
26493
echo "${ECHO_T}$result" >&6
26494
elif test ""4"" = "1"; then
26495
as_ac_Lib=`echo "ac_cv_lib_$bdb_libname''_dbopen" | $as_tr_sh`
26496
echo "$as_me:$LINENO: checking for dbopen in -l$bdb_libname" >&5
26497
echo $ECHO_N "checking for dbopen in -l$bdb_libname... $ECHO_C" >&6
26498
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
26499
echo $ECHO_N "(cached) $ECHO_C" >&6
26501
ac_check_lib_save_LIBS=$LIBS
26502
LIBS="-l$bdb_libname $LIBS"
26503
cat >conftest.$ac_ext <<_ACEOF
26506
cat confdefs.h >>conftest.$ac_ext
26507
cat >>conftest.$ac_ext <<_ACEOF
26508
/* end confdefs.h. */
26510
/* Override any gcc2 internal prototype to avoid an error. */
26514
/* We use char because int might match the return type of a gcc2
26515
builtin and then its argument prototype would still apply. */
26525
rm -f conftest.$ac_objext conftest$ac_exeext
26526
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26527
(eval $ac_link) 2>conftest.er1
26529
grep -v '^ *+' conftest.er1 >conftest.err
26531
cat conftest.err >&5
26532
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26533
(exit $ac_status); } &&
26534
{ ac_try='test -z "$ac_c_werror_flag"
26535
|| test ! -s conftest.err'
26536
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26537
(eval $ac_try) 2>&5
26539
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26540
(exit $ac_status); }; } &&
26541
{ ac_try='test -s conftest$ac_exeext'
26542
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26543
(eval $ac_try) 2>&5
26545
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26546
(exit $ac_status); }; }; then
26547
eval "$as_ac_Lib=yes"
26549
echo "$as_me: failed program was:" >&5
26550
sed 's/^/| /' conftest.$ac_ext >&5
26552
eval "$as_ac_Lib=no"
26554
rm -f conftest.err conftest.$ac_objext \
26555
conftest$ac_exeext conftest.$ac_ext
26556
LIBS=$ac_check_lib_save_LIBS
26558
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
26559
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
26560
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
26567
elif test ""4"" = "2"; then
26568
as_ac_Lib=`echo "ac_cv_lib_$bdb_libname''_db_open" | $as_tr_sh`
26569
echo "$as_me:$LINENO: checking for db_open in -l$bdb_libname" >&5
26570
echo $ECHO_N "checking for db_open in -l$bdb_libname... $ECHO_C" >&6
26571
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
26572
echo $ECHO_N "(cached) $ECHO_C" >&6
26574
ac_check_lib_save_LIBS=$LIBS
26575
LIBS="-l$bdb_libname $LIBS"
26576
cat >conftest.$ac_ext <<_ACEOF
26579
cat confdefs.h >>conftest.$ac_ext
26580
cat >>conftest.$ac_ext <<_ACEOF
26581
/* end confdefs.h. */
26583
/* Override any gcc2 internal prototype to avoid an error. */
26587
/* We use char because int might match the return type of a gcc2
26588
builtin and then its argument prototype would still apply. */
26598
rm -f conftest.$ac_objext conftest$ac_exeext
26599
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26600
(eval $ac_link) 2>conftest.er1
26602
grep -v '^ *+' conftest.er1 >conftest.err
26604
cat conftest.err >&5
26605
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26606
(exit $ac_status); } &&
26607
{ ac_try='test -z "$ac_c_werror_flag"
26608
|| test ! -s conftest.err'
26609
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26610
(eval $ac_try) 2>&5
26612
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26613
(exit $ac_status); }; } &&
26614
{ ac_try='test -s conftest$ac_exeext'
26615
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26616
(eval $ac_try) 2>&5
26618
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26619
(exit $ac_status); }; }; then
26620
eval "$as_ac_Lib=yes"
26622
echo "$as_me: failed program was:" >&5
26623
sed 's/^/| /' conftest.$ac_ext >&5
26625
eval "$as_ac_Lib=no"
26627
rm -f conftest.err conftest.$ac_objext \
26628
conftest$ac_exeext conftest.$ac_ext
26629
LIBS=$ac_check_lib_save_LIBS
26631
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
26632
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
30870
if { (ac_try="$ac_link"
30871
case "(($ac_try" in
30872
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30873
*) ac_try_echo=$ac_try;;
30875
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30876
(eval "$ac_link") 2>&5
30878
echo "$as_me:$LINENO: \$? = $ac_status" >&5
30879
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30880
{ (case "(($ac_try" in
30881
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30882
*) ac_try_echo=$ac_try;;
30884
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30885
(eval "$ac_try") 2>&5
30887
echo "$as_me:$LINENO: \$? = $ac_status" >&5
30888
(exit $ac_status); }; }; then
30889
apu_try_berkeley_db=yes
30891
echo "$as_me: program exited with status $ac_status" >&5
30892
echo "$as_me: failed program was:" >&5
30893
sed 's/^/| /' conftest.$ac_ext >&5
30895
( exit $ac_status )
30896
apu_try_berkeley_db=no
30898
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30903
LIBS="$apu_try_berkeley_db_save_libs"
30906
eval "$cache_id=$apu_try_berkeley_db"
30910
result="`eval echo '$'$cache_id`"
30911
{ echo "$as_me:$LINENO: result: $result" >&5
30912
echo "${ECHO_T}$result" >&6; }
30913
elif test ""4"" = "1"; then
30914
as_ac_Lib=`echo "ac_cv_lib_$bdb_libname''_dbopen" | $as_tr_sh`
30915
{ echo "$as_me:$LINENO: checking for dbopen in -l$bdb_libname" >&5
30916
echo $ECHO_N "checking for dbopen in -l$bdb_libname... $ECHO_C" >&6; }
30917
if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
30918
echo $ECHO_N "(cached) $ECHO_C" >&6
30920
ac_check_lib_save_LIBS=$LIBS
30921
LIBS="-l$bdb_libname $LIBS"
30922
cat >conftest.$ac_ext <<_ACEOF
30925
cat confdefs.h >>conftest.$ac_ext
30926
cat >>conftest.$ac_ext <<_ACEOF
30927
/* end confdefs.h. */
30929
/* Override any GCC internal prototype to avoid an error.
30930
Use char because int might match the return type of a GCC
30931
builtin and then its argument prototype would still apply. */
30944
rm -f conftest.$ac_objext conftest$ac_exeext
30945
if { (ac_try="$ac_link"
30946
case "(($ac_try" in
30947
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30948
*) ac_try_echo=$ac_try;;
30950
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30951
(eval "$ac_link") 2>conftest.er1
30953
grep -v '^ *+' conftest.er1 >conftest.err
30955
cat conftest.err >&5
30956
echo "$as_me:$LINENO: \$? = $ac_status" >&5
30957
(exit $ac_status); } &&
30958
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30959
{ (case "(($ac_try" in
30960
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30961
*) ac_try_echo=$ac_try;;
30963
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30964
(eval "$ac_try") 2>&5
30966
echo "$as_me:$LINENO: \$? = $ac_status" >&5
30967
(exit $ac_status); }; } &&
30968
{ ac_try='test -s conftest$ac_exeext'
30969
{ (case "(($ac_try" in
30970
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30971
*) ac_try_echo=$ac_try;;
30973
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30974
(eval "$ac_try") 2>&5
30976
echo "$as_me:$LINENO: \$? = $ac_status" >&5
30977
(exit $ac_status); }; }; then
30978
eval "$as_ac_Lib=yes"
30980
echo "$as_me: failed program was:" >&5
30981
sed 's/^/| /' conftest.$ac_ext >&5
30983
eval "$as_ac_Lib=no"
30986
rm -f core conftest.err conftest.$ac_objext \
30987
conftest$ac_exeext conftest.$ac_ext
30988
LIBS=$ac_check_lib_save_LIBS
30990
ac_res=`eval echo '${'$as_ac_Lib'}'`
30991
{ echo "$as_me:$LINENO: result: $ac_res" >&5
30992
echo "${ECHO_T}$ac_res" >&6; }
30993
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
31000
elif test ""4"" = "2"; then
31001
as_ac_Lib=`echo "ac_cv_lib_$bdb_libname''_db_open" | $as_tr_sh`
31002
{ echo "$as_me:$LINENO: checking for db_open in -l$bdb_libname" >&5
31003
echo $ECHO_N "checking for db_open in -l$bdb_libname... $ECHO_C" >&6; }
31004
if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
31005
echo $ECHO_N "(cached) $ECHO_C" >&6
31007
ac_check_lib_save_LIBS=$LIBS
31008
LIBS="-l$bdb_libname $LIBS"
31009
cat >conftest.$ac_ext <<_ACEOF
31012
cat confdefs.h >>conftest.$ac_ext
31013
cat >>conftest.$ac_ext <<_ACEOF
31014
/* end confdefs.h. */
31016
/* Override any GCC internal prototype to avoid an error.
31017
Use char because int might match the return type of a GCC
31018
builtin and then its argument prototype would still apply. */
31031
rm -f conftest.$ac_objext conftest$ac_exeext
31032
if { (ac_try="$ac_link"
31033
case "(($ac_try" in
31034
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31035
*) ac_try_echo=$ac_try;;
31037
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31038
(eval "$ac_link") 2>conftest.er1
31040
grep -v '^ *+' conftest.er1 >conftest.err
31042
cat conftest.err >&5
31043
echo "$as_me:$LINENO: \$? = $ac_status" >&5
31044
(exit $ac_status); } &&
31045
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31046
{ (case "(($ac_try" in
31047
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31048
*) ac_try_echo=$ac_try;;
31050
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31051
(eval "$ac_try") 2>&5
31053
echo "$as_me:$LINENO: \$? = $ac_status" >&5
31054
(exit $ac_status); }; } &&
31055
{ ac_try='test -s conftest$ac_exeext'
31056
{ (case "(($ac_try" in
31057
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31058
*) ac_try_echo=$ac_try;;
31060
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31061
(eval "$ac_try") 2>&5
31063
echo "$as_me:$LINENO: \$? = $ac_status" >&5
31064
(exit $ac_status); }; }; then
31065
eval "$as_ac_Lib=yes"
31067
echo "$as_me: failed program was:" >&5
31068
sed 's/^/| /' conftest.$ac_ext >&5
31070
eval "$as_ac_Lib=no"
31073
rm -f core conftest.err conftest.$ac_objext \
31074
conftest$ac_exeext conftest.$ac_ext
31075
LIBS=$ac_check_lib_save_LIBS
31077
ac_res=`eval echo '${'$as_ac_Lib'}'`
31078
{ echo "$as_me:$LINENO: result: $ac_res" >&5
31079
echo "${ECHO_T}$ac_res" >&6; }
31080
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
31095
# If we found it, no need to search any more.
31096
if test "$result" = "yes"; then
31101
test "$found" != "not" && break
31103
test "$found" != "not" && break
31106
# Restore the original values of the flags we tweak.
31107
LDFLAGS="$apu_check_lib_save_ldflags"
31108
CPPFLAGS="$apu_check_lib_save_cppflags"
31115
apu_db_header=$bdb_header
31116
apu_db_lib=$bdb_libname
31120
header="`echo $found | sed -e 's/:.*$//'`"
31121
lib="`echo $found | sed -e 's/^.*://'`"
31124
if test "x$APRUTIL_INCLUDES" = "x"; then
31125
test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$header\""
31126
APRUTIL_INCLUDES="-I$header"
31128
apr_addto_bugger="-I$header"
31129
for i in $apr_addto_bugger; do
31130
apr_addto_duplicate="0"
31131
for j in $APRUTIL_INCLUDES; do
31132
if test "x$i" = "x$j"; then
31133
apr_addto_duplicate="1"
31137
if test $apr_addto_duplicate = "0"; then
31138
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES"
31139
APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
31145
if test "x$APRUTIL_LDFLAGS" = "x"; then
31146
test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$lib\""
31147
APRUTIL_LDFLAGS="-L$lib"
31149
apr_addto_bugger="-L$lib"
31150
for i in $apr_addto_bugger; do
31151
apr_addto_duplicate="0"
31152
for j in $APRUTIL_LDFLAGS; do
31153
if test "x$i" = "x$j"; then
31154
apr_addto_duplicate="1"
31158
if test $apr_addto_duplicate = "0"; then
31159
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS"
31160
APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
31165
apu_db_header=$bdb_header
31166
apu_db_lib=$bdb_libname
31171
if test "x$APRUTIL_INCLUDES" = "x"; then
31172
test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$found/include\""
31173
APRUTIL_INCLUDES="-I$found/include"
31175
apr_addto_bugger="-I$found/include"
31176
for i in $apr_addto_bugger; do
31177
apr_addto_duplicate="0"
31178
for j in $APRUTIL_INCLUDES; do
31179
if test "x$i" = "x$j"; then
31180
apr_addto_duplicate="1"
31184
if test $apr_addto_duplicate = "0"; then
31185
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES"
31186
APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
31192
if test "x$APRUTIL_LDFLAGS" = "x"; then
31193
test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$found/lib\""
31194
APRUTIL_LDFLAGS="-L$found/lib"
31196
apr_addto_bugger="-L$found/lib"
31197
for i in $apr_addto_bugger; do
31198
apr_addto_duplicate="0"
31199
for j in $APRUTIL_LDFLAGS; do
31200
if test "x$i" = "x$j"; then
31201
apr_addto_duplicate="1"
31205
if test $apr_addto_duplicate = "0"; then
31206
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS"
31207
APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
31212
apu_db_header=$bdb_header
31213
apu_db_lib=$bdb_libname
31218
if test "$apu_have_db" = "1"; then
31222
if test "$apu_db_version" != "4"; then
31223
{ { echo "$as_me:$LINENO: error: Berkeley db4 not found" >&5
31224
echo "$as_me: error: Berkeley db4 not found" >&2;}
31225
{ (exit 1); exit 1; }; }
31230
places="$check_places"
31231
if test -z "$places"; then
31232
places="std /usr/local/BerkeleyDB.4.6 /boot/home/config"
31236
if test ""6"" != "-1"; then
31237
bdb_version="$bdb_version."6""
31238
if test ""-1"" != "-1"; then
31239
bdb_version="$bdb_version."-1""
31242
bdb_places="$places"
31243
bdb_default_search_headers="db46/db.h db4/db.h db.h"
31244
bdb_default_search_lib_names="db-4.6 db4-4.6 db46 db4 db"
31249
# Save the original values of the flags we tweak.
31250
apu_check_lib_save_libs="$LIBS"
31251
apu_check_lib_save_ldflags="$LDFLAGS"
31252
apu_check_lib_save_cppflags="$CPPFLAGS"
31254
# The variable `found' is the prefix under which we've found
31255
# Berkeley DB, or `not' if we haven't found it anywhere yet.
31257
for bdb_place in $bdb_places; do
31259
LDFLAGS="$apu_check_lib_save_ldflags"
31260
CPPFLAGS="$apu_check_lib_save_cppflags"
31261
case "$bdb_place" in
31263
description="the standard places"
31266
header="`echo $bdb_place | sed -e 's/:.*$//'`"
31267
lib="`echo $bdb_place | sed -e 's/^.*://'`"
31268
CPPFLAGS="$CPPFLAGS -I$header"
31269
LDFLAGS="$LDFLAGS -L$lib"
31270
description="$header and $lib"
31273
if test -d $bdb_place; then
31274
LDFLAGS="$LDFLAGS -L$bdb_place/lib"
31275
CPPFLAGS="$CPPFLAGS -I$bdb_place/include"
31277
{ echo "$as_me:$LINENO: checking for Berkeley DB $bdb_version in $bdb_place" >&5
31278
echo $ECHO_N "checking for Berkeley DB $bdb_version in $bdb_place... $ECHO_C" >&6; }
31279
{ echo "$as_me:$LINENO: result: directory not found" >&5
31280
echo "${ECHO_T}directory not found" >&6; }
31283
description="$bdb_place"
31287
# Since there is no AC_MSG_NOTICE in autoconf 2.13, we use this
31288
# trick to display a message instead.
31289
{ echo "$as_me:$LINENO: checking for Berkeley DB $bdb_version in $description" >&5
31290
echo $ECHO_N "checking for Berkeley DB $bdb_version in $description... $ECHO_C" >&6; }
31291
{ echo "$as_me:$LINENO: result: " >&5
31292
echo "${ECHO_T}" >&6; }
31294
for bdb_libname in $bdb_default_search_lib_names; do
31295
for bdb_header in $bdb_default_search_headers; do
31296
# Clear the header cache variable for each location
31298
cache_id="`echo ac_cv_header_${bdb_header} \
31299
| sed -e 's/[^a-zA-Z0-9_]/_/g'`"
31302
as_ac_Header=`echo "ac_cv_header_$bdb_header" | $as_tr_sh`
31303
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31304
{ echo "$as_me:$LINENO: checking for $bdb_header" >&5
31305
echo $ECHO_N "checking for $bdb_header... $ECHO_C" >&6; }
31306
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31307
echo $ECHO_N "(cached) $ECHO_C" >&6
31309
ac_res=`eval echo '${'$as_ac_Header'}'`
31310
{ echo "$as_me:$LINENO: result: $ac_res" >&5
31311
echo "${ECHO_T}$ac_res" >&6; }
31313
# Is the header compilable?
31314
{ echo "$as_me:$LINENO: checking $bdb_header usability" >&5
31315
echo $ECHO_N "checking $bdb_header usability... $ECHO_C" >&6; }
31316
cat >conftest.$ac_ext <<_ACEOF
31319
cat confdefs.h >>conftest.$ac_ext
31320
cat >>conftest.$ac_ext <<_ACEOF
31321
/* end confdefs.h. */
31322
$ac_includes_default
31323
#include <$bdb_header>
31325
rm -f conftest.$ac_objext
31326
if { (ac_try="$ac_compile"
31327
case "(($ac_try" in
31328
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31329
*) ac_try_echo=$ac_try;;
31331
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31332
(eval "$ac_compile") 2>conftest.er1
31334
grep -v '^ *+' conftest.er1 >conftest.err
31336
cat conftest.err >&5
31337
echo "$as_me:$LINENO: \$? = $ac_status" >&5
31338
(exit $ac_status); } &&
31339
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31340
{ (case "(($ac_try" in
31341
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31342
*) ac_try_echo=$ac_try;;
31344
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31345
(eval "$ac_try") 2>&5
31347
echo "$as_me:$LINENO: \$? = $ac_status" >&5
31348
(exit $ac_status); }; } &&
31349
{ ac_try='test -s conftest.$ac_objext'
31350
{ (case "(($ac_try" in
31351
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31352
*) ac_try_echo=$ac_try;;
31354
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31355
(eval "$ac_try") 2>&5
31357
echo "$as_me:$LINENO: \$? = $ac_status" >&5
31358
(exit $ac_status); }; }; then
31359
ac_header_compiler=yes
31361
echo "$as_me: failed program was:" >&5
31362
sed 's/^/| /' conftest.$ac_ext >&5
31364
ac_header_compiler=no
31367
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31368
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31369
echo "${ECHO_T}$ac_header_compiler" >&6; }
31371
# Is the header present?
31372
{ echo "$as_me:$LINENO: checking $bdb_header presence" >&5
31373
echo $ECHO_N "checking $bdb_header presence... $ECHO_C" >&6; }
31374
cat >conftest.$ac_ext <<_ACEOF
31377
cat confdefs.h >>conftest.$ac_ext
31378
cat >>conftest.$ac_ext <<_ACEOF
31379
/* end confdefs.h. */
31380
#include <$bdb_header>
31382
if { (ac_try="$ac_cpp conftest.$ac_ext"
31383
case "(($ac_try" in
31384
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31385
*) ac_try_echo=$ac_try;;
31387
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31388
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31390
grep -v '^ *+' conftest.er1 >conftest.err
31392
cat conftest.err >&5
31393
echo "$as_me:$LINENO: \$? = $ac_status" >&5
31394
(exit $ac_status); } >/dev/null; then
31395
if test -s conftest.err; then
31396
ac_cpp_err=$ac_c_preproc_warn_flag
31397
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31404
if test -z "$ac_cpp_err"; then
31405
ac_header_preproc=yes
31407
echo "$as_me: failed program was:" >&5
31408
sed 's/^/| /' conftest.$ac_ext >&5
31410
ac_header_preproc=no
31413
rm -f conftest.err conftest.$ac_ext
31414
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31415
echo "${ECHO_T}$ac_header_preproc" >&6; }
31417
# So? What about this header?
31418
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31420
{ echo "$as_me:$LINENO: WARNING: $bdb_header: accepted by the compiler, rejected by the preprocessor!" >&5
31421
echo "$as_me: WARNING: $bdb_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31422
{ echo "$as_me:$LINENO: WARNING: $bdb_header: proceeding with the compiler's result" >&5
31423
echo "$as_me: WARNING: $bdb_header: proceeding with the compiler's result" >&2;}
31424
ac_header_preproc=yes
31427
{ echo "$as_me:$LINENO: WARNING: $bdb_header: present but cannot be compiled" >&5
31428
echo "$as_me: WARNING: $bdb_header: present but cannot be compiled" >&2;}
31429
{ echo "$as_me:$LINENO: WARNING: $bdb_header: check for missing prerequisite headers?" >&5
31430
echo "$as_me: WARNING: $bdb_header: check for missing prerequisite headers?" >&2;}
31431
{ echo "$as_me:$LINENO: WARNING: $bdb_header: see the Autoconf documentation" >&5
31432
echo "$as_me: WARNING: $bdb_header: see the Autoconf documentation" >&2;}
31433
{ echo "$as_me:$LINENO: WARNING: $bdb_header: section \"Present But Cannot Be Compiled\"" >&5
31434
echo "$as_me: WARNING: $bdb_header: section \"Present But Cannot Be Compiled\"" >&2;}
31435
{ echo "$as_me:$LINENO: WARNING: $bdb_header: proceeding with the preprocessor's result" >&5
31436
echo "$as_me: WARNING: $bdb_header: proceeding with the preprocessor's result" >&2;}
31437
{ echo "$as_me:$LINENO: WARNING: $bdb_header: in the future, the compiler will take precedence" >&5
31438
echo "$as_me: WARNING: $bdb_header: in the future, the compiler will take precedence" >&2;}
31442
{ echo "$as_me:$LINENO: checking for $bdb_header" >&5
31443
echo $ECHO_N "checking for $bdb_header... $ECHO_C" >&6; }
31444
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31445
echo $ECHO_N "(cached) $ECHO_C" >&6
31447
eval "$as_ac_Header=\$ac_header_preproc"
31449
ac_res=`eval echo '${'$as_ac_Header'}'`
31450
{ echo "$as_me:$LINENO: result: $ac_res" >&5
31451
echo "${ECHO_T}$ac_res" >&6; }
31454
if test `eval echo '${'$as_ac_Header'}'` = yes; then
31456
if test ""4"" = "3" -o ""4"" = "4"; then
31457
# We generate a separate cache variable for each prefix and libname
31458
# we search under. That way, we avoid caching information that
31459
# changes if the user runs `configure' with a different set of
31462
cache_id="`echo apu_cv_check_berkeley_db_"4"_"6"_"-1"_${bdb_header}_${bdb_libname}_in_${bdb_place} \
31463
| sed -e 's/[^a-zA-Z0-9_]/_/g'`"
31466
{ echo "$as_me:$LINENO: checking for -l$bdb_libname" >&5
31467
echo $ECHO_N "checking for -l$bdb_libname... $ECHO_C" >&6; }
31468
if { as_var=$cache_id; eval "test \"\${$as_var+set}\" = set"; }; then
31469
echo $ECHO_N "(cached) $ECHO_C" >&6
31473
apu_try_berkeley_db_save_libs="$LIBS"
31475
apu_check_berkeley_db_major="4"
31476
apu_check_berkeley_db_minor="6"
31477
apu_check_berkeley_db_patch="-1"
31478
apu_try_berkeley_db_header=$bdb_header
31479
apu_try_berkeley_db_libname=$bdb_libname
31481
LIBS="$LIBS -l$apu_try_berkeley_db_libname"
31482
if test "$cross_compiling" = yes; then
31483
apu_try_berkeley_db=yes
31486
cat >conftest.$ac_ext <<_ACEOF
31489
cat confdefs.h >>conftest.$ac_ext
31490
cat >>conftest.$ac_ext <<_ACEOF
31491
/* end confdefs.h. */
31494
#include <$apu_try_berkeley_db_header>
31497
int major, minor, patch;
31499
db_version(&major, &minor, &patch);
31501
/* Sanity check: ensure that db.h constants actually match the db library */
31502
if (major != DB_VERSION_MAJOR
31503
|| minor != DB_VERSION_MINOR
31504
|| patch != DB_VERSION_PATCH)
31507
/* Run-time check: ensure the library claims to be the correct version. */
31509
if ($apu_check_berkeley_db_major != -1) {
31510
if (major < $apu_check_berkeley_db_major)
31512
if (major > $apu_check_berkeley_db_major)
31516
if ($apu_check_berkeley_db_minor != -1) {
31517
if (minor < $apu_check_berkeley_db_minor)
31519
if (minor > $apu_check_berkeley_db_minor)
31523
if ($apu_check_berkeley_db_patch == -1
31524
|| patch >= $apu_check_berkeley_db_patch)
31531
rm -f conftest$ac_exeext
31532
if { (ac_try="$ac_link"
31533
case "(($ac_try" in
31534
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31535
*) ac_try_echo=$ac_try;;
31537
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31538
(eval "$ac_link") 2>&5
31540
echo "$as_me:$LINENO: \$? = $ac_status" >&5
31541
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31542
{ (case "(($ac_try" in
31543
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31544
*) ac_try_echo=$ac_try;;
31546
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31547
(eval "$ac_try") 2>&5
31549
echo "$as_me:$LINENO: \$? = $ac_status" >&5
31550
(exit $ac_status); }; }; then
31551
apu_try_berkeley_db=yes
31553
echo "$as_me: program exited with status $ac_status" >&5
31554
echo "$as_me: failed program was:" >&5
31555
sed 's/^/| /' conftest.$ac_ext >&5
31557
( exit $ac_status )
31558
apu_try_berkeley_db=no
31560
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31565
LIBS="$apu_try_berkeley_db_save_libs"
31568
eval "$cache_id=$apu_try_berkeley_db"
31572
result="`eval echo '$'$cache_id`"
31573
{ echo "$as_me:$LINENO: result: $result" >&5
31574
echo "${ECHO_T}$result" >&6; }
31575
elif test ""4"" = "1"; then
31576
as_ac_Lib=`echo "ac_cv_lib_$bdb_libname''_dbopen" | $as_tr_sh`
31577
{ echo "$as_me:$LINENO: checking for dbopen in -l$bdb_libname" >&5
31578
echo $ECHO_N "checking for dbopen in -l$bdb_libname... $ECHO_C" >&6; }
31579
if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
31580
echo $ECHO_N "(cached) $ECHO_C" >&6
31582
ac_check_lib_save_LIBS=$LIBS
31583
LIBS="-l$bdb_libname $LIBS"
31584
cat >conftest.$ac_ext <<_ACEOF
31587
cat confdefs.h >>conftest.$ac_ext
31588
cat >>conftest.$ac_ext <<_ACEOF
31589
/* end confdefs.h. */
31591
/* Override any GCC internal prototype to avoid an error.
31592
Use char because int might match the return type of a GCC
31593
builtin and then its argument prototype would still apply. */
31606
rm -f conftest.$ac_objext conftest$ac_exeext
31607
if { (ac_try="$ac_link"
31608
case "(($ac_try" in
31609
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31610
*) ac_try_echo=$ac_try;;
31612
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31613
(eval "$ac_link") 2>conftest.er1
31615
grep -v '^ *+' conftest.er1 >conftest.err
31617
cat conftest.err >&5
31618
echo "$as_me:$LINENO: \$? = $ac_status" >&5
31619
(exit $ac_status); } &&
31620
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31621
{ (case "(($ac_try" in
31622
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31623
*) ac_try_echo=$ac_try;;
31625
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31626
(eval "$ac_try") 2>&5
31628
echo "$as_me:$LINENO: \$? = $ac_status" >&5
31629
(exit $ac_status); }; } &&
31630
{ ac_try='test -s conftest$ac_exeext'
31631
{ (case "(($ac_try" in
31632
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31633
*) ac_try_echo=$ac_try;;
31635
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31636
(eval "$ac_try") 2>&5
31638
echo "$as_me:$LINENO: \$? = $ac_status" >&5
31639
(exit $ac_status); }; }; then
31640
eval "$as_ac_Lib=yes"
31642
echo "$as_me: failed program was:" >&5
31643
sed 's/^/| /' conftest.$ac_ext >&5
31645
eval "$as_ac_Lib=no"
31648
rm -f core conftest.err conftest.$ac_objext \
31649
conftest$ac_exeext conftest.$ac_ext
31650
LIBS=$ac_check_lib_save_LIBS
31652
ac_res=`eval echo '${'$as_ac_Lib'}'`
31653
{ echo "$as_me:$LINENO: result: $ac_res" >&5
31654
echo "${ECHO_T}$ac_res" >&6; }
31655
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
31662
elif test ""4"" = "2"; then
31663
as_ac_Lib=`echo "ac_cv_lib_$bdb_libname''_db_open" | $as_tr_sh`
31664
{ echo "$as_me:$LINENO: checking for db_open in -l$bdb_libname" >&5
31665
echo $ECHO_N "checking for db_open in -l$bdb_libname... $ECHO_C" >&6; }
31666
if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
31667
echo $ECHO_N "(cached) $ECHO_C" >&6
31669
ac_check_lib_save_LIBS=$LIBS
31670
LIBS="-l$bdb_libname $LIBS"
31671
cat >conftest.$ac_ext <<_ACEOF
31674
cat confdefs.h >>conftest.$ac_ext
31675
cat >>conftest.$ac_ext <<_ACEOF
31676
/* end confdefs.h. */
31678
/* Override any GCC internal prototype to avoid an error.
31679
Use char because int might match the return type of a GCC
31680
builtin and then its argument prototype would still apply. */
31693
rm -f conftest.$ac_objext conftest$ac_exeext
31694
if { (ac_try="$ac_link"
31695
case "(($ac_try" in
31696
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31697
*) ac_try_echo=$ac_try;;
31699
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31700
(eval "$ac_link") 2>conftest.er1
31702
grep -v '^ *+' conftest.er1 >conftest.err
31704
cat conftest.err >&5
31705
echo "$as_me:$LINENO: \$? = $ac_status" >&5
31706
(exit $ac_status); } &&
31707
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31708
{ (case "(($ac_try" in
31709
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31710
*) ac_try_echo=$ac_try;;
31712
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31713
(eval "$ac_try") 2>&5
31715
echo "$as_me:$LINENO: \$? = $ac_status" >&5
31716
(exit $ac_status); }; } &&
31717
{ ac_try='test -s conftest$ac_exeext'
31718
{ (case "(($ac_try" in
31719
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31720
*) ac_try_echo=$ac_try;;
31722
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31723
(eval "$ac_try") 2>&5
31725
echo "$as_me:$LINENO: \$? = $ac_status" >&5
31726
(exit $ac_status); }; }; then
31727
eval "$as_ac_Lib=yes"
31729
echo "$as_me: failed program was:" >&5
31730
sed 's/^/| /' conftest.$ac_ext >&5
31732
eval "$as_ac_Lib=no"
31735
rm -f core conftest.err conftest.$ac_objext \
31736
conftest$ac_exeext conftest.$ac_ext
31737
LIBS=$ac_check_lib_save_LIBS
31739
ac_res=`eval echo '${'$as_ac_Lib'}'`
31740
{ echo "$as_me:$LINENO: result: $ac_res" >&5
31741
echo "${ECHO_T}$ac_res" >&6; }
26633
31742
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
26786
31895
places="$all_places"
26787
31896
if test -z "$places"; then
31897
places="std /usr/local/BerkeleyDB.4.6 /boot/home/config"
31901
if test ""6"" != "-1"; then
31902
bdb_version="$bdb_version."6""
31903
if test ""-1"" != "-1"; then
31904
bdb_version="$bdb_version."-1""
31907
bdb_places="$places"
31908
bdb_default_search_headers="db46/db.h db4/db.h db.h"
31909
bdb_default_search_lib_names="db-4.6 db4-4.6 db46 db4 db"
31914
# Save the original values of the flags we tweak.
31915
apu_check_lib_save_libs="$LIBS"
31916
apu_check_lib_save_ldflags="$LDFLAGS"
31917
apu_check_lib_save_cppflags="$CPPFLAGS"
31919
# The variable `found' is the prefix under which we've found
31920
# Berkeley DB, or `not' if we haven't found it anywhere yet.
31922
for bdb_place in $bdb_places; do
31924
LDFLAGS="$apu_check_lib_save_ldflags"
31925
CPPFLAGS="$apu_check_lib_save_cppflags"
31926
case "$bdb_place" in
31928
description="the standard places"
31931
header="`echo $bdb_place | sed -e 's/:.*$//'`"
31932
lib="`echo $bdb_place | sed -e 's/^.*://'`"
31933
CPPFLAGS="$CPPFLAGS -I$header"
31934
LDFLAGS="$LDFLAGS -L$lib"
31935
description="$header and $lib"
31938
if test -d $bdb_place; then
31939
LDFLAGS="$LDFLAGS -L$bdb_place/lib"
31940
CPPFLAGS="$CPPFLAGS -I$bdb_place/include"
31942
{ echo "$as_me:$LINENO: checking for Berkeley DB $bdb_version in $bdb_place" >&5
31943
echo $ECHO_N "checking for Berkeley DB $bdb_version in $bdb_place... $ECHO_C" >&6; }
31944
{ echo "$as_me:$LINENO: result: directory not found" >&5
31945
echo "${ECHO_T}directory not found" >&6; }
31948
description="$bdb_place"
31952
# Since there is no AC_MSG_NOTICE in autoconf 2.13, we use this
31953
# trick to display a message instead.
31954
{ echo "$as_me:$LINENO: checking for Berkeley DB $bdb_version in $description" >&5
31955
echo $ECHO_N "checking for Berkeley DB $bdb_version in $description... $ECHO_C" >&6; }
31956
{ echo "$as_me:$LINENO: result: " >&5
31957
echo "${ECHO_T}" >&6; }
31959
for bdb_libname in $bdb_default_search_lib_names; do
31960
for bdb_header in $bdb_default_search_headers; do
31961
# Clear the header cache variable for each location
31963
cache_id="`echo ac_cv_header_${bdb_header} \
31964
| sed -e 's/[^a-zA-Z0-9_]/_/g'`"
31967
as_ac_Header=`echo "ac_cv_header_$bdb_header" | $as_tr_sh`
31968
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31969
{ echo "$as_me:$LINENO: checking for $bdb_header" >&5
31970
echo $ECHO_N "checking for $bdb_header... $ECHO_C" >&6; }
31971
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31972
echo $ECHO_N "(cached) $ECHO_C" >&6
31974
ac_res=`eval echo '${'$as_ac_Header'}'`
31975
{ echo "$as_me:$LINENO: result: $ac_res" >&5
31976
echo "${ECHO_T}$ac_res" >&6; }
31978
# Is the header compilable?
31979
{ echo "$as_me:$LINENO: checking $bdb_header usability" >&5
31980
echo $ECHO_N "checking $bdb_header usability... $ECHO_C" >&6; }
31981
cat >conftest.$ac_ext <<_ACEOF
31984
cat confdefs.h >>conftest.$ac_ext
31985
cat >>conftest.$ac_ext <<_ACEOF
31986
/* end confdefs.h. */
31987
$ac_includes_default
31988
#include <$bdb_header>
31990
rm -f conftest.$ac_objext
31991
if { (ac_try="$ac_compile"
31992
case "(($ac_try" in
31993
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31994
*) ac_try_echo=$ac_try;;
31996
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31997
(eval "$ac_compile") 2>conftest.er1
31999
grep -v '^ *+' conftest.er1 >conftest.err
32001
cat conftest.err >&5
32002
echo "$as_me:$LINENO: \$? = $ac_status" >&5
32003
(exit $ac_status); } &&
32004
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32005
{ (case "(($ac_try" in
32006
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32007
*) ac_try_echo=$ac_try;;
32009
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32010
(eval "$ac_try") 2>&5
32012
echo "$as_me:$LINENO: \$? = $ac_status" >&5
32013
(exit $ac_status); }; } &&
32014
{ ac_try='test -s conftest.$ac_objext'
32015
{ (case "(($ac_try" in
32016
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32017
*) ac_try_echo=$ac_try;;
32019
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32020
(eval "$ac_try") 2>&5
32022
echo "$as_me:$LINENO: \$? = $ac_status" >&5
32023
(exit $ac_status); }; }; then
32024
ac_header_compiler=yes
32026
echo "$as_me: failed program was:" >&5
32027
sed 's/^/| /' conftest.$ac_ext >&5
32029
ac_header_compiler=no
32032
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32033
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32034
echo "${ECHO_T}$ac_header_compiler" >&6; }
32036
# Is the header present?
32037
{ echo "$as_me:$LINENO: checking $bdb_header presence" >&5
32038
echo $ECHO_N "checking $bdb_header presence... $ECHO_C" >&6; }
32039
cat >conftest.$ac_ext <<_ACEOF
32042
cat confdefs.h >>conftest.$ac_ext
32043
cat >>conftest.$ac_ext <<_ACEOF
32044
/* end confdefs.h. */
32045
#include <$bdb_header>
32047
if { (ac_try="$ac_cpp conftest.$ac_ext"
32048
case "(($ac_try" in
32049
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32050
*) ac_try_echo=$ac_try;;
32052
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32053
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32055
grep -v '^ *+' conftest.er1 >conftest.err
32057
cat conftest.err >&5
32058
echo "$as_me:$LINENO: \$? = $ac_status" >&5
32059
(exit $ac_status); } >/dev/null; then
32060
if test -s conftest.err; then
32061
ac_cpp_err=$ac_c_preproc_warn_flag
32062
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32069
if test -z "$ac_cpp_err"; then
32070
ac_header_preproc=yes
32072
echo "$as_me: failed program was:" >&5
32073
sed 's/^/| /' conftest.$ac_ext >&5
32075
ac_header_preproc=no
32078
rm -f conftest.err conftest.$ac_ext
32079
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32080
echo "${ECHO_T}$ac_header_preproc" >&6; }
32082
# So? What about this header?
32083
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32085
{ echo "$as_me:$LINENO: WARNING: $bdb_header: accepted by the compiler, rejected by the preprocessor!" >&5
32086
echo "$as_me: WARNING: $bdb_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32087
{ echo "$as_me:$LINENO: WARNING: $bdb_header: proceeding with the compiler's result" >&5
32088
echo "$as_me: WARNING: $bdb_header: proceeding with the compiler's result" >&2;}
32089
ac_header_preproc=yes
32092
{ echo "$as_me:$LINENO: WARNING: $bdb_header: present but cannot be compiled" >&5
32093
echo "$as_me: WARNING: $bdb_header: present but cannot be compiled" >&2;}
32094
{ echo "$as_me:$LINENO: WARNING: $bdb_header: check for missing prerequisite headers?" >&5
32095
echo "$as_me: WARNING: $bdb_header: check for missing prerequisite headers?" >&2;}
32096
{ echo "$as_me:$LINENO: WARNING: $bdb_header: see the Autoconf documentation" >&5
32097
echo "$as_me: WARNING: $bdb_header: see the Autoconf documentation" >&2;}
32098
{ echo "$as_me:$LINENO: WARNING: $bdb_header: section \"Present But Cannot Be Compiled\"" >&5
32099
echo "$as_me: WARNING: $bdb_header: section \"Present But Cannot Be Compiled\"" >&2;}
32100
{ echo "$as_me:$LINENO: WARNING: $bdb_header: proceeding with the preprocessor's result" >&5
32101
echo "$as_me: WARNING: $bdb_header: proceeding with the preprocessor's result" >&2;}
32102
{ echo "$as_me:$LINENO: WARNING: $bdb_header: in the future, the compiler will take precedence" >&5
32103
echo "$as_me: WARNING: $bdb_header: in the future, the compiler will take precedence" >&2;}
32107
{ echo "$as_me:$LINENO: checking for $bdb_header" >&5
32108
echo $ECHO_N "checking for $bdb_header... $ECHO_C" >&6; }
32109
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32110
echo $ECHO_N "(cached) $ECHO_C" >&6
32112
eval "$as_ac_Header=\$ac_header_preproc"
32114
ac_res=`eval echo '${'$as_ac_Header'}'`
32115
{ echo "$as_me:$LINENO: result: $ac_res" >&5
32116
echo "${ECHO_T}$ac_res" >&6; }
32119
if test `eval echo '${'$as_ac_Header'}'` = yes; then
32121
if test ""4"" = "3" -o ""4"" = "4"; then
32122
# We generate a separate cache variable for each prefix and libname
32123
# we search under. That way, we avoid caching information that
32124
# changes if the user runs `configure' with a different set of
32127
cache_id="`echo apu_cv_check_berkeley_db_"4"_"6"_"-1"_${bdb_header}_${bdb_libname}_in_${bdb_place} \
32128
| sed -e 's/[^a-zA-Z0-9_]/_/g'`"
32131
{ echo "$as_me:$LINENO: checking for -l$bdb_libname" >&5
32132
echo $ECHO_N "checking for -l$bdb_libname... $ECHO_C" >&6; }
32133
if { as_var=$cache_id; eval "test \"\${$as_var+set}\" = set"; }; then
32134
echo $ECHO_N "(cached) $ECHO_C" >&6
32138
apu_try_berkeley_db_save_libs="$LIBS"
32140
apu_check_berkeley_db_major="4"
32141
apu_check_berkeley_db_minor="6"
32142
apu_check_berkeley_db_patch="-1"
32143
apu_try_berkeley_db_header=$bdb_header
32144
apu_try_berkeley_db_libname=$bdb_libname
32146
LIBS="$LIBS -l$apu_try_berkeley_db_libname"
32147
if test "$cross_compiling" = yes; then
32148
apu_try_berkeley_db=yes
32151
cat >conftest.$ac_ext <<_ACEOF
32154
cat confdefs.h >>conftest.$ac_ext
32155
cat >>conftest.$ac_ext <<_ACEOF
32156
/* end confdefs.h. */
32159
#include <$apu_try_berkeley_db_header>
32162
int major, minor, patch;
32164
db_version(&major, &minor, &patch);
32166
/* Sanity check: ensure that db.h constants actually match the db library */
32167
if (major != DB_VERSION_MAJOR
32168
|| minor != DB_VERSION_MINOR
32169
|| patch != DB_VERSION_PATCH)
32172
/* Run-time check: ensure the library claims to be the correct version. */
32174
if ($apu_check_berkeley_db_major != -1) {
32175
if (major < $apu_check_berkeley_db_major)
32177
if (major > $apu_check_berkeley_db_major)
32181
if ($apu_check_berkeley_db_minor != -1) {
32182
if (minor < $apu_check_berkeley_db_minor)
32184
if (minor > $apu_check_berkeley_db_minor)
32188
if ($apu_check_berkeley_db_patch == -1
32189
|| patch >= $apu_check_berkeley_db_patch)
32196
rm -f conftest$ac_exeext
32197
if { (ac_try="$ac_link"
32198
case "(($ac_try" in
32199
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32200
*) ac_try_echo=$ac_try;;
32202
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32203
(eval "$ac_link") 2>&5
32205
echo "$as_me:$LINENO: \$? = $ac_status" >&5
32206
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32207
{ (case "(($ac_try" in
32208
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32209
*) ac_try_echo=$ac_try;;
32211
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32212
(eval "$ac_try") 2>&5
32214
echo "$as_me:$LINENO: \$? = $ac_status" >&5
32215
(exit $ac_status); }; }; then
32216
apu_try_berkeley_db=yes
32218
echo "$as_me: program exited with status $ac_status" >&5
32219
echo "$as_me: failed program was:" >&5
32220
sed 's/^/| /' conftest.$ac_ext >&5
32222
( exit $ac_status )
32223
apu_try_berkeley_db=no
32225
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32230
LIBS="$apu_try_berkeley_db_save_libs"
32233
eval "$cache_id=$apu_try_berkeley_db"
32237
result="`eval echo '$'$cache_id`"
32238
{ echo "$as_me:$LINENO: result: $result" >&5
32239
echo "${ECHO_T}$result" >&6; }
32240
elif test ""4"" = "1"; then
32241
as_ac_Lib=`echo "ac_cv_lib_$bdb_libname''_dbopen" | $as_tr_sh`
32242
{ echo "$as_me:$LINENO: checking for dbopen in -l$bdb_libname" >&5
32243
echo $ECHO_N "checking for dbopen in -l$bdb_libname... $ECHO_C" >&6; }
32244
if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
32245
echo $ECHO_N "(cached) $ECHO_C" >&6
32247
ac_check_lib_save_LIBS=$LIBS
32248
LIBS="-l$bdb_libname $LIBS"
32249
cat >conftest.$ac_ext <<_ACEOF
32252
cat confdefs.h >>conftest.$ac_ext
32253
cat >>conftest.$ac_ext <<_ACEOF
32254
/* end confdefs.h. */
32256
/* Override any GCC internal prototype to avoid an error.
32257
Use char because int might match the return type of a GCC
32258
builtin and then its argument prototype would still apply. */
32271
rm -f conftest.$ac_objext conftest$ac_exeext
32272
if { (ac_try="$ac_link"
32273
case "(($ac_try" in
32274
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32275
*) ac_try_echo=$ac_try;;
32277
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32278
(eval "$ac_link") 2>conftest.er1
32280
grep -v '^ *+' conftest.er1 >conftest.err
32282
cat conftest.err >&5
32283
echo "$as_me:$LINENO: \$? = $ac_status" >&5
32284
(exit $ac_status); } &&
32285
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32286
{ (case "(($ac_try" in
32287
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32288
*) ac_try_echo=$ac_try;;
32290
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32291
(eval "$ac_try") 2>&5
32293
echo "$as_me:$LINENO: \$? = $ac_status" >&5
32294
(exit $ac_status); }; } &&
32295
{ ac_try='test -s conftest$ac_exeext'
32296
{ (case "(($ac_try" in
32297
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32298
*) ac_try_echo=$ac_try;;
32300
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32301
(eval "$ac_try") 2>&5
32303
echo "$as_me:$LINENO: \$? = $ac_status" >&5
32304
(exit $ac_status); }; }; then
32305
eval "$as_ac_Lib=yes"
32307
echo "$as_me: failed program was:" >&5
32308
sed 's/^/| /' conftest.$ac_ext >&5
32310
eval "$as_ac_Lib=no"
32313
rm -f core conftest.err conftest.$ac_objext \
32314
conftest$ac_exeext conftest.$ac_ext
32315
LIBS=$ac_check_lib_save_LIBS
32317
ac_res=`eval echo '${'$as_ac_Lib'}'`
32318
{ echo "$as_me:$LINENO: result: $ac_res" >&5
32319
echo "${ECHO_T}$ac_res" >&6; }
32320
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
32327
elif test ""4"" = "2"; then
32328
as_ac_Lib=`echo "ac_cv_lib_$bdb_libname''_db_open" | $as_tr_sh`
32329
{ echo "$as_me:$LINENO: checking for db_open in -l$bdb_libname" >&5
32330
echo $ECHO_N "checking for db_open in -l$bdb_libname... $ECHO_C" >&6; }
32331
if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
32332
echo $ECHO_N "(cached) $ECHO_C" >&6
32334
ac_check_lib_save_LIBS=$LIBS
32335
LIBS="-l$bdb_libname $LIBS"
32336
cat >conftest.$ac_ext <<_ACEOF
32339
cat confdefs.h >>conftest.$ac_ext
32340
cat >>conftest.$ac_ext <<_ACEOF
32341
/* end confdefs.h. */
32343
/* Override any GCC internal prototype to avoid an error.
32344
Use char because int might match the return type of a GCC
32345
builtin and then its argument prototype would still apply. */
32358
rm -f conftest.$ac_objext conftest$ac_exeext
32359
if { (ac_try="$ac_link"
32360
case "(($ac_try" in
32361
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32362
*) ac_try_echo=$ac_try;;
32364
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32365
(eval "$ac_link") 2>conftest.er1
32367
grep -v '^ *+' conftest.er1 >conftest.err
32369
cat conftest.err >&5
32370
echo "$as_me:$LINENO: \$? = $ac_status" >&5
32371
(exit $ac_status); } &&
32372
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32373
{ (case "(($ac_try" in
32374
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32375
*) ac_try_echo=$ac_try;;
32377
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32378
(eval "$ac_try") 2>&5
32380
echo "$as_me:$LINENO: \$? = $ac_status" >&5
32381
(exit $ac_status); }; } &&
32382
{ ac_try='test -s conftest$ac_exeext'
32383
{ (case "(($ac_try" in
32384
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32385
*) ac_try_echo=$ac_try;;
32387
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32388
(eval "$ac_try") 2>&5
32390
echo "$as_me:$LINENO: \$? = $ac_status" >&5
32391
(exit $ac_status); }; }; then
32392
eval "$as_ac_Lib=yes"
32394
echo "$as_me: failed program was:" >&5
32395
sed 's/^/| /' conftest.$ac_ext >&5
32397
eval "$as_ac_Lib=no"
32400
rm -f core conftest.err conftest.$ac_objext \
32401
conftest$ac_exeext conftest.$ac_ext
32402
LIBS=$ac_check_lib_save_LIBS
32404
ac_res=`eval echo '${'$as_ac_Lib'}'`
32405
{ echo "$as_me:$LINENO: result: $ac_res" >&5
32406
echo "${ECHO_T}$ac_res" >&6; }
32407
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
32422
# If we found it, no need to search any more.
32423
if test "$result" = "yes"; then
32428
test "$found" != "not" && break
32430
test "$found" != "not" && break
32433
# Restore the original values of the flags we tweak.
32434
LDFLAGS="$apu_check_lib_save_ldflags"
32435
CPPFLAGS="$apu_check_lib_save_cppflags"
32442
apu_db_header=$bdb_header
32443
apu_db_lib=$bdb_libname
32447
header="`echo $found | sed -e 's/:.*$//'`"
32448
lib="`echo $found | sed -e 's/^.*://'`"
32451
if test "x$APRUTIL_INCLUDES" = "x"; then
32452
test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$header\""
32453
APRUTIL_INCLUDES="-I$header"
32455
apr_addto_bugger="-I$header"
32456
for i in $apr_addto_bugger; do
32457
apr_addto_duplicate="0"
32458
for j in $APRUTIL_INCLUDES; do
32459
if test "x$i" = "x$j"; then
32460
apr_addto_duplicate="1"
32464
if test $apr_addto_duplicate = "0"; then
32465
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES"
32466
APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
32472
if test "x$APRUTIL_LDFLAGS" = "x"; then
32473
test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$lib\""
32474
APRUTIL_LDFLAGS="-L$lib"
32476
apr_addto_bugger="-L$lib"
32477
for i in $apr_addto_bugger; do
32478
apr_addto_duplicate="0"
32479
for j in $APRUTIL_LDFLAGS; do
32480
if test "x$i" = "x$j"; then
32481
apr_addto_duplicate="1"
32485
if test $apr_addto_duplicate = "0"; then
32486
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS"
32487
APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
32492
apu_db_header=$bdb_header
32493
apu_db_lib=$bdb_libname
32498
if test "x$APRUTIL_INCLUDES" = "x"; then
32499
test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$found/include\""
32500
APRUTIL_INCLUDES="-I$found/include"
32502
apr_addto_bugger="-I$found/include"
32503
for i in $apr_addto_bugger; do
32504
apr_addto_duplicate="0"
32505
for j in $APRUTIL_INCLUDES; do
32506
if test "x$i" = "x$j"; then
32507
apr_addto_duplicate="1"
32511
if test $apr_addto_duplicate = "0"; then
32512
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES"
32513
APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
32519
if test "x$APRUTIL_LDFLAGS" = "x"; then
32520
test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$found/lib\""
32521
APRUTIL_LDFLAGS="-L$found/lib"
32523
apr_addto_bugger="-L$found/lib"
32524
for i in $apr_addto_bugger; do
32525
apr_addto_duplicate="0"
32526
for j in $APRUTIL_LDFLAGS; do
32527
if test "x$i" = "x$j"; then
32528
apr_addto_duplicate="1"
32532
if test $apr_addto_duplicate = "0"; then
32533
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS"
32534
APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i"
32539
apu_db_header=$bdb_header
32540
apu_db_lib=$bdb_libname
32545
if test "$apu_have_db" = "1"; then
32549
if test "$apu_db_version" != "4"; then
32551
places="$all_places"
32552
if test -z "$places"; then
26788
32553
places="std /usr/local/BerkeleyDB.4.5 /boot/home/config"
37709
44450
echo "$as_me: error: Expat cannot be disabled (at this time)" >&2;}
37710
44451
{ (exit 1); exit 1; }; }
37711
44452
elif test "$withval" = "builtin"; then
37712
abs_expatdir="`cd $srcdir/xml/expat && pwd`"
37713
if test -d $abs_expatdir/. -a ! -d xml/expat/.; then
37717
echo "$as_me:$LINENO: checking for Expat in xml/expat" >&5
37718
echo $ECHO_N "checking for Expat in xml/expat... $ECHO_C" >&6
37722
if test -r "$abs_expatdir/lib/expat.h.in"; then
37723
expat_include_dir="$abs_expatdir/lib"
37724
expat_ldflags="-L$abs_expatdir/lib"
37725
expat_libs="-lexpat"
37726
expat_libtool="$abs_expatdir/lib/libexpat.la"
37727
elif test -r "$abs_expatdir/include/expat.h" -a \
37728
-r "$abs_expatdir/lib/libexpat.la"; then
37729
expat_include_dir="$abs_expatdir/include"
37730
expat_ldflags="-L$abs_expatdir/lib"
37731
expat_libs="-lexpat"
37732
expat_libtool="$abs_expatdir/lib/libexpat.la"
37733
elif test -r "$abs_expatdir/include/expat.h" -a \
37734
-r "$abs_expatdir/lib64/libexpat.la"; then
37735
expat_include_dir="$abs_expatdir/include"
37736
expat_ldflags="-L$abs_expatdir/lib64"
37737
expat_libs="-lexpat"
37738
expat_libtool="$abs_expatdir/lib64/libexpat.la"
37739
elif test -r "$abs_expatdir/include/expat.h" -a \
37740
-r "$abs_expatdir/lib/libexpat.a"; then
37741
expat_include_dir="$abs_expatdir/include"
37742
expat_ldflags="-L$abs_expatdir/lib"
37743
expat_libs="-lexpat"
37744
elif test -r "$abs_expatdir/xmlparse.h"; then
37745
expat_include_dir="$abs_expatdir"
37746
expat_ldflags="-L$abs_expatdir"
37747
expat_libs="-lexpat"
37748
expat_libtool="$abs_expatdir/libexpat.la"
37750
elif test -r "$abs_expatdir/include/xmlparse.h" -a \
37751
-r "$abs_expatdir/lib/libexpat.a"; then
37752
expat_include_dir="$abs_expatdir/include"
37753
expat_ldflags="-L$abs_expatdir/lib"
37754
expat_libs="-lexpat"
37756
elif test -r "$abs_expatdir/include/xml/xmlparse.h" -a \
37757
-r "$abs_expatdir/lib/xml/libexpat.a"; then
37758
expat_include_dir="$abs_expatdir/include/xml"
37759
expat_ldflags="-L$abs_expatdir/lib"
37760
expat_libs="-lexpat"
37762
elif test -r "$abs_expatdir/include/xmltok/xmlparse.h"; then
37763
expat_include_dir="$abs_expatdir/include/xmltok"
37764
expat_ldflags="-L$abs_expatdir/lib"
37765
expat_libs="-lxmlparse -lxmltok"
37767
elif test -r "$abs_expatdir/include/xml/xmlparse.h" -a \
37768
-r "$abs_expatdir/lib/libexpat.a"; then
37769
expat_include_dir="$abs_expatdir/include/xml"
37770
expat_ldflags="-L$abs_expatdir/lib"
37771
expat_libs="-lexpat"
37773
elif test -r "$abs_expatdir/xmlparse/xmlparse.h"; then
37774
expat_include_dir="$abs_expatdir/xmlparse"
37775
expat_ldflags="-L$abs_expatdir"
37776
expat_libs="-lexpat"
37780
if test -n "$expat_include_dir"; then
37781
echo "$as_me:$LINENO: result: yes" >&5
37782
echo "${ECHO_T}yes" >&6
37784
echo "$as_me:$LINENO: result: no" >&5
37785
echo "${ECHO_T}no" >&6
37789
abs_expatdir="`cd $withval && pwd`"
37791
echo "$as_me:$LINENO: checking for Expat in $withval" >&5
37792
echo $ECHO_N "checking for Expat in $withval... $ECHO_C" >&6
37796
if test -r "$abs_expatdir/lib/expat.h.in"; then
37797
expat_include_dir="$abs_expatdir/lib"
37798
expat_ldflags="-L$abs_expatdir/lib"
37799
expat_libs="-lexpat"
37800
expat_libtool="$abs_expatdir/lib/libexpat.la"
37801
elif test -r "$abs_expatdir/include/expat.h" -a \
37802
-r "$abs_expatdir/lib/libexpat.la"; then
37803
expat_include_dir="$abs_expatdir/include"
37804
expat_ldflags="-L$abs_expatdir/lib"
37805
expat_libs="-lexpat"
37806
expat_libtool="$abs_expatdir/lib/libexpat.la"
37807
elif test -r "$abs_expatdir/include/expat.h" -a \
37808
-r "$abs_expatdir/lib64/libexpat.la"; then
37809
expat_include_dir="$abs_expatdir/include"
37810
expat_ldflags="-L$abs_expatdir/lib64"
37811
expat_libs="-lexpat"
37812
expat_libtool="$abs_expatdir/lib64/libexpat.la"
37813
elif test -r "$abs_expatdir/include/expat.h" -a \
37814
-r "$abs_expatdir/lib/libexpat.a"; then
37815
expat_include_dir="$abs_expatdir/include"
37816
expat_ldflags="-L$abs_expatdir/lib"
37817
expat_libs="-lexpat"
37818
elif test -r "$abs_expatdir/xmlparse.h"; then
37819
expat_include_dir="$abs_expatdir"
37820
expat_ldflags="-L$abs_expatdir"
37821
expat_libs="-lexpat"
37822
expat_libtool="$abs_expatdir/libexpat.la"
37824
elif test -r "$abs_expatdir/include/xmlparse.h" -a \
37825
-r "$abs_expatdir/lib/libexpat.a"; then
37826
expat_include_dir="$abs_expatdir/include"
37827
expat_ldflags="-L$abs_expatdir/lib"
37828
expat_libs="-lexpat"
37830
elif test -r "$abs_expatdir/include/xml/xmlparse.h" -a \
37831
-r "$abs_expatdir/lib/xml/libexpat.a"; then
37832
expat_include_dir="$abs_expatdir/include/xml"
37833
expat_ldflags="-L$abs_expatdir/lib"
37834
expat_libs="-lexpat"
37836
elif test -r "$abs_expatdir/include/xmltok/xmlparse.h"; then
37837
expat_include_dir="$abs_expatdir/include/xmltok"
37838
expat_ldflags="-L$abs_expatdir/lib"
37839
expat_libs="-lxmlparse -lxmltok"
37841
elif test -r "$abs_expatdir/include/xml/xmlparse.h" -a \
37842
-r "$abs_expatdir/lib/libexpat.a"; then
37843
expat_include_dir="$abs_expatdir/include/xml"
37844
expat_ldflags="-L$abs_expatdir/lib"
37845
expat_libs="-lexpat"
37847
elif test -r "$abs_expatdir/xmlparse/xmlparse.h"; then
37848
expat_include_dir="$abs_expatdir/xmlparse"
37849
expat_ldflags="-L$abs_expatdir"
37850
expat_libs="-lexpat"
37854
if test -n "$expat_include_dir"; then
37855
echo "$as_me:$LINENO: result: yes" >&5
37856
echo "${ECHO_T}yes" >&6
37858
echo "$as_me:$LINENO: result: no" >&5
37859
echo "${ECHO_T}no" >&6
37862
if test -z "$expat_include_dir"; then
37863
{ { echo "$as_me:$LINENO: error: Expat was not found (or recognized) in \"$withval\"" >&5
37864
echo "$as_me: error: Expat was not found (or recognized) in \"$withval\"" >&2;}
37865
{ (exit 1); exit 1; }; }
37871
if test -z "$expat_include_dir"; then
37872
for d in /usr /usr/local xml/expat-cvs xml/expat $srcdir/xml/expat ; do
37874
echo "$as_me:$LINENO: checking for Expat in $d" >&5
37875
echo $ECHO_N "checking for Expat in $d... $ECHO_C" >&6
37879
if test -r "$d/lib/expat.h.in"; then
37880
expat_include_dir="$d/lib"
37881
expat_ldflags="-L$d/lib"
37882
expat_libs="-lexpat"
37883
expat_libtool="$d/lib/libexpat.la"
37884
elif test -r "$d/include/expat.h" -a \
37885
-r "$d/lib/libexpat.la"; then
37886
expat_include_dir="$d/include"
37887
expat_ldflags="-L$d/lib"
37888
expat_libs="-lexpat"
37889
expat_libtool="$d/lib/libexpat.la"
37890
elif test -r "$d/include/expat.h" -a \
37891
-r "$d/lib64/libexpat.la"; then
37892
expat_include_dir="$d/include"
37893
expat_ldflags="-L$d/lib64"
37894
expat_libs="-lexpat"
37895
expat_libtool="$d/lib64/libexpat.la"
37896
elif test -r "$d/include/expat.h" -a \
37897
-r "$d/lib/libexpat.a"; then
37898
expat_include_dir="$d/include"
37899
expat_ldflags="-L$d/lib"
37900
expat_libs="-lexpat"
37901
elif test -r "$d/xmlparse.h"; then
37902
expat_include_dir="$d"
37903
expat_ldflags="-L$d"
37904
expat_libs="-lexpat"
37905
expat_libtool="$d/libexpat.la"
37907
elif test -r "$d/include/xmlparse.h" -a \
37908
-r "$d/lib/libexpat.a"; then
37909
expat_include_dir="$d/include"
37910
expat_ldflags="-L$d/lib"
37911
expat_libs="-lexpat"
37913
elif test -r "$d/include/xml/xmlparse.h" -a \
37914
-r "$d/lib/xml/libexpat.a"; then
37915
expat_include_dir="$d/include/xml"
37916
expat_ldflags="-L$d/lib"
37917
expat_libs="-lexpat"
37919
elif test -r "$d/include/xmltok/xmlparse.h"; then
37920
expat_include_dir="$d/include/xmltok"
37921
expat_ldflags="-L$d/lib"
37922
expat_libs="-lxmlparse -lxmltok"
37924
elif test -r "$d/include/xml/xmlparse.h" -a \
37925
-r "$d/lib/libexpat.a"; then
37926
expat_include_dir="$d/include/xml"
37927
expat_ldflags="-L$d/lib"
37928
expat_libs="-lexpat"
37930
elif test -r "$d/xmlparse/xmlparse.h"; then
37931
expat_include_dir="$d/xmlparse"
37932
expat_ldflags="-L$d"
37933
expat_libs="-lexpat"
37937
if test -n "$expat_include_dir"; then
37938
echo "$as_me:$LINENO: result: yes" >&5
37939
echo "${ECHO_T}yes" >&6
37941
echo "$as_me:$LINENO: result: no" >&5
37942
echo "${ECHO_T}no" >&6
37945
if test -n "$expat_include_dir"; then
37946
if test "$d" = "/usr"; then
37953
if test -z "$expat_include_dir"; then
37954
{ { echo "$as_me:$LINENO: error: could not locate Expat. use --with-expat" >&5
37955
echo "$as_me: error: could not locate Expat. use --with-expat" >&2;}
37956
{ (exit 1); exit 1; }; }
37959
if test -z "$expat_libtool"; then
37960
expat_libtool="$expat_ldflags $expat_libs"
37963
if test -n "$expat_old"; then
37965
cat >>confdefs.h <<\_ACEOF
37966
#define APR_HAVE_OLD_EXPAT 1
37971
if test "$expat_include_dir" = "xml/expat/lib" -o "$expat_include_dir" = "xml/expat-cvs/lib"; then
37972
bundled_subdir="`echo $expat_include_dir | sed -e 's%/lib%%'`"
37974
# save our work to this point; this allows the sub-package to use it
37975
cat >confcache <<\_ACEOF
37976
# This file is a shell script that caches the results of configure
37977
# tests run on this system so they can be shared between configure
37978
# scripts and configure runs, see configure's option --config-cache.
37979
# It is not useful on other systems. If it contains results you don't
37980
# want to keep, you may remove or edit it.
37982
# config.status only pays attention to the cache file if you give it
37983
# the --recheck option to rerun configure.
37985
# `ac_cv_env_foo' variables (set or unset) will be overridden when
37986
# loading this file, other *unset* `ac_cv_foo' will be assigned the
37987
# following values.
37991
# The following way of writing the cache mishandles newlines in values,
37992
# but we know of no workaround that is simple, portable, and efficient.
37993
# So, don't put newlines in cache variables' values.
37994
# Ultrix sh set writes to stderr and can't be redirected directly,
37995
# and sets the high bit in the cache file unless we assign to the vars.
37998
case `(ac_space=' '; set | grep ac_space) 2>&1` in
38000
# `set' does not quote correctly, so add quotes (double-quote
38001
# substitution turns \\\\ into \\, and sed turns \\ into \).
38004
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
38007
# `set' quotes correctly as required by POSIX, so do not add quotes.
38009
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
38016
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
38018
/^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
38020
if diff $cache_file confcache >/dev/null 2>&1; then :; else
38021
if test -w $cache_file; then
38022
test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
38023
cat confcache >$cache_file
38025
echo "not updating unwritable cache $cache_file"
38030
echo "configuring package in $bundled_subdir now"
38032
apr_config_subdirs="$bundled_subdir"
38033
test -d $bundled_subdir || $mkdir_p $bundled_subdir
38034
ac_abs_srcdir=`(cd $srcdir/$bundled_subdir && pwd)`
38037
# A "../" for each directory in /$config_subdirs.
38038
ac_dots=`echo $apr_config_subdirs|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
38040
# Make the cache file pathname absolute for the subdirs
38041
# required to correctly handle subdirs that might actually
38043
case "$cache_file" in
38044
/*) # already absolute
38045
ac_sub_cache_file=$cache_file ;;
38046
*) # Was relative path.
38047
ac_sub_cache_file="$ac_popdir/$cache_file" ;;
38050
apr_configure_args=$ac_configure_args
38052
# autoconf doesn't add --silent to ac_configure_args; explicitly pass it
38053
test "x$silent" = "xyes" && apr_configure_args="$apr_configure_args --silent"
38055
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
38057
echo "$bundled_subdir configured properly"
38059
echo "configure failed for $bundled_subdir"
38065
# grab any updates from the sub-package
38066
if test -r "$cache_file"; then
38067
# Some versions of bash will fail to source /dev/null (special
38068
# files actually), so we avoid doing that.
38069
if test -f "$cache_file"; then
38070
{ echo "$as_me:$LINENO: loading cache $cache_file" >&5
38071
echo "$as_me: loading cache $cache_file" >&6;}
38072
case $cache_file in
38073
[\\/]* | ?:[\\/]* ) . $cache_file;;
38074
*) . ./$cache_file;;
38078
{ echo "$as_me:$LINENO: creating cache $cache_file" >&5
38079
echo "$as_me: creating cache $cache_file" >&6;}
38084
expat_include_dir=$top_builddir/$bundled_subdir/lib
38085
expat_ldflags="-L$top_builddir/$bundled_subdir/lib"
38086
expat_libs="-lexpat"
38087
expat_libtool=$top_builddir/$bundled_subdir/lib/libexpat.la
38088
APR_XML_SUBDIRS="`echo $bundled_subdir | sed -e 's%xml/%%'`"
38090
if test "x$APRUTIL_EXPORT_LIBS" = "x"; then
38091
test "x$silent" != "xyes" && echo " setting APRUTIL_EXPORT_LIBS to \"$expat_libtool\""
38092
APRUTIL_EXPORT_LIBS="$expat_libtool"
38094
apr_addto_bugger="$expat_libtool"
38095
for i in $apr_addto_bugger; do
38096
apr_addto_duplicate="0"
38097
for j in $APRUTIL_EXPORT_LIBS; do
38098
if test "x$i" = "x$j"; then
38099
apr_addto_duplicate="1"
38103
if test $apr_addto_duplicate = "0"; then
38104
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_EXPORT_LIBS"
38105
APRUTIL_EXPORT_LIBS="$APRUTIL_EXPORT_LIBS $i"
38111
if test "$expat_include_dir" = "$abs_srcdir/xml/expat/include" -o "$expat_include_dir" = "$abs_srcdir/xml/expat/lib"; then
44453
apu_try_external_expat=0
44455
# Add given path to standard search paths if appropriate:
44456
if test "$withval" != "/usr"; then
44458
if test "x$LDFLAGS" = "x"; then
44459
test "x$silent" != "xyes" && echo " setting LDFLAGS to \"-L$withval/lib\""
44460
LDFLAGS="-L$withval/lib"
44462
apr_addto_bugger="-L$withval/lib"
44463
for i in $apr_addto_bugger; do
44464
apr_addto_duplicate="0"
44465
for j in $LDFLAGS; do
44466
if test "x$i" = "x$j"; then
44467
apr_addto_duplicate="1"
44471
if test $apr_addto_duplicate = "0"; then
44472
test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS"
44473
LDFLAGS="$LDFLAGS $i"
44479
if test "x$CPPFLAGS" = "x"; then
44480
test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-I$withval/include\""
44481
CPPFLAGS="-I$withval/include"
44483
apr_addto_bugger="-I$withval/include"
44484
for i in $apr_addto_bugger; do
44485
apr_addto_duplicate="0"
44486
for j in $CPPFLAGS; do
44487
if test "x$i" = "x$j"; then
44488
apr_addto_duplicate="1"
44492
if test $apr_addto_duplicate = "0"; then
44493
test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
44494
CPPFLAGS="$CPPFLAGS $i"
44500
if test "x$APRUTIL_INCLUDES" = "x"; then
44501
test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$withval/include\""
44502
APRUTIL_INCLUDES="-I$withval/include"
44504
apr_addto_bugger="-I$withval/include"
44505
for i in $apr_addto_bugger; do
44506
apr_addto_duplicate="0"
44507
for j in $APRUTIL_INCLUDES; do
44508
if test "x$i" = "x$j"; then
44509
apr_addto_duplicate="1"
44513
if test $apr_addto_duplicate = "0"; then
44514
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES"
44515
APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
44521
# ...and refuse to fall back on the builtin expat.
44522
apu_try_builtin_expat=0
44528
if test $apu_try_external_expat = 1; then
44532
{ echo "$as_me:$LINENO: checking Expat 1.95.x" >&5
44533
echo $ECHO_N "checking Expat 1.95.x... $ECHO_C" >&6; }
44534
if test "${apu_cv_expat_system+set}" = set; then
44535
echo $ECHO_N "(cached) $ECHO_C" >&6
44538
apu_expat_LIBS=$LIBS
44539
LIBS="$LIBS -lexpat"
44540
cat >conftest.$ac_ext <<_ACEOF
44543
cat confdefs.h >>conftest.$ac_ext
44544
cat >>conftest.$ac_ext <<_ACEOF
44545
/* end confdefs.h. */
44546
#include <stdlib.h>
44551
XML_ParserCreate(NULL);
44556
rm -f conftest.$ac_objext conftest$ac_exeext
44557
if { (ac_try="$ac_link"
44558
case "(($ac_try" in
44559
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44560
*) ac_try_echo=$ac_try;;
44562
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44563
(eval "$ac_link") 2>conftest.er1
44565
grep -v '^ *+' conftest.er1 >conftest.err
44567
cat conftest.err >&5
44568
echo "$as_me:$LINENO: \$? = $ac_status" >&5
44569
(exit $ac_status); } &&
44570
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
44571
{ (case "(($ac_try" in
44572
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44573
*) ac_try_echo=$ac_try;;
44575
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44576
(eval "$ac_try") 2>&5
44578
echo "$as_me:$LINENO: \$? = $ac_status" >&5
44579
(exit $ac_status); }; } &&
44580
{ ac_try='test -s conftest$ac_exeext'
44581
{ (case "(($ac_try" in
44582
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44583
*) ac_try_echo=$ac_try;;
44585
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44586
(eval "$ac_try") 2>&5
44588
echo "$as_me:$LINENO: \$? = $ac_status" >&5
44589
(exit $ac_status); }; }; then
44590
apu_cv_expat_system=yes
44592
echo "$as_me: failed program was:" >&5
44593
sed 's/^/| /' conftest.$ac_ext >&5
44595
apu_cv_expat_system=no
44598
rm -f core conftest.err conftest.$ac_objext \
44599
conftest$ac_exeext conftest.$ac_ext
44600
LIBS=$apu_expat_LIBS
44603
{ echo "$as_me:$LINENO: result: $apu_cv_expat_system" >&5
44604
echo "${ECHO_T}$apu_cv_expat_system" >&6; }
44606
if test $apu_cv_expat_system = yes; then
44608
cat >>confdefs.h <<\_ACEOF
44609
#define HAVE_EXPAT_H 1
44612
apu_expat_libs="-lexpat"
44621
if test $apu_has_expat = 0; then
44623
{ echo "$as_me:$LINENO: checking old Debian-packaged expat" >&5
44624
echo $ECHO_N "checking old Debian-packaged expat... $ECHO_C" >&6; }
44625
if test "${apu_cv_expat_debian+set}" = set; then
44626
echo $ECHO_N "(cached) $ECHO_C" >&6
44629
apu_expat_LIBS=$LIBS
44630
LIBS="$LIBS -lxmlparse -lxmltok"
44631
cat >conftest.$ac_ext <<_ACEOF
44634
cat confdefs.h >>conftest.$ac_ext
44635
cat >>conftest.$ac_ext <<_ACEOF
44636
/* end confdefs.h. */
44637
#include <stdlib.h>
44638
#include <xmltok/xmlparse.h>
44642
XML_ParserCreate(NULL);
44647
rm -f conftest.$ac_objext conftest$ac_exeext
44648
if { (ac_try="$ac_link"
44649
case "(($ac_try" in
44650
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44651
*) ac_try_echo=$ac_try;;
44653
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44654
(eval "$ac_link") 2>conftest.er1
44656
grep -v '^ *+' conftest.er1 >conftest.err
44658
cat conftest.err >&5
44659
echo "$as_me:$LINENO: \$? = $ac_status" >&5
44660
(exit $ac_status); } &&
44661
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
44662
{ (case "(($ac_try" in
44663
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44664
*) ac_try_echo=$ac_try;;
44666
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44667
(eval "$ac_try") 2>&5
44669
echo "$as_me:$LINENO: \$? = $ac_status" >&5
44670
(exit $ac_status); }; } &&
44671
{ ac_try='test -s conftest$ac_exeext'
44672
{ (case "(($ac_try" in
44673
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44674
*) ac_try_echo=$ac_try;;
44676
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44677
(eval "$ac_try") 2>&5
44679
echo "$as_me:$LINENO: \$? = $ac_status" >&5
44680
(exit $ac_status); }; }; then
44681
apu_cv_expat_debian=yes
44683
echo "$as_me: failed program was:" >&5
44684
sed 's/^/| /' conftest.$ac_ext >&5
44686
apu_cv_expat_debian=no
44689
rm -f core conftest.err conftest.$ac_objext \
44690
conftest$ac_exeext conftest.$ac_ext
44691
LIBS=$apu_expat_LIBS
44694
{ echo "$as_me:$LINENO: result: $apu_cv_expat_debian" >&5
44695
echo "${ECHO_T}$apu_cv_expat_debian" >&6; }
44697
if test $apu_cv_expat_debian = yes; then
44699
cat >>confdefs.h <<\_ACEOF
44700
#define HAVE_XMLTOK_XMLPARSE_H 1
44703
apu_expat_libs="-lxmlparse -lxmltok"
44713
if test $apu_has_expat = 0; then
44715
{ echo "$as_me:$LINENO: checking old FreeBSD-packaged expat" >&5
44716
echo $ECHO_N "checking old FreeBSD-packaged expat... $ECHO_C" >&6; }
44717
if test "${apu_cv_expat_freebsd+set}" = set; then
44718
echo $ECHO_N "(cached) $ECHO_C" >&6
44721
apu_expat_LIBS=$LIBS
44722
LIBS="$LIBS -lexpat"
44723
cat >conftest.$ac_ext <<_ACEOF
44726
cat confdefs.h >>conftest.$ac_ext
44727
cat >>conftest.$ac_ext <<_ACEOF
44728
/* end confdefs.h. */
44729
#include <stdlib.h>
44730
#include <xml/xmlparse.h>
44734
XML_ParserCreate(NULL);
44739
rm -f conftest.$ac_objext conftest$ac_exeext
44740
if { (ac_try="$ac_link"
44741
case "(($ac_try" in
44742
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44743
*) ac_try_echo=$ac_try;;
44745
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44746
(eval "$ac_link") 2>conftest.er1
44748
grep -v '^ *+' conftest.er1 >conftest.err
44750
cat conftest.err >&5
44751
echo "$as_me:$LINENO: \$? = $ac_status" >&5
44752
(exit $ac_status); } &&
44753
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
44754
{ (case "(($ac_try" in
44755
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44756
*) ac_try_echo=$ac_try;;
44758
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44759
(eval "$ac_try") 2>&5
44761
echo "$as_me:$LINENO: \$? = $ac_status" >&5
44762
(exit $ac_status); }; } &&
44763
{ ac_try='test -s conftest$ac_exeext'
44764
{ (case "(($ac_try" in
44765
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44766
*) ac_try_echo=$ac_try;;
44768
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44769
(eval "$ac_try") 2>&5
44771
echo "$as_me:$LINENO: \$? = $ac_status" >&5
44772
(exit $ac_status); }; }; then
44773
apu_cv_expat_freebsd=yes
44775
echo "$as_me: failed program was:" >&5
44776
sed 's/^/| /' conftest.$ac_ext >&5
44778
apu_cv_expat_freebsd=no
44781
rm -f core conftest.err conftest.$ac_objext \
44782
conftest$ac_exeext conftest.$ac_ext
44783
LIBS=$apu_expat_LIBS
44786
{ echo "$as_me:$LINENO: result: $apu_cv_expat_freebsd" >&5
44787
echo "${ECHO_T}$apu_cv_expat_freebsd" >&6; }
44789
if test $apu_cv_expat_freebsd = yes; then
44791
cat >>confdefs.h <<\_ACEOF
44792
#define HAVE_XML_XMLPARSE_H 1
44795
apu_expat_libs="-lexpat"
44805
if test $apu_has_expat = 0; then
44807
{ echo "$as_me:$LINENO: checking Expat 1.0/1.1" >&5
44808
echo $ECHO_N "checking Expat 1.0/1.1... $ECHO_C" >&6; }
44809
if test "${apu_cv_expat_1011+set}" = set; then
44810
echo $ECHO_N "(cached) $ECHO_C" >&6
44813
apu_expat_LIBS=$LIBS
44814
LIBS="$LIBS -lexpat"
44815
cat >conftest.$ac_ext <<_ACEOF
44818
cat confdefs.h >>conftest.$ac_ext
44819
cat >>conftest.$ac_ext <<_ACEOF
44820
/* end confdefs.h. */
44821
#include <stdlib.h>
44822
#include <xmlparse/xmlparse.h>
44826
XML_ParserCreate(NULL);
44831
rm -f conftest.$ac_objext conftest$ac_exeext
44832
if { (ac_try="$ac_link"
44833
case "(($ac_try" in
44834
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44835
*) ac_try_echo=$ac_try;;
44837
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44838
(eval "$ac_link") 2>conftest.er1
44840
grep -v '^ *+' conftest.er1 >conftest.err
44842
cat conftest.err >&5
44843
echo "$as_me:$LINENO: \$? = $ac_status" >&5
44844
(exit $ac_status); } &&
44845
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
44846
{ (case "(($ac_try" in
44847
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44848
*) ac_try_echo=$ac_try;;
44850
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44851
(eval "$ac_try") 2>&5
44853
echo "$as_me:$LINENO: \$? = $ac_status" >&5
44854
(exit $ac_status); }; } &&
44855
{ ac_try='test -s conftest$ac_exeext'
44856
{ (case "(($ac_try" in
44857
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44858
*) ac_try_echo=$ac_try;;
44860
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44861
(eval "$ac_try") 2>&5
44863
echo "$as_me:$LINENO: \$? = $ac_status" >&5
44864
(exit $ac_status); }; }; then
44865
apu_cv_expat_1011=yes
44867
echo "$as_me: failed program was:" >&5
44868
sed 's/^/| /' conftest.$ac_ext >&5
44870
apu_cv_expat_1011=no
44873
rm -f core conftest.err conftest.$ac_objext \
44874
conftest$ac_exeext conftest.$ac_ext
44875
LIBS=$apu_expat_LIBS
44878
{ echo "$as_me:$LINENO: result: $apu_cv_expat_1011" >&5
44879
echo "${ECHO_T}$apu_cv_expat_1011" >&6; }
44881
if test $apu_cv_expat_1011 = yes; then
44883
cat >>confdefs.h <<\_ACEOF
44884
#define HAVE_XMLPARSE_XMLPARSE_H 1
44887
apu_expat_libs="-lexpat"
44897
if test $apu_has_expat = 0; then
44899
if test "x$LDFLAGS" = "x"; then
44900
test "x$silent" != "xyes" && echo " setting LDFLAGS to \"-L/usr/local/lib\""
44901
LDFLAGS="-L/usr/local/lib"
44903
apr_addto_bugger="-L/usr/local/lib"
44904
for i in $apr_addto_bugger; do
44905
apr_addto_duplicate="0"
44906
for j in $LDFLAGS; do
44907
if test "x$i" = "x$j"; then
44908
apr_addto_duplicate="1"
44912
if test $apr_addto_duplicate = "0"; then
44913
test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS"
44914
LDFLAGS="$LDFLAGS $i"
44920
if test "x$CPPFLAGS" = "x"; then
44921
test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-I/usr/local/include\""
44922
CPPFLAGS="-I/usr/local/include"
44924
apr_addto_bugger="-I/usr/local/include"
44925
for i in $apr_addto_bugger; do
44926
apr_addto_duplicate="0"
44927
for j in $CPPFLAGS; do
44928
if test "x$i" = "x$j"; then
44929
apr_addto_duplicate="1"
44933
if test $apr_addto_duplicate = "0"; then
44934
test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
44935
CPPFLAGS="$CPPFLAGS $i"
44942
{ echo "$as_me:$LINENO: checking Expat 1.95.x in /usr/local" >&5
44943
echo $ECHO_N "checking Expat 1.95.x in /usr/local... $ECHO_C" >&6; }
44944
if test "${apu_cv_expat_usrlocal+set}" = set; then
44945
echo $ECHO_N "(cached) $ECHO_C" >&6
44948
apu_expat_LIBS=$LIBS
44949
LIBS="$LIBS -lexpat"
44950
cat >conftest.$ac_ext <<_ACEOF
44953
cat confdefs.h >>conftest.$ac_ext
44954
cat >>conftest.$ac_ext <<_ACEOF
44955
/* end confdefs.h. */
44956
#include <stdlib.h>
44961
XML_ParserCreate(NULL);
44966
rm -f conftest.$ac_objext conftest$ac_exeext
44967
if { (ac_try="$ac_link"
44968
case "(($ac_try" in
44969
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44970
*) ac_try_echo=$ac_try;;
44972
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44973
(eval "$ac_link") 2>conftest.er1
44975
grep -v '^ *+' conftest.er1 >conftest.err
44977
cat conftest.err >&5
44978
echo "$as_me:$LINENO: \$? = $ac_status" >&5
44979
(exit $ac_status); } &&
44980
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
44981
{ (case "(($ac_try" in
44982
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44983
*) ac_try_echo=$ac_try;;
44985
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44986
(eval "$ac_try") 2>&5
44988
echo "$as_me:$LINENO: \$? = $ac_status" >&5
44989
(exit $ac_status); }; } &&
44990
{ ac_try='test -s conftest$ac_exeext'
44991
{ (case "(($ac_try" in
44992
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44993
*) ac_try_echo=$ac_try;;
44995
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44996
(eval "$ac_try") 2>&5
44998
echo "$as_me:$LINENO: \$? = $ac_status" >&5
44999
(exit $ac_status); }; }; then
45000
apu_cv_expat_usrlocal=yes
45002
echo "$as_me: failed program was:" >&5
45003
sed 's/^/| /' conftest.$ac_ext >&5
45005
apu_cv_expat_usrlocal=no
45008
rm -f core conftest.err conftest.$ac_objext \
45009
conftest$ac_exeext conftest.$ac_ext
45010
LIBS=$apu_expat_LIBS
45013
{ echo "$as_me:$LINENO: result: $apu_cv_expat_usrlocal" >&5
45014
echo "${ECHO_T}$apu_cv_expat_usrlocal" >&6; }
45016
if test $apu_cv_expat_usrlocal = yes; then
45018
cat >>confdefs.h <<\_ACEOF
45019
#define HAVE_EXPAT_H 1
45022
apu_expat_libs="-lexpat"
45025
if test "x$APRUTIL_INCLUDES" = "x"; then
45026
test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I/usr/local/include\""
45027
APRUTIL_INCLUDES="-I/usr/local/include"
45029
apr_addto_bugger="-I/usr/local/include"
45030
for i in $apr_addto_bugger; do
45031
apr_addto_duplicate="0"
45032
for j in $APRUTIL_INCLUDES; do
45033
if test "x$i" = "x$j"; then
45034
apr_addto_duplicate="1"
45038
if test $apr_addto_duplicate = "0"; then
45039
test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES"
45040
APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i"
45049
if test "x$LDFLAGS" = "x-L/usr/local/lib"; then
45050
test "x$silent" != "xyes" && echo " nulling LDFLAGS"
45055
for i in $LDFLAGS; do
45056
if test "x$i" != "x-L/usr/local/lib"; then
45057
apr_new_bugger="$apr_new_bugger $i"
45062
if test $apr_removed = "1"; then
45063
test "x$silent" != "xyes" && echo " removed \"-L/usr/local/lib\" from LDFLAGS"
45064
LDFLAGS=$apr_new_bugger
45069
if test "x$CPPFLAGS" = "x-I/usr/local/include"; then
45070
test "x$silent" != "xyes" && echo " nulling CPPFLAGS"
45075
for i in $CPPFLAGS; do
45076
if test "x$i" != "x-I/usr/local/include"; then
45077
apr_new_bugger="$apr_new_bugger $i"
45082
if test $apr_removed = "1"; then
45083
test "x$silent" != "xyes" && echo " removed \"-I/usr/local/include\" from CPPFLAGS"
45084
CPPFLAGS=$apr_new_bugger
45095
if test "${apu_has_expat}${apu_try_builtin_expat}" = "01"; then
38112
45096
bundled_subdir="xml/expat"
38114
45098
# save our work to this point; this allows the sub-package to use it
39865
46982
# Name of the executable.
39866
as_me=`$as_basename "$0" ||
46983
as_me=`$as_basename -- "$0" ||
39867
46984
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
39868
46985
X"$0" : 'X\(//\)$' \| \
39869
X"$0" : 'X\(/\)$' \| \
39870
. : '\(.\)' 2>/dev/null ||
46986
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
39871
46987
echo X/"$0" |
39872
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
39873
/^X\/\(\/\/\)$/{ s//\1/; q; }
39874
/^X\/\(\/\).*/{ s//\1/; q; }
39878
# PATH needs CR, and LINENO needs CR and PATH.
39879
# Avoid depending upon Character Ranges.
39880
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
39881
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39882
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39883
as_cr_digits='0123456789'
39884
as_cr_alnum=$as_cr_Letters$as_cr_digits
39886
# The user is always right.
39887
if test "${PATH_SEPARATOR+set}" != set; then
39888
echo "#! /bin/sh" >conf$$.sh
39889
echo "exit 0" >>conf$$.sh
39891
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
39900
as_lineno_1=$LINENO
39901
as_lineno_2=$LINENO
39902
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
39903
test "x$as_lineno_1" != "x$as_lineno_2" &&
39904
test "x$as_lineno_3" = "x$as_lineno_2" || {
39905
# Find who we are. Look in the path if we contain no path at all
39908
*[\\/]* ) as_myself=$0 ;;
39909
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39910
for as_dir in $PATH
39913
test -z "$as_dir" && as_dir=.
39914
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
39919
# We did not find ourselves, most probably we were run as `sh COMMAND'
39920
# in which case we are not to be found in the path.
39921
if test "x$as_myself" = x; then
39924
if test ! -f "$as_myself"; then
39925
{ { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
39926
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
39927
{ (exit 1); exit 1; }; }
39929
case $CONFIG_SHELL in
39931
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39932
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
39935
test -z "$as_dir" && as_dir=.
39936
for as_base in sh bash ksh sh5; do
39939
if ("$as_dir/$as_base" -c '
39940
as_lineno_1=$LINENO
39941
as_lineno_2=$LINENO
39942
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
39943
test "x$as_lineno_1" != "x$as_lineno_2" &&
39944
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
39945
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
39946
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
39947
CONFIG_SHELL=$as_dir/$as_base
39948
export CONFIG_SHELL
39949
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
46988
sed '/^.*\/\([^/][^/]*\)\/*$/{
47007
as_lineno_1=$LINENO
47008
as_lineno_2=$LINENO
47009
test "x$as_lineno_1" != "x$as_lineno_2" &&
47010
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
39957
47012
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
39958
47013
# uniformly replaced by the line number. The first 'sed' inserts a
39959
# line-number line before each line; the second 'sed' does the real
39960
# work. The second script uses 'N' to pair each line-number line
39961
# with the numbered line, and appends trailing '-' during
39962
# substitution so that $LINENO is not a special case at line end.
47014
# line-number line after each line using $LINENO; the second 'sed'
47015
# does the real work. The second script uses 'N' to pair each
47016
# line-number line with the line containing $LINENO, and appends
47017
# trailing '-' during substitution so that $LINENO is not a special
47018
# case at line end.
39963
47019
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
39964
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
39965
sed '=' <$as_myself |
47020
# scripts with optimization help from Paolo Bonzini. Blame Lee
47021
# E. McMahon (1931-1989) for sed's syntax. :-)
39970
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
47033
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
39973
s,^['$as_cr_digits']*\n,,
39974
47036
' >$as_me.lineno &&
39975
chmod +x $as_me.lineno ||
39976
{ { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
39977
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
47037
chmod +x "$as_me.lineno" ||
47038
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
39978
47039
{ (exit 1); exit 1; }; }
39980
47041
# Don't try to exec as it changes $[0], causing all sort of problems
39981
47042
# (the dirname of $[0] is not the place where we might find the
39982
# original and so on. Autoconf is especially sensible to this).
47043
# original and so on. Autoconf is especially sensitive to this).
47044
. "./$as_me.lineno"
39984
47045
# Exit status is that of the last command.
39989
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
39990
*c*,-n*) ECHO_N= ECHO_C='
39992
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
39993
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
47050
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
47056
ECHO_C= ECHO_N= ECHO_T=
47057
case `echo -n x` in
47059
case `echo 'x\c'` in
47060
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
39996
if expr a : '\(a\)' >/dev/null 2>&1; then
47067
if expr a : '\(a\)' >/dev/null 2>&1 &&
47068
test "X`expr 00001 : '.*\(...\)'`" = X001; then
39999
47071
as_expr=false
40002
47074
rm -f conf$$ conf$$.exe conf$$.file
47075
if test -d conf$$.dir; then
47076
rm -f conf$$.dir/conf$$.file
40003
47081
echo >conf$$.file
40004
47082
if ln -s conf$$.file conf$$ 2>/dev/null; then
40005
# We could just check for DJGPP; but this test a) works b) is more generic
40006
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
40007
if test -f conf$$.exe; then
40008
# Don't use ln at all; we don't have any links
47084
# ... but there are two gotchas:
47085
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
47086
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
47087
# In both cases, we have to default to `cp -p'.
47088
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
40009
47089
as_ln_s='cp -p'
40013
47090
elif ln conf$$.file conf$$ 2>/dev/null; then
40016
47093
as_ln_s='cp -p'
40018
rm -f conf$$ conf$$.exe conf$$.file
47095
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
47096
rmdir conf$$.dir 2>/dev/null
40020
47098
if mkdir -p . 2>/dev/null; then
40262
47330
# Have a temporary directory for convenience. Make it in the build tree
40263
# simply because there is no reason to put it here, and in addition,
47331
# simply because there is no reason against having it here, and in addition,
40264
47332
# creating and moving files from /tmp can sometimes cause problems.
40265
# Create a temporary directory, and hook for its removal unless debugging.
47333
# Hook for its removal unless debugging.
47334
# Note that there is a small window in which the directory will not be cleaned:
47335
# after its creation but before its name has been assigned to `$tmp'.
40268
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
47339
trap 'exit_status=$?
47340
{ test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
40269
47342
trap '{ (exit 1); exit 1; }' 1 2 13 15
40272
47344
# Create a (secure) tmp directory for tmp files.
40275
tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
47347
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
40276
47348
test -n "$tmp" && test -d "$tmp"
40279
tmp=./confstat$$-$RANDOM
40280
(umask 077 && mkdir $tmp)
47351
tmp=./conf$$-$RANDOM
47352
(umask 077 && mkdir "$tmp")
40283
47355
echo "$me: cannot create a temporary directory in ." >&2
40284
47356
{ (exit 1); exit 1; }
40289
cat >>$CONFIG_STATUS <<_ACEOF
40292
# CONFIG_FILES section.
47360
# Set up the sed scripts for CONFIG_FILES section.
40295
47363
# No need to generate the scripts if there are no CONFIG_FILES.
40296
47364
# This happens for instance when ./config.status config.h
40297
if test -n "\$CONFIG_FILES"; then
40298
# Protect against being on the right side of a sed subst in config.status.
40299
sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
40300
s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
40301
s,@SHELL@,$SHELL,;t t
40302
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
40303
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
40304
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
40305
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
40306
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
40307
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
40308
s,@exec_prefix@,$exec_prefix,;t t
40309
s,@prefix@,$prefix,;t t
40310
s,@program_transform_name@,$program_transform_name,;t t
40311
s,@bindir@,$bindir,;t t
40312
s,@sbindir@,$sbindir,;t t
40313
s,@libexecdir@,$libexecdir,;t t
40314
s,@datadir@,$datadir,;t t
40315
s,@sysconfdir@,$sysconfdir,;t t
40316
s,@sharedstatedir@,$sharedstatedir,;t t
40317
s,@localstatedir@,$localstatedir,;t t
40318
s,@libdir@,$libdir,;t t
40319
s,@includedir@,$includedir,;t t
40320
s,@oldincludedir@,$oldincludedir,;t t
40321
s,@infodir@,$infodir,;t t
40322
s,@mandir@,$mandir,;t t
40323
s,@build_alias@,$build_alias,;t t
40324
s,@host_alias@,$host_alias,;t t
40325
s,@target_alias@,$target_alias,;t t
40326
s,@DEFS@,$DEFS,;t t
40327
s,@ECHO_C@,$ECHO_C,;t t
40328
s,@ECHO_N@,$ECHO_N,;t t
40329
s,@ECHO_T@,$ECHO_T,;t t
40330
s,@LIBS@,$LIBS,;t t
40331
s,@APU_CONFIG_LOCATION@,$APU_CONFIG_LOCATION,;t t
40332
s,@build@,$build,;t t
40333
s,@build_cpu@,$build_cpu,;t t
40334
s,@build_vendor@,$build_vendor,;t t
40335
s,@build_os@,$build_os,;t t
40336
s,@host@,$host,;t t
40337
s,@host_cpu@,$host_cpu,;t t
40338
s,@host_vendor@,$host_vendor,;t t
40339
s,@host_os@,$host_os,;t t
40340
s,@target@,$target,;t t
40341
s,@target_cpu@,$target_cpu,;t t
40342
s,@target_vendor@,$target_vendor,;t t
40343
s,@target_os@,$target_os,;t t
40344
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
40345
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
40346
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
40347
s,@top_builddir@,$top_builddir,;t t
40348
s,@abs_srcdir@,$abs_srcdir,;t t
40349
s,@abs_builddir@,$abs_builddir,;t t
40350
s,@APRUTIL_DOTTED_VERSION@,$APRUTIL_DOTTED_VERSION,;t t
40351
s,@APRUTIL_MAJOR_VERSION@,$APRUTIL_MAJOR_VERSION,;t t
40352
s,@APR_INCLUDES@,$APR_INCLUDES,;t t
40353
s,@APR_LIBS@,$APR_LIBS,;t t
40354
s,@APR_BUILD_DIR@,$APR_BUILD_DIR,;t t
40355
s,@APR_ICONV_DIR@,$APR_ICONV_DIR,;t t
40357
s,@CFLAGS@,$CFLAGS,;t t
40358
s,@LDFLAGS@,$LDFLAGS,;t t
40359
s,@CPPFLAGS@,$CPPFLAGS,;t t
40360
s,@ac_ct_CC@,$ac_ct_CC,;t t
40361
s,@EXEEXT@,$EXEEXT,;t t
40362
s,@OBJEXT@,$OBJEXT,;t t
40364
s,@EGREP@,$EGREP,;t t
40365
s,@ldap_h@,$ldap_h,;t t
40366
s,@lber_h@,$lber_h,;t t
40367
s,@ldap_ssl_h@,$ldap_ssl_h,;t t
40368
s,@apu_has_ldapssl_client_init@,$apu_has_ldapssl_client_init,;t t
40369
s,@apu_has_ldapssl_client_deinit@,$apu_has_ldapssl_client_deinit,;t t
40370
s,@apu_has_ldapssl_add_trusted_cert@,$apu_has_ldapssl_add_trusted_cert,;t t
40371
s,@apu_has_ldap_start_tls_s@,$apu_has_ldap_start_tls_s,;t t
40372
s,@apu_has_ldapssl_init@,$apu_has_ldapssl_init,;t t
40373
s,@apu_has_ldap_sslinit@,$apu_has_ldap_sslinit,;t t
40374
s,@apu_has_ldapssl_install_routines@,$apu_has_ldapssl_install_routines,;t t
40375
s,@apu_has_ldap@,$apu_has_ldap,;t t
40376
s,@apu_has_ldap_openldap@,$apu_has_ldap_openldap,;t t
40377
s,@apu_has_ldap_solaris@,$apu_has_ldap_solaris,;t t
40378
s,@apu_has_ldap_novell@,$apu_has_ldap_novell,;t t
40379
s,@apu_has_ldap_microsoft@,$apu_has_ldap_microsoft,;t t
40380
s,@apu_has_ldap_netscape@,$apu_has_ldap_netscape,;t t
40381
s,@apu_has_ldap_mozilla@,$apu_has_ldap_mozilla,;t t
40382
s,@apu_has_ldap_other@,$apu_has_ldap_other,;t t
40383
s,@apu_use_sdbm@,$apu_use_sdbm,;t t
40384
s,@apu_use_gdbm@,$apu_use_gdbm,;t t
40385
s,@apu_use_ndbm@,$apu_use_ndbm,;t t
40386
s,@apu_use_db@,$apu_use_db,;t t
40387
s,@apu_have_sdbm@,$apu_have_sdbm,;t t
40388
s,@apu_have_gdbm@,$apu_have_gdbm,;t t
40389
s,@apu_have_ndbm@,$apu_have_ndbm,;t t
40390
s,@apu_have_db@,$apu_have_db,;t t
40391
s,@apu_db_header@,$apu_db_header,;t t
40392
s,@apu_db_version@,$apu_db_version,;t t
40393
s,@apu_have_pgsql@,$apu_have_pgsql,;t t
40394
s,@MYSQL_CONFIG@,$MYSQL_CONFIG,;t t
40395
s,@apu_have_mysql@,$apu_have_mysql,;t t
40396
s,@apu_have_sqlite3@,$apu_have_sqlite3,;t t
40397
s,@apu_have_sqlite2@,$apu_have_sqlite2,;t t
40398
s,@APR_XML_SUBDIRS@,$APR_XML_SUBDIRS,;t t
40399
s,@APR_XML_DIR@,$APR_XML_DIR,;t t
40400
s,@APR_XML_EXPAT_OLD@,$APR_XML_EXPAT_OLD,;t t
40401
s,@have_iconv@,$have_iconv,;t t
40402
s,@have_apr_iconv@,$have_apr_iconv,;t t
40403
s,@so_ext@,$so_ext,;t t
40404
s,@lib_target@,$lib_target,;t t
40405
s,@APRUTIL_LIBNAME@,$APRUTIL_LIBNAME,;t t
40406
s,@APRUTIL_EXPORT_LIBS@,$APRUTIL_EXPORT_LIBS,;t t
40407
s,@APRUTIL_PRIV_INCLUDES@,$APRUTIL_PRIV_INCLUDES,;t t
40408
s,@APRUTIL_INCLUDES@,$APRUTIL_INCLUDES,;t t
40409
s,@APRUTIL_LDFLAGS@,$APRUTIL_LDFLAGS,;t t
40410
s,@APRUTIL_LIBS@,$APRUTIL_LIBS,;t t
40411
s,@INCLUDE_RULES@,$INCLUDE_RULES,;t t
40412
s,@INCLUDE_OUTPUTS@,$INCLUDE_OUTPUTS,;t t
40413
s,@LIBOBJS@,$LIBOBJS,;t t
40414
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
40419
cat >>$CONFIG_STATUS <<\_ACEOF
40420
# Split the substitutions into bite-sized pieces for seds with
40421
# small command number limits, like on Digital OSF/1 and HP-UX.
40422
ac_max_sed_lines=48
40423
ac_sed_frag=1 # Number of current file.
40424
ac_beg=1 # First line for current file.
40425
ac_end=$ac_max_sed_lines # Line after last line for current file.
40428
while $ac_more_lines; do
40429
if test $ac_beg -gt 1; then
40430
sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
40432
sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
40434
if test ! -s $tmp/subs.frag; then
40435
ac_more_lines=false
40437
# The purpose of the label and of the branching condition is to
40438
# speed up the sed processing (if there are no `@' at all, there
40439
# is no need to browse any of the substitutions).
40440
# These are the two extra sed commands mentioned above.
40442
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
40443
if test -z "$ac_sed_cmds"; then
40444
ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
40446
ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
40448
ac_sed_frag=`expr $ac_sed_frag + 1`
40450
ac_end=`expr $ac_end + $ac_max_sed_lines`
40453
if test -z "$ac_sed_cmds"; then
47365
if test -n "$CONFIG_FILES"; then
47372
for ac_last_try in false false false false false :; do
47373
cat >conf$$subs.sed <<_ACEOF
47374
SHELL!$SHELL$ac_delim
47375
PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
47376
PACKAGE_NAME!$PACKAGE_NAME$ac_delim
47377
PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
47378
PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
47379
PACKAGE_STRING!$PACKAGE_STRING$ac_delim
47380
PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
47381
exec_prefix!$exec_prefix$ac_delim
47382
prefix!$prefix$ac_delim
47383
program_transform_name!$program_transform_name$ac_delim
47384
bindir!$bindir$ac_delim
47385
sbindir!$sbindir$ac_delim
47386
libexecdir!$libexecdir$ac_delim
47387
datarootdir!$datarootdir$ac_delim
47388
datadir!$datadir$ac_delim
47389
sysconfdir!$sysconfdir$ac_delim
47390
sharedstatedir!$sharedstatedir$ac_delim
47391
localstatedir!$localstatedir$ac_delim
47392
includedir!$includedir$ac_delim
47393
oldincludedir!$oldincludedir$ac_delim
47394
docdir!$docdir$ac_delim
47395
infodir!$infodir$ac_delim
47396
htmldir!$htmldir$ac_delim
47397
dvidir!$dvidir$ac_delim
47398
pdfdir!$pdfdir$ac_delim
47399
psdir!$psdir$ac_delim
47400
libdir!$libdir$ac_delim
47401
localedir!$localedir$ac_delim
47402
mandir!$mandir$ac_delim
47403
DEFS!$DEFS$ac_delim
47404
ECHO_C!$ECHO_C$ac_delim
47405
ECHO_N!$ECHO_N$ac_delim
47406
ECHO_T!$ECHO_T$ac_delim
47407
LIBS!$LIBS$ac_delim
47408
build_alias!$build_alias$ac_delim
47409
host_alias!$host_alias$ac_delim
47410
target_alias!$target_alias$ac_delim
47411
APU_CONFIG_LOCATION!$APU_CONFIG_LOCATION$ac_delim
47412
build!$build$ac_delim
47413
build_cpu!$build_cpu$ac_delim
47414
build_vendor!$build_vendor$ac_delim
47415
build_os!$build_os$ac_delim
47416
host!$host$ac_delim
47417
host_cpu!$host_cpu$ac_delim
47418
host_vendor!$host_vendor$ac_delim
47419
host_os!$host_os$ac_delim
47420
target!$target$ac_delim
47421
target_cpu!$target_cpu$ac_delim
47422
target_vendor!$target_vendor$ac_delim
47423
target_os!$target_os$ac_delim
47424
INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
47425
INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
47426
INSTALL_DATA!$INSTALL_DATA$ac_delim
47427
top_builddir!$top_builddir$ac_delim
47428
abs_srcdir!$abs_srcdir$ac_delim
47429
abs_builddir!$abs_builddir$ac_delim
47430
APRUTIL_DOTTED_VERSION!$APRUTIL_DOTTED_VERSION$ac_delim
47431
APRUTIL_MAJOR_VERSION!$APRUTIL_MAJOR_VERSION$ac_delim
47433
CFLAGS!$CFLAGS$ac_delim
47434
LDFLAGS!$LDFLAGS$ac_delim
47435
CPPFLAGS!$CPPFLAGS$ac_delim
47436
ac_ct_CC!$ac_ct_CC$ac_delim
47437
EXEEXT!$EXEEXT$ac_delim
47438
OBJEXT!$OBJEXT$ac_delim
47439
APR_INCLUDES!$APR_INCLUDES$ac_delim
47440
APR_LIBS!$APR_LIBS$ac_delim
47441
APR_BUILD_DIR!$APR_BUILD_DIR$ac_delim
47442
APR_ICONV_DIR!$APR_ICONV_DIR$ac_delim
47444
GREP!$GREP$ac_delim
47445
EGREP!$EGREP$ac_delim
47446
ldap_h!$ldap_h$ac_delim
47447
lber_h!$lber_h$ac_delim
47448
ldap_ssl_h!$ldap_ssl_h$ac_delim
47449
apu_has_ldapssl_client_init!$apu_has_ldapssl_client_init$ac_delim
47450
apu_has_ldapssl_client_deinit!$apu_has_ldapssl_client_deinit$ac_delim
47451
apu_has_ldapssl_add_trusted_cert!$apu_has_ldapssl_add_trusted_cert$ac_delim
47452
apu_has_ldap_start_tls_s!$apu_has_ldap_start_tls_s$ac_delim
47453
apu_has_ldapssl_init!$apu_has_ldapssl_init$ac_delim
47454
apu_has_ldap_sslinit!$apu_has_ldap_sslinit$ac_delim
47455
apu_has_ldapssl_install_routines!$apu_has_ldapssl_install_routines$ac_delim
47456
apu_has_ldap!$apu_has_ldap$ac_delim
47457
apu_has_ldap_openldap!$apu_has_ldap_openldap$ac_delim
47458
apu_has_ldap_solaris!$apu_has_ldap_solaris$ac_delim
47459
apu_has_ldap_novell!$apu_has_ldap_novell$ac_delim
47460
apu_has_ldap_microsoft!$apu_has_ldap_microsoft$ac_delim
47461
apu_has_ldap_netscape!$apu_has_ldap_netscape$ac_delim
47462
apu_has_ldap_mozilla!$apu_has_ldap_mozilla$ac_delim
47463
apu_has_ldap_other!$apu_has_ldap_other$ac_delim
47464
apu_use_sdbm!$apu_use_sdbm$ac_delim
47465
apu_use_gdbm!$apu_use_gdbm$ac_delim
47466
apu_use_ndbm!$apu_use_ndbm$ac_delim
47467
apu_use_db!$apu_use_db$ac_delim
47468
apu_have_sdbm!$apu_have_sdbm$ac_delim
47469
apu_have_gdbm!$apu_have_gdbm$ac_delim
47470
apu_have_ndbm!$apu_have_ndbm$ac_delim
47473
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
47475
elif $ac_last_try; then
47476
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
47477
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
47478
{ (exit 1); exit 1; }; }
47480
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
47484
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
47485
if test -n "$ac_eof"; then
47486
ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
47487
ac_eof=`expr $ac_eof + 1`
47490
cat >>$CONFIG_STATUS <<_ACEOF
47491
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
47492
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
47495
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
47496
s/^/s,@/; s/!/@,|#_!!_#|/
47499
s/'"$ac_delim"'$/,g/; t
47501
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
47502
' >>$CONFIG_STATUS <conf$$subs.sed
47503
rm -f conf$$subs.sed
47504
cat >>$CONFIG_STATUS <<_ACEOF
47510
for ac_last_try in false false false false false :; do
47511
cat >conf$$subs.sed <<_ACEOF
47512
apu_have_db!$apu_have_db$ac_delim
47513
apu_db_header!$apu_db_header$ac_delim
47514
apu_db_version!$apu_db_version$ac_delim
47515
apu_have_pgsql!$apu_have_pgsql$ac_delim
47516
MYSQL_CONFIG!$MYSQL_CONFIG$ac_delim
47517
apu_have_mysql!$apu_have_mysql$ac_delim
47518
apu_have_sqlite3!$apu_have_sqlite3$ac_delim
47519
apu_have_sqlite2!$apu_have_sqlite2$ac_delim
47520
APR_XML_DIR!$APR_XML_DIR$ac_delim
47521
have_iconv!$have_iconv$ac_delim
47522
have_apr_iconv!$have_apr_iconv$ac_delim
47523
so_ext!$so_ext$ac_delim
47524
lib_target!$lib_target$ac_delim
47525
APRUTIL_LIBNAME!$APRUTIL_LIBNAME$ac_delim
47526
APRUTIL_EXPORT_LIBS!$APRUTIL_EXPORT_LIBS$ac_delim
47527
APRUTIL_PRIV_INCLUDES!$APRUTIL_PRIV_INCLUDES$ac_delim
47528
APRUTIL_INCLUDES!$APRUTIL_INCLUDES$ac_delim
47529
APRUTIL_LDFLAGS!$APRUTIL_LDFLAGS$ac_delim
47530
APRUTIL_LIBS!$APRUTIL_LIBS$ac_delim
47531
INCLUDE_RULES!$INCLUDE_RULES$ac_delim
47532
INCLUDE_OUTPUTS!$INCLUDE_OUTPUTS$ac_delim
47533
LIBOBJS!$LIBOBJS$ac_delim
47534
LTLIBOBJS!$LTLIBOBJS$ac_delim
47537
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 23; then
47539
elif $ac_last_try; then
47540
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
47541
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
47542
{ (exit 1); exit 1; }; }
47544
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
47548
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
47549
if test -n "$ac_eof"; then
47550
ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
47551
ac_eof=`expr $ac_eof + 1`
47554
cat >>$CONFIG_STATUS <<_ACEOF
47555
cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
47556
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
47559
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
47560
s/^/s,@/; s/!/@,|#_!!_#|/
47563
s/'"$ac_delim"'$/,g/; t
47565
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
47566
' >>$CONFIG_STATUS <conf$$subs.sed
47567
rm -f conf$$subs.sed
47568
cat >>$CONFIG_STATUS <<_ACEOF
47575
# VPATH may cause trouble with some makes, so we remove $(srcdir),
47576
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
47577
# trailing colons and then remove the whole line if VPATH becomes empty
47578
# (actually we leave an empty line to preserve line numbers).
47579
if test "x$srcdir" = x.; then
47580
ac_vpsub='/^[ ]*VPATH[ ]*=/{
47581
s/:*\$(srcdir):*/:/
47582
s/:*\${srcdir}:*/:/
47584
s/^\([^=]*=[ ]*\):*/\1/
47590
cat >>$CONFIG_STATUS <<\_ACEOF
40456
47591
fi # test -n "$CONFIG_FILES"
40459
cat >>$CONFIG_STATUS <<\_ACEOF
40460
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
40461
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
40463
- | *:- | *:-:* ) # input from stdin
40465
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
40466
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
40467
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
40468
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
40469
* ) ac_file_in=$ac_file.in ;;
40472
# Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
40473
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
47594
for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
47597
:[FHLC]) ac_mode=$ac_tag; continue;;
47599
case $ac_mode$ac_tag in
47601
:L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
47602
echo "$as_me: error: Invalid tag $ac_tag." >&2;}
47603
{ (exit 1); exit 1; }; };;
47604
:[FH]-) ac_tag=-:-;;
47605
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
47622
-) ac_f="$tmp/stdin";;
47623
*) # Look for the file first in the build tree, then in the source tree
47624
# (if the path is not absolute). The absolute path cannot be DOS-style,
47625
# because $ac_f cannot contain `:'.
47629
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
47631
{ { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
47632
echo "$as_me: error: cannot find input file: $ac_f" >&2;}
47633
{ (exit 1); exit 1; }; };;
47635
ac_file_inputs="$ac_file_inputs $ac_f"
47638
# Let's still pretend it is `configure' which instantiates (i.e., don't
47639
# use $as_me), people would be surprised to read:
47640
# /* config.h. Generated by config.status. */
47641
configure_input="Generated from "`IFS=:
47642
echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
47643
if test x"$ac_file" != x-; then
47644
configure_input="$ac_file. $configure_input"
47645
{ echo "$as_me:$LINENO: creating $ac_file" >&5
47646
echo "$as_me: creating $ac_file" >&6;}
47650
*:-:* | *:-) cat >"$tmp/stdin";;
47655
ac_dir=`$as_dirname -- "$ac_file" ||
40474
47656
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40475
47657
X"$ac_file" : 'X\(//\)[^/]' \| \
40476
47658
X"$ac_file" : 'X\(//\)$' \| \
40477
X"$ac_file" : 'X\(/\)' \| \
40478
. : '\(.\)' 2>/dev/null ||
47659
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
40479
47660
echo X"$ac_file" |
40480
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40481
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
40482
/^X\(\/\/\)$/{ s//\1/; q; }
40483
/^X\(\/\).*/{ s//\1/; q; }
40485
{ if $as_mkdir_p; then
47661
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
47665
/^X\(\/\/\)[^/].*/{
47680
-*) as_dir=./$as_dir;;
47682
test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
40490
while test ! -d "$as_dir"; do
40491
as_dirs="$as_dir $as_dirs"
40492
as_dir=`(dirname "$as_dir") 2>/dev/null ||
47686
*\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
47687
*) as_qdir=$as_dir;;
47689
as_dirs="'$as_qdir' $as_dirs"
47690
as_dir=`$as_dirname -- "$as_dir" ||
40493
47691
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40494
47692
X"$as_dir" : 'X\(//\)[^/]' \| \
40495
47693
X"$as_dir" : 'X\(//\)$' \| \
40496
X"$as_dir" : 'X\(/\)' \| \
40497
. : '\(.\)' 2>/dev/null ||
47694
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
40498
47695
echo X"$as_dir" |
40499
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40500
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
40501
/^X\(\/\/\)$/{ s//\1/; q; }
40502
/^X\(\/\).*/{ s//\1/; q; }
47696
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
47700
/^X\(\/\/\)[^/].*/{
47713
test -d "$as_dir" && break
40505
test ! -n "$as_dirs" || mkdir $as_dirs
40506
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
40507
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
47715
test -z "$as_dirs" || eval "mkdir $as_dirs"
47716
} || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
47717
echo "$as_me: error: cannot create directory $as_dir" >&2;}
40508
47718
{ (exit 1); exit 1; }; }; }
40510
47719
ac_builddir=.
40512
if test "$ac_dir" != .; then
47722
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
40513
47724
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
40514
# A "../" for each directory in $ac_dir_suffix.
40515
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
40517
ac_dir_suffix= ac_top_builddir=
47725
# A ".." for each directory in $ac_dir_suffix.
47726
ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
47727
case $ac_top_builddir_sub in
47728
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
47729
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
47732
ac_abs_top_builddir=$ac_pwd
47733
ac_abs_builddir=$ac_pwd$ac_dir_suffix
47734
# for backward compatibility:
47735
ac_top_builddir=$ac_top_build_prefix
40520
47737
case $srcdir in
40521
.) # No --srcdir option. We are building in place.
47738
.) # We are building in place.
40523
if test -z "$ac_top_builddir"; then
40526
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
40528
[\\/]* | ?:[\\/]* ) # Absolute path.
47740
ac_top_srcdir=$ac_top_builddir_sub
47741
ac_abs_top_srcdir=$ac_pwd ;;
47742
[\\/]* | ?:[\\/]* ) # Absolute name.
40529
47743
ac_srcdir=$srcdir$ac_dir_suffix;
40530
ac_top_srcdir=$srcdir ;;
40531
*) # Relative path.
40532
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
40533
ac_top_srcdir=$ac_top_builddir$srcdir ;;
40536
# Do not use `cd foo && pwd` to compute absolute paths, because
40537
# the directories may not exist.
40539
.) ac_abs_builddir="$ac_dir";;
40542
.) ac_abs_builddir=`pwd`;;
40543
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
40544
*) ac_abs_builddir=`pwd`/"$ac_dir";;
40547
case $ac_abs_builddir in
40548
.) ac_abs_top_builddir=${ac_top_builddir}.;;
40550
case ${ac_top_builddir}. in
40551
.) ac_abs_top_builddir=$ac_abs_builddir;;
40552
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
40553
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
40556
case $ac_abs_builddir in
40557
.) ac_abs_srcdir=$ac_srcdir;;
40560
.) ac_abs_srcdir=$ac_abs_builddir;;
40561
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
40562
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
40565
case $ac_abs_builddir in
40566
.) ac_abs_top_srcdir=$ac_top_srcdir;;
40568
case $ac_top_srcdir in
40569
.) ac_abs_top_srcdir=$ac_abs_builddir;;
40570
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
40571
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
47744
ac_top_srcdir=$srcdir
47745
ac_abs_top_srcdir=$srcdir ;;
47746
*) # Relative name.
47747
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
47748
ac_top_srcdir=$ac_top_build_prefix$srcdir
47749
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
47751
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
40576
47760
case $INSTALL in
40577
47761
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
40578
*) ac_INSTALL=$ac_top_builddir$INSTALL ;;
47762
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
40581
if test x"$ac_file" != x-; then
40582
{ echo "$as_me:$LINENO: creating $ac_file" >&5
40583
echo "$as_me: creating $ac_file" >&6;}
40586
# Let's still pretend it is `configure' which instantiates (i.e., don't
40587
# use $as_me), people would be surprised to read:
40588
# /* config.h. Generated by config.status. */
40589
if test x"$ac_file" = x-; then
40592
configure_input="$ac_file. "
40594
configure_input=$configure_input"Generated from `echo $ac_file_in |
40595
sed 's,.*/,,'` by configure."
40597
# First look for the input files in the build tree, otherwise in the
40599
ac_file_inputs=`IFS=:
40600
for f in $ac_file_in; do
40602
-) echo $tmp/stdin ;;
40604
# Absolute (can't be DOS-style, as IFS=:)
40605
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
40606
echo "$as_me: error: cannot find input file: $f" >&2;}
40607
{ (exit 1); exit 1; }; }
40610
if test -f "$f"; then
40613
elif test -f "$srcdir/$f"; then
40618
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
40619
echo "$as_me: error: cannot find input file: $f" >&2;}
40620
{ (exit 1); exit 1; }; }
40623
done` || { (exit 1); exit 1; }
47766
cat >>$CONFIG_STATUS <<\_ACEOF
47767
# If the template does not know about datarootdir, expand it.
47768
# FIXME: This hack should be removed a few years after 2.60.
47769
ac_datarootdir_hack=; ac_datarootdir_seen=
47771
case `sed -n '/datarootdir/ {
47780
' $ac_file_inputs` in
47781
*datarootdir*) ac_datarootdir_seen=yes;;
47782
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
47783
{ echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
47784
echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
47786
cat >>$CONFIG_STATUS <<_ACEOF
47787
ac_datarootdir_hack='
47788
s&@datadir@&$datadir&g
47789
s&@docdir@&$docdir&g
47790
s&@infodir@&$infodir&g
47791
s&@localedir@&$localedir&g
47792
s&@mandir@&$mandir&g
47793
s&\\\${datarootdir}&$datarootdir&g' ;;
47797
# Neutralize VPATH when `$srcdir' = `.'.
47798
# Shell code in configure.ac might set extrasub.
47799
# FIXME: do we really want to maintain this feature?
40625
47800
cat >>$CONFIG_STATUS <<_ACEOF
40626
47801
sed "$ac_vpsub
40629
47804
cat >>$CONFIG_STATUS <<\_ACEOF
40631
47806
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
40632
s,@configure_input@,$configure_input,;t t
40633
s,@srcdir@,$ac_srcdir,;t t
40634
s,@abs_srcdir@,$ac_abs_srcdir,;t t
40635
s,@top_srcdir@,$ac_top_srcdir,;t t
40636
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
40637
s,@builddir@,$ac_builddir,;t t
40638
s,@abs_builddir@,$ac_abs_builddir,;t t
40639
s,@top_builddir@,$ac_top_builddir,;t t
40640
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
40641
s,@INSTALL@,$ac_INSTALL,;t t
40642
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
40644
if test x"$ac_file" != x-; then
40645
mv $tmp/out $ac_file
47807
s&@configure_input@&$configure_input&;t t
47808
s&@top_builddir@&$ac_top_builddir_sub&;t t
47809
s&@srcdir@&$ac_srcdir&;t t
47810
s&@abs_srcdir@&$ac_abs_srcdir&;t t
47811
s&@top_srcdir@&$ac_top_srcdir&;t t
47812
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
47813
s&@builddir@&$ac_builddir&;t t
47814
s&@abs_builddir@&$ac_abs_builddir&;t t
47815
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
47816
s&@INSTALL@&$ac_INSTALL&;t t
47817
$ac_datarootdir_hack
47818
" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
47820
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
47821
{ ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
47822
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
47823
{ echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
47824
which seems to be undefined. Please make sure it is defined." >&5
47825
echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
47826
which seems to be undefined. Please make sure it is defined." >&2;}
47830
-) cat "$tmp/out"; rm -f "$tmp/out";;
47831
*) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
40653
cat >>$CONFIG_STATUS <<\_ACEOF
40656
# CONFIG_HEADER section.
40659
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
40660
# NAME is the cpp macro being defined and VALUE is the value it is being given.
40662
# ac_d sets the value in "#define NAME VALUE" lines.
40663
ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
40664
ac_dB='[ ].*$,\1#\2'
47840
# Transform confdefs.h into a sed script `conftest.defines', that
47841
# substitutes the proper values into config.h.in to produce config.h.
47842
rm -f conftest.defines conftest.tail
47843
# First, append a space to every undef/define line, to ease matching.
47844
echo 's/$/ /' >conftest.defines
47845
# Then, protect against being on the right side of a sed subst, or in
47846
# an unquoted here document, in config.status. If some macros were
47847
# called several times there might be several #defines for the same
47848
# symbol, which is useless. But do not sort them, since the last
47849
# AC_DEFINE must be honored.
47850
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
47851
# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
47852
# NAME is the cpp macro being defined, VALUE is the value it is being given.
47853
# PARAMS is the parameter list in the macro definition--in most cases, it's
47854
# just an empty string.
47855
ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
47856
ac_dB='\\)[ (].*,\\1define\\2'
40667
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
40668
ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
40669
ac_uB='$,\1#\2define\3'
40673
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
40674
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
40676
- | *:- | *:-:* ) # input from stdin
40678
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
40679
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
40680
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
40681
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
40682
* ) ac_file_in=$ac_file.in ;;
40685
test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
40686
echo "$as_me: creating $ac_file" >&6;}
40688
# First look for the input files in the build tree, otherwise in the
40690
ac_file_inputs=`IFS=:
40691
for f in $ac_file_in; do
40693
-) echo $tmp/stdin ;;
40695
# Absolute (can't be DOS-style, as IFS=:)
40696
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
40697
echo "$as_me: error: cannot find input file: $f" >&2;}
40698
{ (exit 1); exit 1; }; }
40699
# Do quote $f, to prevent DOS paths from being IFS'd.
40702
if test -f "$f"; then
40705
elif test -f "$srcdir/$f"; then
40710
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
40711
echo "$as_me: error: cannot find input file: $f" >&2;}
40712
{ (exit 1); exit 1; }; }
40715
done` || { (exit 1); exit 1; }
40716
# Remove the trailing spaces.
40717
sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
40721
# Transform confdefs.h into two sed scripts, `conftest.defines' and
40722
# `conftest.undefs', that substitutes the proper values into
40723
# config.h.in to produce config.h. The first handles `#define'
40724
# templates, and the second `#undef' templates.
40725
# And first: Protect against being on the right side of a sed subst in
40726
# config.status. Protect against being in an unquoted here document
40727
# in config.status.
40728
rm -f conftest.defines conftest.undefs
40729
# Using a here document instead of a string reduces the quoting nightmare.
40730
# Putting comments in sed scripts is not portable.
40732
# `end' is used to avoid that the second main sed command (meant for
40733
# 0-ary CPP macros) applies to n-ary macro definitions.
40734
# See the Autoconf documentation for `clear'.
40735
cat >confdef2sed.sed <<\_ACEOF
40740
s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
40742
s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
40745
# If some macros were called several times there might be several times
40746
# the same #defines, which is useless. Nevertheless, we may not want to
40747
# sort them, since we want the *last* AC-DEFINE to be honored.
40748
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
40749
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
40750
rm -f confdef2sed.sed
40752
# This sed command replaces #undef with comments. This is necessary, for
47864
s/^[ ]*#[ ]*define[ ][ ]*//
47869
s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
47870
s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
47871
' >>conftest.defines
47873
# Remove the space that was appended to ease matching.
47874
# Then replace #undef with comments. This is necessary, for
40753
47875
# example, in the case of _POSIX_SOURCE, which is predefined and required
40754
47876
# on some systems where configure will not decide to define it.
40755
cat >>conftest.undefs <<\_ACEOF
40756
s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
47877
# (The regexp can be short, since the line contains either #define or #undef.)
47879
s,^[ #]*u.*,/* & */,' >>conftest.defines
47881
# Break up conftest.defines:
47882
ac_max_sed_lines=50
47884
# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
47885
# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
47886
# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
47888
ac_in='$ac_file_inputs'
47889
ac_out='"$tmp/out1"'
47890
ac_nxt='"$tmp/out2"'
47894
# Write a here document:
47895
cat >>$CONFIG_STATUS <<_ACEOF
47896
# First, check the format of the line:
47897
cat >"\$tmp/defines.sed" <<\\CEOF
47898
/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
47899
/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
40759
# Break up conftest.defines because some shells have a limit on the size
40760
# of here documents, and old seds have small limits too (100 cmds).
40761
echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
40762
echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
40763
echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
40764
echo ' :' >>$CONFIG_STATUS
40765
rm -f conftest.tail
40766
while grep . conftest.defines >/dev/null
40768
# Write a limited-size here document to $tmp/defines.sed.
40769
echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
40770
# Speed up: don't consider the non `#define' lines.
40771
echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
40772
# Work around the forget-to-reset-the-flag bug.
40773
echo 't clr' >>$CONFIG_STATUS
40774
echo ': clr' >>$CONFIG_STATUS
40775
sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
47903
sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
40777
sed -f $tmp/defines.sed $tmp/in >$tmp/out
40779
mv $tmp/out $tmp/in
40781
sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
47905
sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
47906
ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
47907
sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
47908
grep . conftest.tail >/dev/null || break
40782
47909
rm -f conftest.defines
40783
47910
mv conftest.tail conftest.defines
40785
rm -f conftest.defines
40786
echo ' fi # grep' >>$CONFIG_STATUS
40787
echo >>$CONFIG_STATUS
40789
# Break up conftest.undefs because some shells have a limit on the size
40790
# of here documents, and old seds have small limits too (100 cmds).
40791
echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
40792
rm -f conftest.tail
40793
while grep . conftest.undefs >/dev/null
40795
# Write a limited-size here document to $tmp/undefs.sed.
40796
echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
40797
# Speed up: don't consider the non `#undef'
40798
echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
40799
# Work around the forget-to-reset-the-flag bug.
40800
echo 't clr' >>$CONFIG_STATUS
40801
echo ': clr' >>$CONFIG_STATUS
40802
sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
40804
sed -f $tmp/undefs.sed $tmp/in >$tmp/out
40806
mv $tmp/out $tmp/in
40808
sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
40809
rm -f conftest.undefs
40810
mv conftest.tail conftest.undefs
40812
rm -f conftest.undefs
47912
rm -f conftest.defines conftest.tail
47914
echo "ac_result=$ac_in" >>$CONFIG_STATUS
40814
47915
cat >>$CONFIG_STATUS <<\_ACEOF
40815
# Let's still pretend it is `configure' which instantiates (i.e., don't
40816
# use $as_me), people would be surprised to read:
40817
# /* config.h. Generated by config.status. */
40818
if test x"$ac_file" = x-; then
40819
echo "/* Generated by configure. */" >$tmp/config.h
40821
echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
40823
cat $tmp/in >>$tmp/config.h
40825
47916
if test x"$ac_file" != x-; then
40826
if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
47917
echo "/* $configure_input */" >"$tmp/config.h"
47918
cat "$ac_result" >>"$tmp/config.h"
47919
if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
40827
47920
{ echo "$as_me:$LINENO: $ac_file is unchanged" >&5
40828
47921
echo "$as_me: $ac_file is unchanged" >&6;}
40830
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
40831
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40832
X"$ac_file" : 'X\(//\)[^/]' \| \
40833
X"$ac_file" : 'X\(//\)$' \| \
40834
X"$ac_file" : 'X\(/\)' \| \
40835
. : '\(.\)' 2>/dev/null ||
40837
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40838
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
40839
/^X\(\/\/\)$/{ s//\1/; q; }
40840
/^X\(\/\).*/{ s//\1/; q; }
40842
{ if $as_mkdir_p; then
40847
while test ! -d "$as_dir"; do
40848
as_dirs="$as_dir $as_dirs"
40849
as_dir=`(dirname "$as_dir") 2>/dev/null ||
40850
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40851
X"$as_dir" : 'X\(//\)[^/]' \| \
40852
X"$as_dir" : 'X\(//\)$' \| \
40853
X"$as_dir" : 'X\(/\)' \| \
40854
. : '\(.\)' 2>/dev/null ||
40856
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40857
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
40858
/^X\(\/\/\)$/{ s//\1/; q; }
40859
/^X\(\/\).*/{ s//\1/; q; }
40862
test ! -n "$as_dirs" || mkdir $as_dirs
40863
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
40864
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
40865
{ (exit 1); exit 1; }; }; }
40867
47923
rm -f $ac_file
40868
mv $tmp/config.h $ac_file
47924
mv "$tmp/config.h" $ac_file
40872
rm -f $tmp/config.h
47927
echo "/* $configure_input */"
40876
cat >>$CONFIG_STATUS <<\_ACEOF
40879
# CONFIG_COMMANDS section.
40881
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
40882
ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
40883
ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
40884
ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
40885
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40886
X"$ac_dest" : 'X\(//\)[^/]' \| \
40887
X"$ac_dest" : 'X\(//\)$' \| \
40888
X"$ac_dest" : 'X\(/\)' \| \
40889
. : '\(.\)' 2>/dev/null ||
40891
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40892
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
40893
/^X\(\/\/\)$/{ s//\1/; q; }
40894
/^X\(\/\).*/{ s//\1/; q; }
40896
{ if $as_mkdir_p; then
40901
while test ! -d "$as_dir"; do
40902
as_dirs="$as_dir $as_dirs"
40903
as_dir=`(dirname "$as_dir") 2>/dev/null ||
40904
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40905
X"$as_dir" : 'X\(//\)[^/]' \| \
40906
X"$as_dir" : 'X\(//\)$' \| \
40907
X"$as_dir" : 'X\(/\)' \| \
40908
. : '\(.\)' 2>/dev/null ||
40910
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40911
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
40912
/^X\(\/\/\)$/{ s//\1/; q; }
40913
/^X\(\/\).*/{ s//\1/; q; }
40916
test ! -n "$as_dirs" || mkdir $as_dirs
40917
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
40918
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
40919
{ (exit 1); exit 1; }; }; }
40923
if test "$ac_dir" != .; then
40924
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
40925
# A "../" for each directory in $ac_dir_suffix.
40926
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
40928
ac_dir_suffix= ac_top_builddir=
40932
.) # No --srcdir option. We are building in place.
40934
if test -z "$ac_top_builddir"; then
40937
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
40939
[\\/]* | ?:[\\/]* ) # Absolute path.
40940
ac_srcdir=$srcdir$ac_dir_suffix;
40941
ac_top_srcdir=$srcdir ;;
40942
*) # Relative path.
40943
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
40944
ac_top_srcdir=$ac_top_builddir$srcdir ;;
40947
# Do not use `cd foo && pwd` to compute absolute paths, because
40948
# the directories may not exist.
40950
.) ac_abs_builddir="$ac_dir";;
40953
.) ac_abs_builddir=`pwd`;;
40954
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
40955
*) ac_abs_builddir=`pwd`/"$ac_dir";;
40958
case $ac_abs_builddir in
40959
.) ac_abs_top_builddir=${ac_top_builddir}.;;
40961
case ${ac_top_builddir}. in
40962
.) ac_abs_top_builddir=$ac_abs_builddir;;
40963
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
40964
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
40967
case $ac_abs_builddir in
40968
.) ac_abs_srcdir=$ac_srcdir;;
40971
.) ac_abs_srcdir=$ac_abs_builddir;;
40972
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
40973
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
40976
case $ac_abs_builddir in
40977
.) ac_abs_top_srcdir=$ac_top_srcdir;;
40979
case $ac_top_srcdir in
40980
.) ac_abs_top_srcdir=$ac_abs_builddir;;
40981
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
40982
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
40987
{ echo "$as_me:$LINENO: executing $ac_dest commands" >&5
40988
echo "$as_me: executing $ac_dest commands" >&6;}
47933
:C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
47934
echo "$as_me: executing $ac_file commands" >&6;}
47939
case $ac_file$ac_mode in
40991
47941
chmod +x apu-$APRUTIL_MAJOR_VERSION-config
40997
cat >>$CONFIG_STATUS <<\_ACEOF
40999
47948
{ (exit 0); exit 0; }