X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=configure.ac;h=a265891916b24958955788dd428d9f8b45441bbc;hb=4f4d6afe8ddda8c4ec806df6c301497e03f20daa;hp=948585a503721c97d46a93a29137945109dc8a40;hpb=a363c4a443e4ae3842a601e5b4ee1c8a9a0b3fc6;p=shibboleth%2Fcpp-opensaml.git diff --git a/configure.ac b/configure.ac index 948585a..a265891 100644 --- a/configure.ac +++ b/configure.ac @@ -243,9 +243,19 @@ AC_ARG_WITH(xmltooling, fi]) LIBS="-lxmltooling $LIBS" AC_CHECK_HEADER([xmltooling/XMLToolingConfig.h],,AC_MSG_ERROR([unable to find xmltooling header files])) + AC_TRY_LINK( - [#include ], - [xmltooling::HTTPResponse::sanitizeURL("http://test")], + [ +#include +#include + ], + [ +#if _XMLTOOLING_VERSION >= 10400 +xmltooling::XMLToolingConfig::getConfig(); +#else +#error Need XMLTooling version 1.4 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])])