[cpp-opensaml COMMIT] /branches/REL_2/configure.ac

noreply at shibboleth.net noreply at shibboleth.net
Tue Nov 15 20:10:22 GMT 2011


Author: scantor
Date: Tue Nov 15 20:10:22 2011
New Revision: 679

URL: http://svn.shibboleth.net/view/cpp-opensaml?rev=679&view=rev
Log:
Fix zlib link test

Modified:
    branches/REL_2/configure.ac

Modified: branches/REL_2/configure.ac
URL: http://svn.shibboleth.net/view/cpp-opensaml/branches/REL_2/configure.ac?rev=679&r1=678&r2=679&view=diff
==============================================================================
--- branches/REL_2/configure.ac (original)
+++ branches/REL_2/configure.ac Tue Nov 15 20:10:22 2011
@@ -102,7 +102,11 @@
 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,



More information about the commits mailing list