]> granicus.if.org Git - php/commitdiff
Little fix for people building sqlite as a static extension
authorWez Furlong <wez@php.net>
Sat, 19 Apr 2003 11:47:17 +0000 (11:47 +0000)
committerWez Furlong <wez@php.net>
Sat, 19 Apr 2003 11:47:17 +0000 (11:47 +0000)
ext/sqlite/config.m4

index cd4289888f3c626424736025fdb4fb4d9553fa8a..7e70077aa4e2e0de471033015ea229ac0b09966c 100644 (file)
@@ -79,6 +79,12 @@ if test "$PHP_SQLITE" != "no"; then
        sed -e s/--VERS--/`cat $ext_srcdir/libsqlite/VERSION`/ -e s/--ENCODING--/$SQLITE_ENCODING/ $ext_srcdir/libsqlite/src/sqlite.h.in >$ext_srcdir/libsqlite/src/sqlite.h
 
        PHP_ADD_MAKEFILE_FRAGMENT
+
+       dnl if not building a shared extension, we need to generate a config.h file for
+       dnl the library
+       if test "$ext_shared" = "no"; then
+         echo '#include "php_config.h"' > $ext_srcdir/libsqlite/src/config.h
+       fi
   fi
 
   AC_CHECK_FUNCS(usleep nanosleep)