From da6bf143c74126a0e062567e28b0c8e1b20831f0 Mon Sep 17 00:00:00 2001 From: James Booth Date: Sun, 17 May 2015 23:03:04 +0100 Subject: [PATCH] Added expat header check --- configure.ac | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index b4828c0..ae0a5e3 100644 --- a/configure.ac +++ b/configure.ac @@ -15,7 +15,9 @@ PKG_CHECK_MODULES([glib], [glib-2.0 >= 2.26], [], [AC_MSG_ERROR([glib 2.26 or higher is required])]) PKG_CHECK_MODULES([expat], [expat >= 2.0.0], [], - [AC_MSG_ERROR([expat 2.0.0 or higher is required])]) + [AC_CHECK_HEADER([expat.h], + [expat_LIBS="-lexpat"], + [AC_MSG_ERROR([expat 2.0.0 or higher is required])])]) AC_CHECK_LIB([pthread], [main], [], [AC_MSG_ERROR([pthread is required])])