Print a warning if compiling against libxml2 < 2.6.18 as it may cause XMPP

Fri, 10 Apr 2009 07:16:20 +0000

author
Elliott Sales de Andrade <qulogic@pidgin.im>
date
Fri, 10 Apr 2009 07:16:20 +0000
changeset 26754
216b79c00415
parent 26753
a8dca8faae69
child 26755
5c2c25af0133

Print a warning if compiling against libxml2 < 2.6.18 as it may cause XMPP
messages to be discarded (if not patched).

Fixes #5900.

configure.ac file | annotate | diff | comparison | revisions
--- a/configure.ac	Fri Apr 10 06:32:57 2009 +0000
+++ b/configure.ac	Fri Apr 10 07:16:20 2009 +0000
@@ -706,9 +706,13 @@
 PKG_CHECK_MODULES(LIBXML, [libxml-2.0 >= 2.6.0], , [
 	AC_MSG_RESULT(no)
 	AC_MSG_ERROR([
-
 You must have libxml2 >= 2.6.0 development headers installed to build.
 ])])
+PKG_CHECK_EXISTS([libxml-2.0 >= 2.6.18], , [
+	AC_MSG_WARN([
+Versions of libxml2 < 2.6.18 may contain bugs that could cause XMPP messages to be discarded.
+])])
+
 AC_SUBST(LIBXML_CFLAGS)
 AC_SUBST(LIBXML_LIBS)
 

mercurial