summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2011-03-16 20:06:55 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2011-03-16 20:06:55 +0000
commit054b1c6fe98ea37657a8afd5c917ea74d013acd1 (patch)
tree1ce98beddfbc39fe6e27c0edac993102ea8572d7
parent7f32fa46438d1f7f5bf4c81aaa966a2b523f3e82 (diff)
downloadrtems-054b1c6fe98ea37657a8afd5c917ea74d013acd1.tar.bz2
2011-03-16 Jennifer Averett <jennifer.averett@OARcorp.com>
PR 1729/cpukit * aclocal/enable-smp.m4: New file.
-rw-r--r--ChangeLog5
-rw-r--r--aclocal/enable-smp.m418
2 files changed, 23 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index c1a4c95f33..fc04d00397 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2011-03-16 Jennifer Averett <jennifer.averett@OARcorp.com>
+
+ PR 1729/cpukit
+ * aclocal/enable-smp.m4: New file.
+
2011-03-14 Joel Sherrill <joel.sherrilL@OARcorp.com>
* Makefile.maint: Remove started_ada.
diff --git a/aclocal/enable-smp.m4 b/aclocal/enable-smp.m4
new file mode 100644
index 0000000000..97cfef18c9
--- /dev/null
+++ b/aclocal/enable-smp.m4
@@ -0,0 +1,18 @@
+dnl $Id$
+
+AC_DEFUN([RTEMS_ENABLE_SMP],
+[
+## AC_BEFORE([$0], [RTEMS_CHECK_SMP])dnl
+
+AC_ARG_ENABLE(smp,
+[AS_HELP_STRING([--enable-smp],[enable smp interface])],
+[case "${enableval}" in
+ yes) case "${RTEMS_CPU}" in
+ sparc|i386) RTEMS_HAS_SMP=no ;;
+ *) RTEMS_HAS_SMP=no ;;
+ esac
+ ;;
+ no) RTEMS_HAS_SMP=no ;;
+ *) AC_MSG_ERROR(bad value ${enableval} for enable-smp option) ;;
+esac],[RTEMS_HAS_SMP=no])
+])