X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;f=configure.ac;h=7f330552f718483e0b1abec090d6745c5343e6b5;hb=2fcdb759f53fee8ccca7eaa3d67743cc8d42b0fc;hp=f241f9ab8c3cfb9400ee075e008a323f0a24b4e4;hpb=47bf008787b6d613d0ecdc6b14c741519641c24e;p=evince.git diff --git a/configure.ac b/configure.ac index f241f9ab..7f330552 100644 --- a/configure.ac +++ b/configure.ac @@ -26,7 +26,7 @@ GNOME_COMPILE_WARNINGS GNOME_CXX_WARNINGS GNOME_DEBUG_CHECK -ALL_LINGUAS="be bg bn ca cs cy da de el en_CA en_GB es et eu fa fi fr gl gu he hi hu id it ja ko ku lt mk nb ne nl no pa pl pt pt_BR ro ru rw sk sq sr sr@Latn sv th tr uk vi wa zh_CN zh_TW" +ALL_LINGUAS="be bg bn ca cs cy da de el en_CA en_GB es et eu fa fi fr gl gu he hi hu id it ja ko ku lt mk nb ne nl no pa pl pt pt_BR ro ru rw sk sq sr sr@Latn sv th tr uk vi wa zh_CN zh_HK zh_TW" AM_GLIB_GNU_GETTEXT @@ -48,16 +48,40 @@ DBUS_GLIB_REQUIRED=0.33 GTK_REQUIRED=2.6.0 LIBGNOMEUI_REQUIRED=2.6.0 KEYRING_REQUIRED=0.4.0 +LIBGNOMEPRINTUI_REQUIRED=2.5.1 PKG_CHECK_MODULES(LIB, gtk+-2.0 >= $GTK_REQUIRED libgnomeui-2.0 >= $LIBGNOMEUI_REQUIRED) PKG_CHECK_MODULES(BACKEND, gtk+-2.0 >= $GTK_REQUIRED gnome-vfs-2.0) PKG_CHECK_MODULES(FRONTEND_CORE, gtk+-2.0 >= $GTK_REQUIRED libgnomeui-2.0 >= $LIBGNOMEUI_REQUIRED libglade-2.0 poppler-glib >= $POPPLER_REQUIRED) PKG_CHECK_MODULES(POPPLER, poppler-glib >= $POPPLER_REQUIRED) -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) +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) GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0` AC_SUBST(GLIB_GENMARSHAL) + +dnl ========= Check for libgnomeprintui +AC_ARG_ENABLE(gnome-print, + [AC_HELP_STRING([--disable-gnome-print], [Compile without print support])], + enable_gnome_print="$enableval", + enable_gnome_print=yes) + +if test x$enable_gnome_print = xyes; then + PKG_CHECK_MODULES(GNOME_PRINT, + libgnomeprintui-2.2 >= $LIBGNOMEPRINTUI_REQUIRED, + enable_gnome_print=yes, enable_gnome_print=no) +fi + +AC_SUBST(GNOME_PRINT_CFLAGS) +AC_SUBST(GNOME_PRINT_LIBS) + +if test x$enable_gnome_print = xyes; then + AC_DEFINE([WITH_GNOME_PRINT],[1],[Enable Print Support.]) +fi + +AM_CONDITIONAL(WITH_GNOME_PRINT, test x$enable_gnome_print = xyes) + +dnl ========= Check for DBUS PKG_CHECK_MODULES([DBUS], [dbus-glib-1 >= $DBUS_GLIB_REQUIRED], [enable_dbus=yes],[enable_dbus=no]) AC_SUBST([DBUS_CFLAGS]) @@ -121,6 +145,7 @@ LIBS="$LIBS $FRONTEND_CORE_LIBS" AC_CHECK_FUNCS(gtk_icon_view_get_visible_range) AC_CHECK_FUNCS(gtk_window_present_with_time) AC_CHECK_FUNCS(g_file_set_contents) +AC_CHECK_FUNCS(gtk_file_chooser_set_do_overwrite_confirmation) LIBS=$evince_save_LIBS dnl GConf configuration @@ -145,21 +170,8 @@ if test x$enable_ps = xyes; then fi AM_CONDITIONAL(ENABLE_PS, test x$enable_ps = xyes) -if test x$enable_ps = xyes; then -AC_ARG_WITH(gs-pkg, - [ --with-gs=dir Directory Where GhostScript package is installed.]) - -if test "x$with_gs" = "x"; then - AC_PATH_PROG(GS_PROG, gs) - if test -z "$GS_PROG"; then - 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) - fi -else - GS_PROG=$with_gs -fi - -AC_DEFINE_UNQUOTED(GS_PATH, "$GS_PROG", [Path to the 'gs' executable.]) +if test x$enable_ps = xyes; then dnl check for GS version AC_MSG_CHECKING(for Ghostscript version...) @@ -168,9 +180,14 @@ AC_MSG_RESULT(found $GS_VERSION) if test "$GS_VERSION" -lt "7"; then AC_MSG_ERROR([You need Ghostscript version >= 7 in order to run evince]) fi -AA_PARMS="-sDEVICE=x11alpha -dNOPLATFONTS" + +AC_ARG_WITH(gs-aa-params, + [AC_HELP_STRING([--with-gs-aa-params], [Define antialiasing params for ghostscript])],AA_PARAMS=$withval, + AA_PARMS="-sDEVICE=x11alpha -dNOPLATFONTS -dGraphicsAlphaBits=4 -dTextAlphaBits=4 -dDOINTERPOLATE" + ) AC_DEFINE_UNQUOTED(ALPHA_PARAMS, "$AA_PARMS", [Anti-aliasing parameters for Ghostscript.]) AC_MSG_RESULT(Antialiasing parameters for Ghostscript: $AA_PARMS) + fi dnl ======================== End of ggv checks ================================= @@ -207,6 +224,7 @@ if test "x$enable_djvu" = "xyes"; then if test "x$enable_djvu" = "xyes"; then AC_CHECK_LIB([djvulibre],ddjvu_context_create,enable_djvu=yes,enable_djvu=no,"-lpthread") AC_CHECK_LIB([djvulibre],ddjvu_document_get_pageinfo,enable_djvu=yes,enable_djvu=no,"-lpthread") + AC_CHECK_LIB([djvulibre],ddjvu_document_get_pagetext,enable_djvu=yes,enable_djvu=no,"-lpthread") fi if test "x$enable_djvu" = "xyes"; then @@ -214,7 +232,7 @@ if test "x$enable_djvu" = "xyes"; then else AC_MSG_WARN([ ** Djvu support is disabled since a recent version of the djvulibre -** library was not found. You need at least djvulibre-3.5.15 which +** library was not found. You need at least djvulibre-3.5.16 which ** can be found on http://djvulibre.djvuzone.org ]) fi @@ -291,7 +309,7 @@ dnl =================== Mime types list ======================================== EVINCE_MIME_TYPES="application/pdf" -if test "x$disable_ps" = "xno" ; then +if test "x$enable_ps" = "xyes" ; then EVINCE_MIME_TYPES="$EVINCE_MIME_TYPES;application/postscript;application/x-gzpostscript" fi if test "x$enable_dvi" = "xyes"; then @@ -334,3 +352,17 @@ help/Makefile ]) AC_OUTPUT + +echo " +Configure summary: + Print Support......: $enable_gnome_print + DBUS Support.......: $enable_dbus + Nautilus Plugin....: $HAVE_NAUTILUS + + PostScript Backend.: $enable_ps + TIFF Backend.......: $enable_tiff + DJVU Backend.......: $enable_djvu + DVI Backend........: $enable_dvi + Pixbuf Backend.....: $enable_pixbuf + Comics Backend.....: $enable_comics +"