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:
authorPavlo Yatsukhnenko <yatsukhnenko@gmail.com>2019-03-23 17:16:21 +0300
committerPavlo Yatsukhnenko <yatsukhnenko@gmail.com>2019-03-23 17:55:43 +0300
commit823978b4e337bff0b2d3dd7b01f1cb643de4fcf7 (patch)
treea8e137ba1be51de6d42ee5b292a674a47e3e4de9 /config.m4
parentaff75ffdb38821109259f578f33ceb7dd243e0be (diff)
msgpack 2.0.3 or greater required
Diffstat (limited to 'config.m4')
-rw-r--r--config.m423
1 files changed, 14 insertions, 9 deletions
diff --git a/config.m4 b/config.m4
index c1f793c8..d84ff46c 100644
--- a/config.m4
+++ b/config.m4
@@ -133,15 +133,20 @@ dnl Check for msgpack
AC_MSG_CHECKING([for redis msgpack support])
if test "$PHP_REDIS_MSGPACK" != "no"; then
- AC_MSG_RESULT([enabled])
- AC_DEFINE(HAVE_REDIS_MSGPACK,1,[Whether redis msgpack serializer is enabled])
- MSGPACK_INCLUDES="-I$msgpack_inc_path"
- MSGPACK_EXT_DIR="$msgpack_inc_path/ext"
- ifdef([PHP_ADD_EXTENSION_DEP],
- [
- PHP_ADD_EXTENSION_DEP(redis, msgpack)
- ])
- PHP_ADD_INCLUDE($MSGPACK_EXT_DIR)
+ msgpack_version=`grep -o 'PHP_MSGPACK_VERSION "[0-9\.]\+"' $msgpack_inc_path/ext/msgpack/php_msgpack.h | awk '{print $2}' | tr -d '"'`
+ if expr $msgpack_version "<" "2.0.3" > /dev/null; then
+ AC_MSG_ERROR([msgpack 2.0.3 or greater required])
+ else
+ AC_MSG_RESULT([enabled])
+ AC_DEFINE(HAVE_REDIS_MSGPACK,1,[Whether redis msgpack serializer is enabled])
+ MSGPACK_INCLUDES="-I$msgpack_inc_path"
+ MSGPACK_EXT_DIR="$msgpack_inc_path/ext"
+ ifdef([PHP_ADD_EXTENSION_DEP],
+ [
+ PHP_ADD_EXTENSION_DEP(redis, msgpack)
+ ])
+ PHP_ADD_INCLUDE($MSGPACK_EXT_DIR)
+ fi
else
MSGPACK_INCLUDES=""
AC_MSG_RESULT([disabled])