From: Marcus Boerger Date: Fri, 31 Jan 2003 20:06:44 +0000 (+0000) Subject: Shared dba requires at least db-3.3 X-Git-Tag: RELEASE_0_5~1343 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0629bdb061766ea62b1f7fd732d3349945ed977e;p=php Shared dba requires at least db-3.3 --- diff --git a/ext/dba/config.m4 b/ext/dba/config.m4 index 39081b0420..bbbc34952a 100644 --- a/ext/dba/config.m4 +++ b/ext/dba/config.m4 @@ -167,6 +167,19 @@ AC_DEFUN(PHP_DBA_DB_CHECK,[ AC_MSG_ERROR(Version 4.1 requires patch level 25) ]) fi + if test "$ext_shared" = "yes"; then + AC_MSG_CHECKING(if db can be used as shared extension) + AC_EGREP_CPP(yes,[ +#include "$THIS_INCLUDE" +#if DB_VERSION_MAJOR > 3 || (DB_VERSION_MAJOR == 3 && DB_VERSION_MINOR > 2) + yes +#endif + ],[ + AC_MSG_RESULT(yes) + ],[ + AC_MSG_ERROR(At least version 3.3 is required) + ]) + fi if test -n "$THIS_LIBS"; then AC_DEFINE(DBA_DB$1, 1, [ ]) if test -n "$THIS_INCLUDE"; then