Skip to content

Commit

Permalink
Fix bug #65988: Zlib version check fails
Browse files Browse the repository at this point in the history
When an 'include/zlib/' style dir is passed to --with-zlib configure
option the zlib version check fails.
  • Loading branch information
jaybonci authored and petk committed Aug 6, 2018
1 parent b4b14d2 commit c8a9060
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/zlib/config0.m4
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ if test "$PHP_ZLIB" != "no" || test "$PHP_ZLIB_DIR" != "no"; then
esac

AC_MSG_CHECKING([for zlib version >= 1.2.0.4])
ZLIB_VERSION=`$EGREP "define ZLIB_VERSION" $ZLIB_DIR/include/zlib.h | $SED -e 's/[[^0-9\.]]//g'`
ZLIB_VERSION=`$EGREP "define ZLIB_VERSION" $ZLIB_INCDIR/zlib.h | $SED -e 's/[[^0-9\.]]//g'`
AC_MSG_RESULT([$ZLIB_VERSION])
if test `echo $ZLIB_VERSION | $SED -e 's/[[^0-9]]/ /g' | $AWK '{print $1*1000000 + $2*10000 + $3*100 + $4}'` -lt 1020004; then
AC_MSG_ERROR([libz version greater or equal to 1.2.0.4 required])
Expand Down

0 comments on commit c8a9060

Please sign in to comment.