diff options
Diffstat (limited to 'leveldb-config.patch')
-rw-r--r-- | leveldb-config.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/leveldb-config.patch b/leveldb-config.patch new file mode 100644 index 0000000..a531717 --- /dev/null +++ b/leveldb-config.patch @@ -0,0 +1,28 @@ +--- config.m4.old 2013-08-24 17:02:04.000000000 +0200 ++++ config.m4 2013-08-24 17:19:06.000000000 +0200 +@@ -9,7 +9,7 @@ + # --with-leveldb -> check with-path + SEARCH_PATH="/usr/local /usr" + SEARCH_FOR="include/leveldb/c.h" +- SEARCH_LIB="libleveldb.a" ++ SEARCH_LIB="libleveldb" + + dnl search leveldb + AC_MSG_CHECKING([for leveldb location]) +@@ -20,13 +20,13 @@ + AC_MSG_RESULT(leveldb headers found in $i) + fi + +- if test -r $i/lib/$SEARCH_LIB; then +- LEVELDB_LIB_DIR=$i/lib ++ if test -r $i/$PHP_LIBDIR/$SEARCH_LIB.a || test -r $i/$PHP_LIBDIR/$SEARCH_LIB.$SHLIB_SUFFIX_NAME; then ++ LEVELDB_LIB_DIR=$i/$PHP_LIBDIR + AC_MSG_RESULT(leveldb lib found in $i/lib) + fi + + dnl from Leveldb build dir +- if test -r $i/$SEARCH_LIB; then ++ if test -r $i/$SEARCH_LIB.a || test -r $i/$SEARCH_LIB.$SHLIB_SUFFIX_NAME; then + LEVELDB_LIB_DIR=$i + AC_MSG_RESULT(leveldb lib found in $i) + fi |