-
-
Save nikic/75dac4f4bff80945127d1acb84e010a0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/ext/pdo_sqlite/config.m4 b/ext/pdo_sqlite/config.m4 | |
index 4b1f543056..091768f5e0 100644 | |
--- a/ext/pdo_sqlite/config.m4 | |
+++ b/ext/pdo_sqlite/config.m4 | |
@@ -14,14 +14,9 @@ if test "$PHP_PDO_SQLITE" != "no"; then | |
PKG_CHECK_MODULES([SQLITE], [sqlite3 > 3.7.4]) | |
- PHP_CHECK_LIBRARY(sqlite3, sqlite3_open_v2, | |
- [ | |
- PHP_EVAL_INCLINE($SQLITE_CFLAGS) | |
- PHP_EVAL_LIBLINE($SQLITE_LIBS, PDO_SQLITE_SHARED_LIBADD) | |
- AC_DEFINE(HAVE_PDO_SQLITELIB, 1, [Define to 1 if you have the pdo_sqlite extension enabled.]) | |
- ], [ | |
- AC_MSG_ERROR([Please install SQLite 3.7.4 first or check libsqlite3 is present]) | |
- ]) | |
+ PHP_EVAL_INCLINE($SQLITE_CFLAGS) | |
+ PHP_EVAL_LIBLINE($SQLITE_LIBS, PDO_SQLITE_SHARED_LIBADD) | |
+ AC_DEFINE(HAVE_PDO_SQLITELIB, 1, [Define to 1 if you have the pdo_sqlite extension enabled.]) | |
PHP_CHECK_LIBRARY(sqlite3, sqlite3_close_v2, [ | |
AC_DEFINE(HAVE_SQLITE3_CLOSE_V2, 1, [have sqlite3_close_v2]) | |
diff --git a/ext/sqlite3/config0.m4 b/ext/sqlite3/config0.m4 | |
index c44582c312..3cc3c64097 100644 | |
--- a/ext/sqlite3/config0.m4 | |
+++ b/ext/sqlite3/config0.m4 | |
@@ -7,14 +7,9 @@ PHP_ARG_WITH([sqlite3], | |
if test $PHP_SQLITE3 != "no"; then | |
PKG_CHECK_MODULES([SQLITE], [sqlite3 > 3.7.4]) | |
- PHP_CHECK_LIBRARY(sqlite3, sqlite3_stmt_readonly, | |
- [ | |
- PHP_EVAL_INCLINE($SQLITE_CFLAGS) | |
- PHP_EVAL_LIBLINE($SQLITE_LIBS, SQLITE3_SHARED_LIBADD) | |
- AC_DEFINE(HAVE_SQLITE3, 1, [Define to 1 if you have the sqlite3 extension enabled.]) | |
- ], [ | |
- AC_MSG_ERROR([Please install SQLite 3.7.4 first or check libsqlite3 is present]) | |
- ]) | |
+ PHP_EVAL_INCLINE($SQLITE_CFLAGS) | |
+ PHP_EVAL_LIBLINE($SQLITE_LIBS, SQLITE3_SHARED_LIBADD) | |
+ AC_DEFINE(HAVE_SQLITE3, 1, [Define to 1 if you have the sqlite3 extension enabled.]) | |
PHP_CHECK_LIBRARY(sqlite3, sqlite3_errstr, [ | |
AC_DEFINE(HAVE_SQLITE3_ERRSTR, 1, [have sqlite3_errstr function]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment