default to system zlib on contemporary unices

This commit is contained in:
Caolán McNamara 2011-03-29 16:40:32 +01:00
parent d7c0f54934
commit 29dbc36ce0

View file

@ -3865,9 +3865,22 @@ AC_SUBST(SYSTEM_STDLIBS)
dnl ===================================================================
dnl Check for system zlib
dnl ===================================================================
if test "$_os" = "Darwin" && test "$with_system_zlib" != "no"; then
with_system_zlib=yes
if test "$with_system_zlib" != "no"; then
if test "$_os" = "Darwin"; then
with_system_zlib=yes
elif test "$_os" = "Linux"; then
with_system_zlib=yes
elif test "$_os" = "FreeBSD"; then
with_system_zlib=yes
elif test "$_os" = "DragonFly"; then
with_system_zlib=yes
elif test "$_os" = "NetBSD"; then
with_system_zlib=yes
elif test "$_os" = "OpenBSD"; then
with_system_zlib=yes
fi
fi
AC_MSG_CHECKING([which zlib to use])
if test -n "$with_system_zlib" -o -n "$with_system_libs" && \
test "$with_system_zlib" != "no"; then