summaryrefslogtreecommitdiffstats
path: root/aclocal
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--aclocal.m48
-rw-r--r--aclocal/enable-tests.m48
2 files changed, 8 insertions, 8 deletions
diff --git a/aclocal.m4 b/aclocal.m4
index ea2acf87c5..79fbbddcf0 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -876,14 +876,14 @@ 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 ;;
+ yes) tests_enabled=yes ;;
+ no) tests_enabled=no ;;
*) AC_MSG_ERROR(bad value ${enableval} for tests option) ;;
- esac], AC_MSG_RESULT(no))
+ esac], [tests_enabled=no])
+AC_MSG_RESULT([$tests_enabled])
])
dnl $Id$
diff --git a/aclocal/enable-tests.m4 b/aclocal/enable-tests.m4
index 626cd5d0fb..31419f597a 100644
--- a/aclocal/enable-tests.m4
+++ b/aclocal/enable-tests.m4
@@ -4,12 +4,12 @@ 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 ;;
+ yes) tests_enabled=yes ;;
+ no) tests_enabled=no ;;
*) AC_MSG_ERROR(bad value ${enableval} for tests option) ;;
- esac], AC_MSG_RESULT(no))
+ esac], [tests_enabled=no])
+AC_MSG_RESULT([$tests_enabled])
])