]> granicus.if.org Git - libevent/commitdiff
Skip check for zlib if we have no zlib.h
authorHarlan Stenn <stenn@ntp.org>
Sun, 13 Feb 2011 06:34:40 +0000 (01:34 -0500)
committerNick Mathewson <nickm@torproject.org>
Tue, 22 Feb 2011 05:25:18 +0000 (00:25 -0500)
configure.in

index 626e6b13350edd229c63f69ae862b212e506a160..92a458091f20acb18bbe180edf3c4fa1d1cd5676 100644 (file)
@@ -60,6 +60,9 @@ AC_SEARCH_LIBS([inet_aton], [resolv])
 AC_SEARCH_LIBS([clock_gettime], [rt])
 AC_SEARCH_LIBS([sendfile], [sendfile])
 
+AC_CHECK_HEADERS([zlib.h])
+
+if test "x$ac_cv_header_zlib_h" = "xyes"; then
 dnl Determine if we have zlib for regression tests
 dnl Don't put this one in LIBS
 save_LIBS="$LIBS"
@@ -72,6 +75,7 @@ AC_SEARCH_LIBS([inflateEnd], [z],
        AC_DEFINE(HAVE_LIBZ, 1, [Define if the system has zlib])])
 LIBS="$save_LIBS"
 AC_SUBST(ZLIB_LIBS)
+fi
 AM_CONDITIONAL(ZLIB_REGRESS, [test "$have_zlib" = "yes"])
 
 dnl See if we have openssl.  This doesn't go in LIBS either.