aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile.am5
-rw-r--r--configure.ac9
2 files changed, 13 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index 5920abe..e19101d 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -4,9 +4,12 @@ SUBDIRS = \
src \
bindings \
example \
- tests \
docs
+if WANT_TESTS
+SUBDIRS += tests
+endif
+
EXTRA_DIST = \
m4/introspection.m4 \
gtk-doc.make \
diff --git a/configure.ac b/configure.ac
index d271627..b05f967 100644
--- a/configure.ac
+++ b/configure.ac
@@ -189,6 +189,14 @@ PYGTK_CODEGEN="$PYTHON `$PKG_CONFIG --variable=codegendir pygtk-2.0`/codegen.py"
AC_SUBST(PYGTK_CODEGEN)
AC_MSG_RESULT($PYGTK_CODEGEN)
+#########################
+# Check if build tests
+#########################
+AC_ARG_ENABLE([tests],
+ AC_HELP_STRING([--disable-tests], [Disable tests]),,
+ [enable_tests=yes])
+AM_CONDITIONAL([WANT_TESTS], [test "x$enable_tests" != "xno"])
+
###########################
# Files
###########################
@@ -226,4 +234,5 @@ Libappindicator Configuration:
Prefix: $prefix
GTK+ Version: $with_gtk
+ Tests: $enable_tests
])