diff options
author | michael-grunder <michael.grunder@gmail.com> | 2019-06-21 19:27:21 +0300 |
---|---|---|
committer | Michael Grunder <michael.grunder@gmail.com> | 2019-06-21 21:55:13 +0300 |
commit | 6973478c3214208fe3fdac5aa088cacd802011fc (patch) | |
tree | 779c8b1eb543886f97ba9b8d15cdf79ae4499b65 /config.m4 | |
parent | 235a27e7c088bbf5e5dbbd8b4a2684b600d6c79a (diff) |
Require msgpack > 2.0.3
Although the msgpack version numbers appear to be x.y.z[-dev], I'm
testing as if it were w.x.y.z[-dev] in case this ever changes. Right
now the $4 is the same as adding 0.
Diffstat (limited to 'config.m4')
-rw-r--r-- | config.m4 | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -137,6 +137,13 @@ if test "$PHP_REDIS" != "no"; then AC_MSG_CHECKING([for redis msgpack support]) if test "$PHP_REDIS_MSGPACK" != "no"; then + AC_MSG_CHECKING([for php_msgpack version >= 2.0.3]) + MSGPACK_VERSION=`$EGREP "define PHP_MSGPACK_VERSION" $msgpack_inc_path/ext/msgpack/php_msgpack.h | $SED -e 's/[[^0-9\.]]//g'` + AC_MSG_RESULT([$MSGPACK_VERSION]) + if test `echo $MSGPACK_VERSION | $SED -e 's/[[^0-9]]/ /g' | $AWK '{print $1*1000 + $2*100 + $3*10 + $4}'` -lt 2030; then + AC_MSG_ERROR([php msgpack version >= 2.0.3 required]) + fi + AC_MSG_RESULT([enabled]) AC_DEFINE(HAVE_REDIS_MSGPACK,1,[Whether redis msgpack serializer is enabled]) MSGPACK_INCLUDES="-I$msgpack_inc_path" |