]> granicus.if.org Git - php/commitdiff
Probably fix pecl vs bundled-shared build
authorWez Furlong <wez@php.net>
Sun, 13 Feb 2005 02:51:11 +0000 (02:51 +0000)
committerWez Furlong <wez@php.net>
Sun, 13 Feb 2005 02:51:11 +0000 (02:51 +0000)
ext/pdo_sqlite/config.m4

index 606b12c713a2b50d52cc50e8b4094d041ab734bb..554e06f6f47d339deb95a9f4fa2a0039eb2b077f 100644 (file)
@@ -91,12 +91,11 @@ if test "$PHP_PDO_SQLITE" != "no"; then
         sort -n +2 $ext_srcdir/sqlite/src/opcodes.h | awk -f $ext_srcdir/sqlite/mkopcodec.awk > $ext_srcdir/sqlite/src/opcodes.c
       fi
 
-      if test "$ext_shared" = "no"; then
+      if test "$ext_shared" = "no" -o "$ext_srcdir" = "$abs_srcdir"; then
         echo '#include "php_config.h"' > $ext_srcdir/sqlite/src/config.h
       else
         echo "#include \"$abs_builddir/config.h\"" > $ext_srcdir/sqlite/src/config.h
       fi
-        
       cat >> $ext_srcdir/sqlite/src/config.h <<EOF
 #if ZTS
 # define THREADSAFE 1