-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.])])
- else
- CPPFLAGS="$CPPFLAGS $LIBART_CFLAGS"
- AC_DEFINE([INTERNAL_LIBART], [0])
- LIBS="$LIBS $LIBART_LIBS"
- fi
-fi
-AC_SUBST([art_in_source])
+splash_in_source='$(splash_objects)'
+xpdf_in_source='$(xpdf_objects)'
+
+dnl if test "x$USE_POPPLER" = "xtrue"; then
+dnl xpdf_in_source=
+dnl splash_in_source=
+dnl AC_DEFINE([HAVE_POPPLER],[1],[use poppler])
+dnl PKG_CHECK_MODULES([POPPLER],[poppler poppler-splash],,[poppler_pkgconfig=no])
+dnl if test "x$poppler_pkgconfig" = "xno"; then
+dnl AC_LANG_PUSH([C++])
+dnl AC_CHECK_HEADERS([OutputDev.h],[
+dnl AC_CHECK_LIB([poppler],[main],,[])
+dnl ],[AC_MSG_ERROR([No poppler library found. This library is required.])])
+dnl AC_LANG_POP
+dnl else
+dnl CPPFLAGS="$CPPFLAGS $POPPLER_CFLAGS"
+dnl AC_DEFINE([HAVE_POPPLER], [1])
+dnl LIBS="$LIBS $POPPLER_LIBS"
+dnl fi
+dnl fi
+
+AC_SUBST([xpdf_in_source])
+AC_SUBST([splash_in_source])