summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Johnson <ajohnson@redneon.com>2012-01-18 21:19:43 +1030
committerAdrian Johnson <ajohnson@redneon.com>2012-01-18 21:19:43 +1030
commitf6c7aa752f9455bba1aa3c72e0998e7911c1d43e (patch)
tree397a1f43d015ac3b800e2cb51b7739c70200e956
parent100488ec7db2d1f3e25bfda42c1603ca86696195 (diff)
configure.ac: print the glib version required if not found
-rw-r--r--configure.ac10
1 files changed, 8 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index f08906de..5b1d04a6 100644
--- a/configure.ac
+++ b/configure.ac
@@ -421,6 +421,7 @@ fi
AC_SUBST(CAIRO_FEATURE)
AC_SUBST(CAIRO_REQ)
+use_glib=""
found_introspection=no
if test x$enable_cairo_output = xyes; then
POPPLER_GLIB_DISABLE_DEPRECATED=""
@@ -438,7 +439,8 @@ if test x$enable_cairo_output = xyes; then
elif test x$enable_poppler_glib = xtry; then
PKG_CHECK_MODULES(POPPLER_GLIB, glib-2.0 >= $GLIB_REQUIRED gobject-2.0 >= $GLIB_REQUIRED cairo >= $CAIRO_VERSION,
[enable_poppler_glib="yes"],
- [enable_poppler_glib="no"])
+ [enable_poppler_glib="no"
+ use_glib="no (requires glib-2.0 >= $GLIB_REQUIRED gobject-2.0 >= $GLIB_REQUIRED cairo >= $CAIRO_VERSION)"])
fi
if test x$enable_poppler_glib = xyes; then
# Check for introspection
@@ -452,8 +454,12 @@ else
if test x$enable_poppler_glib = xyes; then
AC_MSG_ERROR("Cairo output is required to build glib frontend")
fi
+ use_glib="no (requires cairo output)"
enable_poppler_glib="no"
fi
+if test x$use_glib = x; then
+ use_glib=$enable_poppler_glib
+fi
AM_CONDITIONAL(BUILD_POPPLER_GLIB, test x$enable_poppler_glib = xyes)
AM_CONDITIONAL(HAVE_INTROSPECTION, test "x$found_introspection" = "xyes")
AC_SUBST(GLIB_REQ)
@@ -651,7 +657,7 @@ echo " font configuration: $with_font_configuration"
echo " splash output: $enable_splash_output"
echo " cairo output: $use_cairo"
echo " qt4 wrapper: $enable_poppler_qt4"
-echo " glib wrapper: $enable_poppler_glib"
+echo " glib wrapper: $use_glib"
echo " introspection: $found_introspection"
echo " cpp wrapper: $enable_poppler_cpp"
echo " use gtk-doc: $enable_gtk_doc"