Little fix for people building sqlite as a static extension

This commit is contained in:
Wez Furlong 2003-04-19 11:47:17 +00:00
parent 5f97e66ba5
commit de7874e11f

View 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)