]> granicus.if.org Git - php/commitdiff
Don't do PDO here if PDO is disabled
authorRasmus Lerdorf <rasmus@php.net>
Sat, 16 Apr 2005 00:04:27 +0000 (00:04 +0000)
committerRasmus Lerdorf <rasmus@php.net>
Sat, 16 Apr 2005 00:04:27 +0000 (00:04 +0000)
ext/sqlite/config.m4

index a391845739d88c60a20c3685d2e51942c2bf1e1a..2069132a7e88039faae477fc27f921900730d0d0 100644 (file)
@@ -12,6 +12,7 @@ PHP_ARG_WITH(sqlite, for sqlite support,
                           if not using bundled library.], yes)
 
 if test "$PHP_SQLITE" != "no"; then
+ if test "$PHP_PDO" != "no"; then
   AC_MSG_CHECKING([for PDO includes])
   if test -f $abs_srcdir/include/php/ext/pdo/php_pdo_driver.h; then
     pdo_inc_path=$abs_srcdir/ext
@@ -27,8 +28,8 @@ if test "$PHP_SQLITE" != "no"; then
     AC_DEFINE([PHP_SQLITE2_HAVE_PDO], [1], [Have PDO])
     pdo_inc_path="-I$pdo_inc_path"
   fi
-  
   AC_MSG_RESULT($pdo_inc_path)
+ fi  
 
   if test "$PHP_SQLITE" != "yes"; then
     SEARCH_PATH="/usr/local /usr"