summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-libs/neon/files/neon-0.30.1-xml2-config.patch')
-rw-r--r--net-libs/neon/files/neon-0.30.1-xml2-config.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/net-libs/neon/files/neon-0.30.1-xml2-config.patch b/net-libs/neon/files/neon-0.30.1-xml2-config.patch
new file mode 100644
index 000000000000..1290101844ca
--- /dev/null
+++ b/net-libs/neon/files/neon-0.30.1-xml2-config.patch
@@ -0,0 +1,15 @@
+locate the $CHOST prefixed version of xml2-config by default
+
+would be better to use pkg-config here, but this patch is minimally invasive
+
+--- a/macros/neon-xml-parser.m4
++++ b/macros/neon-xml-parser.m4
+@@ -44,7 +44,7 @@ AC_CHECK_HEADER(expat.h,
+
+ dnl Find libxml2: run $1 if found, else $2
+ AC_DEFUN([NE_XML_LIBXML2], [
+-AC_CHECK_PROG(XML2_CONFIG, xml2-config, xml2-config)
++AC_CHECK_TOOL(XML2_CONFIG, xml2-config, xml2-config)
+ if test -n "$XML2_CONFIG"; then
+ neon_xml_parser_message="libxml `$XML2_CONFIG --version`"
+ AC_DEFINE(HAVE_LIBXML, 1, [Define if you have libxml])