AC_SUBST HAVE_LIBZ for curl-config.in
authorDaniel Stenberg <daniel@haxx.se>
Mon, 2 Sep 2002 22:45:46 +0000 (22:45 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 2 Sep 2002 22:45:46 +0000 (22:45 +0000)
configure.in
curl-config.in

index f4702b7688bfdcbfceb2ee041eac567eccf6fc01..d07a0c8ba6f99be0d0920cfa2d41be8accf7a228 100644 (file)
@@ -536,7 +536,9 @@ fi
 dnl AC_CHECK_FUNC(gzread, , AC_CHECK_LIB(z, gzread))
 AC_CHECK_LIB(z, gzread, [AM_CONDITIONAL(CONTENT_ENCODING, true) 
                         AC_DEFINE(HAVE_LIBZ)
-                        LIBS="$LIBS -lz"])
+                        LIBS="$LIBS -lz"
+                         HAVE_LIBZ="1"
+                         AC_SUBST(HAVE_LIBZ)])
 
 dnl Default is to try the thread-safe versions of a few functions
 OPT_THREAD=on
index f1b7de2a200a8cc8f92f259a0c460fb286406dcd..052bf345c52328ca948e379f2164d37634c0a67f 100644 (file)
@@ -66,6 +66,9 @@ while test $# -gt 0; do
        if test "@IPV6_ENABLED@" = "1"; then
           echo "IPv6"
         fi
+       if test "@HAVE_LIBZ@" = "1"; then
+          echo "libz"
+        fi
        if test "@CURL_DISABLE_HTTP@" = "1"; then
           echo "HTTP-disabled"
         fi