summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2013-07-08 15:07:51 +0200
committerTobias Klauser <tklauser@distanz.ch>2013-07-08 15:09:47 +0200
commitfd7fc91e1274812e217c7201153c556377e449da (patch)
treeb7fb53e786705d6543eb37d7e827e1f0c472face /configure
parentc11ff891614efc8b939d906c00ed63b02f807f13 (diff)
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 <tklauser@distanz.ch>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure4
1 files changed, 3 insertions, 1 deletions
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