Add db version check

This commit is contained in:
Kurt Zeilenga 2001-06-07 16:40:11 +00:00
parent e8ac75d22f
commit 08de32f87a
2 changed files with 438 additions and 251 deletions

View File

@ -265,6 +265,23 @@ 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"
"\texpected: %s\n\tgot: %s\n",
DB_VERSION, version);
return 1;
}
}
#if DB_VERSION_MAJOR > 2
db_env_create( NULL, 0 );
#elif DB_VERSION_MAJOR > 1

672
configure vendored

File diff suppressed because it is too large Load Diff