blob: 55b98fedad2d5f56a98a0df75b77a48e8408da03 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
Interactive Tests.
http://bugzilla.o-hand.com/show_bug.cgi?id=1618
--
--- configure.ac
+++ configure.ac
@@ -718,6 +718,18 @@
AM_CONDITIONAL(ENABLE_MANUAL, [test "x$enable_manual" = "xyes"])
+dnl = tests ================================================================
+AC_ARG_ENABLE(tests,
+ AS_HELP_STRING([--enable-tests],[Enable building of tests and examples]),
+ [case "${enableval}" in
+ yes) ENABLE_TESTS=yes ;;
+ no) ENABLE_TESTS=no ;;
+ *) AC_MSG_ERROR(bad value ${enableval} for --enable-tests) ;;
+ esac],
+ [ENABLE_TESTS=no])
+
+AM_CONDITIONAL([ENABLE_TESTS], [test "x$ENABLE_TESTS" = "xyes"])
+
dnl === I18N ==================================================================
GETTEXT_PACKAGE="clutter-$CLUTTER_API_VERSION"
@@ -887,6 +887,7 @@
echo ""
echo " • Extra:"
echo " Build introspection data: ${enable_introspection}"
+echo " Enable tests: ${enable_tests}"
echo " Build conformance test suite: ${enable_conformance}"
if test "x$have_json" = "xyes"; then
--- Makefile.am
+++ Makefile.am
@@ -2,7 +2,11 @@
NULL =
-SUBDIRS = build clutter tests doc po
+SUBDIRS = build clutter doc po
+
+if ENABLE_TESTS
+SUBDIRS += tests
+endif
ACLOCAL_AMFLAGS = -I build/autotools
|