summaryrefslogtreecommitdiff
path: root/net/microdc2/patches/patch-ac
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2008-10-02 16:34:18 +0000
committerjoerg <joerg@pkgsrc.org>2008-10-02 16:34:18 +0000
commit64dc825cda0088831fc230597f8bef4f8cc63d51 (patch)
treec369eb3330c59e93ec8face50f6cc7d65549324e /net/microdc2/patches/patch-ac
parentca8b89debeab1184bc8afc5f4b44645cdd3ba892 (diff)
downloadpkgsrc-64dc825cda0088831fc230597f8bef4f8cc63d51.tar.gz
Fix build with libxml2-2.7 and newer.
Diffstat (limited to 'net/microdc2/patches/patch-ac')
-rw-r--r--net/microdc2/patches/patch-ac16
1 files changed, 16 insertions, 0 deletions
diff --git a/net/microdc2/patches/patch-ac b/net/microdc2/patches/patch-ac
new file mode 100644
index 00000000000..563e8b6294b
--- /dev/null
+++ b/net/microdc2/patches/patch-ac
@@ -0,0 +1,16 @@
+$NetBSD: patch-ac,v 1.1 2008/10/02 16:34:18 joerg Exp $
+
+--- configure.ac.orig 2006-12-24 18:43:36.000000000 +0000
++++ configure.ac
+@@ -52,7 +52,10 @@ if test -n "$XML_CONFIG" && test -n "$TR
+ if test $LIBXML2_VERSION -eq 2616; then
+ AC_DEFINE([XML_SAVE_FORMAT], [1], [The libxml2 version 2.6.16 has no such option defined in the library headers])
+ fi
+- if test $LIBXML2_VERSION -ge 2616; then
++ good_libxml2=no
++ case "$LIBXML2_VERSION" in 27*) good_libxml2=yes;; esac
++ test $LIBXML2_VERSION -ge 2616 && good_libxml2=yes
++ if test $good_libxml2 = yes; then
+ AC_DEFINE([HAVE_LIBXML2])
+ LIBXML2_LIBS="`$XML_CONFIG --libs`"
+ LIBXML2_CFLAGS="`$XML_CONFIG --cflags`"