1 dnl Check to find the zlib headers/libraries
6 AS_HELP_STRING([--disable-zlib], [disable zlib compression support]))
7 AS_IF([test "x$enable_zlib" != "xno"], [
8 AC_DEFINE(HAVE_ZLIB, 1, [have zlib compression support])
10 AS_HELP_STRING([--with-zlib=DIR], [zlib base directory, or:]),
12 CPPFLAGS="$CPPFLAGS -I$withval/include"
13 LDFLAGS="$LDFLAGS -L$withval/lib"]
16 AC_ARG_WITH(zlib-include,
17 AS_HELP_STRING([--with-zlib-include=DIR], [zlib headers directory]),
18 [zlib_include="$withval"
19 CPPFLAGS="$CPPFLAGS -I$withval"]
23 AS_HELP_STRING([--with-zlib-lib=DIR], [zlib library directory]),
25 LDFLAGS="$LDFLAGS -L$withval"]
28 AC_CHECK_HEADERS(zlib.h,
30 [AC_MSG_ERROR("zlib header files not found."); break]
33 AC_CHECK_LIB(z, compress2,
35 [AC_MSG_ERROR("zlib libraries not found.")]