blob: a531717502ebc9c0d67ab6b76137fe77154a4d13 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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
|