X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;ds=sidebyside;f=configure.ac;h=97669dad812eb3c44a5f950a8c5a116f3c2b41ca;hb=86c64a5457135c89d6234c8671e89993f03f9dea;hp=3fe05b03e44e8984895d6b6b91c98cae42bea8d5;hpb=3ec63537add6165440f67c6c6ad8413a40724c13;p=evince.git diff --git a/configure.ac b/configure.ac index 3fe05b03..97669dad 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 @@ -43,7 +43,7 @@ dnl Check dependencies # SHELL_CFLAGS for shell implementation. # SHELL_LIBS -POPPLER_REQUIRED=0.4.1 +POPPLER_REQUIRED=0.5.0 DBUS_GLIB_REQUIRED=0.33 GTK_REQUIRED=2.6.0 LIBGNOMEUI_REQUIRED=2.6.0 @@ -137,8 +137,18 @@ dnl for backtrace() AC_CHECK_HEADERS([execinfo.h]) dnl ================== ggv checks =================================================== -AC_ARG_WITH(gs-pkg, - [ --with-gs=dir Directory Where GhostScript package is installed.]) +AC_ARG_ENABLE(ps, + [AC_HELP_STRING([--disable-ps], [Compile without PostScript backend])],enable_ps=$enableval,enable_ps="yes") + +if test x$enable_ps = xyes; then + AC_DEFINE([ENABLE_PS], [1], [Enable support for PostScript files.]) +fi + +AM_CONDITIONAL(ENABLE_PS, test x$enable_ps = xyes) + +if test x$enable_ps = xyes; then +AC_ARG_WITH(gs, + [AC_HELP_STRING([--with-gs=dir], [Directory Where GhostScript package is installed.])]) if test "x$with_gs" = "x"; then AC_PATH_PROG(GS_PROG, gs) @@ -151,7 +161,6 @@ fi AC_DEFINE_UNQUOTED(GS_PATH, "$GS_PROG", [Path to the 'gs' executable.]) - dnl check for GS version AC_MSG_CHECKING(for Ghostscript version...) GS_VERSION=`gs --version | head -n 1 | sed 's/\([[0-9]]*\)\.\([[0-9]]*\).*/\1/'` @@ -159,9 +168,15 @@ 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 ================================= dnl ================== tiff checks =================================================== @@ -269,7 +284,7 @@ dnl ================== End of pixbuf checks ==================================== dnl ================== comic book checks =================================================== AC_ARG_ENABLE(comics, - [AC_HELP_STRING([--enable-comics], [Compile with support for comic book archives])],enable_comics=yes,enable_comics=no) + [AC_HELP_STRING([--enable-comics], [Compile with support for comic book archives])],enable_comics="$enableval",enable_comics=no) if test "x$enable_comics" = "xyes"; then AC_DEFINE([ENABLE_COMICS], [1], [Enable support for comics.]) fi @@ -279,8 +294,11 @@ dnl ================== End of comic book checks ================================ dnl =================== Mime types list ==================================================== -EVINCE_MIME_TYPES="application/pdf;application/postscript;application/x-gzpostscript" +EVINCE_MIME_TYPES="application/pdf" +if test "x$disable_ps" = "xno" ; then + EVINCE_MIME_TYPES="$EVINCE_MIME_TYPES;application/postscript;application/x-gzpostscript" +fi if test "x$enable_dvi" = "xyes"; then EVINCE_MIME_TYPES="$EVINCE_MIME_TYPES;application/x-dvi" fi