diff options
author | Sascha Schumann <sas@php.net> | 2003-06-27 00:37:21 +0000 |
---|---|---|
committer | Sascha Schumann <sas@php.net> | 2003-06-27 00:37:21 +0000 |
commit | 7c5afebdb8bd3a4a89817ef68656836de3af7d40 (patch) | |
tree | 9256b6abcacca48ef55bee748a7604d3ae49e42e /ext/zlib | |
parent | e715fb00f8850990d51cee4e08e84a58f0eb0012 (diff) | |
download | php-git-7c5afebdb8bd3a4a89817ef68656836de3af7d40.tar.gz |
Don't add -L/usr/lib
Diffstat (limited to 'ext/zlib')
-rw-r--r-- | ext/zlib/config0.m4 | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/ext/zlib/config0.m4 b/ext/zlib/config0.m4 index e407ff0742..c174a3bcbc 100644 --- a/ext/zlib/config0.m4 +++ b/ext/zlib/config0.m4 @@ -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) |