projects
/
shibboleth
/
cpp-opensaml.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
9f047a9
)
Check for xmltooling >= 1.4
author
Scott Cantor
<cantor.2@osu.edu>
Thu, 22 Jul 2010 19:00:10 +0000
(19:00 +0000)
committer
Scott Cantor
<cantor.2@osu.edu>
Thu, 22 Jul 2010 19:00:10 +0000
(19:00 +0000)
configure.ac
patch
|
blob
|
history
diff --git
a/configure.ac
b/configure.ac
index
948585a
..
a265891
100644
(file)
--- 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]))
fi])
LIBS="-lxmltooling $LIBS"
AC_CHECK_HEADER([xmltooling/XMLToolingConfig.h],,AC_MSG_ERROR([unable to find xmltooling header files]))
+
AC_TRY_LINK(
AC_TRY_LINK(
- [#include <xmltooling/io/HTTPResponse.h>],
- [xmltooling::HTTPResponse::sanitizeURL("http://test")],
+ [
+#include <xmltooling/XMLToolingConfig.h>
+#include <xmltooling/version.h>
+ ],
+ [
+#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])])
[AC_DEFINE(HAVE_XMLTOOLING,1,[Define if xmltooling library was found])],
[AC_MSG_ERROR([unable to link with XMLTooling, or version was too old])])