properties \
shell \
po \
- help \
- test
+ help
+
+if ENABLE_TESTS
+SUBDIRS += test
+endif
if ENABLE_THUMBNAILER
SUBDIRS += thumbnailer
ACLOCAL_AMFLAGS = -I m4
-DISTCHECK_CONFIGURE_FLAGS = --disable-schemas-install --disable-scrollkeeper --enable-gtk-doc --disable-nautilus
+DISTCHECK_CONFIGURE_FLAGS = --disable-schemas-install --disable-scrollkeeper --enable-gtk-doc --disable-nautilus --disable-tests
# Ignore scrollkeeper issues for now. @#*$& scrollkeeper
distuninstallcheck_listfiles = find . -type f -print | grep -v scrollkeeper | grep -v /share/gnome/help/ | grep -v \.omf
DEBUG_FLAGS="-DEV_ENABLE_DEBUG"
fi
+AC_ARG_ENABLE([tests],
+ AC_HELP_STRING([--enable-tests], [Disable tests]),
+ enable_tests="$enableval",
+ enable_tests=yes)
+
+AM_CONDITIONAL(ENABLE_TESTS, test x$enable_tests = xyes)
LIBDOCUMENT_CFLAGS="$LIBDOCUMENT_CFLAGS $DEBUG_FLAGS"
LIBDOCUMENT_LIBS="$LIBDOCUMENT_LIBS"
Gtk-Doc Support....: $enable_gtk_doc
Debug mode.........: $enable_debug
GObj. Introspection: $enable_introspection
+ Tests..............: $enable_tests
PDF Backend........: $enable_pdf
PostScript Backend.: $enable_ps