]> granicus.if.org Git - php/commitdiff
MFB (these parts were missing)
authorMarcus Boerger <helly@php.net>
Thu, 29 May 2003 12:33:19 +0000 (12:33 +0000)
committerMarcus Boerger <helly@php.net>
Thu, 29 May 2003 12:33:19 +0000 (12:33 +0000)
ext/dba/config.m4

index 10db5f6823fc87e81e40c8e3405ecf88a2b90a29..fa8ebb05255d60eae45fab79ea867232a17d3d62 100644 (file)
@@ -140,7 +140,7 @@ AC_DEFUN(PHP_DBA_DB_CHECK,[
         AC_TRY_LINK([
 #include "$THIS_INCLUDE"
         ],[
-          (void)db_create((DB**)0, (DB_ENV*)0, 0);
+          $3;
         ],[
           AC_EGREP_CPP(yes,[
 #include "$THIS_INCLUDE"
@@ -329,8 +329,10 @@ AC_ARG_WITH(dbm,
             fi
             AC_DEFINE(DBA_DBM,1,[ ]) 
             THIS_LIBS=$LIB
-            break
           ])
+          if test -n "$THIS_LIBS"; then
+            break
+          fi
         ])
       done
     fi
@@ -352,7 +354,7 @@ AC_DEFUN(PHP_DBA_BUILTIN_CDB,[
 
 AC_ARG_WITH(cdb,
 [  --with-cdb[=DIR]          DBA: Include CDB support],[
-  if test "$withval" = "yes"; then
+  if test "$withval" = "yes" -o "$HAVE_DBA" = "1"; then
     PHP_DBA_BUILTIN_CDB
   elif test "$withval" != "no"; then
     PHP_DBA_STD_BEGIN