summaryrefslogtreecommitdiffstats
path: root/testsuites/aclocal
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2005-11-09 01:55:43 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2005-11-09 01:55:43 +0000
commitd800e867140d7f24d97a372ee10efe2b6216514b (patch)
tree2e2ccea92fc259f7acec64f4ee01ed4ec96dbe88 /testsuites/aclocal
parentRemove stray comment (diff)
downloadrtems-d800e867140d7f24d97a372ee10efe2b6216514b.tar.bz2
2005-11-08 Ralf Corsepius <ralf.corsepius@rtems.org>
* aclocal/check-cpuopts.m4: New.
Diffstat (limited to 'testsuites/aclocal')
-rw-r--r--testsuites/aclocal/check-cpuopts.m414
1 files changed, 14 insertions, 0 deletions
diff --git a/testsuites/aclocal/check-cpuopts.m4 b/testsuites/aclocal/check-cpuopts.m4
new file mode 100644
index 0000000000..dcbb3a7c4a
--- /dev/null
+++ b/testsuites/aclocal/check-cpuopts.m4
@@ -0,0 +1,14 @@
+# RTEMS_CHECK_CPUOPTS(define)
+AC_DEFUN([RTEMS_CHECK_CPUOPTS],
+[
+AC_MSG_CHECKING([for $1])
+AC_COMPILE_IFELSE([
+#include <rtems/score/cpuopts.h>
+#ifndef $1
+choke me
+#endif
+],
+[rtems_cv_$1=yes],
+[rtems_cv_$1=no])
+AC_MSG_RESULT([$rtems_cv_$1])
+])