diff options
author | György Balló <ballogy@freestart.hu> | 2011-11-20 02:17:19 +0100 |
---|---|---|
committer | György Balló <ballogy@freestart.hu> | 2011-11-20 02:17:19 +0100 |
commit | c0ac60b8fc5a146e22412d90ba7f2a38d99c157b (patch) | |
tree | fbdc8212202be61b4841c8191c7ca4fdac28b51e | |
parent | a5c78749b6a655f3f54d2d9f69302b11d53a3059 (diff) | |
download | libayatana-indicator-c0ac60b8fc5a146e22412d90ba7f2a38d99c157b.tar.gz libayatana-indicator-c0ac60b8fc5a146e22412d90ba7f2a38d99c157b.tar.bz2 libayatana-indicator-c0ac60b8fc5a146e22412d90ba7f2a38d99c157b.zip |
Make building tests optional
-rw-r--r-- | Makefile.am | 10 | ||||
-rw-r--r-- | configure.ac | 9 |
2 files changed, 16 insertions, 3 deletions
diff --git a/Makefile.am b/Makefile.am index 3bd312e..807cad0 100644 --- a/Makefile.am +++ b/Makefile.am @@ -2,13 +2,17 @@ ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS} SUBDIRS = \ libindicator \ - tests \ tools -tests: libindicator - tools: libindicator +if WANT_TESTS +SUBDIRS += \ + tests + +tests: libindicator +endif + DISTCHECK_CONFIGURE_FLAGS = --disable-deprecations DISTCLEANFILES = \ diff --git a/configure.ac b/configure.ac index 2357f13..a2c39b5 100644 --- a/configure.ac +++ b/configure.ac @@ -108,6 +108,14 @@ AC_DEFINE_PATH(SYSCONFDIR, "${sysconfdir}", [system configuration dir]) AC_DEFINE_PATH(LIBDIR, "${libdir}", [system configuration dir]) ######################### +# 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"]) + +######################### # Debug symbols ######################### AC_ARG_ENABLE([debug], @@ -146,5 +154,6 @@ Libindicator Configuration: Prefix: $prefix GTK+ Version: $with_gtk + Enable tests: $enable_tests Enable debugging: $enable_debug ]) |