]> git.sesse.net Git - vlc/blobdiff - configure.ac
Require libxml2 < 2.7
[vlc] / configure.ac
index d502f2c16a9483da9c767c364da6cea91260af3b..1d8c12779798cb1868f2bea0714c745a5bfc19c2 100644 (file)
@@ -4311,13 +4311,13 @@ dnl
 AC_ARG_ENABLE(libxml2,
   [  --enable-libxml2        libxml2 support (default enabled)])
 AS_IF([test "${enable_libxml2}" != "no"], [
-  PKG_CHECK_MODULES([XML2], [libxml-2.0 >= 2.5], [
+  PKG_CHECK_MODULES([XML2], [libxml-2.0 >= 2.5 libxml-2.0 < 2.7], [
     VLC_ADD_CPPFLAGS([xml],[${XML2_CFLAGS}])
     VLC_ADD_LIBS([xml],[${XML2_LIBS}])
     VLC_ADD_PLUGIN([xml])
   ], [
     AS_IF([test "x${enable_xml2}" != "x"], [
-      AC_MSG_ERROR([Could not find libxml2])
+      AC_MSG_ERROR([Could not find libxml version 2.5 or 2.6])
     ])
   ])
 ])