summaryrefslogtreecommitdiffstats
path: root/m4/db.m4
diff options
context:
space:
mode:
Diffstat (limited to 'm4/db.m4')
-rw-r--r--m4/db.m46
1 files changed, 4 insertions, 2 deletions
diff --git a/m4/db.m4 b/m4/db.m4
index 680f57e1..2e43b144 100644
--- a/m4/db.m4
+++ b/m4/db.m4
@@ -72,6 +72,8 @@ db_ver_pat=`grep DB_VERSION_PATCH $db_incdir/db.h | awk '{print $3}'`
dnl libname is libdb-maj.min e.g. libdb-4.2
db_libver=${db_ver_maj}.${db_ver_min}
dnl make sure the lib is available
-AC_CHECK_LIB([db-$db_libver], [db_create], [],
- [AC_MSG_ERROR([$db_incdir/db.h is version $db_libver but libdb-$db_libver not found])])
+dnl use true so libdb won't be added to LIBS
+AC_CHECK_LIB([db-$db_libver], [db_create], [true],
+ [AC_MSG_ERROR([$db_incdir/db.h is version $db_libver but libdb-$db_libver not found])],
+ [$LIBNSL])