diff options
author | György Balló <ballogy@freestart.hu> | 2011-11-22 08:36:34 +0100 |
---|---|---|
committer | György Balló <ballogy@freestart.hu> | 2011-11-22 08:36:34 +0100 |
commit | 077275b799305cc99a5c20a5fbe43cc2121ce618 (patch) | |
tree | 5ef3a0006e40e26c965872f61d7e7edc3d4c0d45 | |
parent | bc49dd8e9acfd1069e99999fd573609a404de869 (diff) | |
download | libayatana-appindicator-077275b799305cc99a5c20a5fbe43cc2121ce618.tar.gz libayatana-appindicator-077275b799305cc99a5c20a5fbe43cc2121ce618.tar.bz2 libayatana-appindicator-077275b799305cc99a5c20a5fbe43cc2121ce618.zip |
Make building tests optional
-rw-r--r-- | Makefile.am | 5 | ||||
-rw-r--r-- | configure.ac | 9 |
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 ]) |