projects
/
shibboleth
/
cpp-opensaml.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix zlib link test
[shibboleth/cpp-opensaml.git]
/
configure.ac
diff --git
a/configure.ac
b/configure.ac
index
74d0cb7
..
8ed1f41
100644
(file)
--- a/
configure.ac
+++ b/
configure.ac
@@
-102,7
+102,11
@@
else
fi
AC_CHECK_HEADER([zlib.h],,AC_MSG_ERROR([unable to find zlib header files]))
fi
AC_CHECK_HEADER([zlib.h],,AC_MSG_ERROR([unable to find zlib header files]))
-AC_CHECK_LIB([z],[deflateInit2_],[],AC_MSG_ERROR([unable to link with zlib library]))
+AC_LINK_IFELSE(
+ [AC_LANG_PROGRAM([[#include <zlib.h>]],
+ [[zlibVersion()]])],,
+ [AC_MSG_ERROR([unable to link with zlib])])
+
# OpenSSL settings
AC_ARG_WITH(openssl,
# OpenSSL settings
AC_ARG_WITH(openssl,