diff options
author | Nick Schermer <nick@xfce.org> | 2011-10-28 21:44:37 +0200 |
---|---|---|
committer | Nick Schermer <nick@xfce.org> | 2011-10-28 21:44:37 +0200 |
commit | 445598f5991ee80939443102e28bac20f01d2ed2 (patch) | |
tree | f0a1227fe6a170b6cd51b9e3fff739f3d4cb111d /acinclude.m4 | |
parent | 3398fcc2ad7c0dd70dc4568c41a0af1bcf3f6ccd (diff) | |
download | tumbler-445598f5991ee80939443102e28bac20f01d2ed2.tar.gz |
Add odf thumbnailer.
Diffstat (limited to 'acinclude.m4')
-rw-r--r-- | acinclude.m4 | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/acinclude.m4 b/acinclude.m4 index 2271773..4ea5bcd 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -193,6 +193,30 @@ AC_MSG_RESULT([$ac_tumbler_poppler_thumbnailer]) +dnl TUMBLER_ODF_THUMBNAILER() +dnl +dnl Check whether to build and install the ODF thumbnailer plugin. +dnl +AC_DEFUN([TUMBLER_ODF_THUMBNAILER], +[ +AC_ARG_ENABLE([odf-thumbnailer], [AC_HELP_STRING([--disable-odf-thumbnailer], [Don't build the ODF thumbnailer plugin])], + [ac_tumbler_odf_thumbnailer=$enableval], [ac_tumbler_odf_thumbnailer=yes]) +if test x"$ac_tumbler_odf_thumbnailer" = x"yes"; then + dnl Check for gdk-pixbuf + PKG_CHECK_MODULES([GDK_PIXBUF], [gdk-pixbuf-2.0 >= 2.14], + [ + dnl Check for libgsf + PKG_CHECK_MODULES([GSF], [libgsf-1 >= 1.14.9], [], [ac_tumbler_odf_thumbnailer=no]) + ], [ac_tumbler_odf_thumbnailer=no]) +fi + +AC_MSG_CHECKING([whether to build the ODF thumbnailer plugin]) +AM_CONDITIONAL([TUMBLER_ODF_THUMBNAILER], [test x"$ac_tumbler_odf_thumbnailer" = x"yes"]) +AC_MSG_RESULT([$ac_tumbler_odf_thumbnailer]) +]) + + + dnl TUMBLER_XDG_CACHE() dnl dnl Check whether to build and install the freedesktop.org cache plugin. |