Skip to content

Commit 5acdd41

Browse files
committed
Make zlib-dir actually mean something during the check
1 parent c32bac8 commit 5acdd41

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ext/zlib/config0.m4

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,12 @@ if test "$PHP_ZLIB" != "no" -o "$PHP_ZLIB_DIR" != "no"; then
3636
AC_MSG_ERROR(Cannot find libz)
3737
fi
3838

39-
AC_CHECK_LIB(z, gzgets, [
39+
PHP_CHECK_LIBRARY(z, gzgets, [
4040
AC_DEFINE(HAVE_ZLIB,1,[ ])
4141
],[
4242
AC_MSG_ERROR(ZLIB extension requires zlib >= 1.0.9)
43+
],[
44+
-L$ZLIB_DIR/lib
4345
])
4446

4547
PHP_ADD_LIBPATH($ZLIB_DIR/lib, ZLIB_SHARED_LIBADD)

0 commit comments

Comments
 (0)