From: Scott Cantor Date: Mon, 22 Sep 2008 15:43:51 +0000 (+0000) Subject: https://issues.shibboleth.net/jira/browse/CPPOST-20 X-Git-Tag: 2.2.0~51 X-Git-Url: http://www.project-moonshot.org/gitweb/?p=shibboleth%2Fcpp-opensaml.git;a=commitdiff_plain;h=2b01797b71f857701efcb84bd3669585cb45febb https://issues.shibboleth.net/jira/browse/CPPOST-20 --- diff --git a/configure.ac b/configure.ac index e51f74a..e1490f4 100644 --- a/configure.ac +++ b/configure.ac @@ -234,11 +234,15 @@ AC_ARG_WITH(xmltooling, LIBS="-lxmltooling $LIBS" AC_CHECK_HEADER([xmltooling/XMLToolingConfig.h],,AC_MSG_ERROR([unable to find xmltooling header files])) AC_TRY_LINK( - [#include ], - [xmltooling::XMLToolingConfig::getConfig().init()], - [AC_DEFINE(HAVE_LIBXMLTOOLING,1,[Define if XML-Tooling library was found])], - [AC_MSG_ERROR([unable to link with xmltooling library])] - ) + [#include +#include ], + [#if _XMLTOOLING_VERSION >= 10100 +xmltooling::XMLToolingConfig::getConfig(); +#else +#error Need XMLTooling version 1.1 or higher +#endif], + [AC_DEFINE(HAVE_XMLTOOLING,1,[Define if xmltooling library was found])], + [AC_MSG_ERROR([unable to link with XMLTooling, or version was too old])]) # Check for unit test support CXXTEST="/usr/bin/cxxtestgen.pl"