49
49
LIBGNOMEUI_REQUIRED=2.6.0
50
50
KEYRING_REQUIRED=0.4.0
51
LIBGNOMEPRINTUI_REQUIRED=2.5.1
52
53
PKG_CHECK_MODULES(LIB, gtk+-2.0 >= $GTK_REQUIRED libgnomeui-2.0 >= $LIBGNOMEUI_REQUIRED)
53
54
PKG_CHECK_MODULES(BACKEND, gtk+-2.0 >= $GTK_REQUIRED gnome-vfs-2.0)
54
55
PKG_CHECK_MODULES(FRONTEND_CORE, gtk+-2.0 >= $GTK_REQUIRED libgnomeui-2.0 >= $LIBGNOMEUI_REQUIRED libglade-2.0 poppler-glib >= $POPPLER_REQUIRED)
55
56
PKG_CHECK_MODULES(POPPLER, poppler-glib >= $POPPLER_REQUIRED)
56
PKG_CHECK_MODULES(SHELL_CORE, gtk+-2.0 >= $GTK_REQUIRED libgnomeui-2.0 >= $LIBGNOMEUI_REQUIRED gnome-vfs-2.0 libgnomeprint-2.2 >= 2.5.1 libgnomeprintui-2.2 libglade-2.0 gconf-2.0 poppler-glib >= $POPPLER_REQUIRED gnome-keyring-1 >= $KEYRING_REQUIRED)
57
PKG_CHECK_MODULES(SHELL_CORE, gtk+-2.0 >= $GTK_REQUIRED libgnomeui-2.0 >= $LIBGNOMEUI_REQUIRED gnome-vfs-2.0 libglade-2.0 gconf-2.0 poppler-glib >= $POPPLER_REQUIRED gnome-keyring-1 >= $KEYRING_REQUIRED)
58
59
GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
59
60
AC_SUBST(GLIB_GENMARSHAL)
63
dnl ========= Check for libgnomeprintui
64
AC_ARG_ENABLE(gnome-print,
65
[AC_HELP_STRING([--disable-gnome-print], [Compile without print support])],
66
enable_gnome_print="$enableval",
67
enable_gnome_print=yes)
69
if test x$enable_gnome_print = xyes; then
70
PKG_CHECK_MODULES(GNOME_PRINT,
71
libgnomeprintui-2.2 >= $LIBGNOMEPRINTUI_REQUIRED,
72
enable_gnome_print=yes, enable_gnome_print=no)
75
AC_SUBST(GNOME_PRINT_CFLAGS)
76
AC_SUBST(GNOME_PRINT_LIBS)
78
if test x$enable_gnome_print = xyes; then
79
AC_DEFINE([WITH_GNOME_PRINT],[1],[Enable Print Support.])
82
AM_CONDITIONAL(WITH_GNOME_PRINT, test x$enable_gnome_print = xyes)
84
dnl ========= Check for DBUS
61
85
PKG_CHECK_MODULES([DBUS], [dbus-glib-1 >= $DBUS_GLIB_REQUIRED],
62
86
[enable_dbus=yes],[enable_dbus=no])
63
87
AC_SUBST([DBUS_CFLAGS])
147
172
AM_CONDITIONAL(ENABLE_PS, test x$enable_ps = xyes)
149
174
if test x$enable_ps = xyes; then
151
[AC_HELP_STRING([--with-gs=dir], [Directory Where GhostScript package is installed.])])
153
if test "x$with_gs" = "x"; then
154
AC_PATH_PROG(GS_PROG, gs)
155
if test -z "$GS_PROG"; then
156
AC_MSG_ERROR(Unable to find GhostScript in the PATH. Provide the full path for GhostScript(--with-gs=PATH). You need to have Ghostscript installed in order to run evince)
162
AC_DEFINE_UNQUOTED(GS_PATH, "$GS_PROG", [Path to the 'gs' executable.])
164
176
dnl check for GS version
165
177
AC_MSG_CHECKING(for Ghostscript version...)
212
224
if test "x$enable_djvu" = "xyes"; then
213
225
AC_CHECK_LIB([djvulibre],ddjvu_context_create,enable_djvu=yes,enable_djvu=no,"-lpthread")
214
226
AC_CHECK_LIB([djvulibre],ddjvu_document_get_pageinfo,enable_djvu=yes,enable_djvu=no,"-lpthread")
227
AC_CHECK_LIB([djvulibre],ddjvu_document_get_pagetext,enable_djvu=yes,enable_djvu=no,"-lpthread")
217
230
if test "x$enable_djvu" = "xyes"; then
221
234
** Djvu support is disabled since a recent version of the djvulibre
222
** library was not found. You need at least djvulibre-3.5.15 which
235
** library was not found. You need at least djvulibre-3.5.16 which
223
236
** can be found on http://djvulibre.djvuzone.org
297
310
EVINCE_MIME_TYPES="application/pdf"
299
if test "x$disable_ps" = "xno" ; then
312
if test "x$enable_ps" = "xyes" ; then
300
313
EVINCE_MIME_TYPES="$EVINCE_MIME_TYPES;application/postscript;application/x-gzpostscript"
302
315
if test "x$enable_dvi" = "xyes"; then
358
Print Support......: $enable_gnome_print
359
DBUS Support.......: $enable_dbus
360
Nautilus Plugin....: $HAVE_NAUTILUS
362
PostScript Backend.: $enable_ps
363
TIFF Backend.......: $enable_tiff
364
DJVU Backend.......: $enable_djvu
365
DVI Backend........: $enable_dvi
366
Pixbuf Backend.....: $enable_pixbuf
367
Comics Backend.....: $enable_comics