From: Joe Orton Date: Wed, 13 Oct 2004 19:59:17 +0000 (+0000) Subject: * modules/filters/config.m4: Drop check for zutil.h. Add -lz to X-Git-Tag: 2.1.1~148 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0398530061ed190714458b2a81b6a78f01268d48;p=apache * modules/filters/config.m4: Drop check for zutil.h. Add -lz to MOD_DEFLATE_LDADD to correctly support shared mod_deflate against static zlib (where possible). git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@105445 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/filters/config.m4 b/modules/filters/config.m4 index 89b564cdb1..a481e40370 100644 --- a/modules/filters/config.m4 +++ b/modules/filters/config.m4 @@ -35,7 +35,6 @@ APACHE_MODULE(deflate, Deflate transfer encoding support, , , most, [ if test "$enable_deflate" != "no"; then ap_save_includes=$INCLUDES ap_save_ldflags=$LDFLAGS - ap_save_libs=$LIBS ap_save_cppflags=$CPPFLAGS if test "$ap_zlib_base" != "/usr"; then APR_ADDTO(INCLUDES, [-I${ap_zlib_base}/include]) @@ -50,12 +49,12 @@ APACHE_MODULE(deflate, Deflate transfer encoding support, , , most, [ AC_MSG_CHECKING([for zlib library]) AC_TRY_LINK([#include ], [int i = Z_OK;], [AC_MSG_RESULT(found) - AC_CHECK_HEADERS(zutil.h)], + APR_SETVAR(MOD_DEFLATE_LDADD, [-lz])], [AC_MSG_RESULT(not found) enable_deflate=no INCLUDES=$ap_save_includes - LDFLAGS=$ap_save_ldflags - LIBS=$ap_save_libs]) + LDFLAGS=$ap_save_ldflags]) + APR_REMOVEFROM(LIBS, [-lz]) CPPFLAGS=$ap_save_cppflags fi ])