summaryrefslogtreecommitdiff
path: root/libs/spandsp3/patches/02-do-not-check-for-libxml2.patch
diff options
context:
space:
mode:
Diffstat (limited to 'libs/spandsp3/patches/02-do-not-check-for-libxml2.patch')
-rw-r--r--libs/spandsp3/patches/02-do-not-check-for-libxml2.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/libs/spandsp3/patches/02-do-not-check-for-libxml2.patch b/libs/spandsp3/patches/02-do-not-check-for-libxml2.patch
new file mode 100644
index 0000000..25aefae
--- /dev/null
+++ b/libs/spandsp3/patches/02-do-not-check-for-libxml2.patch
@@ -0,0 +1,20 @@
+--- a/configure.ac
++++ b/configure.ac
+@@ -231,6 +231,9 @@ then
+ AC_CHECK_HEADERS([X11/X.h])
+ fi
+
++# Note: the libxml2 checks below introduce host include paths into the
++# build, so we turn them off.
++if test -n "$enable_tests" ; then # OpenWrt doesn't build the tests
+ # Determine XML2 include path
+ AC_MSG_CHECKING(for libxml/xmlmemory.h)
+
+@@ -259,6 +262,7 @@ fi
+ AC_CHECK_HEADERS([libxml/xmlmemory.h])
+ AC_CHECK_HEADERS([libxml/parser.h])
+ AC_CHECK_HEADERS([libxml/xinclude.h])
++fi # OpenWrt doesn't build the tests
+
+ AC_LANG([C++])
+ AC_CHECK_HEADERS([FL/Fl.H])