1 dnl Check to find the zlib headers/libraries
6 AS_HELP_STRING([--with-zlib=DIR], [zlib base directory, or:]),
8 CPPFLAGS="$CPPFLAGS -I$withval/include"
9 LDFLAGS="$LDFLAGS -L$withval/lib"]
12 AC_ARG_WITH(zlib-include,
13 AS_HELP_STRING([--with-zlib-include=DIR], [zlib headers directory]),
14 [zlib_include="$withval"
15 CPPFLAGS="$CPPFLAGS -I$withval"]
19 AS_HELP_STRING([--with-zlib-lib=DIR], [zlib library directory]),
21 LDFLAGS="$LDFLAGS -L$withval"]
24 AC_CHECK_HEADERS(zlib.h,
26 [AC_MSG_ERROR("zlib header files not found."); break]
29 AC_CHECK_LIB(z, compress2,
31 [AC_MSG_ERROR("zlib libraries not found.")]