]> git.pld-linux.org Git - packages/nss_db.git/blame - nss_db-uniqdb.patch
- enable db on package install and removal (rfc which dbs exactly?); remove all when...
[packages/nss_db.git] / nss_db-uniqdb.patch
CommitLineData
14a3d93c
JR
1Use AC_TRY_LINK to correctly detect db_version in a copy of libdb which has
2been built with the --with-uniquename flag.
3--- nss_db-2.2/configure.in 2003-12-02 16:22:42.000000000 -0500
4+++ nss_db-2.2/configure.in 2003-12-02 16:22:37.000000000 -0500
5@@ -43,8 +43,12 @@
6 AC_CHECK_HEADER(db.h,, AC_MSG_ERROR([
7 *** Could not find Berkeley DB headers.]))
8
9-AC_CHECK_LIB(db, db_version,, AC_MSG_ERROR([
10-*** Could not find Berkeley DB library.]))
11+AC_CHECK_LIB(db, db_version,,[
12+libsave="$LIBS"
13+LIBS="$LIBS $DB_LIBS -ldb"
14+AC_MSG_CHECKING([for db_version in -ldb using the linker])
15+AC_TRY_LINK([#include <db.h>],[db_version(0,0,0);],[libsave="$libsave -ldb";AC_MSG_RESULT([yes])],[AC_MSG_RESULT([no]);AC_MSG_ERROR([*** Could not find Berkeley DB library.])])
16+LIBS="$libsave"])
17
18 AC_CACHE_CHECK([Berkeley DB version], nss_db_cv_db_version,
19 [AC_TRY_CPP(
This page took 0.026649 seconds and 4 git commands to generate.