]> granicus.if.org Git - php/commitdiff
Add Berkeley DB 5.1 support to the DBA extension
authorChristopher Jones <sixd@php.net>
Wed, 1 Dec 2010 19:20:16 +0000 (19:20 +0000)
committerChristopher Jones <sixd@php.net>
Wed, 1 Dec 2010 19:20:16 +0000 (19:20 +0000)
ext/dba/config.m4

index 1e6fdd6f4611bc185c4894a3fc31e14d27e623d2..0746602104ffcafd53cbc92aa7f3c8a83883e15c 100644 (file)
@@ -268,7 +268,7 @@ AC_DEFUN([PHP_DBA_DB_CHECK],[
     AC_MSG_CHECKING([for DB4 minor version and patch level])
     AC_EGREP_CPP(yes,[
 #include "$THIS_INCLUDE"
-#if DB_VERSION_MINOR != 1 || (DB_VERSION_MINOR == 1 && DB_VERSION_PATCH >= 25)
+#if DB_VERSION_MAJOR > 4 || (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR != 1) || (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR == 1 && DB_VERSION_PATCH >= 25)
       yes
 #endif
     ],[