Added version check for saml
authorcantor <cantor@cb58f699-b61c-0410-a6fe-9272a202ed29>
Thu, 8 Apr 2004 23:26:08 +0000 (23:26 +0000)
committercantor <cantor@cb58f699-b61c-0410-a6fe-9272a202ed29>
Thu, 8 Apr 2004 23:26:08 +0000 (23:26 +0000)
git-svn-id: https://svn.middleware.georgetown.edu/cpp-sp/trunk@973 cb58f699-b61c-0410-a6fe-9272a202ed29

configure.ac

index bf80d8a..7a46547 100644 (file)
@@ -152,11 +152,15 @@ AC_CHECK_HEADER([saml/saml.h],,
                 AC_MSG_ERROR([unable to find saml header files]))
 LIBS="-lsaml $LIBS"
 AC_TRY_LINK(
-        [#include <saml/saml.h>],
-        [saml::SAMLConfig::getConfig()],
+       [#include <saml/saml.h>
+#include <saml/version.h>],
+       [#if _OPENSAML_VERSION >= 10000
+saml::SAMLConfig::getConfig();
+#else
+#error Need OpenSAML version 1.0 or higher
+#endif],
         [AC_DEFINE(HAVE_SAML,1,[Define if saml library was found])],
-        [AC_MSG_ERROR([unable to link with saml])])
-
+        [AC_MSG_ERROR([unable to link with saml, or version too old])])
 
 # output the underlying makefiles
 WANT_SUBDIRS="doc shib schemas configs shib-target shar siterefresh test xmlproviders"