-art_in_source='$(art_objects)'
-AC_DEFINE([INTERNAL_LIBART], [1], [use internal libart library])
-
-if test "x$EXTERNAL_LIBART" = "xtrue"; then
- art_in_source=
- PKG_CHECK_MODULES([LIBART],[libart-2.0],,[libart_pkgconfig_libart=no])
- if test "x$libart_pkgconfig_libart" = "xno"; then
- AC_CHECK_HEADERS([libart_lgpl/libart.h],[
- AC_CHECK_LIB([art_lgpl_2],[art_new],,[])
- ],[AC_MSG_ERROR([No libart library found. This library is required.])])
+xpdf_in_source=
+splash_in_source=
+xpdf_include=
+
+if test "x$USE_POPPLER" = "xtrue"; then
+ AC_DEFINE([HAVE_POPPLER],[1],[use poppler])
+ PKG_CHECK_MODULES([POPPLER],[poppler poppler-splash],,[poppler_pkgconfig=no])
+ if test "x$poppler_pkgconfig" = "xno"; then
+ AC_LANG_PUSH([C++])
+ AC_CHECK_HEADERS([OutputDev.h],[
+ AC_CHECK_LIB([poppler],[main],,[])
+ ],[AC_MSG_ERROR([No poppler library found. This library is required.])])
+ AC_LANG_POP