svn: /pecl/sqlite/trunk/ config.m4
| From: | Remi Collet | Date: | Sun, 03 Nov 2013 07:45:32 +0000 |
| Subject: | svn: /pecl/sqlite/trunk/ config.m4 | ||
| Groups: | php.pecl.cvs | ||
| Request: | Send a blank email to pecl-cvs+get-19965@lists.php.net to get a copy of this message | ||
remi Sun, 03 Nov 2013 07:45:32 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=332050
Log:
fix pdo detection and allow --disable-pdo
Changed paths:
U pecl/sqlite/trunk/config.m4
Modified: pecl/sqlite/trunk/config.m4
===================================================================
--- pecl/sqlite/trunk/config.m4 2013-11-03 07:44:43 UTC (rev 332049)
+++ pecl/sqlite/trunk/config.m4 2013-11-03 07:45:32 UTC (rev 332050)
@@ -6,6 +6,9 @@
[ --without-sqlite=DIR Do not include sqlite support. DIR is the sqlite base
install directory [BUNDLED]], yes)
+PHP_ARG_ENABLE(pdo, for pdo driver,
+[ --disable-pdo Do not include pdo driver], yes, no)
+
PHP_ARG_ENABLE(sqlite-utf8, whether to enable UTF-8 support in sqlite (default: ISO-8859-1),
[ --enable-sqlite-utf8 SQLite: Enable UTF-8 support for SQLite], no, no)
@@ -48,10 +51,16 @@
if test "$PHP_SQLITE" != "no"; then
if test "$PHP_PDO" != "no"; then
PHP_CHECK_PDO_INCLUDES([], [AC_MSG_WARN([Cannot find php_pdo_driver.h.])])
+ dnl Old PHP still have pdo_inc_path
if test -n "$pdo_inc_path"; then
AC_DEFINE([PHP_SQLITE2_HAVE_PDO], [1], [Have PDO])
pdo_inc_path="-I$pdo_inc_path"
fi
+ dnl New PHP correctly use pdo_cv_inc_path
+ if test -n "$pdo_cv_inc_path"; then
+ AC_DEFINE([PHP_SQLITE2_HAVE_PDO], [1], [Have PDO])
+ pdo_inc_path="-I$pdo_cv_inc_path"
+ fi
fi
if test "$PHP_SQLITE" != "yes"; then