source: rtems/aclocal/canonical-target-name.m4 @ 817466c

4.104.114.84.95
Last change on this file since 817466c was dfe7746e, checked in by Joel Sherrill <joel.sherrill@…>, on 03/17/99 at 23:43:32

Patch from Ralf Corsepius <corsepiu@…>

  • Property mode set to 100644
File size: 919 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_REQUIRE([AC_CANONICAL_SYSTEM])
14AC_MSG_CHECKING(rtems target cpu)
15changequote(,)dnl
16case "${target}" in
17  # hpux unix port should go here
18  i[3456]86-go32-rtems*)
19        target_cpu=i386
20        ;;
21  i[3456]86-pc-linux*)          # unix "simulator" port
22        target_cpu=unix
23        ;;
24  i[3456]86-*freebsd2*)         # unix "simulator" port
25        target_cpu=unix
26        ;;
27  no_cpu-*rtems*)
28        target_cpu=no_cpu
29        ;;
30  ppc*-*rtems*)
31        target_cpu=powerpc
32        ;;
33  sparc-sun-solaris*)           # unix "simulator" port
34        target_cpu=unix
35        ;;
36  *)
37        target_cpu=`echo $target | sed 's%^\([^-]*\)-\(.*\)$%\1%'`
38        ;;
39esac
40changequote([,])dnl
41AC_MSG_RESULT($target_cpu)
42])
Note: See TracBrowser for help on using the repository browser.