From fd7fc91e1274812e217c7201153c556377e449da Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Mon, 8 Jul 2013 15:07:51 +0200 Subject: configure: Call a function from zlib in check_zlib() In order to cause the linker to get called and thus the check for the presence of the library (not just the headers) to be performed, call gzopen(). Also pass the proper linker flags to $CC. Signed-off-by: Tobias Klauser --- configure | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'configure') diff --git a/configure b/configure index 74e1c14..6f5b54b 100755 --- a/configure +++ b/configure @@ -233,10 +233,12 @@ check_zlib() void main(void) { gzFile fp; + + fp = gzopen("foo.gz", "rb"); } EOF - $CC -o $TMPDIR/ztest $TMPDIR/ztest.c >> $TMPDIR/config.log 2>&1 + $CC -o $TMPDIR/ztest $TMPDIR/ztest.c -lz >> $TMPDIR/config.log 2>&1 if [ ! -x $TMPDIR/ztest ] ; then echo "[NO]" MISSING_DEFS=1 -- cgit v1.2.3-54-g00ecf