summaryrefslogtreecommitdiffstats
path: root/c/src/tests/aclocal/enable-tests.m4
diff options
context:
space:
mode:
Diffstat (limited to 'c/src/tests/aclocal/enable-tests.m4')
-rw-r--r--c/src/tests/aclocal/enable-tests.m415
1 files changed, 15 insertions, 0 deletions
diff --git a/c/src/tests/aclocal/enable-tests.m4 b/c/src/tests/aclocal/enable-tests.m4
new file mode 100644
index 0000000000..027dc212c0
--- /dev/null
+++ b/c/src/tests/aclocal/enable-tests.m4
@@ -0,0 +1,15 @@
+dnl $Id$
+
+AC_DEFUN(RTEMS_ENABLE_TESTS,
+[
+# If the tests are enabled, then find all the test suite Makefiles
+AC_MSG_CHECKING([if the test suites are enabled? ])
+AC_ARG_ENABLE(tests,
+[AC_HELP_STRING([--enable-tests],[enable tests (default:disabled)])],
+ [case "${enableval}" in
+ yes) tests_enabled=yes ;;
+ no) tests_enabled=no ;;
+ *) AC_MSG_ERROR(bad value ${enableval} for tests option) ;;
+ esac], [tests_enabled=no])
+AC_MSG_RESULT([$tests_enabled])
+])