shithub: choc

Download patch

ref: b945564afc276a3a60a6252edadbfe71cdf4f65f
parent: 9981c42b4a8ab3000b22b9acf6ad4b0edd4b0ae7
author: Fabian Greffrath <[email protected]>
date: Wed Mar 26 09:14:11 EDT 2014

Add explicit check for libz

Fixes static linking and libpng won't link without it anyway.

--- a/configure.ac
+++ b/configure.ac
@@ -86,7 +86,8 @@
         [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)