Skip to content

Commit 511026b

Browse files
committed
sqlite patch
1 parent 2d3ed40 commit 511026b

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

ext/pdo_sqlite/config.m4

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ if test "$PHP_PDO_SQLITE" != "no"; then
3333
php_pdo_sqlite_sources_core="pdo_sqlite.c sqlite_driver.c sqlite_statement.c"
3434

3535
if test "$PHP_PDO_SQLITE" != "yes"; then
36-
SEARCH_PATH="$PHP_PDO_SQLITE /usr/local /usr" # you might want to change this
36+
SEARCH_PATH="$PHP_PDO_SQLITE /usr/local /usr /system" # you might want to change this
3737
SEARCH_FOR="/include/sqlite3.h" # you most likely want to change this
3838
if test -r $PHP_PDO_SQLITE/$SEARCH_FOR; then # path given as parameter
3939
PDO_SQLITE_DIR=$PHP_PDO_SQLITE
@@ -43,6 +43,9 @@ if test "$PHP_PDO_SQLITE" != "no"; then
4343
if test -r $i/$SEARCH_FOR; then
4444
PDO_SQLITE_DIR=$i
4545
AC_MSG_RESULT(found in $i)
46+
elif test -r $i/develop/headers/sqlite3.h; then
47+
PDO_SQLITE_DIR=$i
48+
AC_MSG_RESULT(found in $i)
4649
fi
4750
done
4851
fi

ext/sqlite3/config0.m4

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ if test $PHP_SQLITE3 != "no"; then
2727
SQLITE3_DIR=$i
2828
AC_MSG_RESULT(found in $i)
2929
break
30+
elif test -r $i/develop/headers/sqlite3.h; then
31+
SQLITE3_DIR=$i
32+
AC_MSG_RESULT(found in $i)
33+
break
3034
fi
3135
done
3236

0 commit comments

Comments
 (0)