From 6fc7f429919503c1fc7dd0bbcd7ad06973325ca3 Mon Sep 17 00:00:00 2001 From: miklosh Date: Sun, 18 Nov 2007 12:42:17 +0000 Subject: [PATCH] Require poppler-glib and poppler-cairo for PDF preview --- configure.ac | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/configure.ac b/configure.ac index 340b7e4a8..75bce9381 100644 --- a/configure.ac +++ b/configure.ac @@ -489,11 +489,11 @@ if test "x$poppler" = "xyes"; then dnl Have to test libpoppler-cairo presence for PDF preview dnl AC_CHECK_HEADER(Magick++.h, magick_ok=yes, magick_ok=no) PKG_CHECK_MODULES(POPPLER_CAIRO, poppler-cairo >= 0.5.9, poppler_cairo=yes, poppler_cairo=no) - if test "x$poppler_cairo" = "xyes"; then - dnl Working libpoppler-cairo found - dnl Check whether the Cairo FreeType backend is available - PKG_CHECK_MODULES(CAIRO_FT, cairo-ft, cairo_ft=yes, cairo_ft=no) - fi + if test "x$poppler_glib" = "xyes" -a "x$poppler_cairo" = "xyes" -a \ + "x$cairo_svg" = "xno" + then + POPPLER_LIBS="$POPPLER_LIBS -lpoppler-glib " + fi fi fi @@ -501,7 +501,7 @@ if test "x$poppler" = "xyes"; then LIBS="$LIBS $POPPLER_LIBS" AC_DEFINE(HAVE_POPPLER, 1, [Use libpoppler for direct PDF import]) fi -if test "x$cairo_ft" = "xyes"; then +if test "x$poppler_cairo" = "xyes" -a "x$poppler_glib" = "xyes"; then AC_DEFINE(HAVE_POPPLER_CAIRO, 1, [Use libpoppler-cairo for rendering PDF preview]) fi if test "x$poppler_glib" = "xyes" -a "x$cairo_svg" = "xyes"; then -- 2.30.2