From 2b01797b71f857701efcb84bd3669585cb45febb Mon Sep 17 00:00:00 2001 From: Scott Cantor Date: Mon, 22 Sep 2008 15:43:51 +0000 Subject: [PATCH] https://issues.shibboleth.net/jira/browse/CPPOST-20 --- configure.ac | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) 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" -- 2.1.4