From: Wilfried Göesgens Date: Tue, 27 Jan 2009 23:06:52 +0000 (+0000) Subject: * detect zlib, don't link it. libcitadel does this for us. X-Git-Tag: v7.86~1553 X-Git-Url: https://code.citadel.org/?a=commitdiff_plain;h=9ef8ab5f3e9aa99b2628cfe52bcdbaad5e3ee4bf;p=citadel.git * detect zlib, don't link it. libcitadel does this for us. --- diff --git a/citadel/configure.ac b/citadel/configure.ac index f6c780b47..8d0ed34c4 100644 --- a/citadel/configure.ac +++ b/citadel/configure.ac @@ -142,6 +142,22 @@ AC_ARG_WITH(docdir, ) +dnl Checks for the zlib compression library. +if test "x$with_zlib" != xno ; then + AC_CHECK_HEADERS(zlib.h, + [AC_CHECK_LIB(z, zlibVersion, + [ok_zlib=yes],, + )]) +fi + +if test "x$ok_zlib" = xyes ; then +dnl libcitadel will bring libz, so we don't need it here. LDFLAGS="-lz $LDFLAGS" + AC_DEFINE(HAVE_ZLIB, [], [define this if you have zlib compression available]) +fi + + + + dnl Here is the check for a libc integrated iconv AC_ARG_ENABLE(iconv, [ --disable-iconv do not use iconv charset conversion], diff --git a/citadel/debian/control b/citadel/debian/control index 996738909..4e9b3785f 100644 --- a/citadel/debian/control +++ b/citadel/debian/control @@ -5,7 +5,7 @@ Maintainer: Wilfried Goesgens Build-Depends: debhelper (>= 4), po-debconf, bison, autotools-dev, libdb4.4-dev | libdb4.3-dev, libical-dev, libldap2-dev, libncurses5-dev, libpam0g-dev, libsieve2-dev, libssl-dev, libexpat1-dev, libcitadel-dev, - libcurl4-openssl-dev | libcurl3-openssl-dev + libcurl4-openssl-dev | libcurl3-openssl-dev, zlib1g-dev Standards-Version: 3.7.3 Package: citadel-server