source: rtems/testsuites/aclocal/canonical-target-name.m4 @ c17ed71

4.104.114.84.95
Last change on this file since c17ed71 was 0e8262cf, checked in by Ralf Corsepius <ralf.corsepius@…>, on 11/26/03 at 06:21:00

2003-11-26 Ralf Corsepius <corsepiu@…>

  • aclocal/canonical-target-name.m4, aclocal/canonicalize-tools.m4, aclocal/check-custom-bsp.m4, aclocal/check-cxx.m4, aclocal/check-itron.m4, aclocal/check-multiprocessing.m4, aclocal/check-networking.m4, aclocal/check-posix.m4, aclocal/check-tool.m4, aclocal/config-subdirs.m4, aclocal/enable-bare.m4, aclocal/enable-cxx.m4, aclocal/enable-itron.m4, aclocal/enable-multiprocessing.m4, aclocal/enable-networking.m4, aclocal/enable-posix.m4, aclocal/enable-rtemsbsp.m4, aclocal/enable-tests.m4, aclocal/env-rtemsbsp.m4, aclocal/gcc-isystem.m4, aclocal/gcc-pipe.m4, aclocal/gcc-specs.m4, aclocal/multilib.m4, aclocal/path-ksh.m4, aclocal/prog-cc.m4, aclocal/prog-cxx.m4, aclocal/project-root.m4, aclocal/rtems-test-no-pause.m4, aclocal/rtems-top.m4, aclocal/target.m4, aclocal/tool-paths.m4: Fix underquoting to silence automake-1.8.
  • Property mode set to 100644
File size: 1.1 KB
Line 
1dnl
2dnl $Id$
3dnl
4
5dnl canonicalize target cpu
6dnl NOTE: Most rtems targets do not fullfil autoconf's
7dnl target naming conventions "processor-vendor-os"
8dnl Therefore autoconf's AC_CANONICAL_TARGET will fail for them
9dnl and we have to fix it for rtems ourselves
10
11AC_DEFUN([RTEMS_CANONICAL_TARGET_CPU],
12[
13AC_CANONICAL_HOST
14AC_MSG_CHECKING(rtems target cpu)
15case "${host}" in
16  # hpux unix port should go here
17  i[[34567]]86-*linux*)         # unix "simulator" port
18        RTEMS_CPU=unix
19        RTEMS_HOST=Linux
20        ;;
21  i[[34567]]86-*freebsd*)       # unix "simulator" port
22        RTEMS_CPU=unix
23        RTEMS_HOST=FreeBSD
24        ;;
25  i[[34567]]86-pc-cygwin*)      # Cygwin is just enough unix like :)
26        RTEMS_CPU=unix
27        RTEMS_HOST=Cygwin
28        ;;
29  no_cpu-*rtems*)
30        RTEMS_CPU=no_cpu
31        RTEMS_HOST=$host_os
32        ;;
33  sparc-sun-solaris*)           # unix "simulator" port
34        RTEMS_CPU=unix
35        RTEMS_HOST=Solaris
36        ;;
37  tic4x-*rtems*)                # gcc changed the name
38        RTEMS_CPU=c4x
39        RTEMS_HOST=$host_os
40        ;;
41  *)
42        RTEMS_CPU=`echo $host | sed 's%^\([[^-]]*\)-\(.*\)$%\1%'`
43        RTEMS_HOST=$host_os
44        ;;
45esac
46AC_SUBST(RTEMS_CPU)
47AC_SUBST(RTEMS_HOST)
48AC_MSG_RESULT($RTEMS_CPU)
49])
Note: See TracBrowser for help on using the repository browser.