|
Packit |
fd8b60 |
#! /bin/sh
|
|
Packit |
fd8b60 |
# Configuration validation subroutine script.
|
|
Packit |
fd8b60 |
# Copyright 1992-2020 Free Software Foundation, Inc.
|
|
Packit |
fd8b60 |
|
|
Packit |
fd8b60 |
timestamp='2020-01-01'
|
|
Packit |
fd8b60 |
|
|
Packit |
fd8b60 |
# This file is free software; you can redistribute it and/or modify it
|
|
Packit |
fd8b60 |
# under the terms of the GNU General Public License as published by
|
|
Packit |
fd8b60 |
# the Free Software Foundation; either version 3 of the License, or
|
|
Packit |
fd8b60 |
# (at your option) any later version.
|
|
Packit |
fd8b60 |
#
|
|
Packit |
fd8b60 |
# This program is distributed in the hope that it will be useful, but
|
|
Packit |
fd8b60 |
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit |
fd8b60 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit |
fd8b60 |
# General Public License for more details.
|
|
Packit |
fd8b60 |
#
|
|
Packit |
fd8b60 |
# You should have received a copy of the GNU General Public License
|
|
Packit |
fd8b60 |
# along with this program; if not, see <https://www.gnu.org/licenses/>.
|
|
Packit |
fd8b60 |
#
|
|
Packit |
fd8b60 |
# As a special exception to the GNU General Public License, if you
|
|
Packit |
fd8b60 |
# distribute this file as part of a program that contains a
|
|
Packit |
fd8b60 |
# configuration script generated by Autoconf, you may include it under
|
|
Packit |
fd8b60 |
# the same distribution terms that you use for the rest of that
|
|
Packit |
fd8b60 |
# program. This Exception is an additional permission under section 7
|
|
Packit |
fd8b60 |
# of the GNU General Public License, version 3 ("GPLv3").
|
|
Packit |
fd8b60 |
|
|
Packit |
fd8b60 |
|
|
Packit |
fd8b60 |
# Please send patches to <config-patches@gnu.org>.
|
|
Packit |
fd8b60 |
#
|
|
Packit |
fd8b60 |
# Configuration subroutine to validate and canonicalize a configuration type.
|
|
Packit |
fd8b60 |
# Supply the specified configuration type as an argument.
|
|
Packit |
fd8b60 |
# If it is invalid, we print an error message on stderr and exit with code 1.
|
|
Packit |
fd8b60 |
# Otherwise, we print the canonical config type on stdout and succeed.
|
|
Packit |
fd8b60 |
|
|
Packit |
fd8b60 |
# You can get the latest version of this script from:
|
|
Packit |
fd8b60 |
# https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub
|
|
Packit |
fd8b60 |
|
|
Packit |
fd8b60 |
# This file is supposed to be the same for all GNU packages
|
|
Packit |
fd8b60 |
# and recognize all the CPU types, system types and aliases
|
|
Packit |
fd8b60 |
# that are meaningful with *any* GNU software.
|
|
Packit |
fd8b60 |
# Each package is responsible for reporting which valid configurations
|
|
Packit |
fd8b60 |
# it does not support. The user should be able to distinguish
|
|
Packit |
fd8b60 |
# a failure to support a valid configuration from a meaningless
|
|
Packit |
fd8b60 |
# configuration.
|
|
Packit |
fd8b60 |
|
|
Packit |
fd8b60 |
# The goal of this file is to map all the various variations of a given
|
|
Packit |
fd8b60 |
# machine specification into a single specification in the form:
|
|
Packit |
fd8b60 |
# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
|
|
Packit |
fd8b60 |
# or in some cases, the newer four-part form:
|
|
Packit |
fd8b60 |
# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
|
|
Packit |
fd8b60 |
# It is wrong to echo any other type of specification.
|
|
Packit |
fd8b60 |
|
|
Packit |
fd8b60 |
me=`echo "$0" | sed -e 's,.*/,,'`
|
|
Packit |
fd8b60 |
|
|
Packit |
fd8b60 |
usage="\
|
|
Packit |
fd8b60 |
Usage: $0 [OPTION] CPU-MFR-OPSYS or ALIAS
|
|
Packit |
fd8b60 |
|
|
Packit |
fd8b60 |
Canonicalize a configuration name.
|
|
Packit |
fd8b60 |
|
|
Packit |
fd8b60 |
Options:
|
|
Packit |
fd8b60 |
-h, --help print this help, then exit
|
|
Packit |
fd8b60 |
-t, --time-stamp print date of last modification, then exit
|
|
Packit |
fd8b60 |
-v, --version print version number, then exit
|
|
Packit |
fd8b60 |
|
|
Packit |
fd8b60 |
Report bugs and patches to <config-patches@gnu.org>."
|
|
Packit |
fd8b60 |
|
|
Packit |
fd8b60 |
version="\
|
|
Packit |
fd8b60 |
GNU config.sub ($timestamp)
|
|
Packit |
fd8b60 |
|
|
Packit |
fd8b60 |
Copyright 1992-2020 Free Software Foundation, Inc.
|
|
Packit |
fd8b60 |
|
|
Packit |
fd8b60 |
This is free software; see the source for copying conditions. There is NO
|
|
Packit |
fd8b60 |
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
|
|
Packit |
fd8b60 |
|
|
Packit |
fd8b60 |
help="
|
|
Packit |
fd8b60 |
Try \`$me --help' for more information."
|
|
Packit |
fd8b60 |
|
|
Packit |
fd8b60 |
# Parse command line
|
|
Packit |
fd8b60 |
while test $# -gt 0 ; do
|
|
Packit |
fd8b60 |
case $1 in
|
|
Packit |
fd8b60 |
--time-stamp | --time* | -t )
|
|
Packit |
fd8b60 |
echo "$timestamp" ; exit ;;
|
|
Packit |
fd8b60 |
--version | -v )
|
|
Packit |
fd8b60 |
echo "$version" ; exit ;;
|
|
Packit |
fd8b60 |
--help | --h* | -h )
|
|
Packit |
fd8b60 |
echo "$usage"; exit ;;
|
|
Packit |
fd8b60 |
-- ) # Stop option processing
|
|
Packit |
fd8b60 |
shift; break ;;
|
|
Packit |
fd8b60 |
- ) # Use stdin as input.
|
|
Packit |
fd8b60 |
break ;;
|
|
Packit |
fd8b60 |
-* )
|
|
Packit |
fd8b60 |
echo "$me: invalid option $1$help" >&2
|
|
Packit |
fd8b60 |
exit 1 ;;
|
|
Packit |
fd8b60 |
|
|
Packit |
fd8b60 |
*local*)
|
|
Packit |
fd8b60 |
# First pass through any local machine types.
|
|
Packit |
fd8b60 |
echo "$1"
|
|
Packit |
fd8b60 |
exit ;;
|
|
Packit |
fd8b60 |
|
|
Packit |
fd8b60 |
* )
|
|
Packit |
fd8b60 |
break ;;
|
|
Packit |
fd8b60 |
esac
|
|
Packit |
fd8b60 |
done
|
|
Packit |
fd8b60 |
|
|
Packit |
fd8b60 |
case $# in
|
|
Packit |
fd8b60 |
0) echo "$me: missing argument$help" >&2
|
|
Packit |
fd8b60 |
exit 1;;
|
|
Packit |
fd8b60 |
1) ;;
|
|
Packit |
fd8b60 |
*) echo "$me: too many arguments$help" >&2
|
|
Packit |
fd8b60 |
exit 1;;
|
|
Packit |
fd8b60 |
esac
|
|
Packit |
fd8b60 |
|
|
Packit |
fd8b60 |
# Split fields of configuration type
|
|
Packit |
fd8b60 |
# shellcheck disable=SC2162
|
|
Packit |
fd8b60 |
IFS="-" read field1 field2 field3 field4 <
|
|
Packit |
fd8b60 |
$1
|
|
Packit |
fd8b60 |
EOF
|
|
Packit |
fd8b60 |
|
|
Packit |
fd8b60 |
# Separate into logical components for further validation
|
|
Packit |
fd8b60 |
case $1 in
|
|
Packit |
fd8b60 |
*-*-*-*-*)
|
|
Packit |
fd8b60 |
echo Invalid configuration \`"$1"\': more than four components >&2
|
|
Packit |
fd8b60 |
exit 1
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
*-*-*-*)
|
|
Packit |
fd8b60 |
basic_machine=$field1-$field2
|
|
Packit |
fd8b60 |
os=$field3-$field4
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
*-*-*)
|
|
Packit |
fd8b60 |
# Ambiguous whether COMPANY is present, or skipped and KERNEL-OS is two
|
|
Packit |
fd8b60 |
# parts
|
|
Packit |
fd8b60 |
maybe_os=$field2-$field3
|
|
Packit |
fd8b60 |
case $maybe_os in
|
|
Packit |
fd8b60 |
nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc \
|
|
Packit |
fd8b60 |
| linux-newlib* | linux-musl* | linux-uclibc* | uclinux-uclibc* \
|
|
Packit |
fd8b60 |
| uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* \
|
|
Packit |
fd8b60 |
| netbsd*-eabi* | kopensolaris*-gnu* | cloudabi*-eabi* \
|
|
Packit |
fd8b60 |
| storm-chaos* | os2-emx* | rtmk-nova*)
|
|
Packit |
fd8b60 |
basic_machine=$field1
|
|
Packit |
fd8b60 |
os=$maybe_os
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
android-linux)
|
|
Packit |
fd8b60 |
basic_machine=$field1-unknown
|
|
Packit |
fd8b60 |
os=linux-android
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
*)
|
|
Packit |
fd8b60 |
basic_machine=$field1-$field2
|
|
Packit |
fd8b60 |
os=$field3
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
esac
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
*-*)
|
|
Packit |
fd8b60 |
# A lone config we happen to match not fitting any pattern
|
|
Packit |
fd8b60 |
case $field1-$field2 in
|
|
Packit |
fd8b60 |
decstation-3100)
|
|
Packit |
fd8b60 |
basic_machine=mips-dec
|
|
Packit |
fd8b60 |
os=
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
*-*)
|
|
Packit |
fd8b60 |
# Second component is usually, but not always the OS
|
|
Packit |
fd8b60 |
case $field2 in
|
|
Packit |
fd8b60 |
# Prevent following clause from handling this valid os
|
|
Packit |
fd8b60 |
sun*os*)
|
|
Packit |
fd8b60 |
basic_machine=$field1
|
|
Packit |
fd8b60 |
os=$field2
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
# Manufacturers
|
|
Packit |
fd8b60 |
dec* | mips* | sequent* | encore* | pc533* | sgi* | sony* \
|
|
Packit |
fd8b60 |
| att* | 7300* | 3300* | delta* | motorola* | sun[234]* \
|
|
Packit |
fd8b60 |
| unicom* | ibm* | next | hp | isi* | apollo | altos* \
|
|
Packit |
fd8b60 |
| convergent* | ncr* | news | 32* | 3600* | 3100* \
|
|
Packit |
fd8b60 |
| hitachi* | c[123]* | convex* | sun | crds | omron* | dg \
|
|
Packit |
fd8b60 |
| ultra | tti* | harris | dolphin | highlevel | gould \
|
|
Packit |
fd8b60 |
| cbm | ns | masscomp | apple | axis | knuth | cray \
|
|
Packit |
fd8b60 |
| microblaze* | sim | cisco \
|
|
Packit |
fd8b60 |
| oki | wec | wrs | winbond)
|
|
Packit |
fd8b60 |
basic_machine=$field1-$field2
|
|
Packit |
fd8b60 |
os=
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
*)
|
|
Packit |
fd8b60 |
basic_machine=$field1
|
|
Packit |
fd8b60 |
os=$field2
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
esac
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
esac
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
*)
|
|
Packit |
fd8b60 |
# Convert single-component short-hands not valid as part of
|
|
Packit |
fd8b60 |
# multi-component configurations.
|
|
Packit |
fd8b60 |
case $field1 in
|
|
Packit |
fd8b60 |
386bsd)
|
|
Packit |
fd8b60 |
basic_machine=i386-pc
|
|
Packit |
fd8b60 |
os=bsd
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
a29khif)
|
|
Packit |
fd8b60 |
basic_machine=a29k-amd
|
|
Packit |
fd8b60 |
os=udi
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
adobe68k)
|
|
Packit |
fd8b60 |
basic_machine=m68010-adobe
|
|
Packit |
fd8b60 |
os=scout
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
alliant)
|
|
Packit |
fd8b60 |
basic_machine=fx80-alliant
|
|
Packit |
fd8b60 |
os=
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
altos | altos3068)
|
|
Packit |
fd8b60 |
basic_machine=m68k-altos
|
|
Packit |
fd8b60 |
os=
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
am29k)
|
|
Packit |
fd8b60 |
basic_machine=a29k-none
|
|
Packit |
fd8b60 |
os=bsd
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
amdahl)
|
|
Packit |
fd8b60 |
basic_machine=580-amdahl
|
|
Packit |
fd8b60 |
os=sysv
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
amiga)
|
|
Packit |
fd8b60 |
basic_machine=m68k-unknown
|
|
Packit |
fd8b60 |
os=
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
amigaos | amigados)
|
|
Packit |
fd8b60 |
basic_machine=m68k-unknown
|
|
Packit |
fd8b60 |
os=amigaos
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
amigaunix | amix)
|
|
Packit |
fd8b60 |
basic_machine=m68k-unknown
|
|
Packit |
fd8b60 |
os=sysv4
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
apollo68)
|
|
Packit |
fd8b60 |
basic_machine=m68k-apollo
|
|
Packit |
fd8b60 |
os=sysv
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
apollo68bsd)
|
|
Packit |
fd8b60 |
basic_machine=m68k-apollo
|
|
Packit |
fd8b60 |
os=bsd
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
aros)
|
|
Packit |
fd8b60 |
basic_machine=i386-pc
|
|
Packit |
fd8b60 |
os=aros
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
aux)
|
|
Packit |
fd8b60 |
basic_machine=m68k-apple
|
|
Packit |
fd8b60 |
os=aux
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
balance)
|
|
Packit |
fd8b60 |
basic_machine=ns32k-sequent
|
|
Packit |
fd8b60 |
os=dynix
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
blackfin)
|
|
Packit |
fd8b60 |
basic_machine=bfin-unknown
|
|
Packit |
fd8b60 |
os=linux
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
cegcc)
|
|
Packit |
fd8b60 |
basic_machine=arm-unknown
|
|
Packit |
fd8b60 |
os=cegcc
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
convex-c1)
|
|
Packit |
fd8b60 |
basic_machine=c1-convex
|
|
Packit |
fd8b60 |
os=bsd
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
convex-c2)
|
|
Packit |
fd8b60 |
basic_machine=c2-convex
|
|
Packit |
fd8b60 |
os=bsd
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
convex-c32)
|
|
Packit |
fd8b60 |
basic_machine=c32-convex
|
|
Packit |
fd8b60 |
os=bsd
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
convex-c34)
|
|
Packit |
fd8b60 |
basic_machine=c34-convex
|
|
Packit |
fd8b60 |
os=bsd
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
convex-c38)
|
|
Packit |
fd8b60 |
basic_machine=c38-convex
|
|
Packit |
fd8b60 |
os=bsd
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
cray)
|
|
Packit |
fd8b60 |
basic_machine=j90-cray
|
|
Packit |
fd8b60 |
os=unicos
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
crds | unos)
|
|
Packit |
fd8b60 |
basic_machine=m68k-crds
|
|
Packit |
fd8b60 |
os=
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
da30)
|
|
Packit |
fd8b60 |
basic_machine=m68k-da30
|
|
Packit |
fd8b60 |
os=
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
decstation | pmax | pmin | dec3100 | decstatn)
|
|
Packit |
fd8b60 |
basic_machine=mips-dec
|
|
Packit |
fd8b60 |
os=
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
delta88)
|
|
Packit |
fd8b60 |
basic_machine=m88k-motorola
|
|
Packit |
fd8b60 |
os=sysv3
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
dicos)
|
|
Packit |
fd8b60 |
basic_machine=i686-pc
|
|
Packit |
fd8b60 |
os=dicos
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
djgpp)
|
|
Packit |
fd8b60 |
basic_machine=i586-pc
|
|
Packit |
fd8b60 |
os=msdosdjgpp
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
ebmon29k)
|
|
Packit |
fd8b60 |
basic_machine=a29k-amd
|
|
Packit |
fd8b60 |
os=ebmon
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
es1800 | OSE68k | ose68k | ose | OSE)
|
|
Packit |
fd8b60 |
basic_machine=m68k-ericsson
|
|
Packit |
fd8b60 |
os=ose
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
gmicro)
|
|
Packit |
fd8b60 |
basic_machine=tron-gmicro
|
|
Packit |
fd8b60 |
os=sysv
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
go32)
|
|
Packit |
fd8b60 |
basic_machine=i386-pc
|
|
Packit |
fd8b60 |
os=go32
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
h8300hms)
|
|
Packit |
fd8b60 |
basic_machine=h8300-hitachi
|
|
Packit |
fd8b60 |
os=hms
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
h8300xray)
|
|
Packit |
fd8b60 |
basic_machine=h8300-hitachi
|
|
Packit |
fd8b60 |
os=xray
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
h8500hms)
|
|
Packit |
fd8b60 |
basic_machine=h8500-hitachi
|
|
Packit |
fd8b60 |
os=hms
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
harris)
|
|
Packit |
fd8b60 |
basic_machine=m88k-harris
|
|
Packit |
fd8b60 |
os=sysv3
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
hp300 | hp300hpux)
|
|
Packit |
fd8b60 |
basic_machine=m68k-hp
|
|
Packit |
fd8b60 |
os=hpux
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
hp300bsd)
|
|
Packit |
fd8b60 |
basic_machine=m68k-hp
|
|
Packit |
fd8b60 |
os=bsd
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
hppaosf)
|
|
Packit |
fd8b60 |
basic_machine=hppa1.1-hp
|
|
Packit |
fd8b60 |
os=osf
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
hppro)
|
|
Packit |
fd8b60 |
basic_machine=hppa1.1-hp
|
|
Packit |
fd8b60 |
os=proelf
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
i386mach)
|
|
Packit |
fd8b60 |
basic_machine=i386-mach
|
|
Packit |
fd8b60 |
os=mach
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
isi68 | isi)
|
|
Packit |
fd8b60 |
basic_machine=m68k-isi
|
|
Packit |
fd8b60 |
os=sysv
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
m68knommu)
|
|
Packit |
fd8b60 |
basic_machine=m68k-unknown
|
|
Packit |
fd8b60 |
os=linux
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
magnum | m3230)
|
|
Packit |
fd8b60 |
basic_machine=mips-mips
|
|
Packit |
fd8b60 |
os=sysv
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
merlin)
|
|
Packit |
fd8b60 |
basic_machine=ns32k-utek
|
|
Packit |
fd8b60 |
os=sysv
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
mingw64)
|
|
Packit |
fd8b60 |
basic_machine=x86_64-pc
|
|
Packit |
fd8b60 |
os=mingw64
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
mingw32)
|
|
Packit |
fd8b60 |
basic_machine=i686-pc
|
|
Packit |
fd8b60 |
os=mingw32
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
mingw32ce)
|
|
Packit |
fd8b60 |
basic_machine=arm-unknown
|
|
Packit |
fd8b60 |
os=mingw32ce
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
monitor)
|
|
Packit |
fd8b60 |
basic_machine=m68k-rom68k
|
|
Packit |
fd8b60 |
os=coff
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
morphos)
|
|
Packit |
fd8b60 |
basic_machine=powerpc-unknown
|
|
Packit |
fd8b60 |
os=morphos
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
moxiebox)
|
|
Packit |
fd8b60 |
basic_machine=moxie-unknown
|
|
Packit |
fd8b60 |
os=moxiebox
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
msdos)
|
|
Packit |
fd8b60 |
basic_machine=i386-pc
|
|
Packit |
fd8b60 |
os=msdos
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
msys)
|
|
Packit |
fd8b60 |
basic_machine=i686-pc
|
|
Packit |
fd8b60 |
os=msys
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
mvs)
|
|
Packit |
fd8b60 |
basic_machine=i370-ibm
|
|
Packit |
fd8b60 |
os=mvs
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
nacl)
|
|
Packit |
fd8b60 |
basic_machine=le32-unknown
|
|
Packit |
fd8b60 |
os=nacl
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
ncr3000)
|
|
Packit |
fd8b60 |
basic_machine=i486-ncr
|
|
Packit |
fd8b60 |
os=sysv4
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
netbsd386)
|
|
Packit |
fd8b60 |
basic_machine=i386-pc
|
|
Packit |
fd8b60 |
os=netbsd
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
netwinder)
|
|
Packit |
fd8b60 |
basic_machine=armv4l-rebel
|
|
Packit |
fd8b60 |
os=linux
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
news | news700 | news800 | news900)
|
|
Packit |
fd8b60 |
basic_machine=m68k-sony
|
|
Packit |
fd8b60 |
os=newsos
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
news1000)
|
|
Packit |
fd8b60 |
basic_machine=m68030-sony
|
|
Packit |
fd8b60 |
os=newsos
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
necv70)
|
|
Packit |
fd8b60 |
basic_machine=v70-nec
|
|
Packit |
fd8b60 |
os=sysv
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
nh3000)
|
|
Packit |
fd8b60 |
basic_machine=m68k-harris
|
|
Packit |
fd8b60 |
os=cxux
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
nh[45]000)
|
|
Packit |
fd8b60 |
basic_machine=m88k-harris
|
|
Packit |
fd8b60 |
os=cxux
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
nindy960)
|
|
Packit |
fd8b60 |
basic_machine=i960-intel
|
|
Packit |
fd8b60 |
os=nindy
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
mon960)
|
|
Packit |
fd8b60 |
basic_machine=i960-intel
|
|
Packit |
fd8b60 |
os=mon960
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
nonstopux)
|
|
Packit |
fd8b60 |
basic_machine=mips-compaq
|
|
Packit |
fd8b60 |
os=nonstopux
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
os400)
|
|
Packit |
fd8b60 |
basic_machine=powerpc-ibm
|
|
Packit |
fd8b60 |
os=os400
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
OSE68000 | ose68000)
|
|
Packit |
fd8b60 |
basic_machine=m68000-ericsson
|
|
Packit |
fd8b60 |
os=ose
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
os68k)
|
|
Packit |
fd8b60 |
basic_machine=m68k-none
|
|
Packit |
fd8b60 |
os=os68k
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
paragon)
|
|
Packit |
fd8b60 |
basic_machine=i860-intel
|
|
Packit |
fd8b60 |
os=osf
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
parisc)
|
|
Packit |
fd8b60 |
basic_machine=hppa-unknown
|
|
Packit |
fd8b60 |
os=linux
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
pw32)
|
|
Packit |
fd8b60 |
basic_machine=i586-unknown
|
|
Packit |
fd8b60 |
os=pw32
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
rdos | rdos64)
|
|
Packit |
fd8b60 |
basic_machine=x86_64-pc
|
|
Packit |
fd8b60 |
os=rdos
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
rdos32)
|
|
Packit |
fd8b60 |
basic_machine=i386-pc
|
|
Packit |
fd8b60 |
os=rdos
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
rom68k)
|
|
Packit |
fd8b60 |
basic_machine=m68k-rom68k
|
|
Packit |
fd8b60 |
os=coff
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
sa29200)
|
|
Packit |
fd8b60 |
basic_machine=a29k-amd
|
|
Packit |
fd8b60 |
os=udi
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
sei)
|
|
Packit |
fd8b60 |
basic_machine=mips-sei
|
|
Packit |
fd8b60 |
os=seiux
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
sequent)
|
|
Packit |
fd8b60 |
basic_machine=i386-sequent
|
|
Packit |
fd8b60 |
os=
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
sps7)
|
|
Packit |
fd8b60 |
basic_machine=m68k-bull
|
|
Packit |
fd8b60 |
os=sysv2
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
st2000)
|
|
Packit |
fd8b60 |
basic_machine=m68k-tandem
|
|
Packit |
fd8b60 |
os=
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
stratus)
|
|
Packit |
fd8b60 |
basic_machine=i860-stratus
|
|
Packit |
fd8b60 |
os=sysv4
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
sun2)
|
|
Packit |
fd8b60 |
basic_machine=m68000-sun
|
|
Packit |
fd8b60 |
os=
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
sun2os3)
|
|
Packit |
fd8b60 |
basic_machine=m68000-sun
|
|
Packit |
fd8b60 |
os=sunos3
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
sun2os4)
|
|
Packit |
fd8b60 |
basic_machine=m68000-sun
|
|
Packit |
fd8b60 |
os=sunos4
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
sun3)
|
|
Packit |
fd8b60 |
basic_machine=m68k-sun
|
|
Packit |
fd8b60 |
os=
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
sun3os3)
|
|
Packit |
fd8b60 |
basic_machine=m68k-sun
|
|
Packit |
fd8b60 |
os=sunos3
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
sun3os4)
|
|
Packit |
fd8b60 |
basic_machine=m68k-sun
|
|
Packit |
fd8b60 |
os=sunos4
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
sun4)
|
|
Packit |
fd8b60 |
basic_machine=sparc-sun
|
|
Packit |
fd8b60 |
os=
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
sun4os3)
|
|
Packit |
fd8b60 |
basic_machine=sparc-sun
|
|
Packit |
fd8b60 |
os=sunos3
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
sun4os4)
|
|
Packit |
fd8b60 |
basic_machine=sparc-sun
|
|
Packit |
fd8b60 |
os=sunos4
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
sun4sol2)
|
|
Packit |
fd8b60 |
basic_machine=sparc-sun
|
|
Packit |
fd8b60 |
os=solaris2
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
sun386 | sun386i | roadrunner)
|
|
Packit |
fd8b60 |
basic_machine=i386-sun
|
|
Packit |
fd8b60 |
os=
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
sv1)
|
|
Packit |
fd8b60 |
basic_machine=sv1-cray
|
|
Packit |
fd8b60 |
os=unicos
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
symmetry)
|
|
Packit |
fd8b60 |
basic_machine=i386-sequent
|
|
Packit |
fd8b60 |
os=dynix
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
t3e)
|
|
Packit |
fd8b60 |
basic_machine=alphaev5-cray
|
|
Packit |
fd8b60 |
os=unicos
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
t90)
|
|
Packit |
fd8b60 |
basic_machine=t90-cray
|
|
Packit |
fd8b60 |
os=unicos
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
toad1)
|
|
Packit |
fd8b60 |
basic_machine=pdp10-xkl
|
|
Packit |
fd8b60 |
os=tops20
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
tpf)
|
|
Packit |
fd8b60 |
basic_machine=s390x-ibm
|
|
Packit |
fd8b60 |
os=tpf
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
udi29k)
|
|
Packit |
fd8b60 |
basic_machine=a29k-amd
|
|
Packit |
fd8b60 |
os=udi
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
ultra3)
|
|
Packit |
fd8b60 |
basic_machine=a29k-nyu
|
|
Packit |
fd8b60 |
os=sym1
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
v810 | necv810)
|
|
Packit |
fd8b60 |
basic_machine=v810-nec
|
|
Packit |
fd8b60 |
os=none
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
vaxv)
|
|
Packit |
fd8b60 |
basic_machine=vax-dec
|
|
Packit |
fd8b60 |
os=sysv
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
vms)
|
|
Packit |
fd8b60 |
basic_machine=vax-dec
|
|
Packit |
fd8b60 |
os=vms
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
vsta)
|
|
Packit |
fd8b60 |
basic_machine=i386-pc
|
|
Packit |
fd8b60 |
os=vsta
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
vxworks960)
|
|
Packit |
fd8b60 |
basic_machine=i960-wrs
|
|
Packit |
fd8b60 |
os=vxworks
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
vxworks68)
|
|
Packit |
fd8b60 |
basic_machine=m68k-wrs
|
|
Packit |
fd8b60 |
os=vxworks
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
vxworks29k)
|
|
Packit |
fd8b60 |
basic_machine=a29k-wrs
|
|
Packit |
fd8b60 |
os=vxworks
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
xbox)
|
|
Packit |
fd8b60 |
basic_machine=i686-pc
|
|
Packit |
fd8b60 |
os=mingw32
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
ymp)
|
|
Packit |
fd8b60 |
basic_machine=ymp-cray
|
|
Packit |
fd8b60 |
os=unicos
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
*)
|
|
Packit |
fd8b60 |
basic_machine=$1
|
|
Packit |
fd8b60 |
os=
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
esac
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
esac
|
|
Packit |
fd8b60 |
|
|
Packit |
fd8b60 |
# Decode 1-component or ad-hoc basic machines
|
|
Packit |
fd8b60 |
case $basic_machine in
|
|
Packit |
fd8b60 |
# Here we handle the default manufacturer of certain CPU types. It is in
|
|
Packit |
fd8b60 |
# some cases the only manufacturer, in others, it is the most popular.
|
|
Packit |
fd8b60 |
w89k)
|
|
Packit |
fd8b60 |
cpu=hppa1.1
|
|
Packit |
fd8b60 |
vendor=winbond
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
op50n)
|
|
Packit |
fd8b60 |
cpu=hppa1.1
|
|
Packit |
fd8b60 |
vendor=oki
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
op60c)
|
|
Packit |
fd8b60 |
cpu=hppa1.1
|
|
Packit |
fd8b60 |
vendor=oki
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
ibm*)
|
|
Packit |
fd8b60 |
cpu=i370
|
|
Packit |
fd8b60 |
vendor=ibm
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
orion105)
|
|
Packit |
fd8b60 |
cpu=clipper
|
|
Packit |
fd8b60 |
vendor=highlevel
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
mac | mpw | mac-mpw)
|
|
Packit |
fd8b60 |
cpu=m68k
|
|
Packit |
fd8b60 |
vendor=apple
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
pmac | pmac-mpw)
|
|
Packit |
fd8b60 |
cpu=powerpc
|
|
Packit |
fd8b60 |
vendor=apple
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
|
|
Packit |
fd8b60 |
# Recognize the various machine names and aliases which stand
|
|
Packit |
fd8b60 |
# for a CPU type and a company and sometimes even an OS.
|
|
Packit |
fd8b60 |
3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
|
|
Packit |
fd8b60 |
cpu=m68000
|
|
Packit |
fd8b60 |
vendor=att
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
3b*)
|
|
Packit |
fd8b60 |
cpu=we32k
|
|
Packit |
fd8b60 |
vendor=att
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
bluegene*)
|
|
Packit |
fd8b60 |
cpu=powerpc
|
|
Packit |
fd8b60 |
vendor=ibm
|
|
Packit |
fd8b60 |
os=cnk
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
decsystem10* | dec10*)
|
|
Packit |
fd8b60 |
cpu=pdp10
|
|
Packit |
fd8b60 |
vendor=dec
|
|
Packit |
fd8b60 |
os=tops10
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
decsystem20* | dec20*)
|
|
Packit |
fd8b60 |
cpu=pdp10
|
|
Packit |
fd8b60 |
vendor=dec
|
|
Packit |
fd8b60 |
os=tops20
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
delta | 3300 | motorola-3300 | motorola-delta \
|
|
Packit |
fd8b60 |
| 3300-motorola | delta-motorola)
|
|
Packit |
fd8b60 |
cpu=m68k
|
|
Packit |
fd8b60 |
vendor=motorola
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
dpx2*)
|
|
Packit |
fd8b60 |
cpu=m68k
|
|
Packit |
fd8b60 |
vendor=bull
|
|
Packit |
fd8b60 |
os=sysv3
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
encore | umax | mmax)
|
|
Packit |
fd8b60 |
cpu=ns32k
|
|
Packit |
fd8b60 |
vendor=encore
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
elxsi)
|
|
Packit |
fd8b60 |
cpu=elxsi
|
|
Packit |
fd8b60 |
vendor=elxsi
|
|
Packit |
fd8b60 |
os=${os:-bsd}
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
fx2800)
|
|
Packit |
fd8b60 |
cpu=i860
|
|
Packit |
fd8b60 |
vendor=alliant
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
genix)
|
|
Packit |
fd8b60 |
cpu=ns32k
|
|
Packit |
fd8b60 |
vendor=ns
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
h3050r* | hiux*)
|
|
Packit |
fd8b60 |
cpu=hppa1.1
|
|
Packit |
fd8b60 |
vendor=hitachi
|
|
Packit |
fd8b60 |
os=hiuxwe2
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
hp3k9[0-9][0-9] | hp9[0-9][0-9])
|
|
Packit |
fd8b60 |
cpu=hppa1.0
|
|
Packit |
fd8b60 |
vendor=hp
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
hp9k2[0-9][0-9] | hp9k31[0-9])
|
|
Packit |
fd8b60 |
cpu=m68000
|
|
Packit |
fd8b60 |
vendor=hp
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
hp9k3[2-9][0-9])
|
|
Packit |
fd8b60 |
cpu=m68k
|
|
Packit |
fd8b60 |
vendor=hp
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
hp9k6[0-9][0-9] | hp6[0-9][0-9])
|
|
Packit |
fd8b60 |
cpu=hppa1.0
|
|
Packit |
fd8b60 |
vendor=hp
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
hp9k7[0-79][0-9] | hp7[0-79][0-9])
|
|
Packit |
fd8b60 |
cpu=hppa1.1
|
|
Packit |
fd8b60 |
vendor=hp
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
hp9k78[0-9] | hp78[0-9])
|
|
Packit |
fd8b60 |
# FIXME: really hppa2.0-hp
|
|
Packit |
fd8b60 |
cpu=hppa1.1
|
|
Packit |
fd8b60 |
vendor=hp
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
|
|
Packit |
fd8b60 |
# FIXME: really hppa2.0-hp
|
|
Packit |
fd8b60 |
cpu=hppa1.1
|
|
Packit |
fd8b60 |
vendor=hp
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
hp9k8[0-9][13679] | hp8[0-9][13679])
|
|
Packit |
fd8b60 |
cpu=hppa1.1
|
|
Packit |
fd8b60 |
vendor=hp
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
hp9k8[0-9][0-9] | hp8[0-9][0-9])
|
|
Packit |
fd8b60 |
cpu=hppa1.0
|
|
Packit |
fd8b60 |
vendor=hp
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
i*86v32)
|
|
Packit |
fd8b60 |
cpu=`echo "$1" | sed -e 's/86.*/86/'`
|
|
Packit |
fd8b60 |
vendor=pc
|
|
Packit |
fd8b60 |
os=sysv32
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
i*86v4*)
|
|
Packit |
fd8b60 |
cpu=`echo "$1" | sed -e 's/86.*/86/'`
|
|
Packit |
fd8b60 |
vendor=pc
|
|
Packit |
fd8b60 |
os=sysv4
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
i*86v)
|
|
Packit |
fd8b60 |
cpu=`echo "$1" | sed -e 's/86.*/86/'`
|
|
Packit |
fd8b60 |
vendor=pc
|
|
Packit |
fd8b60 |
os=sysv
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
i*86sol2)
|
|
Packit |
fd8b60 |
cpu=`echo "$1" | sed -e 's/86.*/86/'`
|
|
Packit |
fd8b60 |
vendor=pc
|
|
Packit |
fd8b60 |
os=solaris2
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
j90 | j90-cray)
|
|
Packit |
fd8b60 |
cpu=j90
|
|
Packit |
fd8b60 |
vendor=cray
|
|
Packit |
fd8b60 |
os=${os:-unicos}
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
iris | iris4d)
|
|
Packit |
fd8b60 |
cpu=mips
|
|
Packit |
fd8b60 |
vendor=sgi
|
|
Packit |
fd8b60 |
case $os in
|
|
Packit |
fd8b60 |
irix*)
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
*)
|
|
Packit |
fd8b60 |
os=irix4
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
esac
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
miniframe)
|
|
Packit |
fd8b60 |
cpu=m68000
|
|
Packit |
fd8b60 |
vendor=convergent
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
*mint | mint[0-9]* | *MiNT | *MiNT[0-9]*)
|
|
Packit |
fd8b60 |
cpu=m68k
|
|
Packit |
fd8b60 |
vendor=atari
|
|
Packit |
fd8b60 |
os=mint
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
news-3600 | risc-news)
|
|
Packit |
fd8b60 |
cpu=mips
|
|
Packit |
fd8b60 |
vendor=sony
|
|
Packit |
fd8b60 |
os=newsos
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
next | m*-next)
|
|
Packit |
fd8b60 |
cpu=m68k
|
|
Packit |
fd8b60 |
vendor=next
|
|
Packit |
fd8b60 |
case $os in
|
|
Packit |
fd8b60 |
openstep*)
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
nextstep*)
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
ns2*)
|
|
Packit |
fd8b60 |
os=nextstep2
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
*)
|
|
Packit |
fd8b60 |
os=nextstep3
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
esac
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
np1)
|
|
Packit |
fd8b60 |
cpu=np1
|
|
Packit |
fd8b60 |
vendor=gould
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
op50n-* | op60c-*)
|
|
Packit |
fd8b60 |
cpu=hppa1.1
|
|
Packit |
fd8b60 |
vendor=oki
|
|
Packit |
fd8b60 |
os=proelf
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
pa-hitachi)
|
|
Packit |
fd8b60 |
cpu=hppa1.1
|
|
Packit |
fd8b60 |
vendor=hitachi
|
|
Packit |
fd8b60 |
os=hiuxwe2
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
pbd)
|
|
Packit |
fd8b60 |
cpu=sparc
|
|
Packit |
fd8b60 |
vendor=tti
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
pbb)
|
|
Packit |
fd8b60 |
cpu=m68k
|
|
Packit |
fd8b60 |
vendor=tti
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
pc532)
|
|
Packit |
fd8b60 |
cpu=ns32k
|
|
Packit |
fd8b60 |
vendor=pc532
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
pn)
|
|
Packit |
fd8b60 |
cpu=pn
|
|
Packit |
fd8b60 |
vendor=gould
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
power)
|
|
Packit |
fd8b60 |
cpu=power
|
|
Packit |
fd8b60 |
vendor=ibm
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
ps2)
|
|
Packit |
fd8b60 |
cpu=i386
|
|
Packit |
fd8b60 |
vendor=ibm
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
rm[46]00)
|
|
Packit |
fd8b60 |
cpu=mips
|
|
Packit |
fd8b60 |
vendor=siemens
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
rtpc | rtpc-*)
|
|
Packit |
fd8b60 |
cpu=romp
|
|
Packit |
fd8b60 |
vendor=ibm
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
sde)
|
|
Packit |
fd8b60 |
cpu=mipsisa32
|
|
Packit |
fd8b60 |
vendor=sde
|
|
Packit |
fd8b60 |
os=${os:-elf}
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
simso-wrs)
|
|
Packit |
fd8b60 |
cpu=sparclite
|
|
Packit |
fd8b60 |
vendor=wrs
|
|
Packit |
fd8b60 |
os=vxworks
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
tower | tower-32)
|
|
Packit |
fd8b60 |
cpu=m68k
|
|
Packit |
fd8b60 |
vendor=ncr
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
vpp*|vx|vx-*)
|
|
Packit |
fd8b60 |
cpu=f301
|
|
Packit |
fd8b60 |
vendor=fujitsu
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
w65)
|
|
Packit |
fd8b60 |
cpu=w65
|
|
Packit |
fd8b60 |
vendor=wdc
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
w89k-*)
|
|
Packit |
fd8b60 |
cpu=hppa1.1
|
|
Packit |
fd8b60 |
vendor=winbond
|
|
Packit |
fd8b60 |
os=proelf
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
none)
|
|
Packit |
fd8b60 |
cpu=none
|
|
Packit |
fd8b60 |
vendor=none
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
leon|leon[3-9])
|
|
Packit |
fd8b60 |
cpu=sparc
|
|
Packit |
fd8b60 |
vendor=$basic_machine
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
leon-*|leon[3-9]-*)
|
|
Packit |
fd8b60 |
cpu=sparc
|
|
Packit |
fd8b60 |
vendor=`echo "$basic_machine" | sed 's/-.*//'`
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
|
|
Packit |
fd8b60 |
*-*)
|
|
Packit |
fd8b60 |
# shellcheck disable=SC2162
|
|
Packit |
fd8b60 |
IFS="-" read cpu vendor <
|
|
Packit |
fd8b60 |
$basic_machine
|
|
Packit |
fd8b60 |
EOF
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
# We use `pc' rather than `unknown'
|
|
Packit |
fd8b60 |
# because (1) that's what they normally are, and
|
|
Packit |
fd8b60 |
# (2) the word "unknown" tends to confuse beginning users.
|
|
Packit |
fd8b60 |
i*86 | x86_64)
|
|
Packit |
fd8b60 |
cpu=$basic_machine
|
|
Packit |
fd8b60 |
vendor=pc
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
# These rules are duplicated from below for sake of the special case above;
|
|
Packit |
fd8b60 |
# i.e. things that normalized to x86 arches should also default to "pc"
|
|
Packit |
fd8b60 |
pc98)
|
|
Packit |
fd8b60 |
cpu=i386
|
|
Packit |
fd8b60 |
vendor=pc
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
x64 | amd64)
|
|
Packit |
fd8b60 |
cpu=x86_64
|
|
Packit |
fd8b60 |
vendor=pc
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
# Recognize the basic CPU types without company name.
|
|
Packit |
fd8b60 |
*)
|
|
Packit |
fd8b60 |
cpu=$basic_machine
|
|
Packit |
fd8b60 |
vendor=unknown
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
esac
|
|
Packit |
fd8b60 |
|
|
Packit |
fd8b60 |
unset -v basic_machine
|
|
Packit |
fd8b60 |
|
|
Packit |
fd8b60 |
# Decode basic machines in the full and proper CPU-Company form.
|
|
Packit |
fd8b60 |
case $cpu-$vendor in
|
|
Packit |
fd8b60 |
# Here we handle the default manufacturer of certain CPU types in canonical form. It is in
|
|
Packit |
fd8b60 |
# some cases the only manufacturer, in others, it is the most popular.
|
|
Packit |
fd8b60 |
craynv-unknown)
|
|
Packit |
fd8b60 |
vendor=cray
|
|
Packit |
fd8b60 |
os=${os:-unicosmp}
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
c90-unknown | c90-cray)
|
|
Packit |
fd8b60 |
vendor=cray
|
|
Packit |
fd8b60 |
os=${os:-unicos}
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
fx80-unknown)
|
|
Packit |
fd8b60 |
vendor=alliant
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
romp-unknown)
|
|
Packit |
fd8b60 |
vendor=ibm
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
mmix-unknown)
|
|
Packit |
fd8b60 |
vendor=knuth
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
microblaze-unknown | microblazeel-unknown)
|
|
Packit |
fd8b60 |
vendor=xilinx
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
rs6000-unknown)
|
|
Packit |
fd8b60 |
vendor=ibm
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
vax-unknown)
|
|
Packit |
fd8b60 |
vendor=dec
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
pdp11-unknown)
|
|
Packit |
fd8b60 |
vendor=dec
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
we32k-unknown)
|
|
Packit |
fd8b60 |
vendor=att
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
cydra-unknown)
|
|
Packit |
fd8b60 |
vendor=cydrome
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
i370-ibm*)
|
|
Packit |
fd8b60 |
vendor=ibm
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
orion-unknown)
|
|
Packit |
fd8b60 |
vendor=highlevel
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
xps-unknown | xps100-unknown)
|
|
Packit |
fd8b60 |
cpu=xps100
|
|
Packit |
fd8b60 |
vendor=honeywell
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
|
|
Packit |
fd8b60 |
# Here we normalize CPU types with a missing or matching vendor
|
|
Packit |
fd8b60 |
dpx20-unknown | dpx20-bull)
|
|
Packit |
fd8b60 |
cpu=rs6000
|
|
Packit |
fd8b60 |
vendor=bull
|
|
Packit |
fd8b60 |
os=${os:-bosx}
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
|
|
Packit |
fd8b60 |
# Here we normalize CPU types irrespective of the vendor
|
|
Packit |
fd8b60 |
amd64-*)
|
|
Packit |
fd8b60 |
cpu=x86_64
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
blackfin-*)
|
|
Packit |
fd8b60 |
cpu=bfin
|
|
Packit |
fd8b60 |
os=linux
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
c54x-*)
|
|
Packit |
fd8b60 |
cpu=tic54x
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
c55x-*)
|
|
Packit |
fd8b60 |
cpu=tic55x
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
c6x-*)
|
|
Packit |
fd8b60 |
cpu=tic6x
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
e500v[12]-*)
|
|
Packit |
fd8b60 |
cpu=powerpc
|
|
Packit |
fd8b60 |
os=$os"spe"
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
mips3*-*)
|
|
Packit |
fd8b60 |
cpu=mips64
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
ms1-*)
|
|
Packit |
fd8b60 |
cpu=mt
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
m68knommu-*)
|
|
Packit |
fd8b60 |
cpu=m68k
|
|
Packit |
fd8b60 |
os=linux
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
m9s12z-* | m68hcs12z-* | hcs12z-* | s12z-*)
|
|
Packit |
fd8b60 |
cpu=s12z
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
openrisc-*)
|
|
Packit |
fd8b60 |
cpu=or32
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
parisc-*)
|
|
Packit |
fd8b60 |
cpu=hppa
|
|
Packit |
fd8b60 |
os=linux
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
|
|
Packit |
fd8b60 |
cpu=i586
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
pentiumpro-* | p6-* | 6x86-* | athlon-* | athalon_*-*)
|
|
Packit |
fd8b60 |
cpu=i686
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
|
|
Packit |
fd8b60 |
cpu=i686
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
pentium4-*)
|
|
Packit |
fd8b60 |
cpu=i786
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
pc98-*)
|
|
Packit |
fd8b60 |
cpu=i386
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
ppc-* | ppcbe-*)
|
|
Packit |
fd8b60 |
cpu=powerpc
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
ppcle-* | powerpclittle-*)
|
|
Packit |
fd8b60 |
cpu=powerpcle
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
ppc64-*)
|
|
Packit |
fd8b60 |
cpu=powerpc64
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
ppc64le-* | powerpc64little-*)
|
|
Packit |
fd8b60 |
cpu=powerpc64le
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
sb1-*)
|
|
Packit |
fd8b60 |
cpu=mipsisa64sb1
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
sb1el-*)
|
|
Packit |
fd8b60 |
cpu=mipsisa64sb1el
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
sh5e[lb]-*)
|
|
Packit |
fd8b60 |
cpu=`echo "$cpu" | sed 's/^\(sh.\)e\(.\)$/\1\2e/'`
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
spur-*)
|
|
Packit |
fd8b60 |
cpu=spur
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
strongarm-* | thumb-*)
|
|
Packit |
fd8b60 |
cpu=arm
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
tx39-*)
|
|
Packit |
fd8b60 |
cpu=mipstx39
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
tx39el-*)
|
|
Packit |
fd8b60 |
cpu=mipstx39el
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
x64-*)
|
|
Packit |
fd8b60 |
cpu=x86_64
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
xscale-* | xscalee[bl]-*)
|
|
Packit |
fd8b60 |
cpu=`echo "$cpu" | sed 's/^xscale/arm/'`
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
|
|
Packit |
fd8b60 |
# Recognize the canonical CPU Types that limit and/or modify the
|
|
Packit |
fd8b60 |
# company names they are paired with.
|
|
Packit |
fd8b60 |
cr16-*)
|
|
Packit |
fd8b60 |
os=${os:-elf}
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
crisv32-* | etraxfs*-*)
|
|
Packit |
fd8b60 |
cpu=crisv32
|
|
Packit |
fd8b60 |
vendor=axis
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
cris-* | etrax*-*)
|
|
Packit |
fd8b60 |
cpu=cris
|
|
Packit |
fd8b60 |
vendor=axis
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
crx-*)
|
|
Packit |
fd8b60 |
os=${os:-elf}
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
neo-tandem)
|
|
Packit |
fd8b60 |
cpu=neo
|
|
Packit |
fd8b60 |
vendor=tandem
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
nse-tandem)
|
|
Packit |
fd8b60 |
cpu=nse
|
|
Packit |
fd8b60 |
vendor=tandem
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
nsr-tandem)
|
|
Packit |
fd8b60 |
cpu=nsr
|
|
Packit |
fd8b60 |
vendor=tandem
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
nsv-tandem)
|
|
Packit |
fd8b60 |
cpu=nsv
|
|
Packit |
fd8b60 |
vendor=tandem
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
nsx-tandem)
|
|
Packit |
fd8b60 |
cpu=nsx
|
|
Packit |
fd8b60 |
vendor=tandem
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
s390-*)
|
|
Packit |
fd8b60 |
cpu=s390
|
|
Packit |
fd8b60 |
vendor=ibm
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
s390x-*)
|
|
Packit |
fd8b60 |
cpu=s390x
|
|
Packit |
fd8b60 |
vendor=ibm
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
tile*-*)
|
|
Packit |
fd8b60 |
os=${os:-linux-gnu}
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
|
|
Packit |
fd8b60 |
*)
|
|
Packit |
fd8b60 |
# Recognize the canonical CPU types that are allowed with any
|
|
Packit |
fd8b60 |
# company name.
|
|
Packit |
fd8b60 |
case $cpu in
|
|
Packit |
fd8b60 |
1750a | 580 \
|
|
Packit |
fd8b60 |
| a29k \
|
|
Packit |
fd8b60 |
| aarch64 | aarch64_be \
|
|
Packit |
fd8b60 |
| abacus \
|
|
Packit |
fd8b60 |
| alpha | alphaev[4-8] | alphaev56 | alphaev6[78] \
|
|
Packit |
fd8b60 |
| alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] \
|
|
Packit |
fd8b60 |
| alphapca5[67] | alpha64pca5[67] \
|
|
Packit |
fd8b60 |
| am33_2.0 \
|
|
Packit |
fd8b60 |
| amdgcn \
|
|
Packit |
fd8b60 |
| arc | arceb \
|
|
Packit |
fd8b60 |
| arm | arm[lb]e | arme[lb] | armv* \
|
|
Packit |
fd8b60 |
| avr | avr32 \
|
|
Packit |
fd8b60 |
| asmjs \
|
|
Packit |
fd8b60 |
| ba \
|
|
Packit |
fd8b60 |
| be32 | be64 \
|
|
Packit |
fd8b60 |
| bfin | bpf | bs2000 \
|
|
Packit |
fd8b60 |
| c[123]* | c30 | [cjt]90 | c4x \
|
|
Packit |
fd8b60 |
| c8051 | clipper | craynv | csky | cydra \
|
|
Packit |
fd8b60 |
| d10v | d30v | dlx | dsp16xx \
|
|
Packit |
fd8b60 |
| e2k | elxsi | epiphany \
|
|
Packit |
fd8b60 |
| f30[01] | f700 | fido | fr30 | frv | ft32 | fx80 \
|
|
Packit |
fd8b60 |
| h8300 | h8500 \
|
|
Packit |
fd8b60 |
| hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
|
|
Packit |
fd8b60 |
| hexagon \
|
|
Packit |
fd8b60 |
| i370 | i*86 | i860 | i960 | ia16 | ia64 \
|
|
Packit |
fd8b60 |
| ip2k | iq2000 \
|
|
Packit |
fd8b60 |
| k1om \
|
|
Packit |
fd8b60 |
| le32 | le64 \
|
|
Packit |
fd8b60 |
| lm32 \
|
|
Packit |
fd8b60 |
| m32c | m32r | m32rle \
|
|
Packit |
fd8b60 |
| m5200 | m68000 | m680[012346]0 | m68360 | m683?2 | m68k \
|
|
Packit |
fd8b60 |
| m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x \
|
|
Packit |
fd8b60 |
| m88110 | m88k | maxq | mb | mcore | mep | metag \
|
|
Packit |
fd8b60 |
| microblaze | microblazeel \
|
|
Packit |
fd8b60 |
| mips | mipsbe | mipseb | mipsel | mipsle \
|
|
Packit |
fd8b60 |
| mips16 \
|
|
Packit |
fd8b60 |
| mips64 | mips64eb | mips64el \
|
|
Packit |
fd8b60 |
| mips64octeon | mips64octeonel \
|
|
Packit |
fd8b60 |
| mips64orion | mips64orionel \
|
|
Packit |
fd8b60 |
| mips64r5900 | mips64r5900el \
|
|
Packit |
fd8b60 |
| mips64vr | mips64vrel \
|
|
Packit |
fd8b60 |
| mips64vr4100 | mips64vr4100el \
|
|
Packit |
fd8b60 |
| mips64vr4300 | mips64vr4300el \
|
|
Packit |
fd8b60 |
| mips64vr5000 | mips64vr5000el \
|
|
Packit |
fd8b60 |
| mips64vr5900 | mips64vr5900el \
|
|
Packit |
fd8b60 |
| mipsisa32 | mipsisa32el \
|
|
Packit |
fd8b60 |
| mipsisa32r2 | mipsisa32r2el \
|
|
Packit |
fd8b60 |
| mipsisa32r6 | mipsisa32r6el \
|
|
Packit |
fd8b60 |
| mipsisa64 | mipsisa64el \
|
|
Packit |
fd8b60 |
| mipsisa64r2 | mipsisa64r2el \
|
|
Packit |
fd8b60 |
| mipsisa64r6 | mipsisa64r6el \
|
|
Packit |
fd8b60 |
| mipsisa64sb1 | mipsisa64sb1el \
|
|
Packit |
fd8b60 |
| mipsisa64sr71k | mipsisa64sr71kel \
|
|
Packit |
fd8b60 |
| mipsr5900 | mipsr5900el \
|
|
Packit |
fd8b60 |
| mipstx39 | mipstx39el \
|
|
Packit |
fd8b60 |
| mmix \
|
|
Packit |
fd8b60 |
| mn10200 | mn10300 \
|
|
Packit |
fd8b60 |
| moxie \
|
|
Packit |
fd8b60 |
| mt \
|
|
Packit |
fd8b60 |
| msp430 \
|
|
Packit |
fd8b60 |
| nds32 | nds32le | nds32be \
|
|
Packit |
fd8b60 |
| nfp \
|
|
Packit |
fd8b60 |
| nios | nios2 | nios2eb | nios2el \
|
|
Packit |
fd8b60 |
| none | np1 | ns16k | ns32k | nvptx \
|
|
Packit |
fd8b60 |
| open8 \
|
|
Packit |
fd8b60 |
| or1k* \
|
|
Packit |
fd8b60 |
| or32 \
|
|
Packit |
fd8b60 |
| orion \
|
|
Packit |
fd8b60 |
| picochip \
|
|
Packit |
fd8b60 |
| pdp10 | pdp11 | pj | pjl | pn | power \
|
|
Packit |
fd8b60 |
| powerpc | powerpc64 | powerpc64le | powerpcle | powerpcspe \
|
|
Packit |
fd8b60 |
| pru \
|
|
Packit |
fd8b60 |
| pyramid \
|
|
Packit |
fd8b60 |
| riscv | riscv32 | riscv64 \
|
|
Packit |
fd8b60 |
| rl78 | romp | rs6000 | rx \
|
|
Packit |
fd8b60 |
| score \
|
|
Packit |
fd8b60 |
| sh | shl \
|
|
Packit |
fd8b60 |
| sh[1234] | sh[24]a | sh[24]ae[lb] | sh[23]e | she[lb] | sh[lb]e \
|
|
Packit |
fd8b60 |
| sh[1234]e[lb] | sh[12345][lb]e | sh[23]ele | sh64 | sh64le \
|
|
Packit |
fd8b60 |
| sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet \
|
|
Packit |
fd8b60 |
| sparclite \
|
|
Packit |
fd8b60 |
| sparcv8 | sparcv9 | sparcv9b | sparcv9v | sv1 | sx* \
|
|
Packit |
fd8b60 |
| spu \
|
|
Packit |
fd8b60 |
| tahoe \
|
|
Packit |
fd8b60 |
| tic30 | tic4x | tic54x | tic55x | tic6x | tic80 \
|
|
Packit |
fd8b60 |
| tron \
|
|
Packit |
fd8b60 |
| ubicom32 \
|
|
Packit |
fd8b60 |
| v70 | v850 | v850e | v850e1 | v850es | v850e2 | v850e2v3 \
|
|
Packit |
fd8b60 |
| vax \
|
|
Packit |
fd8b60 |
| visium \
|
|
Packit |
fd8b60 |
| w65 \
|
|
Packit |
fd8b60 |
| wasm32 | wasm64 \
|
|
Packit |
fd8b60 |
| we32k \
|
|
Packit |
fd8b60 |
| x86 | x86_64 | xc16x | xgate | xps100 \
|
|
Packit |
fd8b60 |
| xstormy16 | xtensa* \
|
|
Packit |
fd8b60 |
| ymp \
|
|
Packit |
fd8b60 |
| z8k | z80)
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
|
|
Packit |
fd8b60 |
*)
|
|
Packit |
fd8b60 |
echo Invalid configuration \`"$1"\': machine \`"$cpu-$vendor"\' not recognized 1>&2
|
|
Packit |
fd8b60 |
exit 1
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
esac
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
esac
|
|
Packit |
fd8b60 |
|
|
Packit |
fd8b60 |
# Here we canonicalize certain aliases for manufacturers.
|
|
Packit |
fd8b60 |
case $vendor in
|
|
Packit |
fd8b60 |
digital*)
|
|
Packit |
fd8b60 |
vendor=dec
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
commodore*)
|
|
Packit |
fd8b60 |
vendor=cbm
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
*)
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
esac
|
|
Packit |
fd8b60 |
|
|
Packit |
fd8b60 |
# Decode manufacturer-specific aliases for certain operating systems.
|
|
Packit |
fd8b60 |
|
|
Packit |
fd8b60 |
if [ x$os != x ]
|
|
Packit |
fd8b60 |
then
|
|
Packit |
fd8b60 |
case $os in
|
|
Packit |
fd8b60 |
# First match some system type aliases that might get confused
|
|
Packit |
fd8b60 |
# with valid system types.
|
|
Packit |
fd8b60 |
# solaris* is a basic system type, with this one exception.
|
|
Packit |
fd8b60 |
auroraux)
|
|
Packit |
fd8b60 |
os=auroraux
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
bluegene*)
|
|
Packit |
fd8b60 |
os=cnk
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
solaris1 | solaris1.*)
|
|
Packit |
fd8b60 |
os=`echo $os | sed -e 's|solaris1|sunos4|'`
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
solaris)
|
|
Packit |
fd8b60 |
os=solaris2
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
unixware*)
|
|
Packit |
fd8b60 |
os=sysv4.2uw
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
gnu/linux*)
|
|
Packit |
fd8b60 |
os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
# es1800 is here to avoid being matched by es* (a different OS)
|
|
Packit |
fd8b60 |
es1800*)
|
|
Packit |
fd8b60 |
os=ose
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
# Some version numbers need modification
|
|
Packit |
fd8b60 |
chorusos*)
|
|
Packit |
fd8b60 |
os=chorusos
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
isc)
|
|
Packit |
fd8b60 |
os=isc2.2
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
sco6)
|
|
Packit |
fd8b60 |
os=sco5v6
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
sco5)
|
|
Packit |
fd8b60 |
os=sco3.2v5
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
sco4)
|
|
Packit |
fd8b60 |
os=sco3.2v4
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
sco3.2.[4-9]*)
|
|
Packit |
fd8b60 |
os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
sco3.2v[4-9]* | sco5v6*)
|
|
Packit |
fd8b60 |
# Don't forget version if it is 3.2v4 or newer.
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
scout)
|
|
Packit |
fd8b60 |
# Don't match below
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
sco*)
|
|
Packit |
fd8b60 |
os=sco3.2v2
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
psos*)
|
|
Packit |
fd8b60 |
os=psos
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
# Now accept the basic system types.
|
|
Packit |
fd8b60 |
# The portable systems comes first.
|
|
Packit |
fd8b60 |
# Each alternative MUST end in a * to match a version number.
|
|
Packit |
fd8b60 |
# sysv* is not here because it comes later, after sysvr4.
|
|
Packit |
fd8b60 |
gnu* | bsd* | mach* | minix* | genix* | ultrix* | irix* \
|
|
Packit |
fd8b60 |
| *vms* | esix* | aix* | cnk* | sunos | sunos[34]*\
|
|
Packit |
fd8b60 |
| hpux* | unos* | osf* | luna* | dgux* | auroraux* | solaris* \
|
|
Packit |
fd8b60 |
| sym* | kopensolaris* | plan9* \
|
|
Packit |
fd8b60 |
| amigaos* | amigados* | msdos* | newsos* | unicos* | aof* \
|
|
Packit |
fd8b60 |
| aos* | aros* | cloudabi* | sortix* | twizzler* \
|
|
Packit |
fd8b60 |
| nindy* | vxsim* | vxworks* | ebmon* | hms* | mvs* \
|
|
Packit |
fd8b60 |
| clix* | riscos* | uniplus* | iris* | isc* | rtu* | xenix* \
|
|
Packit |
fd8b60 |
| knetbsd* | mirbsd* | netbsd* \
|
|
Packit |
fd8b60 |
| bitrig* | openbsd* | solidbsd* | libertybsd* | os108* \
|
|
Packit |
fd8b60 |
| ekkobsd* | kfreebsd* | freebsd* | riscix* | lynxos* \
|
|
Packit |
fd8b60 |
| bosx* | nextstep* | cxux* | aout* | elf* | oabi* \
|
|
Packit |
fd8b60 |
| ptx* | coff* | ecoff* | winnt* | domain* | vsta* \
|
|
Packit |
fd8b60 |
| udi* | eabi* | lites* | ieee* | go32* | aux* | hcos* \
|
|
Packit |
fd8b60 |
| chorusrdb* | cegcc* | glidix* \
|
|
Packit |
fd8b60 |
| cygwin* | msys* | pe* | moss* | proelf* | rtems* \
|
|
Packit |
fd8b60 |
| midipix* | mingw32* | mingw64* | linux-gnu* | linux-android* \
|
|
Packit |
fd8b60 |
| linux-newlib* | linux-musl* | linux-uclibc* \
|
|
Packit |
fd8b60 |
| uxpv* | beos* | mpeix* | udk* | moxiebox* \
|
|
Packit |
fd8b60 |
| interix* | uwin* | mks* | rhapsody* | darwin* \
|
|
Packit |
fd8b60 |
| openstep* | oskit* | conix* | pw32* | nonstopux* \
|
|
Packit |
fd8b60 |
| storm-chaos* | tops10* | tenex* | tops20* | its* \
|
|
Packit |
fd8b60 |
| os2* | vos* | palmos* | uclinux* | nucleus* \
|
|
Packit |
fd8b60 |
| morphos* | superux* | rtmk* | windiss* \
|
|
Packit |
fd8b60 |
| powermax* | dnix* | nx6 | nx7 | sei* | dragonfly* \
|
|
Packit |
fd8b60 |
| skyos* | haiku* | rdos* | toppers* | drops* | es* \
|
|
Packit |
fd8b60 |
| onefs* | tirtos* | phoenix* | fuchsia* | redox* | bme* \
|
|
Packit |
fd8b60 |
| midnightbsd* | amdhsa* | unleashed* | emscripten* | wasi* \
|
|
Packit |
fd8b60 |
| nsk* | powerunix)
|
|
Packit |
fd8b60 |
# Remember, each alternative MUST END IN *, to match a version number.
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
qnx*)
|
|
Packit |
fd8b60 |
case $cpu in
|
|
Packit |
fd8b60 |
x86 | i*86)
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
*)
|
|
Packit |
fd8b60 |
os=nto-$os
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
esac
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
hiux*)
|
|
Packit |
fd8b60 |
os=hiuxwe2
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
nto-qnx*)
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
nto*)
|
|
Packit |
fd8b60 |
os=`echo $os | sed -e 's|nto|nto-qnx|'`
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
sim | xray | os68k* | v88r* \
|
|
Packit |
fd8b60 |
| windows* | osx | abug | netware* | os9* \
|
|
Packit |
fd8b60 |
| macos* | mpw* | magic* | mmixware* | mon960* | lnews*)
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
linux-dietlibc)
|
|
Packit |
fd8b60 |
os=linux-dietlibc
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
linux*)
|
|
Packit |
fd8b60 |
os=`echo $os | sed -e 's|linux|linux-gnu|'`
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
lynx*178)
|
|
Packit |
fd8b60 |
os=lynxos178
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
lynx*5)
|
|
Packit |
fd8b60 |
os=lynxos5
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
lynx*)
|
|
Packit |
fd8b60 |
os=lynxos
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
mac*)
|
|
Packit |
fd8b60 |
os=`echo "$os" | sed -e 's|mac|macos|'`
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
opened*)
|
|
Packit |
fd8b60 |
os=openedition
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
os400*)
|
|
Packit |
fd8b60 |
os=os400
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
sunos5*)
|
|
Packit |
fd8b60 |
os=`echo "$os" | sed -e 's|sunos5|solaris2|'`
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
sunos6*)
|
|
Packit |
fd8b60 |
os=`echo "$os" | sed -e 's|sunos6|solaris3|'`
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
wince*)
|
|
Packit |
fd8b60 |
os=wince
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
utek*)
|
|
Packit |
fd8b60 |
os=bsd
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
dynix*)
|
|
Packit |
fd8b60 |
os=bsd
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
acis*)
|
|
Packit |
fd8b60 |
os=aos
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
atheos*)
|
|
Packit |
fd8b60 |
os=atheos
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
syllable*)
|
|
Packit |
fd8b60 |
os=syllable
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
386bsd)
|
|
Packit |
fd8b60 |
os=bsd
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
ctix* | uts*)
|
|
Packit |
fd8b60 |
os=sysv
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
nova*)
|
|
Packit |
fd8b60 |
os=rtmk-nova
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
ns2)
|
|
Packit |
fd8b60 |
os=nextstep2
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
# Preserve the version number of sinix5.
|
|
Packit |
fd8b60 |
sinix5.*)
|
|
Packit |
fd8b60 |
os=`echo $os | sed -e 's|sinix|sysv|'`
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
sinix*)
|
|
Packit |
fd8b60 |
os=sysv4
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
tpf*)
|
|
Packit |
fd8b60 |
os=tpf
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
triton*)
|
|
Packit |
fd8b60 |
os=sysv3
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
oss*)
|
|
Packit |
fd8b60 |
os=sysv3
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
svr4*)
|
|
Packit |
fd8b60 |
os=sysv4
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
svr3)
|
|
Packit |
fd8b60 |
os=sysv3
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
sysvr4)
|
|
Packit |
fd8b60 |
os=sysv4
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
# This must come after sysvr4.
|
|
Packit |
fd8b60 |
sysv*)
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
ose*)
|
|
Packit |
fd8b60 |
os=ose
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
*mint | mint[0-9]* | *MiNT | MiNT[0-9]*)
|
|
Packit |
fd8b60 |
os=mint
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
zvmoe)
|
|
Packit |
fd8b60 |
os=zvmoe
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
dicos*)
|
|
Packit |
fd8b60 |
os=dicos
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
pikeos*)
|
|
Packit |
fd8b60 |
# Until real need of OS specific support for
|
|
Packit |
fd8b60 |
# particular features comes up, bare metal
|
|
Packit |
fd8b60 |
# configurations are quite functional.
|
|
Packit |
fd8b60 |
case $cpu in
|
|
Packit |
fd8b60 |
arm*)
|
|
Packit |
fd8b60 |
os=eabi
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
*)
|
|
Packit |
fd8b60 |
os=elf
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
esac
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
nacl*)
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
ios)
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
none)
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
*-eabi)
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
*)
|
|
Packit |
fd8b60 |
echo Invalid configuration \`"$1"\': system \`"$os"\' not recognized 1>&2
|
|
Packit |
fd8b60 |
exit 1
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
esac
|
|
Packit |
fd8b60 |
else
|
|
Packit |
fd8b60 |
|
|
Packit |
fd8b60 |
# Here we handle the default operating systems that come with various machines.
|
|
Packit |
fd8b60 |
# The value should be what the vendor currently ships out the door with their
|
|
Packit |
fd8b60 |
# machine or put another way, the most popular os provided with the machine.
|
|
Packit |
fd8b60 |
|
|
Packit |
fd8b60 |
# Note that if you're going to try to match "-MANUFACTURER" here (say,
|
|
Packit |
fd8b60 |
# "-sun"), then you have to tell the case statement up towards the top
|
|
Packit |
fd8b60 |
# that MANUFACTURER isn't an operating system. Otherwise, code above
|
|
Packit |
fd8b60 |
# will signal an error saying that MANUFACTURER isn't an operating
|
|
Packit |
fd8b60 |
# system, and we'll never get to this point.
|
|
Packit |
fd8b60 |
|
|
Packit |
fd8b60 |
case $cpu-$vendor in
|
|
Packit |
fd8b60 |
score-*)
|
|
Packit |
fd8b60 |
os=elf
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
spu-*)
|
|
Packit |
fd8b60 |
os=elf
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
*-acorn)
|
|
Packit |
fd8b60 |
os=riscix1.2
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
arm*-rebel)
|
|
Packit |
fd8b60 |
os=linux
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
arm*-semi)
|
|
Packit |
fd8b60 |
os=aout
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
c4x-* | tic4x-*)
|
|
Packit |
fd8b60 |
os=coff
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
c8051-*)
|
|
Packit |
fd8b60 |
os=elf
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
clipper-intergraph)
|
|
Packit |
fd8b60 |
os=clix
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
hexagon-*)
|
|
Packit |
fd8b60 |
os=elf
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
tic54x-*)
|
|
Packit |
fd8b60 |
os=coff
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
tic55x-*)
|
|
Packit |
fd8b60 |
os=coff
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
tic6x-*)
|
|
Packit |
fd8b60 |
os=coff
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
# This must come before the *-dec entry.
|
|
Packit |
fd8b60 |
pdp10-*)
|
|
Packit |
fd8b60 |
os=tops20
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
pdp11-*)
|
|
Packit |
fd8b60 |
os=none
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
*-dec | vax-*)
|
|
Packit |
fd8b60 |
os=ultrix4.2
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
m68*-apollo)
|
|
Packit |
fd8b60 |
os=domain
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
i386-sun)
|
|
Packit |
fd8b60 |
os=sunos4.0.2
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
m68000-sun)
|
|
Packit |
fd8b60 |
os=sunos3
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
m68*-cisco)
|
|
Packit |
fd8b60 |
os=aout
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
mep-*)
|
|
Packit |
fd8b60 |
os=elf
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
mips*-cisco)
|
|
Packit |
fd8b60 |
os=elf
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
mips*-*)
|
|
Packit |
fd8b60 |
os=elf
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
or32-*)
|
|
Packit |
fd8b60 |
os=coff
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
*-tti) # must be before sparc entry or we get the wrong os.
|
|
Packit |
fd8b60 |
os=sysv3
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
sparc-* | *-sun)
|
|
Packit |
fd8b60 |
os=sunos4.1.1
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
pru-*)
|
|
Packit |
fd8b60 |
os=elf
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
*-be)
|
|
Packit |
fd8b60 |
os=beos
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
*-ibm)
|
|
Packit |
fd8b60 |
os=aix
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
*-knuth)
|
|
Packit |
fd8b60 |
os=mmixware
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
*-wec)
|
|
Packit |
fd8b60 |
os=proelf
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
*-winbond)
|
|
Packit |
fd8b60 |
os=proelf
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
*-oki)
|
|
Packit |
fd8b60 |
os=proelf
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
*-hp)
|
|
Packit |
fd8b60 |
os=hpux
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
*-hitachi)
|
|
Packit |
fd8b60 |
os=hiux
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent)
|
|
Packit |
fd8b60 |
os=sysv
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
*-cbm)
|
|
Packit |
fd8b60 |
os=amigaos
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
*-dg)
|
|
Packit |
fd8b60 |
os=dgux
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
*-dolphin)
|
|
Packit |
fd8b60 |
os=sysv3
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
m68k-ccur)
|
|
Packit |
fd8b60 |
os=rtu
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
m88k-omron*)
|
|
Packit |
fd8b60 |
os=luna
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
*-next)
|
|
Packit |
fd8b60 |
os=nextstep
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
*-sequent)
|
|
Packit |
fd8b60 |
os=ptx
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
*-crds)
|
|
Packit |
fd8b60 |
os=unos
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
*-ns)
|
|
Packit |
fd8b60 |
os=genix
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
i370-*)
|
|
Packit |
fd8b60 |
os=mvs
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
*-gould)
|
|
Packit |
fd8b60 |
os=sysv
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
*-highlevel)
|
|
Packit |
fd8b60 |
os=bsd
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
*-encore)
|
|
Packit |
fd8b60 |
os=bsd
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
*-sgi)
|
|
Packit |
fd8b60 |
os=irix
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
*-siemens)
|
|
Packit |
fd8b60 |
os=sysv4
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
*-masscomp)
|
|
Packit |
fd8b60 |
os=rtu
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
f30[01]-fujitsu | f700-fujitsu)
|
|
Packit |
fd8b60 |
os=uxpv
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
*-rom68k)
|
|
Packit |
fd8b60 |
os=coff
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
*-*bug)
|
|
Packit |
fd8b60 |
os=coff
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
*-apple)
|
|
Packit |
fd8b60 |
os=macos
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
*-atari*)
|
|
Packit |
fd8b60 |
os=mint
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
*-wrs)
|
|
Packit |
fd8b60 |
os=vxworks
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
*)
|
|
Packit |
fd8b60 |
os=none
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
esac
|
|
Packit |
fd8b60 |
fi
|
|
Packit |
fd8b60 |
|
|
Packit |
fd8b60 |
# Here we handle the case where we know the os, and the CPU type, but not the
|
|
Packit |
fd8b60 |
# manufacturer. We pick the logical manufacturer.
|
|
Packit |
fd8b60 |
case $vendor in
|
|
Packit |
fd8b60 |
unknown)
|
|
Packit |
fd8b60 |
case $os in
|
|
Packit |
fd8b60 |
riscix*)
|
|
Packit |
fd8b60 |
vendor=acorn
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
sunos*)
|
|
Packit |
fd8b60 |
vendor=sun
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
cnk*|-aix*)
|
|
Packit |
fd8b60 |
vendor=ibm
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
beos*)
|
|
Packit |
fd8b60 |
vendor=be
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
hpux*)
|
|
Packit |
fd8b60 |
vendor=hp
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
mpeix*)
|
|
Packit |
fd8b60 |
vendor=hp
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
hiux*)
|
|
Packit |
fd8b60 |
vendor=hitachi
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
unos*)
|
|
Packit |
fd8b60 |
vendor=crds
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
dgux*)
|
|
Packit |
fd8b60 |
vendor=dg
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
luna*)
|
|
Packit |
fd8b60 |
vendor=omron
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
genix*)
|
|
Packit |
fd8b60 |
vendor=ns
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
clix*)
|
|
Packit |
fd8b60 |
vendor=intergraph
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
mvs* | opened*)
|
|
Packit |
fd8b60 |
vendor=ibm
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
os400*)
|
|
Packit |
fd8b60 |
vendor=ibm
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
ptx*)
|
|
Packit |
fd8b60 |
vendor=sequent
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
tpf*)
|
|
Packit |
fd8b60 |
vendor=ibm
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
vxsim* | vxworks* | windiss*)
|
|
Packit |
fd8b60 |
vendor=wrs
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
aux*)
|
|
Packit |
fd8b60 |
vendor=apple
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
hms*)
|
|
Packit |
fd8b60 |
vendor=hitachi
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
mpw* | macos*)
|
|
Packit |
fd8b60 |
vendor=apple
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
*mint | mint[0-9]* | *MiNT | MiNT[0-9]*)
|
|
Packit |
fd8b60 |
vendor=atari
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
vos*)
|
|
Packit |
fd8b60 |
vendor=stratus
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
esac
|
|
Packit |
fd8b60 |
;;
|
|
Packit |
fd8b60 |
esac
|
|
Packit |
fd8b60 |
|
|
Packit |
fd8b60 |
echo "$cpu-$vendor-$os"
|
|
Packit |
fd8b60 |
exit
|
|
Packit |
fd8b60 |
|
|
Packit |
fd8b60 |
# Local variables:
|
|
Packit |
fd8b60 |
# eval: (add-hook 'before-save-hook 'time-stamp)
|
|
Packit |
fd8b60 |
# time-stamp-start: "timestamp='"
|
|
Packit |
fd8b60 |
# time-stamp-format: "%:y-%02m-%02d"
|
|
Packit |
fd8b60 |
# time-stamp-end: "'"
|
|
Packit |
fd8b60 |
# End:
|