buildsys: add option to enable/disable build of test-tool
When doing a production system, the production environment has been pre-validated (with this test-toll or by other means), so the teest-tool is not needed in production. Add a configure option to disable building test-tool. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
# Generic definitions
|
||||
SUBDIRS = lib doc utils test-tool examples
|
||||
SUBDIRS = lib doc utils examples
|
||||
if BUILD_TEST_TOOL
|
||||
SUBDIRS += test-tool
|
||||
endif
|
||||
if BUILD_TESTS
|
||||
SUBDIRS += tests
|
||||
endif
|
||||
|
||||
@@ -47,6 +47,14 @@ AC_ARG_ENABLE([manpages],
|
||||
AM_CONDITIONAL(BUILD_MANPAGES,
|
||||
[expr "$ENABLE_MANPAGES" : yes > /dev/null 2>&1])
|
||||
|
||||
AC_ARG_ENABLE([test_tool],
|
||||
[AC_HELP_STRING([--enable-test-tool],
|
||||
[Enable building test-tool (to test a remote server)])],
|
||||
[ENABLE_TEST_TOOL=$enableval],
|
||||
[ENABLE_TEST_TOOL=yes])
|
||||
AM_CONDITIONAL([BUILD_TEST_TOOL],
|
||||
[expr "$ENABLE_TEST_TOOL" : yes > /dev/null 2>&1])
|
||||
|
||||
AC_ARG_ENABLE([tests],
|
||||
[AC_HELP_STRING([--enable-tests],
|
||||
[Enable building tests])],
|
||||
|
||||
Reference in New Issue
Block a user