diff options
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index d4580a31..bb8a75fb 100644 --- a/configure.ac +++ b/configure.ac @@ -252,6 +252,21 @@ case $with_udev in esac dnl----------------------------------------------------------------------------- +dnl build with tests (enabled by default) +dnl + +AC_ARG_WITH(tests, AS_HELP_STRING([--without-tests], [Build without testcases]), [], [with_tests=yes]) +AM_CONDITIONAL(WITH_TESTS, test "x$with_tests" = "xyes") +case $with_tests in + yes) + AC_DEFINE(WITH_TESTS, 1, [Define if you want to build all testcases]) + ;; + *) + with_tests=no + ;; +esac + +dnl----------------------------------------------------------------------------- dnl Suspend/resume support dnl @@ -629,6 +644,7 @@ examples/sms-python/Makefile examples/network-scan-python/Makefile examples/sms-c/Makefile ]) + AC_OUTPUT echo " @@ -643,6 +659,7 @@ echo " warn ldflags: ${WARN_LDFLAGS} maintainer mode: ${USE_MAINTAINER_MODE} release: ${ax_is_release} + tests: ${with_tests} System paths: prefix: ${prefix} |