X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=autoconf%2Fpecl%2Fzlib.m4;fp=autoconf%2Fpecl%2Fzlib.m4;h=71fd5a367a00cb1f665210783466c74fc61a865a;hp=0000000000000000000000000000000000000000;hb=592c25cc9ea0b72843c2c2de84bd144e00a3231c;hpb=01751b935246b4483a50cbfca959de221e353085 diff --git a/autoconf/pecl/zlib.m4 b/autoconf/pecl/zlib.m4 new file mode 100644 index 0000000..71fd5a3 --- /dev/null +++ b/autoconf/pecl/zlib.m4 @@ -0,0 +1,12 @@ +dnl +dnl PECL_CHECK_ZLIB( +dnl +dnl Calls PECL_CHECK_CUSTOM(zlib ...) for its tests. +dnl Call PECL_CHECK_DONE(zlib[, success]) yourself when you're done +dnl with any subtests. This is IMPORTANT! +dnl +AC_DEFUN([PECL_CHECK_ZLIB], [ + PECL_CHECK_CUSTOM(zlib, ["$1" "$PHP_ZLIB_DIR" "$PHP_ZLIB"], zlib.h, z, + [$($EGREP "define ZLIB_VERSION" "$path/include/zlib.h" | $SED -e 's/@<:@^0-9\.@:>@//g')]) + ifelse([$2],,,[PECL_HAVE_VERSION(zlib, $2)]) +]) \ No newline at end of file