From b945564afc276a3a60a6252edadbfe71cdf4f65f Mon Sep 17 00:00:00 2001 From: Fabian Greffrath Date: Wed, 26 Mar 2014 13:14:11 +0100 Subject: Add explicit check for libz Fixes static linking and libpng won't link without it anyway.--- configure.ac | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 4d63d1e0..a9c3d8cb 100644 --- a/configure.ac +++ b/configure.ac @@ -86,7 +86,8 @@ AC_SDL_MAIN_WORKAROUND([ [Build without libpng @<:@default=check@:>@]), [], [ - AC_CHECK_LIB(png, png_get_io_ptr, [], [], -lz) + AC_CHECK_LIB(z, zlibVersion) + AC_CHECK_LIB(png, png_get_io_ptr) ]) AC_CHECK_LIB(m, log) -- cgit v1.2.3