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