summaryrefslogtreecommitdiffstats
path: root/aclocal/rtems-debug.m4
diff options
context:
space:
mode:
Diffstat (limited to 'aclocal/rtems-debug.m4')
-rw-r--r--aclocal/rtems-debug.m419
1 files changed, 19 insertions, 0 deletions
diff --git a/aclocal/rtems-debug.m4 b/aclocal/rtems-debug.m4
new file mode 100644
index 0000000000..2f4941c3e1
--- /dev/null
+++ b/aclocal/rtems-debug.m4
@@ -0,0 +1,19 @@
+AC_DEFUN(RTEMS_ENABLE_RTEMS_DEBUG,
+[
+AC_ARG_ENABLE(rtems-debug,
+[ --disable-rtems-debug disable RTEMS_DEBUG],
+[case "${enableval}" in
+ yes) RTEMS_DEBUG=yes ;;
+ no) RTEMS_DEBUG=no ;;
+ *) AC_MSG_ERROR([bad value ${enableval} for RTEMS_DEBUG]) ;;
+esac],[RTEMS_DEBUG=no])
+])
+
+AC_DEFUN(RTEMS_CHECK_RTEMS_DEBUG,
+[AC_REQUIRE(RTEMS_ENABLE_RTEMS_DEBUG)
+if test x"${RTEMS_DEBUG}" = x"yes";
+then
+ AC_DEFINE_UNQUOTED(RTEMS_DEBUG,1,[if RTEMS_DEBUG is enabled])
+fi
+])
+