summaryrefslogtreecommitdiffstats
path: root/cpukit/acinclude.m4
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2003-11-27 14:36:23 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2003-11-27 14:36:23 +0000
commit1bcbe4100cdbde09ce3f3f8511d9c5fe05a5fe81 (patch)
treef08827056ea10eb7c1dedc9844f802c3cbe670d4 /cpukit/acinclude.m4
parent2003-11-27 Ralf Corsepius <corsepiu@faw.uni-ulm.de> (diff)
downloadrtems-1bcbe4100cdbde09ce3f3f8511d9c5fe05a5fe81.tar.bz2
2003-11-27 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* configure.ac: Use here-documents to generate cpuopts.tmp. Various fixes and changes to argument processing. Reflect changes to librpc Makefile.ams. * acinclude.m4: Use here-documents to generate cpuopts.tmp. * aclocal/check-itron.m4: Remove HAS_IRON_API. * aclocal/check-multiprocessing.m4: Remove HAS_MP. * aclocal/check-posix.m4: Remove HAS_POSIX_API.
Diffstat (limited to 'cpukit/acinclude.m4')
-rw-r--r--cpukit/acinclude.m419
1 files changed, 14 insertions, 5 deletions
diff --git a/cpukit/acinclude.m4 b/cpukit/acinclude.m4
index 8cceb11682..fdf2bec89b 100644
--- a/cpukit/acinclude.m4
+++ b/cpukit/acinclude.m4
@@ -2,11 +2,20 @@
AC_DEFUN([RTEMS_CPUOPT],
[
- echo >> cpuopts.tmp
- echo "/* $4 */" >> cpuopts.tmp
if $2; then
- echo "#define $1 $3" >> cpuopts.tmp
+cat >>cpuopts.tmp <<\_ACEOF
+
+/* $4 */
+#define $1 $3
+_ACEOF
+## FIXME: Duplicate the define to the autoheader
+## Sanity check - Should be removed in future
+ AC_DEFINE([$1],[$3],[$4])
else
- echo "/* #undef $1 */" >> cpuopts.tmp
- fi
+cat >>cpuopts.tmp <<\_ACEOF
+
+/* $4 */
+/* #undef $1 */
+_ACEOF
+ fi
])