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

4.104.114.84.95
Last change on this file since 3c69a774 was 3c69a774, checked in by Ralf Corsepius <ralf.corsepius@…>, on 08/18/03 at 05:40:53

2003-08-17 Ralf Corsepius <corsepiu@…>

  • aclocal/bsp-alias.m4: New (Copied from ../../../aclocal).
  • aclocal/canonical-host.m4: New (Copied from ../../../aclocal).
  • aclocal/canonicalize-tools.m4: New (Copied from ../../../aclocal).
  • aclocal/canonical-target-name.m4: New (Copied from ../../../aclocal).
  • aclocal/check-cpu.m4: New (Copied from ../../../aclocal).
  • aclocal/check-custom-bsp.m4: New (Copied from ../../../aclocal).
  • aclocal/check-cxx.m4: New (Copied from ../../../aclocal).
  • aclocal/check-itron.m4: New (Copied from ../../../aclocal).
  • aclocal/check-multiprocessing.m4: New (Copied from ../../../aclocal).
  • aclocal/check-networking.m4: New (Copied from ../../../aclocal).
  • aclocal/check-posix.m4: New (Copied from ../../../aclocal).
  • aclocal/check-tool.m4: New (Copied from ../../../aclocal).
  • aclocal/config-subdirs.m4: New (Copied from ../../../aclocal).
  • aclocal/enable-bare.m4: New (Copied from ../../../aclocal).
  • aclocal/enable-cxx.m4: New (Copied from ../../../aclocal).
  • aclocal/enable-itron.m4: New (Copied from ../../../aclocal).
  • aclocal/enable-multiprocessing.m4: New (Copied from ../../../aclocal).
  • aclocal/enable-networking.m4: New (Copied from ../../../aclocal).
  • aclocal/enable-posix.m4: New (Copied from ../../../aclocal).
  • aclocal/enable-rtemsbsp.m4: New (Copied from ../../../aclocal).
  • aclocal/enable-tests.m4: New (Copied from ../../../aclocal).
  • aclocal/env-rtemsbsp.m4: New (Copied from ../../../aclocal).
  • aclocal/gcc-isystem.m4: New (Copied from ../../../aclocal).
  • aclocal/gcc-pipe.m4: New (Copied from ../../../aclocal).
  • aclocal/gcc-specs.m4: New (Copied from ../../../aclocal).
  • aclocal/multilib.m4: New (Copied from ../../../aclocal).
  • aclocal/path-ksh.m4: New (Copied from ../../../aclocal).
  • aclocal/prog-cc.m4: New (Copied from ../../../aclocal).
  • aclocal/prog-cxx.m4: New (Copied from ../../../aclocal).
  • aclocal/project-root.m4: New (Copied from ../../../aclocal).
  • aclocal/quoting.m4: New (Copied from ../../../aclocal).
  • aclocal/rtems-cpu-subdirs.m4: New (Copied from ../../../aclocal).
  • aclocal/rtems-flags.m4: New (Copied from ../../../aclocal).
  • aclocal/rtems-test-no-pause.m4: New (Copied from ../../../aclocal).
  • aclocal/rtems-top.m4: New (Copied from ../../../aclocal).
  • aclocal/target.m4: New (Copied from ../../../aclocal).
  • aclocal/tool-paths.m4: New (Copied from ../../../aclocal).
  • aclocal/version.m4: New (Copied from ../../../aclocal).
  • Property mode set to 100644
File size: 954 bytes
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_TARGET
14AC_MSG_CHECKING(rtems target cpu)
15case "${target}" in
16  # hpux unix port should go here
17  i[[34567]]86-*linux*)         # unix "simulator" port
18        RTEMS_CPU=unix
19        ;;
20  i[[34567]]86-*freebsd*)       # unix "simulator" port
21        RTEMS_CPU=unix
22        ;;
23  i[[34567]]86-pc-cygwin*)      # Cygwin is just enough unix like :)
24        RTEMS_CPU=unix
25        ;;
26  no_cpu-*rtems*)
27        RTEMS_CPU=no_cpu
28        ;;
29  sparc-sun-solaris*)           # unix "simulator" port
30        RTEMS_CPU=unix
31        ;;
32  tic4x-*rtems*)                # gcc changed the name
33        RTEMS_CPU=c4x
34        ;;
35  *)
36        RTEMS_CPU=`echo $target | sed 's%^\([[^-]]*\)-\(.*\)$%\1%'`
37        ;;
38esac
39AC_SUBST(RTEMS_CPU)
40AC_MSG_RESULT($RTEMS_CPU)
41])
Note: See TracBrowser for help on using the repository browser.