From d04fd063299d5bb51ad4f1a84aa00beab5ed1170 Mon Sep 17 00:00:00 2001
From: Jerome Duval <jerome.duval@gmail.com>
Date: Fri, 13 Jun 2014 14:18:29 +0000
Subject: haiku patch


diff --git a/configure.ac b/configure.ac
index 1d2e686..1643fe5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -78,7 +78,7 @@ AC_SUBST([NUMBER_VERSION], `printf "0x%02x%02x%02x" $MAJOR_VERSION $MINOR_VERSIO
 # Checks for libraries.
 
 if test "x$with_libexpat" = "xyes"; then
-  AM_PATH_LIBEXPAT
+   PKG_CHECK_MODULES([EXPAT],[expat],[have_libexpat=yes])
 fi
 
 if test "x$with_libxml2" = "xyes" && test "x$have_libexpat" != "xyes"; then
@@ -185,7 +185,7 @@ AC_MSG_NOTICE([summary of build options:
     CPPFLAGS:       ${CPPFLAGS}
     C preprocessor: ${CPP}
     Library types:  Shared=${enable_shared}, Static=${enable_static}
-    Libexpat:       ${have_libexpat} ${EXPAT_CFLAGS} ${EXPAT_LIBS}
+    Libexpat:       ${have_expat} ${EXPAT_CFLAGS} ${EXPAT_LIBS}
     Libxml2:        ${have_libxml2} ${XML_CPPFLAGS} ${XML_LIBS}
     CUnit:          ${have_cunit} ${CUNIT_CFLAGS} ${CUNIT_LIBS}
 ])
-- 
1.8.3.4

