summaryrefslogtreecommitdiff
path: root/Configure
diff options
context:
space:
mode:
authorPaul Marquess <paul.marquess@btinternet.com>1998-02-23 10:47:26 +0000
committerMalcolm Beattie <mbeattie@sable.ox.ac.uk>1998-02-25 15:18:06 +0000
commitee02776e1e319bf3f9a6f0b42762f94334cfa372 (patch)
tree1dc5920b004235b35e755d7f9587fa6f06dd736a /Configure
parent07569ed3536e39e9dd5698939bf5a09a96521f3f (diff)
downloadperl-ee02776e1e319bf3f9a6f0b42762f94334cfa372.tar.gz
Back out DB_File patch (change _553) and tweak Configure.
Subject: ANNOUNCE: perl5.004_60 is available p4raw-id: //depot/perl@578
Diffstat (limited to 'Configure')
-rwxr-xr-xConfigure13
1 files changed, 10 insertions, 3 deletions
diff --git a/Configure b/Configure
index afba27c076..e0dff4f5a5 100755
--- a/Configure
+++ b/Configure
@@ -8561,6 +8561,7 @@ main()
{
#ifdef DB_VERSION_MAJOR /* DB version >= 2 */
int Major, Minor, Patch ;
+ unsigned long Version ;
(void)db_version(&Major, &Minor, &Patch) ;
printf("You have Berkeley DB Version 2 or greater\n");
@@ -8576,9 +8577,15 @@ main()
}
printf("db.h and libdb are compatible\n") ;
- /* needs to be >= 2.05 */
- if (DB_VERSION_MAJOR == 2 && DB_VERSION_MINOR == 0 && DB_VERSION_PATCH < 5) {
- printf("but Perl needs Berkeley DB 2.0.5 or greater\n") ;
+
+ Version = DB_VERSION_MAJOR * 1000000 + DB_VERSION_MINOR * 1000
+ + DB_VERSION_PATCH ;
+
+ /* needs to be >= 2.3.4 */
+ if (Version < 2003004) {
+ /* if (DB_VERSION_MAJOR == 2 && DB_VERSION_MINOR == 0 && DB_VERSION_PATCH
+< 5) { */
+ printf("but Perl needs Berkeley DB 2.3.4 or greater\n") ;
exit(2);
}