summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul de Vrieze <pauldv@gentoo.org>2003-06-27 10:12:53 +0000
committerPaul de Vrieze <pauldv@gentoo.org>2003-06-27 10:12:53 +0000
commitbf761bb8df257122133c0184ba69fc6242c0a7b3 (patch)
tree62a802832cf59b999b88b32b75c01f0ae63a5f02 /sys-libs/nss-db/files
parentbumping to x86 stable (diff)
downloadgentoo-2-bf761bb8df257122133c0184ba69fc6242c0a7b3.tar.gz
gentoo-2-bf761bb8df257122133c0184ba69fc6242c0a7b3.tar.bz2
gentoo-2-bf761bb8df257122133c0184ba69fc6242c0a7b3.zip
The big db4 project
Diffstat (limited to 'sys-libs/nss-db/files')
-rw-r--r--sys-libs/nss-db/files/db3.patch43
1 files changed, 43 insertions, 0 deletions
diff --git a/sys-libs/nss-db/files/db3.patch b/sys-libs/nss-db/files/db3.patch
new file mode 100644
index 000000000000..2da6ecbd5550
--- /dev/null
+++ b/sys-libs/nss-db/files/db3.patch
@@ -0,0 +1,43 @@
+diff -u nss_db-2.2.orig/configure.in nss_db-2.2/configure.in
+--- nss_db-2.2.orig/configure.in 2003-06-27 11:41:13.000000000 +0200
++++ nss_db-2.2/configure.in 2003-06-27 11:44:30.000000000 +0200
+@@ -43,22 +43,28 @@
+ AC_CHECK_HEADER(db.h,, AC_MSG_ERROR([
+ *** Could not find Berkeley DB headers.]))
+
+-AC_CHECK_LIB(db, db_version,, AC_MSG_ERROR([
++
++AC_CHECK_LIB(db-3, db_version,,
++ AC_CHECK_LIB(db, db_version,,AC_MSG_ERROR([
+ *** Could not find Berkeley DB library.]))
++)
+
+ AC_CACHE_CHECK([Berkeley DB version], nss_db_cv_db_version,
+ [AC_TRY_CPP(
+ [
+-# include <db.h>
+-# ifndef DB_VERSION_STRING
+-# error "Unknown"
+-# endif
+-# if DB_VERSION_MAJOR < 2
+-# error "Too old"
+-# endif
+-# if DB_VERSION_MAJOR == 2 && DB_VERSION_MINOR < 4
+-# error "Too old"
+-# endif
++ include <db.h>
++ ifndef DB_VERSION_STRING
++ error "Unknown"
++ endif
++ if DB_VERSION_MAJOR < 2
++ error "Too old"
++ endif
++ if DB_VERSION_MAJOR == 2 && DB_VERSION_MINOR < 4
++ error "Too old"
++ endif
++ if DB_VERSION_MAJOR >= 4
++ error "Too new"
++ endif
+ ],
+ nss_db_cv_db_version="ok",
+ nss_db_cv_db_version="not ok")