summaryrefslogtreecommitdiffstats
path: root/aclocal/enable-tests.m4
blob: 626cd5d0fbde327940af6d0fd4e19924a1cce3fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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? ])
tests_enabled=no
AC_ARG_ENABLE(tests,
[  --enable-tests                       enable tests (default:disabled)],
  [case "${enableval}" in
    yes) AC_MSG_RESULT(yes) ;;
    no)  AC_MSG_RESULT(no) ; tests_enabled=no ;;
    *)   AC_MSG_ERROR(bad value ${enableval} for tests option) ;;
  esac], AC_MSG_RESULT(no))
])