Don't add -L/usr/lib

This commit is contained in:
Sascha Schumann 2003-06-27 00:37:21 +00:00
parent e715fb00f8
commit 7c5afebdb8

View File

@ -36,12 +36,17 @@ if test "$PHP_ZLIB" != "no" -o "$PHP_ZLIB_DIR" != "no"; then
AC_MSG_ERROR(Cannot find libz)
fi
case $ZLIB_DIR in
/usr) ac_extra= ;;
*) ac_extra=-L$ZLIB_DIR/lib ;;
esac
PHP_CHECK_LIBRARY(z, gzgets, [
AC_DEFINE(HAVE_ZLIB,1,[ ])
],[
AC_MSG_ERROR(ZLIB extension requires zlib >= 1.0.9)
],[
-L$ZLIB_DIR/lib
$ac_extra
])
PHP_ADD_LIBPATH($ZLIB_DIR/lib, ZLIB_SHARED_LIBADD)