X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;ds=inline;f=configure.ac;h=65d76da0d181051e08c4f9d317bfc56354996d34;hb=2845fb905cccd6655c294247722648d3bce97a27;hp=d268d3f9f1151ddfa3a3581ab29c9e8b948d35f4;hpb=d56721e376e72279f86d8dff2c791fc3d3affe92;p=evince.git diff --git a/configure.ac b/configure.ac index d268d3f9..65d76da0 100644 --- a/configure.ac +++ b/configure.ac @@ -21,7 +21,7 @@ AC_STDC_HEADERS AC_PROG_RANLIB AC_PROG_INTLTOOL -ALL_LINGUAS="de" +ALL_LINGUAS="cs de en_CA ja nl pt_BR sv zh_CN" AM_GLIB_GNU_GETTEXT @@ -32,7 +32,9 @@ AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [Gettext package.]) PKG_CHECK_MODULES(LIBEVPRIVATE, gtk+-2.0 >= 2.4.0) PKG_CHECK_MODULES(RECENT_FILES, gtk+-2.0 >= 2.4.0 libgnomeui-2.0 >= 2.4.0) PKG_CHECK_MODULES(SHELL, gtk+-2.0 >= 2.5.0 libgnomeui-2.0 gnome-vfs-2.0 libgnomeprint-2.2 libgnomeprintui-2.2 libglade-2.0) +PKG_CHECK_MODULES(DVI, gtk+-2.0 >= 2.6.0) PKG_CHECK_MODULES(GTK, gtk+-2.0 >= 2.6.0) +PKG_CHECK_MODULES(PS, gtk+-2.0 >= 2.6.0 gnome-vfs-2.0 libgnomeui-2.0) GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0` AC_SUBST(GLIB_GENMARSHAL) @@ -272,6 +274,38 @@ AC_SUBST(FREETYPE_LIBS) dnl ================== End of xpdf checks =========================================== +dnl ================== ggv checks =================================================== +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 GGV) + fi +else + GS_PROG=$with_gs +fi + +AC_DEFINE_UNQUOTED(GS_PATH, "$GS_PROG", [Path to the 'gs' executable.]) + + +dnl check for GS version and define appropriate alpha parameters +AC_MSG_CHECKING(for Ghostscript version...) +GS_VERSION=`$GS_PROG --version | head -n 1` +AC_MSG_RESULT(found $GS_VERSION) +dnl GS tends to get a lot of BadMatch errors with the *AlphaBits parameters +dnl so I've commented their use out +dnl if test "$GS_VERSION" -gt "5"; then +dnl AA_PARMS="-sDEVICE=x11 -dTextAlphaBits=4 -dGraphicsAlphaBits=4" +dnl else +dnl AA_PARMS="-sDEVICE=x11alpha" +dnl 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) + + dnl Turn on the additional warnings last, so -Werror doesn't affect other tests. dnl stolen from nautilus and gnome-common @@ -324,7 +358,7 @@ else AC_MSG_RESULT(no) fi -dnl ========================================================================== +dnl ======================== End of ggv checks ================================= AC_OUTPUT([ Makefile @@ -336,7 +370,11 @@ pdf/goo/Makefile pdf/fofi/Makefile pdf/splash/Makefile pdf/xpdf/Makefile +pixbuf/Makefile +ps/Makefile po/Makefile.in backend/Makefile shell/Makefile +dvi/Makefile +dvi/dvilib/Makefile ])