3 @@ -20709,7 +20709,6 @@
4 clean_CPPFLAGS=$CPPFLAGS
9 # Check whether --with-zlib was given.
10 if test "${with_zlib+set}" = set; then :
11 @@ -20718,6 +20719,7 @@
14 if test "$OPT_ZLIB" = "no" ; then
16 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: zlib disabled" >&5
17 $as_echo "$as_me: WARNING: zlib disabled" >&2;}
19 @@ -20725,6 +20725,21 @@
23 + if test -n "$ZLIB_CFLAGS$ZLIB_LIBS"; then
24 + CPPFLAGS="$CPPFLAGS $ZLIB_CFLAGS"
25 + LIBS="$ZLIB_LIBS $LIBS"
29 +$as_echo "#define HAVE_ZLIB_H 1" >>confdefs.h
32 +$as_echo "#define HAVE_LIBZ 1" >>confdefs.h
38 if test -z "$OPT_ZLIB" ; then
40 if test -n "$PKG_CONFIG"; then
41 @@ -21005,6 +21020,7 @@
42 $as_echo "$as_me: found both libz and libz.h header" >&6;}
43 curl_zlib_msg="enabled"
48 if test x"$AMFIXLIB" = x1; then
52 clean_CPPFLAGS=$CPPFLAGS
53 clean_LDFLAGS=$LDFLAGS
57 AS_HELP_STRING([--with-zlib=PATH],[search for zlib in PATH])
58 AS_HELP_STRING([--without-zlib],[disable use of zlib]),
59 [OPT_ZLIB="$withval"])
61 if test "$OPT_ZLIB" = "no" ; then
63 AC_MSG_WARN([zlib disabled])
65 if test "$OPT_ZLIB" = "yes" ; then
69 + if test -n "$ZLIB_CFLAGS$ZLIB_LIBS"; then
70 + CPPFLAGS="$CPPFLAGS $ZLIB_CFLAGS"
71 + LIBS="$ZLIB_LIBS $LIBS"
74 + AC_DEFINE(HAVE_ZLIB_H, 1, [if you have the zlib.h header file])
75 + AC_DEFINE(HAVE_LIBZ, 1, [if zlib is available])
80 if test -z "$OPT_ZLIB" ; then
81 CURL_CHECK_PKGCONFIG(zlib)
84 AC_MSG_NOTICE([found both libz and libz.h header])
85 curl_zlib_msg="enabled"
90 dnl set variable for use in automakefile(s)