16 lines
697 B
Text
16 lines
697 B
Text
$NetBSD: patch-ac,v 1.2 2012/12/25 21:04:32 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*|28*|29*) 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`"
|