"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "config.sub" between
ngrep-1_45.tar.gz and ngrep-1_47.tar.gz

About: ngrep (network grep) applies GNU grep’s common features to the network layer.

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

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)