summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac31
1 files changed, 30 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index ab808986..112e7264 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3,7 +3,7 @@
# *****************************************************************************
m4_define([ev_major_version], [1])
-m4_define([ev_minor_version], [4])
+m4_define([ev_minor_version], [5])
m4_define([ev_micro_version], [0])
m4_define([ev_extra_version], [])
m4_define([ev_version], [ev_major_version.ev_minor_version.ev_micro_version()ev_extra_version])
@@ -679,6 +679,30 @@ AM_CONDITIONAL(ENABLE_COMICS, test x$enable_comics = xyes)
dnl ================== End of comic book checks ============================================
+dnl ================== XPS checks ===================================================
+
+AC_ARG_ENABLE(xps,
+ [AS_HELP_STRING([--enable-xps],
+ [Compile with support for XPS documents.])],
+ [enable_xps=$enableval],
+ [enable_xps=yes])
+
+if test "x$enable_xps" = "xyes"; then
+ GXPS_REQUIRED=0.0.1
+ PKG_CHECK_MODULES(GXPS, libgxps >= $GXPS_REQUIRED,enable_xps=yes,enable_xps=no)
+
+ if test "x$enable_xps" = "xyes"; then
+ AC_DEFINE([ENABLE_XPS], [1], [Enable support for XPS documents.])
+ else
+ enable_xps="no"
+ AC_MSG_WARN(["XPS support is disabled since libgxps (version >= $GXPS_REQUIRED) is needed"])
+ fi
+fi
+
+AM_CONDITIONAL(ENABLE_XPS, test x$enable_xps = xyes)
+
+dnl ================== End of XPS checks ===================================================
+
dnl ================== impress book checks ===================================================
AC_ARG_ENABLE(impress,
@@ -717,6 +741,9 @@ fi
if test "x$enable_pixbuf" = "xyes"; then
ATRIL_MIME_TYPES="${ATRIL_MIME_TYPES}image/*;"
fi
+if test "x$enable_xps" = "xyes"; then
+ EVINCE_MIME_TYPES="${EVINCE_MIME_TYPES}application/oxps;application/vnd.ms-xpsdocument;"
+fi
if test "x$enable_impress" = "xyes"; then
ATRIL_MIME_TYPES="${ATRIL_MIME_TYPES}application/vnd.sun.xml.impress;application/vnd.oasis.opendocument.presentation;"
fi
@@ -799,6 +826,7 @@ backend/pdf/Makefile
backend/pixbuf/Makefile
backend/ps/Makefile
backend/tiff/Makefile
+backend/xps/Makefile
cut-n-paste/Makefile
cut-n-paste/gimpcellrenderertoggle/Makefile
cut-n-paste/smclient/Makefile
@@ -883,5 +911,6 @@ Configure summary:
DVI Backend........: $enable_dvi
Pixbuf Backend.....: $enable_pixbuf
Comics Backend.....: $enable_comics
+ XPS Backend........: $enable_xps
Impress Backend....: $enable_impress
"