From: Marcus Boerger Date: Tue, 13 May 2003 20:37:54 +0000 (+0000) Subject: Fix this test X-Git-Tag: RELEASE_0_9b~11 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8dffa026612b975aa7b0a598f926eb0da15bff2a;p=php Fix this test --- diff --git a/ext/dba/config.m4 b/ext/dba/config.m4 index bf1f5ca895..bd91b3cb72 100644 --- a/ext/dba/config.m4 +++ b/ext/dba/config.m4 @@ -140,6 +140,7 @@ AC_DEFUN(PHP_DBA_DB_CHECK,[ AC_CHECK_LIB($LIB, $3, [ AC_EGREP_CPP(yes,[ #include "$THIS_INCLUDE" +#if DB_VERSION_MAJOR == $1 yes #endif ],[ @@ -150,6 +151,10 @@ AC_DEFUN(PHP_DBA_DB_CHECK,[ ]) fi done + if test -z "$THIS_LIBS"; then + AC_MSG_CHECKING(for db$1 major version) + AC_MSG_ERROR(Header contains different version) + fi if test "$1" = "4"; then AC_MSG_CHECKING(for db4 minor version and patch level) AC_EGREP_CPP(yes,[