freebsd-ports/net-p2p/microdc2/files/patch-ab
Jeremy Messenger 83cd45161f Fix the build w/ libxml2 2.7.x.
Obtained from:	pkgsrc
Reported by:	pointyhat via pav
2009-01-12 04:30:42 +00:00

16 lines
470 B
Text

$NetBSD: patch-ab,v 1.1 2008/10/02 16:34:18 joerg Exp $
--- configure.orig 2006-12-24 18:45:07.000000000 +0000
+++ configure
@@ -21508,7 +21508,10 @@ cat >>confdefs.h <<\_ACEOF
_ACEOF
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
cat >>confdefs.h <<\_ACEOF
#define HAVE_LIBXML2 1
_ACEOF