diff options
author | Marcus Boerger <helly@php.net> | 2003-05-13 20:37:54 +0000 |
---|---|---|
committer | Marcus Boerger <helly@php.net> | 2003-05-13 20:37:54 +0000 |
commit | 8dffa026612b975aa7b0a598f926eb0da15bff2a (patch) | |
tree | b0d289cbef48a7d0773c3e0de0c3bb5bc151ed59 | |
parent | 0d398417282dcc31e75cb69270c53e0b7cac7ce0 (diff) | |
download | php-git-8dffa026612b975aa7b0a598f926eb0da15bff2a.tar.gz |
Fix this test
-rw-r--r-- | ext/dba/config.m4 | 5 |
1 files changed, 5 insertions, 0 deletions
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,[ |