Changed configure test for zlib from compress2() to compressBound()

This commit is contained in:
Thomas Schmitt 2010-01-07 09:42:09 +01:00
parent da23a8166c
commit a68e108333
1 changed files with 4 additions and 2 deletions

View File

@ -196,9 +196,11 @@ AC_ARG_ENABLE(zlib,
if test "x$enable_zlib" = xyes; then
dnl Check whether there is the header for zlib.
dnl If not, erase this macro which would enable use of compress2() and others.
dnl The empty parameter after "compress2" causes -lz.
dnl Linking fails on SuSE 9.0 because zlib has compress2() but lacks
dnl compressBound(). So compressBound is the more modern thing to test.
dnl The empty parameter after "compressBound" causes -lz.
AC_CHECK_HEADER(zlib.h, AC_CHECK_LIB(z, compress2, , ZLIB_DEF= ), ZLIB_DEF= )
AC_CHECK_HEADER(zlib.h, AC_CHECK_LIB(z, compressBound, , ZLIB_DEF= ), ZLIB_DEF= )