X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;f=configure.ac;h=f241f9ab8c3cfb9400ee075e008a323f0a24b4e4;hb=47bf008787b6d613d0ecdc6b14c741519641c24e;hp=c62f710f3ef1a203f24262c7615c53fabfb303eb;hpb=1fcc2a6fbdc8ef32e3c0d3af689c2ff39854f305;p=evince.git diff --git a/configure.ac b/configure.ac index c62f710f..f241f9ab 100644 --- a/configure.ac +++ b/configure.ac @@ -1,7 +1,7 @@ dnl Process this file with autoconf to produce a configure script. AC_PREREQ(2.57) -AC_INIT(evince, 0.4.0) +AC_INIT(evince, 0.5.0) AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION) AM_CONFIG_HEADER(config.h) @@ -26,7 +26,7 @@ GNOME_COMPILE_WARNINGS GNOME_CXX_WARNINGS GNOME_DEBUG_CHECK -ALL_LINGUAS="bg bn ca cs da de el en_CA en_GB es et eu fi fr gl gu he hi hu id it ja ko lt nb ne nl no pa pl pt pt_BR ro ru rw sk sq sr sr@Latn sv th tr uk 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_TW" AM_GLIB_GNU_GETTEXT @@ -43,11 +43,11 @@ 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 -KEYRING_REQUIRED=0.4.2 +KEYRING_REQUIRED=0.4.0 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) @@ -137,6 +137,15 @@ dnl for backtrace() AC_CHECK_HEADERS([execinfo.h]) dnl ================== ggv checks =================================================== +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-pkg, [ --with-gs=dir Directory Where GhostScript package is installed.]) @@ -162,6 +171,7 @@ fi AA_PARMS="-sDEVICE=x11alpha -dNOPLATFONTS" 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 =================================================== @@ -264,12 +274,26 @@ if test "x$enable_pixbuf" = "xyes"; then fi AM_CONDITIONAL(ENABLE_PIXBUF, test x$enable_pixbuf = xyes) -dnl ================== End of dvi checks =================================================== +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="$enableval",enable_comics=no) +if test "x$enable_comics" = "xyes"; then + AC_DEFINE([ENABLE_COMICS], [1], [Enable support for comics.]) +fi +AM_CONDITIONAL(ENABLE_COMICS, test x$enable_comics = xyes) + +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 @@ -279,6 +303,9 @@ fi if test "x$enable_tiff" = "xyes"; then EVINCE_MIME_TYPES="$EVINCE_MIME_TYPES;image/tiff" fi +if test "x$enable_comics" = "xyes"; then + EVINCE_MIME_TYPES="$EVINCE_MIME_TYPES;application/x-cbr;application/x-cbz" +fi AC_SUBST(EVINCE_MIME_TYPES) AC_CONFIG_FILES([ @@ -297,6 +324,7 @@ ps/Makefile djvu/Makefile dvi/Makefile dvi/mdvi-lib/Makefile +comics/Makefile po/Makefile.in backend/Makefile properties/Makefile