Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpredis/phpredis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2020-06-26 08:18:57 +0300
committerRemi Collet <remi@remirepo.net>2020-06-26 08:18:57 +0300
commit19269cb1db073376364d2655fc828daeb8f1006e (patch)
tree967cf56cc844f7acee949d98d2ece01abb1b7ad3 /config.m4
parenta311cc4ec3cecdbaf83ba66985efa82137e37cc0 (diff)
fix lz4 library name
Diffstat (limited to 'config.m4')
-rw-r--r--config.m48
1 files changed, 6 insertions, 2 deletions
diff --git a/config.m4 b/config.m4
index 30449300..21058019 100644
--- a/config.m4
+++ b/config.m4
@@ -201,7 +201,8 @@ if test "$PHP_REDIS" != "no"; then
fi
if test "$PHP_REDIS_LZ4" != "no"; then
- AC_DEFINE(HAVE_REDIS_LZ4, 1, [ ])
+ AC_DEFINE(HAVE_REDIS_LZ4, 1, [ ])
+ if test "$PHP_LIBZSTD" != "no"; then
AC_MSG_CHECKING(for liblz4 files in default path)
for i in $PHP_LIBLZ4 /usr/local /usr; do
if test -r $i/include/lz4.h; then
@@ -216,13 +217,16 @@ if test "$PHP_REDIS" != "no"; then
fi
PHP_CHECK_LIBRARY(lz4, LZ4_compress,
[
- PHP_ADD_LIBRARY_WITH_PATH(zstd, $LIBLZ4_DIR/$PHP_LIBDIR, REDIS_SHARED_LIBADD)
+ PHP_ADD_LIBRARY_WITH_PATH(lz4, $LIBLZ4_DIR/$PHP_LIBDIR, REDIS_SHARED_LIBADD)
], [
AC_MSG_ERROR([could not find usable liblz4])
], [
-L$LIBLZ4_DIR/$PHP_LIBDIR
])
PHP_SUBST(REDIS_SHARED_LIBADD)
+ else
+ AC_MSG_ERROR([only system libz4 is supported])
+ fi
fi
if test "$PHP_REDIS_ZSTD" != "no"; then