From 25b9760a42929c27be4399cd3d7bff5bb71b67db Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Fri, 9 Sep 2011 12:08:54 +1000 Subject: build: a more robust zlib test Just in-case, and done this way due to the #define maze that applies to this function. No actual host has been found that needs this yet. Andrew Bartlett --- lib/zlib/wscript | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lib/zlib') diff --git a/lib/zlib/wscript b/lib/zlib/wscript index a091de6b5f..42d6f76f14 100644 --- a/lib/zlib/wscript +++ b/lib/zlib/wscript @@ -9,10 +9,13 @@ def configure(conf): #else #error "ZLIB_VERNUM < 0x1230" #endif + z_stream *z; + inflateInit2(z, -15); ''', headers='zlib.h', + lib='z', local_include=False, - msg='Checking for ZLIB_VERNUM >= 0x1230', + msg='Checking for ZLIB_VERNUM >= 0x1230 and working link to zlib', define='HAVE_ZLIB') # If we don't do this then we will receive an error that lib 'z' -- cgit