diff options
author | Kristian Høgsberg <krh@bitplanet.net> | 2011-01-11 13:48:03 -0500 |
---|---|---|
committer | Kristian Høgsberg <krh@bitplanet.net> | 2011-01-11 13:48:03 -0500 |
commit | 08c40c3550daa17738b78c3922fa94609638b13a (patch) | |
tree | 7b78f566618a8e8fbb969305afa102c0c79b1628 /configure.ac | |
parent | 1d3e93922d8b4da49491a2d5913b10b8db82c8ff (diff) |
clients: Make poppler-glib optional
Just don't compile the view client.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 5568218..31654a6 100644 --- a/configure.ac +++ b/configure.ac @@ -25,7 +25,10 @@ PKG_CHECK_MODULES(FFI, [libffi]) PKG_CHECK_MODULES(COMPOSITOR, [egl glesv2 gdk-pixbuf-2.0 libudev >= 136 libdrm >= 2.4.17] xcb-dri2 xcb-xfixes) PKG_CHECK_MODULES(CLIENT, [egl gl cairo gdk-pixbuf-2.0 glib-2.0 gobject-2.0 xkbcommon libdrm]) -PKG_CHECK_MODULES(POPPLER, [poppler-glib gdk-2.0]) +PKG_CHECK_MODULES(POPPLER, [poppler-glib gdk-2.0], + [have_poppler=yes], [have_poppler=no]) +AM_CONDITIONAL(HAVE_POPPLER, test "x$have_poppler" = "xyes") + PKG_CHECK_MODULES(CAIRO_GL, [cairo-gl], [have_cairo_gl=yes], [have_cairo_gl=no]) AS_IF([test "x$have_cairo_gl" = "xyes"], |