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