summaryrefslogtreecommitdiffstats
path: root/cpukit/aclocal/check-rtems-debug.m4
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/aclocal/check-rtems-debug.m4')
-rw-r--r--cpukit/aclocal/check-rtems-debug.m47
1 files changed, 7 insertions, 0 deletions
diff --git a/cpukit/aclocal/check-rtems-debug.m4 b/cpukit/aclocal/check-rtems-debug.m4
new file mode 100644
index 0000000000..ef5c14efef
--- /dev/null
+++ b/cpukit/aclocal/check-rtems-debug.m4
@@ -0,0 +1,7 @@
+## $Id$
+
+AC_DEFUN([RTEMS_CHECK_RTEMS_DEBUG],
+[AC_REQUIRE([RTEMS_ENABLE_RTEMS_DEBUG])
+AS_IF([test x"${enable_rtems_debug}" = x"yes"],
+ [AC_DEFINE_UNQUOTED(RTEMS_DEBUG,1,[if RTEMS_DEBUG is enabled])])
+])