From: Howard Chu Date: Tue, 16 Sep 2008 08:00:51 +0000 (+0000) Subject: Trim checks for obsolete BDB versions X-Git-Tag: ACLCHECK_0~1349 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=2cdcfd5493c7cb2b0d979119724ebeae0bf6f724;p=openldap Trim checks for obsolete BDB versions --- diff --git a/build/openldap.m4 b/build/openldap.m4 index 007c443e88..1f3cead936 100644 --- a/build/openldap.m4 +++ b/build/openldap.m4 @@ -288,24 +288,6 @@ AC_DEFUN([OL_BERKELEY_DB_TRY], #define NULL ((void*)0) #endif ]], [[ -#if DB_VERSION_MAJOR > 1 - { - char *version; - int major, minor, patch; - - version = db_version( &major, &minor, &patch ); - - if( major != DB_VERSION_MAJOR || - minor < DB_VERSION_MINOR ) - { - printf("Berkeley DB version mismatch\n" - "\theader: %s\n\tlibrary: %s\n", - DB_VERSION_STRING, version); - return 1; - } - } -#endif - #if DB_VERSION_MAJOR > 2 db_env_create( NULL, 0 ); #elif DB_VERSION_MAJOR > 1 @@ -374,18 +356,6 @@ if test $ol_cv_bdb_major = 4 ; then OL_BERKELEY_DB_TRY(ol_cv_db_db_4,[-ldb-4]) OL_BERKELEY_DB_TRY(ol_cv_db_db4,[-ldb4]) OL_BERKELEY_DB_TRY(ol_cv_db_db,[-ldb]) - -elif test $ol_cv_bdb_major = 3 ; then - OL_BERKELEY_DB_TRY(ol_cv_db_db3,[-ldb3]) - OL_BERKELEY_DB_TRY(ol_cv_db_db_3,[-ldb-3]) - -elif test $ol_cv_bdb_major = 2 ; then - OL_BERKELEY_DB_TRY(ol_cv_db_db2,[-ldb2]) - OL_BERKELEY_DB_TRY(ol_cv_db_db_2,[-ldb-2]) - -elif test $ol_cv_bdb_major = 1 ; then - OL_BERKELEY_DB_TRY(ol_cv_db_db1,[-ldb1]) - OL_BERKELEY_DB_TRY(ol_cv_db_db_1,[-ldb-1]) fi OL_BERKELEY_DB_TRY(ol_cv_db_none) ])