16980
# unbound may also need libevent
16982
# Check whether --with-libevent was given.
16983
if test "${with_libevent+set}" = set; then :
16984
withval=$with_libevent; libeventpath="$withval"
16991
LIBEVENT_LIBDIRS=""
16993
if test x"$libevent" = x"yes"
16995
libevent_found="no"
16997
libeventdirs="/usr /usr/local"
16998
for d in $libeventdirs
17000
unset ac_cv_search_libevent_rr_new
17001
saved_LDFLAGS="$LDFLAGS"
17002
LDFLAGS="-L$d/lib $LDFLAGS"
17003
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing event_enable_debug_mode" >&5
17004
$as_echo_n "checking for library containing event_enable_debug_mode... " >&6; }
17005
if ${ac_cv_search_event_enable_debug_mode+:} false; then :
17006
$as_echo_n "(cached) " >&6
17008
ac_func_search_save_LIBS=$LIBS
17009
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17010
/* end confdefs.h. */
17012
/* Override any GCC internal prototype to avoid an error.
17013
Use char because int might match the return type of a GCC
17014
builtin and then its argument prototype would still apply. */
17018
char event_enable_debug_mode ();
17022
return event_enable_debug_mode ();
17027
for ac_lib in '' event; do
17028
if test -z "$ac_lib"; then
17029
ac_res="none required"
17032
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17034
if ac_fn_c_try_link "$LINENO"; then :
17035
ac_cv_search_event_enable_debug_mode=$ac_res
17037
rm -f core conftest.err conftest.$ac_objext \
17039
if ${ac_cv_search_event_enable_debug_mode+:} false; then :
17043
if ${ac_cv_search_event_enable_debug_mode+:} false; then :
17046
ac_cv_search_event_enable_debug_mode=no
17048
rm conftest.$ac_ext
17049
LIBS=$ac_func_search_save_LIBS
17051
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_enable_debug_mode" >&5
17052
$as_echo "$ac_cv_search_event_enable_debug_mode" >&6; }
17053
ac_res=$ac_cv_search_event_enable_debug_mode
17054
if test "$ac_res" != no; then :
17055
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17056
libevent_found="yes"
17059
LDFLAGS="$saved_LDFLAGS"
17061
if test x"$libevent_found" = x"yes"
17063
LIBEVENT_LIBDIRS="-L$d/lib"
17064
LIBEVENT_LIBS="-levent"
17068
if test x"$LIBEVENT_LIBS" = x""
17070
as_fn_error $? "libevent not found" "$LINENO" 5
17072
elif test x"$libeventpath" != x"no"
17074
libevent_found="no"
17075
saved_LDFLAGS="$LDFLAGS"
17076
LDFLAGS="-L$d/lib $LDFLAGS"
17077
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing event_enable_debug_mode" >&5
17078
$as_echo_n "checking for library containing event_enable_debug_mode... " >&6; }
17079
if ${ac_cv_search_event_enable_debug_mode+:} false; then :
17080
$as_echo_n "(cached) " >&6
17082
ac_func_search_save_LIBS=$LIBS
17083
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17084
/* end confdefs.h. */
17086
/* Override any GCC internal prototype to avoid an error.
17087
Use char because int might match the return type of a GCC
17088
builtin and then its argument prototype would still apply. */
17092
char event_enable_debug_mode ();
17096
return event_enable_debug_mode ();
17101
for ac_lib in '' event; do
17102
if test -z "$ac_lib"; then
17103
ac_res="none required"
17106
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17108
if ac_fn_c_try_link "$LINENO"; then :
17109
ac_cv_search_event_enable_debug_mode=$ac_res
17111
rm -f core conftest.err conftest.$ac_objext \
17113
if ${ac_cv_search_event_enable_debug_mode+:} false; then :
17117
if ${ac_cv_search_event_enable_debug_mode+:} false; then :
17120
ac_cv_search_event_enable_debug_mode=no
17122
rm conftest.$ac_ext
17123
LIBS=$ac_func_search_save_LIBS
17125
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_enable_debug_mode" >&5
17126
$as_echo "$ac_cv_search_event_enable_debug_mode" >&6; }
17127
ac_res=$ac_cv_search_event_enable_debug_mode
17128
if test "$ac_res" != no; then :
17129
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17130
libevent_found="yes"
17133
LDFLAGS="$saved_LDFLAGS"
17135
if test x"$libevent_found" = x"yes"
17137
LIBEVENT_LIBDIRS="-L$d/lib"
17138
LIBEVENT_LIBS="-levent"
17141
as_fn_error $? "libevent not found in $d" "$LINENO" 5
18366
# Check whether --with-mdb was given.
18367
if test "${with_mdb+set}" = set; then :
18368
withval=$with_mdb; mdbpath="$withval"
18378
if test x"$mdbpath" != x"no" -a x"$mdb_found" = x"no"
18380
saved_ldflags="$LDFLAGS"
18381
saved_cflags="$CFLAGS"
18383
if test x"$mdbpath" != x"auto" -a x"$mdbpath" != x"yes"
18385
if test -f $mdbpath/include/mdb.h
18387
LDFLAGS="-L$mdbpath/lib"
18388
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mdb_env_open in -lmdb" >&5
18389
$as_echo_n "checking for mdb_env_open in -lmdb... " >&6; }
18390
if ${ac_cv_lib_mdb_mdb_env_open+:} false; then :
18391
$as_echo_n "(cached) " >&6
18393
ac_check_lib_save_LIBS=$LIBS
18395
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18396
/* end confdefs.h. */
18398
/* Override any GCC internal prototype to avoid an error.
18399
Use char because int might match the return type of a GCC
18400
builtin and then its argument prototype would still apply. */
18404
char mdb_env_open ();
18408
return mdb_env_open ();
18413
if ac_fn_c_try_link "$LINENO"; then :
18414
ac_cv_lib_mdb_mdb_env_open=yes
18416
ac_cv_lib_mdb_mdb_env_open=no
18418
rm -f core conftest.err conftest.$ac_objext \
18419
conftest$ac_exeext conftest.$ac_ext
18420
LIBS=$ac_check_lib_save_LIBS
18422
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mdb_mdb_env_open" >&5
18423
$as_echo "$ac_cv_lib_mdb_mdb_env_open" >&6; }
18424
if test "x$ac_cv_lib_mdb_mdb_env_open" = xyes; then :
18427
LIBMDB_CPPFLAGS="-I$mdbpath/include"
18428
LIBMDB_LIBS="-L$mdbpath/lib -lmdb"
18432
as_fn_error $? "mdb not valid at $mdbpath" "$LINENO" 5
18438
as_fn_error $? "mdb not found at $mdbpath" "$LINENO" 5
18441
mdbdirs="/usr /usr/local"
18444
if test -f $d/include/mdb.h
18447
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mdb_env_open in -lmdb" >&5
18448
$as_echo_n "checking for mdb_env_open in -lmdb... " >&6; }
18449
if ${ac_cv_lib_mdb_mdb_env_open+:} false; then :
18450
$as_echo_n "(cached) " >&6
18452
ac_check_lib_save_LIBS=$LIBS
18454
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18455
/* end confdefs.h. */
18457
/* Override any GCC internal prototype to avoid an error.
18458
Use char because int might match the return type of a GCC
18459
builtin and then its argument prototype would still apply. */
18463
char mdb_env_open ();
18467
return mdb_env_open ();
18472
if ac_fn_c_try_link "$LINENO"; then :
18473
ac_cv_lib_mdb_mdb_env_open=yes
18475
ac_cv_lib_mdb_mdb_env_open=no
18477
rm -f core conftest.err conftest.$ac_objext \
18478
conftest$ac_exeext conftest.$ac_ext
18479
LIBS=$ac_check_lib_save_LIBS
18481
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mdb_mdb_env_open" >&5
18482
$as_echo "$ac_cv_lib_mdb_mdb_env_open" >&6; }
18483
if test "x$ac_cv_lib_mdb_mdb_env_open" = xyes; then :
18487
LIBMDB_CPPFLAGS="-I$mdbpath/include"
18488
LIBMDB_LIBS="-L$mdbpath/lib -lmdb"
18496
if test x"$mdb_found" != x"yes"
18498
as_fn_error $? "mdb not found" "$LINENO" 5
18501
LDFLAGS="$saved_ldflags"
18502
CFLAGS="$saved_cflags"
18504
if test x"$mdb_found" = x"yes"
18507
$as_echo "#define USE_MDB 1" >>confdefs.h
18510
if test x"$mdb_found" = x"yes"; then
18246
18523
# libcurl, required by reputation
18408
# libxml2, required by reputation
18685
# libjansson, required by reputation
18689
# Check whether --with-libjansson was given.
18690
if test "${with_libjansson+set}" = set; then :
18691
withval=$with_libjansson; janssonpath="$withval"
18697
LIBJANSSON_CPPFLAGS=""
18698
LIBJANSSON_LDFLAGS=""
18701
if test x"$enable_reputation" != x"yes" -a \
18702
x"$janssonpath" = x"auto"
18708
if test \( x"$janssonpath" = x"auto" -o x"$janssonpath" = x"yes" \) -a \
18709
x"$PKG_CONFIG" != x""
18713
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBJANSSON" >&5
18714
$as_echo_n "checking for LIBJANSSON... " >&6; }
18716
if test -n "$LIBJANSSON_CFLAGS"; then
18717
pkg_cv_LIBJANSSON_CFLAGS="$LIBJANSSON_CFLAGS"
18718
elif test -n "$PKG_CONFIG"; then
18719
if test -n "$PKG_CONFIG" && \
18720
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libjansson >= 2.2.1\""; } >&5
18721
($PKG_CONFIG --exists --print-errors "libjansson >= 2.2.1") 2>&5
18723
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18724
test $ac_status = 0; }; then
18725
pkg_cv_LIBJANSSON_CFLAGS=`$PKG_CONFIG --cflags "libjansson >= 2.2.1" 2>/dev/null`
18732
if test -n "$LIBJANSSON_LIBS"; then
18733
pkg_cv_LIBJANSSON_LIBS="$LIBJANSSON_LIBS"
18734
elif test -n "$PKG_CONFIG"; then
18735
if test -n "$PKG_CONFIG" && \
18736
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libjansson >= 2.2.1\""; } >&5
18737
($PKG_CONFIG --exists --print-errors "libjansson >= 2.2.1") 2>&5
18739
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18740
test $ac_status = 0; }; then
18741
pkg_cv_LIBJANSSON_LIBS=`$PKG_CONFIG --libs "libjansson >= 2.2.1" 2>/dev/null`
18751
if test $pkg_failed = yes; then
18752
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18753
$as_echo "no" >&6; }
18755
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18756
_pkg_short_errors_supported=yes
18758
_pkg_short_errors_supported=no
18760
if test $_pkg_short_errors_supported = yes; then
18761
LIBJANSSON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libjansson >= 2.2.1" 2>&1`
18763
LIBJANSSON_PKG_ERRORS=`$PKG_CONFIG --print-errors "libjansson >= 2.2.1" 2>&1`
18765
# Put the nasty error message in config.log where it belongs
18766
echo "$LIBJANSSON_PKG_ERRORS" >&5
18770
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pkg-config for libjansson not found, trying manual
18772
$as_echo "$as_me: WARNING: pkg-config for libjansson not found, trying manual
18775
elif test $pkg_failed = untried; then
18776
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18777
$as_echo "no" >&6; }
18780
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pkg-config for libjansson not found, trying manual
18782
$as_echo "$as_me: WARNING: pkg-config for libjansson not found, trying manual
18786
LIBJANSSON_CFLAGS=$pkg_cv_LIBJANSSON_CFLAGS
18787
LIBJANSSON_LIBS=$pkg_cv_LIBJANSSON_LIBS
18788
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18789
$as_echo "yes" >&6; }
18791
jansson_found="yes"
18792
LIBJANSSON_CPPFLAGS="$LIBJANSSON_CFLAGS"
18793
LIBJANSSON_LIBS="$LIBJANSSON_LIBS"
18798
if test x"$janssonpath" != x"no" -a x"$jansson_found" = x"no"
18800
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libjansson" >&5
18801
$as_echo_n "checking for libjansson... " >&6; }
18802
if test x"$janssonpath" != x"auto" -a x"$janssonpath" != x"yes"
18804
if test -f $janssonpath/include/jansson.h
18806
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $janssonpath" >&5
18807
$as_echo "$janssonpath" >&6; }
18808
jansson_found="yes"
18809
LIBJANSSON_CPPFLAGS="-I$janssonpath/include"
18810
LIBJANSSON_LDFLAGS="-L$janssonpath/lib"
18811
LIBJANSSON_LIBS="-ljansson"
18813
as_fn_error $? "not found at $janssonpath" "$LINENO" 5
18816
janssondirs="/usr /usr/local"
18817
for d in $janssondirs
18819
if test -f $d/include/jansson.h
18822
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5
18823
$as_echo "$d" >&6; }
18824
jansson_found="yes"
18825
LIBJANSSON_CPPFLAGS="-I$janssonpath/include"
18826
LIBJANSSON_LDFLAGS="-L$janssonpath/lib"
18827
LIBJANSSON_LIBS="-ljansson"
18832
if test x"$jansson_found" != x"yes"
18834
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18835
$as_echo "no" >&6; }
18411
18847
# Check whether --with-libxml2 was given.
18412
18848
if test "${with_libxml2+set}" = set; then :
18703
19170
$as_echo "$bdb_incdir" >&6; }
18707
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BerkeleyDB library lib$bdb_lib.a" >&5
18708
$as_echo_n "checking for BerkeleyDB library lib$bdb_lib.a... " >&6; }
18709
if test x"$bdb_libdir" = x""
18713
if test -f $d/lib/lib$bdb_lib.a
18716
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bdb_libdir" >&5
18717
$as_echo "$bdb_libdir" >&6; }
18723
if test x"$bdb_libdir" = x""
18725
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18726
$as_echo "not found" >&6; }
18728
elif ! test -f $bdb_libdir/lib$bdb_lib.a
18730
as_fn_error $? "not found in $bdb_libdir" "$LINENO" 5
18732
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bdb_libdir/lib$bdb_lib.a" >&5
18733
$as_echo "$bdb_libdir/lib$bdb_lib.a" >&6; }
18737
# If no matching library, see if we can find one. Note that
18738
# this can cause compilation problems if for example a db.h
19173
# See if we can find a library by looking for db_create(), then
19174
# db_open(), then dbopen().
19176
# This can cause compilation problems if for example a db.h
18739
19177
# and a libdb are found that aren't the same version, but it's
18740
19178
# worth a shot in general.
18741
if test x"$libdbfound" = x"no"
18743
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing db_create" >&5
18744
$as_echo_n "checking for library containing db_create... " >&6; }
18745
if ${ac_cv_search_db_create+:} false; then :
18746
$as_echo_n "(cached) " >&6
18748
ac_func_search_save_LIBS=$LIBS
18749
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18750
/* end confdefs.h. */
18752
/* Override any GCC internal prototype to avoid an error.
18753
Use char because int might match the return type of a GCC
18754
builtin and then its argument prototype would still apply. */
18762
return db_create ();
18767
for ac_lib in '' db; do
18768
if test -z "$ac_lib"; then
18769
ac_res="none required"
18772
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18774
if ac_fn_c_try_link "$LINENO"; then :
18775
ac_cv_search_db_create=$ac_res
18777
rm -f core conftest.err conftest.$ac_objext \
18779
if ${ac_cv_search_db_create+:} false; then :
18783
if ${ac_cv_search_db_create+:} false; then :
18786
ac_cv_search_db_create=no
18788
rm conftest.$ac_ext
18789
LIBS=$ac_func_search_save_LIBS
18791
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_db_create" >&5
18792
$as_echo "$ac_cv_search_db_create" >&6; }
18793
ac_res=$ac_cv_search_db_create
18794
if test "$ac_res" != no; then :
18795
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18800
if test x"$libdbfound" = x"no"
18802
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dbopen" >&5
18803
$as_echo_n "checking for library containing dbopen... " >&6; }
18804
if ${ac_cv_search_dbopen+:} false; then :
18805
$as_echo_n "(cached) " >&6
18807
ac_func_search_save_LIBS=$LIBS
18808
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18809
/* end confdefs.h. */
18811
/* Override any GCC internal prototype to avoid an error.
18812
Use char because int might match the return type of a GCC
18813
builtin and then its argument prototype would still apply. */
18826
for ac_lib in '' db; do
18827
if test -z "$ac_lib"; then
18828
ac_res="none required"
18831
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18833
if ac_fn_c_try_link "$LINENO"; then :
18834
ac_cv_search_dbopen=$ac_res
18836
rm -f core conftest.err conftest.$ac_objext \
18838
if ${ac_cv_search_dbopen+:} false; then :
18842
if ${ac_cv_search_dbopen+:} false; then :
18845
ac_cv_search_dbopen=no
18847
rm conftest.$ac_ext
18848
LIBS=$ac_func_search_save_LIBS
18850
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dbopen" >&5
18851
$as_echo "$ac_cv_search_dbopen" >&6; }
18852
ac_res=$ac_cv_search_dbopen
18853
if test "$ac_res" != no; then :
18854
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18859
if test x"$libdbfound" = x"no"
18861
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdb" >&5
18862
$as_echo_n "checking for libdb... " >&6; }
19179
if test x"$bdb_libdir" = x""
18863
19181
for d in $bdbdirs
18865
if test -f $d/lib/lib$bdb_lib.a
18868
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bdb_libdir" >&5
18869
$as_echo "$bdb_libdir" >&6; }
19183
saved_LDFLAGS="$LDFLAGS"
19184
saved_CPPFLAGS="$CPPFLAGS"
19186
LDFLAGS="$LDFLAGS -L$d/lib"
19187
CPPFLAGS="$CPPFLAGS -I$bdb_incdir"
19189
if test x"$libdbfound" = x"no"
19191
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing db_create" >&5
19192
$as_echo_n "checking for library containing db_create... " >&6; }
19193
if ${ac_cv_search_db_create+:} false; then :
19194
$as_echo_n "(cached) " >&6
19196
ac_func_search_save_LIBS=$LIBS
19197
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19198
/* end confdefs.h. */
19200
/* Override any GCC internal prototype to avoid an error.
19201
Use char because int might match the return type of a GCC
19202
builtin and then its argument prototype would still apply. */
19210
return db_create ();
19215
for ac_lib in '' $bdb_lib; do
19216
if test -z "$ac_lib"; then
19217
ac_res="none required"
19220
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19222
if ac_fn_c_try_link "$LINENO"; then :
19223
ac_cv_search_db_create=$ac_res
19225
rm -f core conftest.err conftest.$ac_objext \
19227
if ${ac_cv_search_db_create+:} false; then :
19231
if ${ac_cv_search_db_create+:} false; then :
19234
ac_cv_search_db_create=no
19236
rm conftest.$ac_ext
19237
LIBS=$ac_func_search_save_LIBS
19239
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_db_create" >&5
19240
$as_echo "$ac_cv_search_db_create" >&6; }
19241
ac_res=$ac_cv_search_db_create
19242
if test "$ac_res" != no; then :
19243
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19249
if test x"$libdbfound" = x"no"
19251
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing db_open" >&5
19252
$as_echo_n "checking for library containing db_open... " >&6; }
19253
if ${ac_cv_search_db_open+:} false; then :
19254
$as_echo_n "(cached) " >&6
19256
ac_func_search_save_LIBS=$LIBS
19257
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19258
/* end confdefs.h. */
19260
/* Override any GCC internal prototype to avoid an error.
19261
Use char because int might match the return type of a GCC
19262
builtin and then its argument prototype would still apply. */
19275
for ac_lib in '' $bdb_lib; do
19276
if test -z "$ac_lib"; then
19277
ac_res="none required"
19280
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19282
if ac_fn_c_try_link "$LINENO"; then :
19283
ac_cv_search_db_open=$ac_res
19285
rm -f core conftest.err conftest.$ac_objext \
19287
if ${ac_cv_search_db_open+:} false; then :
19291
if ${ac_cv_search_db_open+:} false; then :
19294
ac_cv_search_db_open=no
19296
rm conftest.$ac_ext
19297
LIBS=$ac_func_search_save_LIBS
19299
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_db_open" >&5
19300
$as_echo "$ac_cv_search_db_open" >&6; }
19301
ac_res=$ac_cv_search_db_open
19302
if test "$ac_res" != no; then :
19303
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19309
if test x"$libdbfound" = x"no"
19311
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dbopen" >&5
19312
$as_echo_n "checking for library containing dbopen... " >&6; }
19313
if ${ac_cv_search_dbopen+:} false; then :
19314
$as_echo_n "(cached) " >&6
19316
ac_func_search_save_LIBS=$LIBS
19317
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19318
/* end confdefs.h. */
19320
/* Override any GCC internal prototype to avoid an error.
19321
Use char because int might match the return type of a GCC
19322
builtin and then its argument prototype would still apply. */
19335
for ac_lib in '' $bdb_lib; do
19336
if test -z "$ac_lib"; then
19337
ac_res="none required"
19340
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19342
if ac_fn_c_try_link "$LINENO"; then :
19343
ac_cv_search_dbopen=$ac_res
19345
rm -f core conftest.err conftest.$ac_objext \
19347
if ${ac_cv_search_dbopen+:} false; then :
19351
if ${ac_cv_search_dbopen+:} false; then :
19354
ac_cv_search_dbopen=no
19356
rm conftest.$ac_ext
19357
LIBS=$ac_func_search_save_LIBS
19359
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dbopen" >&5
19360
$as_echo "$ac_cv_search_dbopen" >&6; }
19361
ac_res=$ac_cv_search_dbopen
19362
if test "$ac_res" != no; then :
19363
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19370
LDFLAGS="$saved_LDFLAGS"
19371
CPPFLAGS="$saved_CPPFLAGS"
19375
saved_LDFLAGS="$LDFLAGS"
19376
saved_CPPFLAGS="$CPPFLAGS"
19378
LDFLAGS="$LDFLAGS -L$bdb_libdir"
19379
CPPFLAGS="$CPPFLAGS -I$bdb_incdir"
19381
if test x"$libdbfound" = x"no"
19383
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing db_create" >&5
19384
$as_echo_n "checking for library containing db_create... " >&6; }
19385
if ${ac_cv_search_db_create+:} false; then :
19386
$as_echo_n "(cached) " >&6
19388
ac_func_search_save_LIBS=$LIBS
19389
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19390
/* end confdefs.h. */
19392
/* Override any GCC internal prototype to avoid an error.
19393
Use char because int might match the return type of a GCC
19394
builtin and then its argument prototype would still apply. */
19402
return db_create ();
19407
for ac_lib in '' $bdb_lib; do
19408
if test -z "$ac_lib"; then
19409
ac_res="none required"
19412
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19414
if ac_fn_c_try_link "$LINENO"; then :
19415
ac_cv_search_db_create=$ac_res
19417
rm -f core conftest.err conftest.$ac_objext \
19419
if ${ac_cv_search_db_create+:} false; then :
19423
if ${ac_cv_search_db_create+:} false; then :
19426
ac_cv_search_db_create=no
19428
rm conftest.$ac_ext
19429
LIBS=$ac_func_search_save_LIBS
19431
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_db_create" >&5
19432
$as_echo "$ac_cv_search_db_create" >&6; }
19433
ac_res=$ac_cv_search_db_create
19434
if test "$ac_res" != no; then :
19435
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19440
if test x"$libdbfound" = x"no"
19442
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing db_open" >&5
19443
$as_echo_n "checking for library containing db_open... " >&6; }
19444
if ${ac_cv_search_db_open+:} false; then :
19445
$as_echo_n "(cached) " >&6
19447
ac_func_search_save_LIBS=$LIBS
19448
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19449
/* end confdefs.h. */
19451
/* Override any GCC internal prototype to avoid an error.
19452
Use char because int might match the return type of a GCC
19453
builtin and then its argument prototype would still apply. */
19466
for ac_lib in '' $bdb_lib; do
19467
if test -z "$ac_lib"; then
19468
ac_res="none required"
19471
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19473
if ac_fn_c_try_link "$LINENO"; then :
19474
ac_cv_search_db_open=$ac_res
19476
rm -f core conftest.err conftest.$ac_objext \
19478
if ${ac_cv_search_db_open+:} false; then :
19482
if ${ac_cv_search_db_open+:} false; then :
19485
ac_cv_search_db_open=no
19487
rm conftest.$ac_ext
19488
LIBS=$ac_func_search_save_LIBS
19490
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_db_open" >&5
19491
$as_echo "$ac_cv_search_db_open" >&6; }
19492
ac_res=$ac_cv_search_db_open
19493
if test "$ac_res" != no; then :
19494
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19499
if test x"$libdbfound" = x"no"
19501
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dbopen" >&5
19502
$as_echo_n "checking for library containing dbopen... " >&6; }
19503
if ${ac_cv_search_dbopen+:} false; then :
19504
$as_echo_n "(cached) " >&6
19506
ac_func_search_save_LIBS=$LIBS
19507
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19508
/* end confdefs.h. */
19510
/* Override any GCC internal prototype to avoid an error.
19511
Use char because int might match the return type of a GCC
19512
builtin and then its argument prototype would still apply. */
19525
for ac_lib in '' $bdb_lib; do
19526
if test -z "$ac_lib"; then
19527
ac_res="none required"
19530
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19532
if ac_fn_c_try_link "$LINENO"; then :
19533
ac_cv_search_dbopen=$ac_res
19535
rm -f core conftest.err conftest.$ac_objext \
19537
if ${ac_cv_search_dbopen+:} false; then :
19541
if ${ac_cv_search_dbopen+:} false; then :
19544
ac_cv_search_dbopen=no
19546
rm conftest.$ac_ext
19547
LIBS=$ac_func_search_save_LIBS
19549
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dbopen" >&5
19550
$as_echo "$ac_cv_search_dbopen" >&6; }
19551
ac_res=$ac_cv_search_dbopen
19552
if test "$ac_res" != no; then :
19553
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19559
LDFLAGS="$saved_LDFLAGS"
19560
CPPFLAGS="$saved_CPPFLAGS"
18876
19564
if test x"$libdbfound" = x"no"
18878
as_fn_error $? "cannot find db_create or dbopen" "$LINENO" 5
19566
as_fn_error $? "cannot find db_create, db_open or dbopen" "$LINENO" 5
18881
19569
if test x"$bdb_incdir" != x""