Changeset dfe7746 in rtems for aclocal


Ignore:
Timestamp:
Mar 17, 1999, 11:43:32 PM (21 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
1105818d
Parents:
55b8fef2
Message:

Patch from Ralf Corsepius <corsepiu@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • aclocal/canonical-target-name.m4

    r55b8fef2 rdfe7746  
    33dnl
    44
    5 dnl canonicalize target name
     5dnl canonicalize target cpu
    66dnl NOTE: Most rtems targets do not fullfil autoconf's
    77dnl target naming conventions "processor-vendor-os"
     
    1010
    1111AC_DEFUN(RTEMS_CANONICAL_TARGET_CPU,
    12 [AC_MSG_CHECKING(rtems target cpu)
    13 changequote(<<, >>)dnl
    14 target_cpu=`echo $target | sed 's%^\([^-]*\)-\(.*\)$%\1%'`
    15 changequote([, ])dnl
     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
    1641AC_MSG_RESULT($target_cpu)
    1742])
Note: See TracChangeset for help on using the changeset viewer.