From ac030867542ec46c825f88a8ce5773b5a8fb0ce5 Mon Sep 17 00:00:00 2001 From: Kalle Olavi Niemitalo Date: Sun, 17 Feb 2008 18:44:48 +0200 Subject: [PATCH] configure.in: Explain why to check for gzclearerr. --- configure.in | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/configure.in b/configure.in index d365ec43..82c4f027 100644 --- a/configure.in +++ b/configure.in @@ -480,6 +480,11 @@ AC_DEFUN([EL_CONFIG_OPTIONAL_LIBRARY], EL_CONFIG_OPTIONAL_LIBRARY(CONFIG_GPM, gpm, gpm.h, gpm, Gpm_Open, [ --without-gpm disable gpm (mouse) support]) +# ELinks calls deflateInit2 with windowBits = MAX_WBITS | 32, to +# enable automatic decoding of both zlib and gzip headers. This +# feature was added in zlib 1.2.0.2; earlier versions return an error. +# The gzclearerr function was also added in zlib 1.2.0.2, so check for +# that, even though ELinks does not actually call gzclearerr. EL_CONFIG_OPTIONAL_LIBRARY(CONFIG_GZIP, zlib, zlib.h, z, gzclearerr, [ --without-zlib disable zlib support])