diff options
-rw-r--r-- | configure.in | 16 | ||||
-rw-r--r-- | src/Makefile.am | 6 |
2 files changed, 21 insertions, 1 deletions
diff --git a/configure.in b/configure.in index e3cc569..1d69f34 100644 --- a/configure.in +++ b/configure.in | |||
@@ -308,6 +308,22 @@ AC_ARG_ENABLE(debug, | |||
308 | AC_SUBST(DEBUG) | 308 | AC_SUBST(DEBUG) |
309 | CXXFLAGS="$CXXFLAGS $DEBUG" | 309 | CXXFLAGS="$CXXFLAGS $DEBUG" |
310 | 310 | ||
311 | dnl Check whether to build test programs | ||
312 | AC_MSG_CHECKING([whether to build test programs]) | ||
313 | AC_ARG_ENABLE(test, | ||
314 | [ --enable-test build programs used in testing fluxbox ([default=no])], | ||
315 | if test x$enableval = "xyes"; then | ||
316 | AC_MSG_RESULT([yes]) | ||
317 | TEST=yes | ||
318 | else | ||
319 | AC_MSG_RESULT([no]) | ||
320 | TEST=no | ||
321 | fi, | ||
322 | AC_MSG_RESULT([no]) | ||
323 | TEST=no | ||
324 | ) | ||
325 | AM_CONDITIONAL(TEST, test x$TEST = xyes) | ||
326 | |||
311 | dnl Check whether to include native language support (i18n) | 327 | dnl Check whether to include native language support (i18n) |
312 | AC_MSG_CHECKING([whether to include NLS support]) | 328 | AC_MSG_CHECKING([whether to include NLS support]) |
313 | AC_ARG_ENABLE(nls, | 329 | AC_ARG_ENABLE(nls, |
diff --git a/src/Makefile.am b/src/Makefile.am index 12f86bb..cfb249a 100644 --- a/src/Makefile.am +++ b/src/Makefile.am | |||
@@ -23,7 +23,11 @@ | |||
23 | # DEALINGS IN THE SOFTWARE. | 23 | # DEALINGS IN THE SOFTWARE. |
24 | 24 | ||
25 | 25 | ||
26 | SUBDIRS= FbTk | 26 | if TEST |
27 | BUILD_TEST= tests | ||
28 | endif | ||
29 | SUBDIRS= FbTk $(BUILD_TEST) | ||
30 | |||
27 | DEFAULT_MENU=@DEFAULT_MENU@ | 31 | DEFAULT_MENU=@DEFAULT_MENU@ |
28 | DEFAULT_STYLE=@DEFAULT_STYLE@ | 32 | DEFAULT_STYLE=@DEFAULT_STYLE@ |
29 | DEFAULT_KEYSFILE=@DEFAULT_KEYS@ | 33 | DEFAULT_KEYSFILE=@DEFAULT_KEYS@ |