X-Git-Url: https://git.wh0rd.org/?a=blobdiff_plain;ds=sidebyside;f=configure.in;h=768a92e20d1d927c2abb7fceb373dd6ea82b4720;hb=4d5ed2f38cb1dce0244a05f94c8aec7f725a1f33;hp=7906e16dd3c780fb639f2581a7815574309907ef;hpb=79dfd5d87f557a7914002362e78920ad42243ac9;p=dump.git diff --git a/configure.in b/configure.in index 7906e16..768a92e 100644 --- a/configure.in +++ b/configure.in @@ -294,6 +294,19 @@ if test "$readline_h" = no -o "$readline_lib" = no; then fi fi +dnl +dnl Check for zlib headers and libraries +dnl +AC_CHECK_HEADER(zlib.h, [zlib_h=yes], [zlib_h=no]) +AC_CHECK_LIB(z, compress2, [zlib_lib=yes], [zlib_lib=no]) +if test "$zlib_h" = yes -a "$zlib_lib" = yes; then + ZLIB="-lz" + AC_DEFINE(HAVE_ZLIB) +else + ZLIB="" +fi +AC_SUBST(ZLIB) + dnl dnl Check for library functions dnl