X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=netatalk.git;a=blobdiff_plain;f=macros%2Fdb3-check.m4;h=4135e5ce2801915853e598ef0f8596726b4bcc42;hp=6fae6187205b69d4542ace1016e7de16b6901e96;hb=3a84db87064922ad10ac10cc1d6833380e575995;hpb=cdb7047fb6897c1ad8b4ac264001d44154bf144d diff --git a/macros/db3-check.m4 b/macros/db3-check.m4 index 6fae6187..4135e5ce 100644 --- a/macros/db3-check.m4 +++ b/macros/db3-check.m4 @@ -87,7 +87,7 @@ if test "x$bdb_required" = "xyes"; then trybdbdir="" dobdbsearch=yes bdb_search_dirs="/usr/local /usr" - search_subdirs="/ /db5 /db5.0 /db50 /db4.8 /db48 /db4.7 /db47 /db4.6 /db46 /db4" + search_subdirs="/ /db5 /db5.1 /db51 /db5.0 /db50 /db4.8 /db48 /db4.7 /db47 /db4.6 /db46 /db4" bdbfound=no savedcflags="$CFLAGS" @@ -155,6 +155,9 @@ if test "x$bdb_required" = "xyes"; then if test x"${atalk_cv_bdb_version}" = x"yes"; then BDB_CFLAGS="-I${bdbdir}/include${subdir}" BDB_LIBS="-L${bdblibdir} ${atalk_cv_lib_db}" + if test x"$need_dash_r" = x"yes"; then + BDB_LIBS="$BDB_LIBS -R${bdblibdir}" + fi BDB_BIN="$bdbbindir" BDB_PATH="$bdbdir" bdbfound=yes @@ -178,6 +181,9 @@ if test "x$bdb_required" = "xyes"; then if test x"${atalk_cv_bdb_version}" = x"yes"; then BDB_CFLAGS="-I${bdbdir}/include${subdir}" BDB_LIBS="-L${bdblibdir} ${atalk_cv_lib_db}" + if test x"$need_dash_r" = x"yes"; then + BDB_LIBS="$BDB_LIBS -R${bdblibdir}" + fi BDB_BIN="$bdbbindir" BDB_PATH="$bdbdir" bdbfound=yes