summaryrefslogtreecommitdiffstats
path: root/cpukit/aclocal
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2011-02-25 06:17:36 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2011-02-25 06:17:36 +0000
commit38d1150ecf3abab8e1aab5f54618fe6e411adc46 (patch)
tree879f2958e68086f16499713578fdf71388e5d2d8 /cpukit/aclocal
parent2011-02-25 Ralf Corsépius <ralf.corsepius@rtems.org> (diff)
downloadrtems-38d1150ecf3abab8e1aab5f54618fe6e411adc46.tar.bz2
2011-02-25 Ralf Corsépius <ralf.corsepius@rtems.org>
* aclocal/canonical-target-name.m4: Stop pretending no_cpu* was buildable. Derive RTEMS_CPU from "$host_cpu". Error out if "$host" doesn't match "*-*-rtems*".
Diffstat (limited to 'cpukit/aclocal')
-rw-r--r--cpukit/aclocal/canonical-target-name.m415
1 files changed, 9 insertions, 6 deletions
diff --git a/cpukit/aclocal/canonical-target-name.m4 b/cpukit/aclocal/canonical-target-name.m4
index f2a1d66a09..230583bf8c 100644
--- a/cpukit/aclocal/canonical-target-name.m4
+++ b/cpukit/aclocal/canonical-target-name.m4
@@ -12,13 +12,16 @@ AC_DEFUN([RTEMS_CANONICAL_TARGET_CPU],
[AC_REQUIRE([AC_CANONICAL_HOST])
AC_MSG_CHECKING(rtems target cpu)
case "${host}" in
- no_cpu-*rtems*)
- RTEMS_CPU=no_cpu
- ;;
- *)
- RTEMS_CPU=`echo $host | sed 's%^\([[^-]]*\)-\(.*\)$%\1%'`
+*-*-rtems*)
+ RTEMS_CPU="$host_cpu";;
+*)
;;
esac
+AS_IF([test -n "$RTEMS_CPU"],
+[dnl
+AC_MSG_RESULT($RTEMS_CPU)],
+[dnl
+AC_MSG_RESULT([<none>])
+AC_MSG_ERROR([unsupported host $host])])
AC_SUBST(RTEMS_CPU)
-AC_MSG_RESULT($RTEMS_CPU)
])