summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAbhishek Sharma <sharma.abhishek.it@gmail.com>2011-06-26 12:02:19 +0530
committerAbhishek Sharma <sharma.abhishek.it@gmail.com>2011-06-26 12:11:48 +0530
commit903f13254d71f127bd5221779c3441c93f1ca92b (patch)
treeb633ac1484df67610ed893b2dda91f15e06104ce
parent60f4fd599b62f3e83f7cedd98cb45723397cac1b (diff)
downloadlibcroco-903f13254d71f127bd5221779c3441c93f1ca92b.tar.gz
Adding libxml2 install check whether its present or not
-rw-r--r--configure.in15
1 files changed, 11 insertions, 4 deletions
diff --git a/configure.in b/configure.in
index 29e7f13..aab89dc 100644
--- a/configure.in
+++ b/configure.in
@@ -93,6 +93,7 @@ dnl
dnl check glib-2.0 version
dnl
have_glib2=no
+CROCO_HAVE_GLIB2=0
PKG_CHECK_MODULES(GLIB2,
[glib-2.0 >= $GLIB2_VERSION],
[have_glib2=yes
@@ -105,13 +106,19 @@ fi
AC_SUBST(GLIB2_VERSION)
AC_SUBST(CROCO_HAVE_GLIB2)
+dnl
dnl check libxml2 version
+dnl
have_libxml2=no
CROCO_HAVE_LIBXML2=0
-PKG_CHECK_MODULES(LIBXML2, [libxml-2.0 >= $LIBXML2_VERSION],
- [have_libxml2=yes
- CROCO_HAVE_LIBXML2=1],
- have_libxml2=no)
+PKG_CHECK_MODULES(LIBXML2,
+ [libxml-2.0 >= $LIBXML2_VERSION],
+ [have_libxml2=yes
+ CROCO_HAVE_LIBXML2=1],
+ have_libxml2=no)
+if test "$have_libxml2" = no ; then
+ AC_MSG_ERROR([*** libxml2 not found. See http://xmlsoft.org/])
+fi
AC_SUBST(LIBXML2_VERSION)
AC_SUBST(CROCO_HAVE_LIBXML2)