Deleted Added
full compact
2c2
< AC_INIT([file],[5.25],[christos@astron.com])
---
> AC_INIT([file],[5.32],[christos@astron.com])
36a37,41
> AC_MSG_CHECKING(for zlib support)
> AC_ARG_ENABLE(zlib,
> [AS_HELP_STRING([--disable-zlib], [disable zlib compression support @<:@default=auto@:>@])])
> AC_MSG_RESULT($enable_zlib)
>
87c92,94
< AC_CHECK_HEADERS(zlib.h)
---
> if test "$enable_zlib" != "no"; then
> AC_CHECK_HEADERS(zlib.h)
> fi
148c155
< AC_REPLACE_FUNCS(getopt_long asprintf vasprintf strlcpy strlcat getline ctime_r asctime_r localtime_r gmtime_r pread strcasestr fmtcheck)
---
> AC_REPLACE_FUNCS(getopt_long asprintf vasprintf strlcpy strlcat getline ctime_r asctime_r localtime_r gmtime_r pread strcasestr fmtcheck dprintf)
151c158,160
< AC_CHECK_LIB(z,gzopen)
---
> if test "$enable_zlib" != "no"; then
> AC_CHECK_LIB(z, gzopen)
> fi
158a168,176
> dnl Final sanity checks
> if test "$enable_zlib" = "yes"; then
> if test "$ac_cv_header_zlib_h$ac_cv_lib_z_gzopen" != "yesyes"; then
> AC_MSG_ERROR([zlib support requested but not found])
> fi
> elif test "$ac_cv_header_zlib_h$ac_cv_lib_z_gzopen" = "yesyes"; then
> AC_DEFINE([ZLIBSUPPORT], 1, [Enable zlib compression support])
> fi
>