config.sub revision 50539131
150539131Smrg#! /bin/sh 250539131Smrg# Configuration validation subroutine script. 350539131Smrg# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 450539131Smrg# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 550539131Smrg# Free Software Foundation, Inc. 650539131Smrg 750539131Smrgtimestamp='2009-04-17' 850539131Smrg 950539131Smrg# This file is (in principle) common to ALL GNU software. 1050539131Smrg# The presence of a machine in this file suggests that SOME GNU software 1150539131Smrg# can handle that machine. It does not imply ALL GNU software can. 1250539131Smrg# 1350539131Smrg# This file is free software; you can redistribute it and/or modify 1450539131Smrg# it under the terms of the GNU General Public License as published by 1550539131Smrg# the Free Software Foundation; either version 2 of the License, or 1650539131Smrg# (at your option) any later version. 1750539131Smrg# 1850539131Smrg# This program is distributed in the hope that it will be useful, 1950539131Smrg# but WITHOUT ANY WARRANTY; without even the implied warranty of 2050539131Smrg# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 2150539131Smrg# GNU General Public License for more details. 2250539131Smrg# 2350539131Smrg# You should have received a copy of the GNU General Public License 2450539131Smrg# along with this program; if not, write to the Free Software 2550539131Smrg# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 2650539131Smrg# 02110-1301, USA. 2750539131Smrg# 2850539131Smrg# As a special exception to the GNU General Public License, if you 2950539131Smrg# distribute this file as part of a program that contains a 3050539131Smrg# configuration script generated by Autoconf, you may include it under 3150539131Smrg# the same distribution terms that you use for the rest of that program. 3250539131Smrg 3350539131Smrg 3450539131Smrg# Please send patches to <config-patches@gnu.org>. Submit a context 3550539131Smrg# diff and a properly formatted ChangeLog entry. 3650539131Smrg# 3750539131Smrg# Configuration subroutine to validate and canonicalize a configuration type. 3850539131Smrg# Supply the specified configuration type as an argument. 3950539131Smrg# If it is invalid, we print an error message on stderr and exit with code 1. 4050539131Smrg# Otherwise, we print the canonical config type on stdout and succeed. 4150539131Smrg 4250539131Smrg# This file is supposed to be the same for all GNU packages 4350539131Smrg# and recognize all the CPU types, system types and aliases 4450539131Smrg# that are meaningful with *any* GNU software. 4550539131Smrg# Each package is responsible for reporting which valid configurations 4650539131Smrg# it does not support. The user should be able to distinguish 4750539131Smrg# a failure to support a valid configuration from a meaningless 4850539131Smrg# configuration. 4950539131Smrg 5050539131Smrg# The goal of this file is to map all the various variations of a given 5150539131Smrg# machine specification into a single specification in the form: 5250539131Smrg# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM 5350539131Smrg# or in some cases, the newer four-part form: 5450539131Smrg# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM 5550539131Smrg# It is wrong to echo any other type of specification. 5650539131Smrg 5750539131Smrgme=`echo "$0" | sed -e 's,.*/,,'` 5850539131Smrg 5950539131Smrgusage="\ 6050539131SmrgUsage: $0 [OPTION] CPU-MFR-OPSYS 6150539131Smrg $0 [OPTION] ALIAS 6250539131Smrg 6350539131SmrgCanonicalize a configuration name. 6450539131Smrg 6550539131SmrgOperation modes: 6650539131Smrg -h, --help print this help, then exit 6750539131Smrg -t, --time-stamp print date of last modification, then exit 6850539131Smrg -v, --version print version number, then exit 6950539131Smrg 7050539131SmrgReport bugs and patches to <config-patches@gnu.org>." 7150539131Smrg 7250539131Smrgversion="\ 7350539131SmrgGNU config.sub ($timestamp) 7450539131Smrg 7550539131SmrgCopyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 7650539131Smrg2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 7750539131Smrg 7850539131SmrgThis is free software; see the source for copying conditions. There is NO 7950539131Smrgwarranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." 8050539131Smrg 8150539131Smrghelp=" 8250539131SmrgTry \`$me --help' for more information." 8350539131Smrg 8450539131Smrg# Parse command line 8550539131Smrgwhile test $# -gt 0 ; do 8650539131Smrg case $1 in 8750539131Smrg --time-stamp | --time* | -t ) 8850539131Smrg echo "$timestamp" ; exit ;; 8950539131Smrg --version | -v ) 9050539131Smrg echo "$version" ; exit ;; 9150539131Smrg --help | --h* | -h ) 9250539131Smrg echo "$usage"; exit ;; 9350539131Smrg -- ) # Stop option processing 9450539131Smrg shift; break ;; 9550539131Smrg - ) # Use stdin as input. 9650539131Smrg break ;; 9750539131Smrg -* ) 9850539131Smrg echo "$me: invalid option $1$help" 9950539131Smrg exit 1 ;; 10050539131Smrg 10150539131Smrg *local*) 10250539131Smrg # First pass through any local machine types. 10350539131Smrg echo $1 10450539131Smrg exit ;; 10550539131Smrg 10650539131Smrg * ) 10750539131Smrg break ;; 10850539131Smrg esac 10950539131Smrgdone 11050539131Smrg 11150539131Smrgcase $# in 11250539131Smrg 0) echo "$me: missing argument$help" >&2 11350539131Smrg exit 1;; 11450539131Smrg 1) ;; 11550539131Smrg *) echo "$me: too many arguments$help" >&2 11650539131Smrg exit 1;; 11750539131Smrgesac 11850539131Smrg 11950539131Smrg# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). 12050539131Smrg# Here we must recognize all the valid KERNEL-OS combinations. 12150539131Smrgmaybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` 12250539131Smrgcase $maybe_os in 12350539131Smrg nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \ 12450539131Smrg uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \ 12550539131Smrg kopensolaris*-gnu* | \ 12650539131Smrg storm-chaos* | os2-emx* | rtmk-nova*) 12750539131Smrg os=-$maybe_os 12850539131Smrg basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` 12950539131Smrg ;; 13050539131Smrg *) 13150539131Smrg basic_machine=`echo $1 | sed 's/-[^-]*$//'` 13250539131Smrg if [ $basic_machine != $1 ] 13350539131Smrg then os=`echo $1 | sed 's/.*-/-/'` 13450539131Smrg else os=; fi 13550539131Smrg ;; 13650539131Smrgesac 13750539131Smrg 13850539131Smrg### Let's recognize common machines as not being operating systems so 13950539131Smrg### that things like config.sub decstation-3100 work. We also 14050539131Smrg### recognize some manufacturers as not being operating systems, so we 14150539131Smrg### can provide default operating systems below. 14250539131Smrgcase $os in 14350539131Smrg -sun*os*) 14450539131Smrg # Prevent following clause from handling this invalid input. 14550539131Smrg ;; 14650539131Smrg -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \ 14750539131Smrg -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ 14850539131Smrg -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ 14950539131Smrg -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ 15050539131Smrg -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ 15150539131Smrg -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ 15250539131Smrg -apple | -axis | -knuth | -cray) 15350539131Smrg os= 15450539131Smrg basic_machine=$1 15550539131Smrg ;; 15650539131Smrg -sim | -cisco | -oki | -wec | -winbond) 15750539131Smrg os= 15850539131Smrg basic_machine=$1 15950539131Smrg ;; 16050539131Smrg -scout) 16150539131Smrg ;; 16250539131Smrg -wrs) 16350539131Smrg os=-vxworks 16450539131Smrg basic_machine=$1 16550539131Smrg ;; 16650539131Smrg -chorusos*) 16750539131Smrg os=-chorusos 16850539131Smrg basic_machine=$1 16950539131Smrg ;; 17050539131Smrg -chorusrdb) 17150539131Smrg os=-chorusrdb 17250539131Smrg basic_machine=$1 17350539131Smrg ;; 17450539131Smrg -hiux*) 17550539131Smrg os=-hiuxwe2 17650539131Smrg ;; 17750539131Smrg -sco6) 17850539131Smrg os=-sco5v6 17950539131Smrg basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 18050539131Smrg ;; 18150539131Smrg -sco5) 18250539131Smrg os=-sco3.2v5 18350539131Smrg basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 18450539131Smrg ;; 18550539131Smrg -sco4) 18650539131Smrg os=-sco3.2v4 18750539131Smrg basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 18850539131Smrg ;; 18950539131Smrg -sco3.2.[4-9]*) 19050539131Smrg os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` 19150539131Smrg basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 19250539131Smrg ;; 19350539131Smrg -sco3.2v[4-9]*) 19450539131Smrg # Don't forget version if it is 3.2v4 or newer. 19550539131Smrg basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 19650539131Smrg ;; 19750539131Smrg -sco5v6*) 19850539131Smrg # Don't forget version if it is 3.2v4 or newer. 19950539131Smrg basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 20050539131Smrg ;; 20150539131Smrg -sco*) 20250539131Smrg os=-sco3.2v2 20350539131Smrg basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 20450539131Smrg ;; 20550539131Smrg -udk*) 20650539131Smrg basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 20750539131Smrg ;; 20850539131Smrg -isc) 20950539131Smrg os=-isc2.2 21050539131Smrg basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 21150539131Smrg ;; 21250539131Smrg -clix*) 21350539131Smrg basic_machine=clipper-intergraph 21450539131Smrg ;; 21550539131Smrg -isc*) 21650539131Smrg basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 21750539131Smrg ;; 21850539131Smrg -lynx*) 21950539131Smrg os=-lynxos 22050539131Smrg ;; 22150539131Smrg -ptx*) 22250539131Smrg basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'` 22350539131Smrg ;; 22450539131Smrg -windowsnt*) 22550539131Smrg os=`echo $os | sed -e 's/windowsnt/winnt/'` 22650539131Smrg ;; 22750539131Smrg -psos*) 22850539131Smrg os=-psos 22950539131Smrg ;; 23050539131Smrg -mint | -mint[0-9]*) 23150539131Smrg basic_machine=m68k-atari 23250539131Smrg os=-mint 23350539131Smrg ;; 23450539131Smrgesac 23550539131Smrg 23650539131Smrg# Decode aliases for certain CPU-COMPANY combinations. 23750539131Smrgcase $basic_machine in 23850539131Smrg # Recognize the basic CPU types without company name. 23950539131Smrg # Some are omitted here because they have special meanings below. 24050539131Smrg 1750a | 580 \ 24150539131Smrg | a29k \ 24250539131Smrg | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ 24350539131Smrg | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ 24450539131Smrg | am33_2.0 \ 24550539131Smrg | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \ 24650539131Smrg | bfin \ 24750539131Smrg | c4x | clipper \ 24850539131Smrg | d10v | d30v | dlx | dsp16xx \ 24950539131Smrg | fido | fr30 | frv \ 25050539131Smrg | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ 25150539131Smrg | i370 | i860 | i960 | ia64 \ 25250539131Smrg | ip2k | iq2000 \ 25350539131Smrg | lm32 \ 25450539131Smrg | m32c | m32r | m32rle | m68000 | m68k | m88k \ 25550539131Smrg | maxq | mb | microblaze | mcore | mep | metag \ 25650539131Smrg | mips | mipsbe | mipseb | mipsel | mipsle \ 25750539131Smrg | mips16 \ 25850539131Smrg | mips64 | mips64el \ 25950539131Smrg | mips64octeon | mips64octeonel \ 26050539131Smrg | mips64orion | mips64orionel \ 26150539131Smrg | mips64r5900 | mips64r5900el \ 26250539131Smrg | mips64vr | mips64vrel \ 26350539131Smrg | mips64vr4100 | mips64vr4100el \ 26450539131Smrg | mips64vr4300 | mips64vr4300el \ 26550539131Smrg | mips64vr5000 | mips64vr5000el \ 26650539131Smrg | mips64vr5900 | mips64vr5900el \ 26750539131Smrg | mipsisa32 | mipsisa32el \ 26850539131Smrg | mipsisa32r2 | mipsisa32r2el \ 26950539131Smrg | mipsisa64 | mipsisa64el \ 27050539131Smrg | mipsisa64r2 | mipsisa64r2el \ 27150539131Smrg | mipsisa64sb1 | mipsisa64sb1el \ 27250539131Smrg | mipsisa64sr71k | mipsisa64sr71kel \ 27350539131Smrg | mipstx39 | mipstx39el \ 27450539131Smrg | mn10200 | mn10300 \ 27550539131Smrg | moxie \ 27650539131Smrg | mt \ 27750539131Smrg | msp430 \ 27850539131Smrg | nios | nios2 \ 27950539131Smrg | ns16k | ns32k \ 28050539131Smrg | or32 \ 28150539131Smrg | pdp10 | pdp11 | pj | pjl \ 28250539131Smrg | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ 28350539131Smrg | pyramid \ 28450539131Smrg | score \ 28550539131Smrg | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ 28650539131Smrg | sh64 | sh64le \ 28750539131Smrg | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ 28850539131Smrg | sparcv8 | sparcv9 | sparcv9b | sparcv9v \ 28950539131Smrg | spu | strongarm \ 29050539131Smrg | tahoe | thumb | tic4x | tic80 | tron \ 29150539131Smrg | v850 | v850e \ 29250539131Smrg | we32k \ 29350539131Smrg | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \ 29450539131Smrg | z8k | z80) 29550539131Smrg basic_machine=$basic_machine-unknown 29650539131Smrg ;; 29750539131Smrg m6811 | m68hc11 | m6812 | m68hc12) 29850539131Smrg # Motorola 68HC11/12. 29950539131Smrg basic_machine=$basic_machine-unknown 30050539131Smrg os=-none 30150539131Smrg ;; 30250539131Smrg m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) 30350539131Smrg ;; 30450539131Smrg ms1) 30550539131Smrg basic_machine=mt-unknown 30650539131Smrg ;; 30750539131Smrg 30850539131Smrg # We use `pc' rather than `unknown' 30950539131Smrg # because (1) that's what they normally are, and 31050539131Smrg # (2) the word "unknown" tends to confuse beginning users. 31150539131Smrg i*86 | x86_64) 31250539131Smrg basic_machine=$basic_machine-pc 31350539131Smrg ;; 31450539131Smrg # Object if more than one company name word. 31550539131Smrg *-*-*) 31650539131Smrg echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 31750539131Smrg exit 1 31850539131Smrg ;; 31950539131Smrg # Recognize the basic CPU types with company name. 32050539131Smrg 580-* \ 32150539131Smrg | a29k-* \ 32250539131Smrg | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ 32350539131Smrg | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ 32450539131Smrg | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ 32550539131Smrg | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ 32650539131Smrg | avr-* | avr32-* \ 32750539131Smrg | bfin-* | bs2000-* \ 32850539131Smrg | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \ 32950539131Smrg | clipper-* | craynv-* | cydra-* \ 33050539131Smrg | d10v-* | d30v-* | dlx-* \ 33150539131Smrg | elxsi-* \ 33250539131Smrg | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \ 33350539131Smrg | h8300-* | h8500-* \ 33450539131Smrg | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ 33550539131Smrg | i*86-* | i860-* | i960-* | ia64-* \ 33650539131Smrg | ip2k-* | iq2000-* \ 33750539131Smrg | lm32-* \ 33850539131Smrg | m32c-* | m32r-* | m32rle-* \ 33950539131Smrg | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ 34050539131Smrg | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \ 34150539131Smrg | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ 34250539131Smrg | mips16-* \ 34350539131Smrg | mips64-* | mips64el-* \ 34450539131Smrg | mips64octeon-* | mips64octeonel-* \ 34550539131Smrg | mips64orion-* | mips64orionel-* \ 34650539131Smrg | mips64r5900-* | mips64r5900el-* \ 34750539131Smrg | mips64vr-* | mips64vrel-* \ 34850539131Smrg | mips64vr4100-* | mips64vr4100el-* \ 34950539131Smrg | mips64vr4300-* | mips64vr4300el-* \ 35050539131Smrg | mips64vr5000-* | mips64vr5000el-* \ 35150539131Smrg | mips64vr5900-* | mips64vr5900el-* \ 35250539131Smrg | mipsisa32-* | mipsisa32el-* \ 35350539131Smrg | mipsisa32r2-* | mipsisa32r2el-* \ 35450539131Smrg | mipsisa64-* | mipsisa64el-* \ 35550539131Smrg | mipsisa64r2-* | mipsisa64r2el-* \ 35650539131Smrg | mipsisa64sb1-* | mipsisa64sb1el-* \ 35750539131Smrg | mipsisa64sr71k-* | mipsisa64sr71kel-* \ 35850539131Smrg | mipstx39-* | mipstx39el-* \ 35950539131Smrg | mmix-* \ 36050539131Smrg | mt-* \ 36150539131Smrg | msp430-* \ 36250539131Smrg | nios-* | nios2-* \ 36350539131Smrg | none-* | np1-* | ns16k-* | ns32k-* \ 36450539131Smrg | orion-* \ 36550539131Smrg | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ 36650539131Smrg | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ 36750539131Smrg | pyramid-* \ 36850539131Smrg | romp-* | rs6000-* \ 36950539131Smrg | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \ 37050539131Smrg | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ 37150539131Smrg | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \ 37250539131Smrg | sparclite-* \ 37350539131Smrg | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \ 37450539131Smrg | tahoe-* | thumb-* \ 37550539131Smrg | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* | tile-* \ 37650539131Smrg | tron-* \ 37750539131Smrg | v850-* | v850e-* | vax-* \ 37850539131Smrg | we32k-* \ 37950539131Smrg | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \ 38050539131Smrg | xstormy16-* | xtensa*-* \ 38150539131Smrg | ymp-* \ 38250539131Smrg | z8k-* | z80-*) 38350539131Smrg ;; 38450539131Smrg # Recognize the basic CPU types without company name, with glob match. 38550539131Smrg xtensa*) 38650539131Smrg basic_machine=$basic_machine-unknown 38750539131Smrg ;; 38850539131Smrg # Recognize the various machine names and aliases which stand 38950539131Smrg # for a CPU type and a company and sometimes even an OS. 39050539131Smrg 386bsd) 39150539131Smrg basic_machine=i386-unknown 39250539131Smrg os=-bsd 39350539131Smrg ;; 39450539131Smrg 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) 39550539131Smrg basic_machine=m68000-att 39650539131Smrg ;; 39750539131Smrg 3b*) 39850539131Smrg basic_machine=we32k-att 39950539131Smrg ;; 40050539131Smrg a29khif) 40150539131Smrg basic_machine=a29k-amd 40250539131Smrg os=-udi 40350539131Smrg ;; 40450539131Smrg abacus) 40550539131Smrg basic_machine=abacus-unknown 40650539131Smrg ;; 40750539131Smrg adobe68k) 40850539131Smrg basic_machine=m68010-adobe 40950539131Smrg os=-scout 41050539131Smrg ;; 41150539131Smrg alliant | fx80) 41250539131Smrg basic_machine=fx80-alliant 41350539131Smrg ;; 41450539131Smrg altos | altos3068) 41550539131Smrg basic_machine=m68k-altos 41650539131Smrg ;; 41750539131Smrg am29k) 41850539131Smrg basic_machine=a29k-none 41950539131Smrg os=-bsd 42050539131Smrg ;; 42150539131Smrg amd64) 42250539131Smrg basic_machine=x86_64-pc 42350539131Smrg ;; 42450539131Smrg amd64-*) 42550539131Smrg basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'` 42650539131Smrg ;; 42750539131Smrg amdahl) 42850539131Smrg basic_machine=580-amdahl 42950539131Smrg os=-sysv 43050539131Smrg ;; 43150539131Smrg amiga | amiga-*) 43250539131Smrg basic_machine=m68k-unknown 43350539131Smrg ;; 43450539131Smrg amigaos | amigados) 43550539131Smrg basic_machine=m68k-unknown 43650539131Smrg os=-amigaos 43750539131Smrg ;; 43850539131Smrg amigaunix | amix) 43950539131Smrg basic_machine=m68k-unknown 44050539131Smrg os=-sysv4 44150539131Smrg ;; 44250539131Smrg apollo68) 44350539131Smrg basic_machine=m68k-apollo 44450539131Smrg os=-sysv 44550539131Smrg ;; 44650539131Smrg apollo68bsd) 44750539131Smrg basic_machine=m68k-apollo 44850539131Smrg os=-bsd 44950539131Smrg ;; 45050539131Smrg aros) 45150539131Smrg basic_machine=i386-pc 45250539131Smrg os=-aros 45350539131Smrg ;; 45450539131Smrg aux) 45550539131Smrg basic_machine=m68k-apple 45650539131Smrg os=-aux 45750539131Smrg ;; 45850539131Smrg balance) 45950539131Smrg basic_machine=ns32k-sequent 46050539131Smrg os=-dynix 46150539131Smrg ;; 46250539131Smrg blackfin) 46350539131Smrg basic_machine=bfin-unknown 46450539131Smrg os=-linux 46550539131Smrg ;; 46650539131Smrg blackfin-*) 46750539131Smrg basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'` 46850539131Smrg os=-linux 46950539131Smrg ;; 47050539131Smrg c90) 47150539131Smrg basic_machine=c90-cray 47250539131Smrg os=-unicos 47350539131Smrg ;; 47450539131Smrg cegcc) 47550539131Smrg basic_machine=arm-unknown 47650539131Smrg os=-cegcc 47750539131Smrg ;; 47850539131Smrg convex-c1) 47950539131Smrg basic_machine=c1-convex 48050539131Smrg os=-bsd 48150539131Smrg ;; 48250539131Smrg convex-c2) 48350539131Smrg basic_machine=c2-convex 48450539131Smrg os=-bsd 48550539131Smrg ;; 48650539131Smrg convex-c32) 48750539131Smrg basic_machine=c32-convex 48850539131Smrg os=-bsd 48950539131Smrg ;; 49050539131Smrg convex-c34) 49150539131Smrg basic_machine=c34-convex 49250539131Smrg os=-bsd 49350539131Smrg ;; 49450539131Smrg convex-c38) 49550539131Smrg basic_machine=c38-convex 49650539131Smrg os=-bsd 49750539131Smrg ;; 49850539131Smrg cray | j90) 49950539131Smrg basic_machine=j90-cray 50050539131Smrg os=-unicos 50150539131Smrg ;; 50250539131Smrg craynv) 50350539131Smrg basic_machine=craynv-cray 50450539131Smrg os=-unicosmp 50550539131Smrg ;; 50650539131Smrg cr16) 50750539131Smrg basic_machine=cr16-unknown 50850539131Smrg os=-elf 50950539131Smrg ;; 51050539131Smrg crds | unos) 51150539131Smrg basic_machine=m68k-crds 51250539131Smrg ;; 51350539131Smrg crisv32 | crisv32-* | etraxfs*) 51450539131Smrg basic_machine=crisv32-axis 51550539131Smrg ;; 51650539131Smrg cris | cris-* | etrax*) 51750539131Smrg basic_machine=cris-axis 51850539131Smrg ;; 51950539131Smrg crx) 52050539131Smrg basic_machine=crx-unknown 52150539131Smrg os=-elf 52250539131Smrg ;; 52350539131Smrg da30 | da30-*) 52450539131Smrg basic_machine=m68k-da30 52550539131Smrg ;; 52650539131Smrg decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn) 52750539131Smrg basic_machine=mips-dec 52850539131Smrg ;; 52950539131Smrg decsystem10* | dec10*) 53050539131Smrg basic_machine=pdp10-dec 53150539131Smrg os=-tops10 53250539131Smrg ;; 53350539131Smrg decsystem20* | dec20*) 53450539131Smrg basic_machine=pdp10-dec 53550539131Smrg os=-tops20 53650539131Smrg ;; 53750539131Smrg delta | 3300 | motorola-3300 | motorola-delta \ 53850539131Smrg | 3300-motorola | delta-motorola) 53950539131Smrg basic_machine=m68k-motorola 54050539131Smrg ;; 54150539131Smrg delta88) 54250539131Smrg basic_machine=m88k-motorola 54350539131Smrg os=-sysv3 54450539131Smrg ;; 54550539131Smrg dicos) 54650539131Smrg basic_machine=i686-pc 54750539131Smrg os=-dicos 54850539131Smrg ;; 54950539131Smrg djgpp) 55050539131Smrg basic_machine=i586-pc 55150539131Smrg os=-msdosdjgpp 55250539131Smrg ;; 55350539131Smrg dpx20 | dpx20-*) 55450539131Smrg basic_machine=rs6000-bull 55550539131Smrg os=-bosx 55650539131Smrg ;; 55750539131Smrg dpx2* | dpx2*-bull) 55850539131Smrg basic_machine=m68k-bull 55950539131Smrg os=-sysv3 56050539131Smrg ;; 56150539131Smrg ebmon29k) 56250539131Smrg basic_machine=a29k-amd 56350539131Smrg os=-ebmon 56450539131Smrg ;; 56550539131Smrg elxsi) 56650539131Smrg basic_machine=elxsi-elxsi 56750539131Smrg os=-bsd 56850539131Smrg ;; 56950539131Smrg encore | umax | mmax) 57050539131Smrg basic_machine=ns32k-encore 57150539131Smrg ;; 57250539131Smrg es1800 | OSE68k | ose68k | ose | OSE) 57350539131Smrg basic_machine=m68k-ericsson 57450539131Smrg os=-ose 57550539131Smrg ;; 57650539131Smrg fx2800) 57750539131Smrg basic_machine=i860-alliant 57850539131Smrg ;; 57950539131Smrg genix) 58050539131Smrg basic_machine=ns32k-ns 58150539131Smrg ;; 58250539131Smrg gmicro) 58350539131Smrg basic_machine=tron-gmicro 58450539131Smrg os=-sysv 58550539131Smrg ;; 58650539131Smrg go32) 58750539131Smrg basic_machine=i386-pc 58850539131Smrg os=-go32 58950539131Smrg ;; 59050539131Smrg h3050r* | hiux*) 59150539131Smrg basic_machine=hppa1.1-hitachi 59250539131Smrg os=-hiuxwe2 59350539131Smrg ;; 59450539131Smrg h8300hms) 59550539131Smrg basic_machine=h8300-hitachi 59650539131Smrg os=-hms 59750539131Smrg ;; 59850539131Smrg h8300xray) 59950539131Smrg basic_machine=h8300-hitachi 60050539131Smrg os=-xray 60150539131Smrg ;; 60250539131Smrg h8500hms) 60350539131Smrg basic_machine=h8500-hitachi 60450539131Smrg os=-hms 60550539131Smrg ;; 60650539131Smrg harris) 60750539131Smrg basic_machine=m88k-harris 60850539131Smrg os=-sysv3 60950539131Smrg ;; 61050539131Smrg hp300-*) 61150539131Smrg basic_machine=m68k-hp 61250539131Smrg ;; 61350539131Smrg hp300bsd) 61450539131Smrg basic_machine=m68k-hp 61550539131Smrg os=-bsd 61650539131Smrg ;; 61750539131Smrg hp300hpux) 61850539131Smrg basic_machine=m68k-hp 61950539131Smrg os=-hpux 62050539131Smrg ;; 62150539131Smrg hp3k9[0-9][0-9] | hp9[0-9][0-9]) 62250539131Smrg basic_machine=hppa1.0-hp 62350539131Smrg ;; 62450539131Smrg hp9k2[0-9][0-9] | hp9k31[0-9]) 62550539131Smrg basic_machine=m68000-hp 62650539131Smrg ;; 62750539131Smrg hp9k3[2-9][0-9]) 62850539131Smrg basic_machine=m68k-hp 62950539131Smrg ;; 63050539131Smrg hp9k6[0-9][0-9] | hp6[0-9][0-9]) 63150539131Smrg basic_machine=hppa1.0-hp 63250539131Smrg ;; 63350539131Smrg hp9k7[0-79][0-9] | hp7[0-79][0-9]) 63450539131Smrg basic_machine=hppa1.1-hp 63550539131Smrg ;; 63650539131Smrg hp9k78[0-9] | hp78[0-9]) 63750539131Smrg # FIXME: really hppa2.0-hp 63850539131Smrg basic_machine=hppa1.1-hp 63950539131Smrg ;; 64050539131Smrg hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893) 64150539131Smrg # FIXME: really hppa2.0-hp 64250539131Smrg basic_machine=hppa1.1-hp 64350539131Smrg ;; 64450539131Smrg hp9k8[0-9][13679] | hp8[0-9][13679]) 64550539131Smrg basic_machine=hppa1.1-hp 64650539131Smrg ;; 64750539131Smrg hp9k8[0-9][0-9] | hp8[0-9][0-9]) 64850539131Smrg basic_machine=hppa1.0-hp 64950539131Smrg ;; 65050539131Smrg hppa-next) 65150539131Smrg os=-nextstep3 65250539131Smrg ;; 65350539131Smrg hppaosf) 65450539131Smrg basic_machine=hppa1.1-hp 65550539131Smrg os=-osf 65650539131Smrg ;; 65750539131Smrg hppro) 65850539131Smrg basic_machine=hppa1.1-hp 65950539131Smrg os=-proelf 66050539131Smrg ;; 66150539131Smrg i370-ibm* | ibm*) 66250539131Smrg basic_machine=i370-ibm 66350539131Smrg ;; 66450539131Smrg# I'm not sure what "Sysv32" means. Should this be sysv3.2? 66550539131Smrg i*86v32) 66650539131Smrg basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` 66750539131Smrg os=-sysv32 66850539131Smrg ;; 66950539131Smrg i*86v4*) 67050539131Smrg basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` 67150539131Smrg os=-sysv4 67250539131Smrg ;; 67350539131Smrg i*86v) 67450539131Smrg basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` 67550539131Smrg os=-sysv 67650539131Smrg ;; 67750539131Smrg i*86sol2) 67850539131Smrg basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` 67950539131Smrg os=-solaris2 68050539131Smrg ;; 68150539131Smrg i386mach) 68250539131Smrg basic_machine=i386-mach 68350539131Smrg os=-mach 68450539131Smrg ;; 68550539131Smrg i386-vsta | vsta) 68650539131Smrg basic_machine=i386-unknown 68750539131Smrg os=-vsta 68850539131Smrg ;; 68950539131Smrg iris | iris4d) 69050539131Smrg basic_machine=mips-sgi 69150539131Smrg case $os in 69250539131Smrg -irix*) 69350539131Smrg ;; 69450539131Smrg *) 69550539131Smrg os=-irix4 69650539131Smrg ;; 69750539131Smrg esac 69850539131Smrg ;; 69950539131Smrg isi68 | isi) 70050539131Smrg basic_machine=m68k-isi 70150539131Smrg os=-sysv 70250539131Smrg ;; 70350539131Smrg m68knommu) 70450539131Smrg basic_machine=m68k-unknown 70550539131Smrg os=-linux 70650539131Smrg ;; 70750539131Smrg m68knommu-*) 70850539131Smrg basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'` 70950539131Smrg os=-linux 71050539131Smrg ;; 71150539131Smrg m88k-omron*) 71250539131Smrg basic_machine=m88k-omron 71350539131Smrg ;; 71450539131Smrg magnum | m3230) 71550539131Smrg basic_machine=mips-mips 71650539131Smrg os=-sysv 71750539131Smrg ;; 71850539131Smrg merlin) 71950539131Smrg basic_machine=ns32k-utek 72050539131Smrg os=-sysv 72150539131Smrg ;; 72250539131Smrg mingw32) 72350539131Smrg basic_machine=i386-pc 72450539131Smrg os=-mingw32 72550539131Smrg ;; 72650539131Smrg mingw32ce) 72750539131Smrg basic_machine=arm-unknown 72850539131Smrg os=-mingw32ce 72950539131Smrg ;; 73050539131Smrg miniframe) 73150539131Smrg basic_machine=m68000-convergent 73250539131Smrg ;; 73350539131Smrg *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*) 73450539131Smrg basic_machine=m68k-atari 73550539131Smrg os=-mint 73650539131Smrg ;; 73750539131Smrg mips3*-*) 73850539131Smrg basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` 73950539131Smrg ;; 74050539131Smrg mips3*) 74150539131Smrg basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown 74250539131Smrg ;; 74350539131Smrg monitor) 74450539131Smrg basic_machine=m68k-rom68k 74550539131Smrg os=-coff 74650539131Smrg ;; 74750539131Smrg morphos) 74850539131Smrg basic_machine=powerpc-unknown 74950539131Smrg os=-morphos 75050539131Smrg ;; 75150539131Smrg msdos) 75250539131Smrg basic_machine=i386-pc 75350539131Smrg os=-msdos 75450539131Smrg ;; 75550539131Smrg ms1-*) 75650539131Smrg basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'` 75750539131Smrg ;; 75850539131Smrg mvs) 75950539131Smrg basic_machine=i370-ibm 76050539131Smrg os=-mvs 76150539131Smrg ;; 76250539131Smrg ncr3000) 76350539131Smrg basic_machine=i486-ncr 76450539131Smrg os=-sysv4 76550539131Smrg ;; 76650539131Smrg netbsd386) 76750539131Smrg basic_machine=i386-unknown 76850539131Smrg os=-netbsd 76950539131Smrg ;; 77050539131Smrg netwinder) 77150539131Smrg basic_machine=armv4l-rebel 77250539131Smrg os=-linux 77350539131Smrg ;; 77450539131Smrg news | news700 | news800 | news900) 77550539131Smrg basic_machine=m68k-sony 77650539131Smrg os=-newsos 77750539131Smrg ;; 77850539131Smrg news1000) 77950539131Smrg basic_machine=m68030-sony 78050539131Smrg os=-newsos 78150539131Smrg ;; 78250539131Smrg news-3600 | risc-news) 78350539131Smrg basic_machine=mips-sony 78450539131Smrg os=-newsos 78550539131Smrg ;; 78650539131Smrg necv70) 78750539131Smrg basic_machine=v70-nec 78850539131Smrg os=-sysv 78950539131Smrg ;; 79050539131Smrg next | m*-next ) 79150539131Smrg basic_machine=m68k-next 79250539131Smrg case $os in 79350539131Smrg -nextstep* ) 79450539131Smrg ;; 79550539131Smrg -ns2*) 79650539131Smrg os=-nextstep2 79750539131Smrg ;; 79850539131Smrg *) 79950539131Smrg os=-nextstep3 80050539131Smrg ;; 80150539131Smrg esac 80250539131Smrg ;; 80350539131Smrg nh3000) 80450539131Smrg basic_machine=m68k-harris 80550539131Smrg os=-cxux 80650539131Smrg ;; 80750539131Smrg nh[45]000) 80850539131Smrg basic_machine=m88k-harris 80950539131Smrg os=-cxux 81050539131Smrg ;; 81150539131Smrg nindy960) 81250539131Smrg basic_machine=i960-intel 81350539131Smrg os=-nindy 81450539131Smrg ;; 81550539131Smrg mon960) 81650539131Smrg basic_machine=i960-intel 81750539131Smrg os=-mon960 81850539131Smrg ;; 81950539131Smrg nonstopux) 82050539131Smrg basic_machine=mips-compaq 82150539131Smrg os=-nonstopux 82250539131Smrg ;; 82350539131Smrg np1) 82450539131Smrg basic_machine=np1-gould 82550539131Smrg ;; 82650539131Smrg nsr-tandem) 82750539131Smrg basic_machine=nsr-tandem 82850539131Smrg ;; 82950539131Smrg op50n-* | op60c-*) 83050539131Smrg basic_machine=hppa1.1-oki 83150539131Smrg os=-proelf 83250539131Smrg ;; 83350539131Smrg openrisc | openrisc-*) 83450539131Smrg basic_machine=or32-unknown 83550539131Smrg ;; 83650539131Smrg os400) 83750539131Smrg basic_machine=powerpc-ibm 83850539131Smrg os=-os400 83950539131Smrg ;; 84050539131Smrg OSE68000 | ose68000) 84150539131Smrg basic_machine=m68000-ericsson 84250539131Smrg os=-ose 84350539131Smrg ;; 84450539131Smrg os68k) 84550539131Smrg basic_machine=m68k-none 84650539131Smrg os=-os68k 84750539131Smrg ;; 84850539131Smrg pa-hitachi) 84950539131Smrg basic_machine=hppa1.1-hitachi 85050539131Smrg os=-hiuxwe2 85150539131Smrg ;; 85250539131Smrg paragon) 85350539131Smrg basic_machine=i860-intel 85450539131Smrg os=-osf 85550539131Smrg ;; 85650539131Smrg parisc) 85750539131Smrg basic_machine=hppa-unknown 85850539131Smrg os=-linux 85950539131Smrg ;; 86050539131Smrg parisc-*) 86150539131Smrg basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'` 86250539131Smrg os=-linux 86350539131Smrg ;; 86450539131Smrg pbd) 86550539131Smrg basic_machine=sparc-tti 86650539131Smrg ;; 86750539131Smrg pbb) 86850539131Smrg basic_machine=m68k-tti 86950539131Smrg ;; 87050539131Smrg pc532 | pc532-*) 87150539131Smrg basic_machine=ns32k-pc532 87250539131Smrg ;; 87350539131Smrg pc98) 87450539131Smrg basic_machine=i386-pc 87550539131Smrg ;; 87650539131Smrg pc98-*) 87750539131Smrg basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'` 87850539131Smrg ;; 87950539131Smrg pentium | p5 | k5 | k6 | nexgen | viac3) 88050539131Smrg basic_machine=i586-pc 88150539131Smrg ;; 88250539131Smrg pentiumpro | p6 | 6x86 | athlon | athlon_*) 88350539131Smrg basic_machine=i686-pc 88450539131Smrg ;; 88550539131Smrg pentiumii | pentium2 | pentiumiii | pentium3) 88650539131Smrg basic_machine=i686-pc 88750539131Smrg ;; 88850539131Smrg pentium4) 88950539131Smrg basic_machine=i786-pc 89050539131Smrg ;; 89150539131Smrg pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) 89250539131Smrg basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` 89350539131Smrg ;; 89450539131Smrg pentiumpro-* | p6-* | 6x86-* | athlon-*) 89550539131Smrg basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` 89650539131Smrg ;; 89750539131Smrg pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*) 89850539131Smrg basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` 89950539131Smrg ;; 90050539131Smrg pentium4-*) 90150539131Smrg basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'` 90250539131Smrg ;; 90350539131Smrg pn) 90450539131Smrg basic_machine=pn-gould 90550539131Smrg ;; 90650539131Smrg power) basic_machine=power-ibm 90750539131Smrg ;; 90850539131Smrg ppc) basic_machine=powerpc-unknown 90950539131Smrg ;; 91050539131Smrg ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` 91150539131Smrg ;; 91250539131Smrg ppcle | powerpclittle | ppc-le | powerpc-little) 91350539131Smrg basic_machine=powerpcle-unknown 91450539131Smrg ;; 91550539131Smrg ppcle-* | powerpclittle-*) 91650539131Smrg basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` 91750539131Smrg ;; 91850539131Smrg ppc64) basic_machine=powerpc64-unknown 91950539131Smrg ;; 92050539131Smrg ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'` 92150539131Smrg ;; 92250539131Smrg ppc64le | powerpc64little | ppc64-le | powerpc64-little) 92350539131Smrg basic_machine=powerpc64le-unknown 92450539131Smrg ;; 92550539131Smrg ppc64le-* | powerpc64little-*) 92650539131Smrg basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'` 92750539131Smrg ;; 92850539131Smrg ps2) 92950539131Smrg basic_machine=i386-ibm 93050539131Smrg ;; 93150539131Smrg pw32) 93250539131Smrg basic_machine=i586-unknown 93350539131Smrg os=-pw32 93450539131Smrg ;; 93550539131Smrg rdos) 93650539131Smrg basic_machine=i386-pc 93750539131Smrg os=-rdos 93850539131Smrg ;; 93950539131Smrg rom68k) 94050539131Smrg basic_machine=m68k-rom68k 94150539131Smrg os=-coff 94250539131Smrg ;; 94350539131Smrg rm[46]00) 94450539131Smrg basic_machine=mips-siemens 94550539131Smrg ;; 94650539131Smrg rtpc | rtpc-*) 94750539131Smrg basic_machine=romp-ibm 94850539131Smrg ;; 94950539131Smrg s390 | s390-*) 95050539131Smrg basic_machine=s390-ibm 95150539131Smrg ;; 95250539131Smrg s390x | s390x-*) 95350539131Smrg basic_machine=s390x-ibm 95450539131Smrg ;; 95550539131Smrg sa29200) 95650539131Smrg basic_machine=a29k-amd 95750539131Smrg os=-udi 95850539131Smrg ;; 95950539131Smrg sb1) 96050539131Smrg basic_machine=mipsisa64sb1-unknown 96150539131Smrg ;; 96250539131Smrg sb1el) 96350539131Smrg basic_machine=mipsisa64sb1el-unknown 96450539131Smrg ;; 96550539131Smrg sde) 96650539131Smrg basic_machine=mipsisa32-sde 96750539131Smrg os=-elf 96850539131Smrg ;; 96950539131Smrg sei) 97050539131Smrg basic_machine=mips-sei 97150539131Smrg os=-seiux 97250539131Smrg ;; 97350539131Smrg sequent) 97450539131Smrg basic_machine=i386-sequent 97550539131Smrg ;; 97650539131Smrg sh) 97750539131Smrg basic_machine=sh-hitachi 97850539131Smrg os=-hms 97950539131Smrg ;; 98050539131Smrg sh5el) 98150539131Smrg basic_machine=sh5le-unknown 98250539131Smrg ;; 98350539131Smrg sh64) 98450539131Smrg basic_machine=sh64-unknown 98550539131Smrg ;; 98650539131Smrg sparclite-wrs | simso-wrs) 98750539131Smrg basic_machine=sparclite-wrs 98850539131Smrg os=-vxworks 98950539131Smrg ;; 99050539131Smrg sps7) 99150539131Smrg basic_machine=m68k-bull 99250539131Smrg os=-sysv2 99350539131Smrg ;; 99450539131Smrg spur) 99550539131Smrg basic_machine=spur-unknown 99650539131Smrg ;; 99750539131Smrg st2000) 99850539131Smrg basic_machine=m68k-tandem 99950539131Smrg ;; 100050539131Smrg stratus) 100150539131Smrg basic_machine=i860-stratus 100250539131Smrg os=-sysv4 100350539131Smrg ;; 100450539131Smrg sun2) 100550539131Smrg basic_machine=m68000-sun 100650539131Smrg ;; 100750539131Smrg sun2os3) 100850539131Smrg basic_machine=m68000-sun 100950539131Smrg os=-sunos3 101050539131Smrg ;; 101150539131Smrg sun2os4) 101250539131Smrg basic_machine=m68000-sun 101350539131Smrg os=-sunos4 101450539131Smrg ;; 101550539131Smrg sun3os3) 101650539131Smrg basic_machine=m68k-sun 101750539131Smrg os=-sunos3 101850539131Smrg ;; 101950539131Smrg sun3os4) 102050539131Smrg basic_machine=m68k-sun 102150539131Smrg os=-sunos4 102250539131Smrg ;; 102350539131Smrg sun4os3) 102450539131Smrg basic_machine=sparc-sun 102550539131Smrg os=-sunos3 102650539131Smrg ;; 102750539131Smrg sun4os4) 102850539131Smrg basic_machine=sparc-sun 102950539131Smrg os=-sunos4 103050539131Smrg ;; 103150539131Smrg sun4sol2) 103250539131Smrg basic_machine=sparc-sun 103350539131Smrg os=-solaris2 103450539131Smrg ;; 103550539131Smrg sun3 | sun3-*) 103650539131Smrg basic_machine=m68k-sun 103750539131Smrg ;; 103850539131Smrg sun4) 103950539131Smrg basic_machine=sparc-sun 104050539131Smrg ;; 104150539131Smrg sun386 | sun386i | roadrunner) 104250539131Smrg basic_machine=i386-sun 104350539131Smrg ;; 104450539131Smrg sv1) 104550539131Smrg basic_machine=sv1-cray 104650539131Smrg os=-unicos 104750539131Smrg ;; 104850539131Smrg symmetry) 104950539131Smrg basic_machine=i386-sequent 105050539131Smrg os=-dynix 105150539131Smrg ;; 105250539131Smrg t3e) 105350539131Smrg basic_machine=alphaev5-cray 105450539131Smrg os=-unicos 105550539131Smrg ;; 105650539131Smrg t90) 105750539131Smrg basic_machine=t90-cray 105850539131Smrg os=-unicos 105950539131Smrg ;; 106050539131Smrg tic54x | c54x*) 106150539131Smrg basic_machine=tic54x-unknown 106250539131Smrg os=-coff 106350539131Smrg ;; 106450539131Smrg tic55x | c55x*) 106550539131Smrg basic_machine=tic55x-unknown 106650539131Smrg os=-coff 106750539131Smrg ;; 106850539131Smrg tic6x | c6x*) 106950539131Smrg basic_machine=tic6x-unknown 107050539131Smrg os=-coff 107150539131Smrg ;; 107250539131Smrg tile*) 107350539131Smrg basic_machine=tile-unknown 107450539131Smrg os=-linux-gnu 107550539131Smrg ;; 107650539131Smrg tx39) 107750539131Smrg basic_machine=mipstx39-unknown 107850539131Smrg ;; 107950539131Smrg tx39el) 108050539131Smrg basic_machine=mipstx39el-unknown 108150539131Smrg ;; 108250539131Smrg toad1) 108350539131Smrg basic_machine=pdp10-xkl 108450539131Smrg os=-tops20 108550539131Smrg ;; 108650539131Smrg tower | tower-32) 108750539131Smrg basic_machine=m68k-ncr 108850539131Smrg ;; 108950539131Smrg tpf) 109050539131Smrg basic_machine=s390x-ibm 109150539131Smrg os=-tpf 109250539131Smrg ;; 109350539131Smrg udi29k) 109450539131Smrg basic_machine=a29k-amd 109550539131Smrg os=-udi 109650539131Smrg ;; 109750539131Smrg ultra3) 109850539131Smrg basic_machine=a29k-nyu 109950539131Smrg os=-sym1 110050539131Smrg ;; 110150539131Smrg v810 | necv810) 110250539131Smrg basic_machine=v810-nec 110350539131Smrg os=-none 110450539131Smrg ;; 110550539131Smrg vaxv) 110650539131Smrg basic_machine=vax-dec 110750539131Smrg os=-sysv 110850539131Smrg ;; 110950539131Smrg vms) 111050539131Smrg basic_machine=vax-dec 111150539131Smrg os=-vms 111250539131Smrg ;; 111350539131Smrg vpp*|vx|vx-*) 111450539131Smrg basic_machine=f301-fujitsu 111550539131Smrg ;; 111650539131Smrg vxworks960) 111750539131Smrg basic_machine=i960-wrs 111850539131Smrg os=-vxworks 111950539131Smrg ;; 112050539131Smrg vxworks68) 112150539131Smrg basic_machine=m68k-wrs 112250539131Smrg os=-vxworks 112350539131Smrg ;; 112450539131Smrg vxworks29k) 112550539131Smrg basic_machine=a29k-wrs 112650539131Smrg os=-vxworks 112750539131Smrg ;; 112850539131Smrg w65*) 112950539131Smrg basic_machine=w65-wdc 113050539131Smrg os=-none 113150539131Smrg ;; 113250539131Smrg w89k-*) 113350539131Smrg basic_machine=hppa1.1-winbond 113450539131Smrg os=-proelf 113550539131Smrg ;; 113650539131Smrg xbox) 113750539131Smrg basic_machine=i686-pc 113850539131Smrg os=-mingw32 113950539131Smrg ;; 114050539131Smrg xps | xps100) 114150539131Smrg basic_machine=xps100-honeywell 114250539131Smrg ;; 114350539131Smrg ymp) 114450539131Smrg basic_machine=ymp-cray 114550539131Smrg os=-unicos 114650539131Smrg ;; 114750539131Smrg z8k-*-coff) 114850539131Smrg basic_machine=z8k-unknown 114950539131Smrg os=-sim 115050539131Smrg ;; 115150539131Smrg z80-*-coff) 115250539131Smrg basic_machine=z80-unknown 115350539131Smrg os=-sim 115450539131Smrg ;; 115550539131Smrg none) 115650539131Smrg basic_machine=none-none 115750539131Smrg os=-none 115850539131Smrg ;; 115950539131Smrg 116050539131Smrg# Here we handle the default manufacturer of certain CPU types. It is in 116150539131Smrg# some cases the only manufacturer, in others, it is the most popular. 116250539131Smrg w89k) 116350539131Smrg basic_machine=hppa1.1-winbond 116450539131Smrg ;; 116550539131Smrg op50n) 116650539131Smrg basic_machine=hppa1.1-oki 116750539131Smrg ;; 116850539131Smrg op60c) 116950539131Smrg basic_machine=hppa1.1-oki 117050539131Smrg ;; 117150539131Smrg romp) 117250539131Smrg basic_machine=romp-ibm 117350539131Smrg ;; 117450539131Smrg mmix) 117550539131Smrg basic_machine=mmix-knuth 117650539131Smrg ;; 117750539131Smrg rs6000) 117850539131Smrg basic_machine=rs6000-ibm 117950539131Smrg ;; 118050539131Smrg vax) 118150539131Smrg basic_machine=vax-dec 118250539131Smrg ;; 118350539131Smrg pdp10) 118450539131Smrg # there are many clones, so DEC is not a safe bet 118550539131Smrg basic_machine=pdp10-unknown 118650539131Smrg ;; 118750539131Smrg pdp11) 118850539131Smrg basic_machine=pdp11-dec 118950539131Smrg ;; 119050539131Smrg we32k) 119150539131Smrg basic_machine=we32k-att 119250539131Smrg ;; 119350539131Smrg sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele) 119450539131Smrg basic_machine=sh-unknown 119550539131Smrg ;; 119650539131Smrg sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v) 119750539131Smrg basic_machine=sparc-sun 119850539131Smrg ;; 119950539131Smrg cydra) 120050539131Smrg basic_machine=cydra-cydrome 120150539131Smrg ;; 120250539131Smrg orion) 120350539131Smrg basic_machine=orion-highlevel 120450539131Smrg ;; 120550539131Smrg orion105) 120650539131Smrg basic_machine=clipper-highlevel 120750539131Smrg ;; 120850539131Smrg mac | mpw | mac-mpw) 120950539131Smrg basic_machine=m68k-apple 121050539131Smrg ;; 121150539131Smrg pmac | pmac-mpw) 121250539131Smrg basic_machine=powerpc-apple 121350539131Smrg ;; 121450539131Smrg *-unknown) 121550539131Smrg # Make sure to match an already-canonicalized machine name. 121650539131Smrg ;; 121750539131Smrg *) 121850539131Smrg echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 121950539131Smrg exit 1 122050539131Smrg ;; 122150539131Smrgesac 122250539131Smrg 122350539131Smrg# Here we canonicalize certain aliases for manufacturers. 122450539131Smrgcase $basic_machine in 122550539131Smrg *-digital*) 122650539131Smrg basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'` 122750539131Smrg ;; 122850539131Smrg *-commodore*) 122950539131Smrg basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'` 123050539131Smrg ;; 123150539131Smrg *) 123250539131Smrg ;; 123350539131Smrgesac 123450539131Smrg 123550539131Smrg# Decode manufacturer-specific aliases for certain operating systems. 123650539131Smrg 123750539131Smrgif [ x"$os" != x"" ] 123850539131Smrgthen 123950539131Smrgcase $os in 124050539131Smrg # First match some system type aliases 124150539131Smrg # that might get confused with valid system types. 124250539131Smrg # -solaris* is a basic system type, with this one exception. 124350539131Smrg -solaris1 | -solaris1.*) 124450539131Smrg os=`echo $os | sed -e 's|solaris1|sunos4|'` 124550539131Smrg ;; 124650539131Smrg -solaris) 124750539131Smrg os=-solaris2 124850539131Smrg ;; 124950539131Smrg -svr4*) 125050539131Smrg os=-sysv4 125150539131Smrg ;; 125250539131Smrg -unixware*) 125350539131Smrg os=-sysv4.2uw 125450539131Smrg ;; 125550539131Smrg -gnu/linux*) 125650539131Smrg os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'` 125750539131Smrg ;; 125850539131Smrg # First accept the basic system types. 125950539131Smrg # The portable systems comes first. 126050539131Smrg # Each alternative MUST END IN A *, to match a version number. 126150539131Smrg # -sysv* is not here because it comes later, after sysvr4. 126250539131Smrg -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ 126350539131Smrg | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\ 126450539131Smrg | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \ 126550539131Smrg | -kopensolaris* \ 126650539131Smrg | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ 126750539131Smrg | -aos* | -aros* \ 126850539131Smrg | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ 126950539131Smrg | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ 127050539131Smrg | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \ 127150539131Smrg | -openbsd* | -solidbsd* \ 127250539131Smrg | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ 127350539131Smrg | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ 127450539131Smrg | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ 127550539131Smrg | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ 127650539131Smrg | -chorusos* | -chorusrdb* | -cegcc* \ 127750539131Smrg | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ 127850539131Smrg | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \ 127950539131Smrg | -uxpv* | -beos* | -mpeix* | -udk* \ 128050539131Smrg | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ 128150539131Smrg | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ 128250539131Smrg | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ 128350539131Smrg | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ 128450539131Smrg | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ 128550539131Smrg | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ 128650539131Smrg | -skyos* | -haiku* | -rdos* | -toppers* | -drops*) 128750539131Smrg # Remember, each alternative MUST END IN *, to match a version number. 128850539131Smrg ;; 128950539131Smrg -qnx*) 129050539131Smrg case $basic_machine in 129150539131Smrg x86-* | i*86-*) 129250539131Smrg ;; 129350539131Smrg *) 129450539131Smrg os=-nto$os 129550539131Smrg ;; 129650539131Smrg esac 129750539131Smrg ;; 129850539131Smrg -nto-qnx*) 129950539131Smrg ;; 130050539131Smrg -nto*) 130150539131Smrg os=`echo $os | sed -e 's|nto|nto-qnx|'` 130250539131Smrg ;; 130350539131Smrg -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ 130450539131Smrg | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \ 130550539131Smrg | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) 130650539131Smrg ;; 130750539131Smrg -mac*) 130850539131Smrg os=`echo $os | sed -e 's|mac|macos|'` 130950539131Smrg ;; 131050539131Smrg -linux-dietlibc) 131150539131Smrg os=-linux-dietlibc 131250539131Smrg ;; 131350539131Smrg -linux*) 131450539131Smrg os=`echo $os | sed -e 's|linux|linux-gnu|'` 131550539131Smrg ;; 131650539131Smrg -sunos5*) 131750539131Smrg os=`echo $os | sed -e 's|sunos5|solaris2|'` 131850539131Smrg ;; 131950539131Smrg -sunos6*) 132050539131Smrg os=`echo $os | sed -e 's|sunos6|solaris3|'` 132150539131Smrg ;; 132250539131Smrg -opened*) 132350539131Smrg os=-openedition 132450539131Smrg ;; 132550539131Smrg -os400*) 132650539131Smrg os=-os400 132750539131Smrg ;; 132850539131Smrg -wince*) 132950539131Smrg os=-wince 133050539131Smrg ;; 133150539131Smrg -osfrose*) 133250539131Smrg os=-osfrose 133350539131Smrg ;; 133450539131Smrg -osf*) 133550539131Smrg os=-osf 133650539131Smrg ;; 133750539131Smrg -utek*) 133850539131Smrg os=-bsd 133950539131Smrg ;; 134050539131Smrg -dynix*) 134150539131Smrg os=-bsd 134250539131Smrg ;; 134350539131Smrg -acis*) 134450539131Smrg os=-aos 134550539131Smrg ;; 134650539131Smrg -atheos*) 134750539131Smrg os=-atheos 134850539131Smrg ;; 134950539131Smrg -syllable*) 135050539131Smrg os=-syllable 135150539131Smrg ;; 135250539131Smrg -386bsd) 135350539131Smrg os=-bsd 135450539131Smrg ;; 135550539131Smrg -ctix* | -uts*) 135650539131Smrg os=-sysv 135750539131Smrg ;; 135850539131Smrg -nova*) 135950539131Smrg os=-rtmk-nova 136050539131Smrg ;; 136150539131Smrg -ns2 ) 136250539131Smrg os=-nextstep2 136350539131Smrg ;; 136450539131Smrg -nsk*) 136550539131Smrg os=-nsk 136650539131Smrg ;; 136750539131Smrg # Preserve the version number of sinix5. 136850539131Smrg -sinix5.*) 136950539131Smrg os=`echo $os | sed -e 's|sinix|sysv|'` 137050539131Smrg ;; 137150539131Smrg -sinix*) 137250539131Smrg os=-sysv4 137350539131Smrg ;; 137450539131Smrg -tpf*) 137550539131Smrg os=-tpf 137650539131Smrg ;; 137750539131Smrg -triton*) 137850539131Smrg os=-sysv3 137950539131Smrg ;; 138050539131Smrg -oss*) 138150539131Smrg os=-sysv3 138250539131Smrg ;; 138350539131Smrg -svr4) 138450539131Smrg os=-sysv4 138550539131Smrg ;; 138650539131Smrg -svr3) 138750539131Smrg os=-sysv3 138850539131Smrg ;; 138950539131Smrg -sysvr4) 139050539131Smrg os=-sysv4 139150539131Smrg ;; 139250539131Smrg # This must come after -sysvr4. 139350539131Smrg -sysv*) 139450539131Smrg ;; 139550539131Smrg -ose*) 139650539131Smrg os=-ose 139750539131Smrg ;; 139850539131Smrg -es1800*) 139950539131Smrg os=-ose 140050539131Smrg ;; 140150539131Smrg -xenix) 140250539131Smrg os=-xenix 140350539131Smrg ;; 140450539131Smrg -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) 140550539131Smrg os=-mint 140650539131Smrg ;; 140750539131Smrg -aros*) 140850539131Smrg os=-aros 140950539131Smrg ;; 141050539131Smrg -kaos*) 141150539131Smrg os=-kaos 141250539131Smrg ;; 141350539131Smrg -zvmoe) 141450539131Smrg os=-zvmoe 141550539131Smrg ;; 141650539131Smrg -dicos*) 141750539131Smrg os=-dicos 141850539131Smrg ;; 141950539131Smrg -none) 142050539131Smrg ;; 142150539131Smrg *) 142250539131Smrg # Get rid of the `-' at the beginning of $os. 142350539131Smrg os=`echo $os | sed 's/[^-]*-//'` 142450539131Smrg echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2 142550539131Smrg exit 1 142650539131Smrg ;; 142750539131Smrgesac 142850539131Smrgelse 142950539131Smrg 143050539131Smrg# Here we handle the default operating systems that come with various machines. 143150539131Smrg# The value should be what the vendor currently ships out the door with their 143250539131Smrg# machine or put another way, the most popular os provided with the machine. 143350539131Smrg 143450539131Smrg# Note that if you're going to try to match "-MANUFACTURER" here (say, 143550539131Smrg# "-sun"), then you have to tell the case statement up towards the top 143650539131Smrg# that MANUFACTURER isn't an operating system. Otherwise, code above 143750539131Smrg# will signal an error saying that MANUFACTURER isn't an operating 143850539131Smrg# system, and we'll never get to this point. 143950539131Smrg 144050539131Smrgcase $basic_machine in 144150539131Smrg score-*) 144250539131Smrg os=-elf 144350539131Smrg ;; 144450539131Smrg spu-*) 144550539131Smrg os=-elf 144650539131Smrg ;; 144750539131Smrg *-acorn) 144850539131Smrg os=-riscix1.2 144950539131Smrg ;; 145050539131Smrg arm*-rebel) 145150539131Smrg os=-linux 145250539131Smrg ;; 145350539131Smrg arm*-semi) 145450539131Smrg os=-aout 145550539131Smrg ;; 145650539131Smrg c4x-* | tic4x-*) 145750539131Smrg os=-coff 145850539131Smrg ;; 145950539131Smrg # This must come before the *-dec entry. 146050539131Smrg pdp10-*) 146150539131Smrg os=-tops20 146250539131Smrg ;; 146350539131Smrg pdp11-*) 146450539131Smrg os=-none 146550539131Smrg ;; 146650539131Smrg *-dec | vax-*) 146750539131Smrg os=-ultrix4.2 146850539131Smrg ;; 146950539131Smrg m68*-apollo) 147050539131Smrg os=-domain 147150539131Smrg ;; 147250539131Smrg i386-sun) 147350539131Smrg os=-sunos4.0.2 147450539131Smrg ;; 147550539131Smrg m68000-sun) 147650539131Smrg os=-sunos3 147750539131Smrg # This also exists in the configure program, but was not the 147850539131Smrg # default. 147950539131Smrg # os=-sunos4 148050539131Smrg ;; 148150539131Smrg m68*-cisco) 148250539131Smrg os=-aout 148350539131Smrg ;; 148450539131Smrg mep-*) 148550539131Smrg os=-elf 148650539131Smrg ;; 148750539131Smrg mips*-cisco) 148850539131Smrg os=-elf 148950539131Smrg ;; 149050539131Smrg mips*-*) 149150539131Smrg os=-elf 149250539131Smrg ;; 149350539131Smrg or32-*) 149450539131Smrg os=-coff 149550539131Smrg ;; 149650539131Smrg *-tti) # must be before sparc entry or we get the wrong os. 149750539131Smrg os=-sysv3 149850539131Smrg ;; 149950539131Smrg sparc-* | *-sun) 150050539131Smrg os=-sunos4.1.1 150150539131Smrg ;; 150250539131Smrg *-be) 150350539131Smrg os=-beos 150450539131Smrg ;; 150550539131Smrg *-haiku) 150650539131Smrg os=-haiku 150750539131Smrg ;; 150850539131Smrg *-ibm) 150950539131Smrg os=-aix 151050539131Smrg ;; 151150539131Smrg *-knuth) 151250539131Smrg os=-mmixware 151350539131Smrg ;; 151450539131Smrg *-wec) 151550539131Smrg os=-proelf 151650539131Smrg ;; 151750539131Smrg *-winbond) 151850539131Smrg os=-proelf 151950539131Smrg ;; 152050539131Smrg *-oki) 152150539131Smrg os=-proelf 152250539131Smrg ;; 152350539131Smrg *-hp) 152450539131Smrg os=-hpux 152550539131Smrg ;; 152650539131Smrg *-hitachi) 152750539131Smrg os=-hiux 152850539131Smrg ;; 152950539131Smrg i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent) 153050539131Smrg os=-sysv 153150539131Smrg ;; 153250539131Smrg *-cbm) 153350539131Smrg os=-amigaos 153450539131Smrg ;; 153550539131Smrg *-dg) 153650539131Smrg os=-dgux 153750539131Smrg ;; 153850539131Smrg *-dolphin) 153950539131Smrg os=-sysv3 154050539131Smrg ;; 154150539131Smrg m68k-ccur) 154250539131Smrg os=-rtu 154350539131Smrg ;; 154450539131Smrg m88k-omron*) 154550539131Smrg os=-luna 154650539131Smrg ;; 154750539131Smrg *-next ) 154850539131Smrg os=-nextstep 154950539131Smrg ;; 155050539131Smrg *-sequent) 155150539131Smrg os=-ptx 155250539131Smrg ;; 155350539131Smrg *-crds) 155450539131Smrg os=-unos 155550539131Smrg ;; 155650539131Smrg *-ns) 155750539131Smrg os=-genix 155850539131Smrg ;; 155950539131Smrg i370-*) 156050539131Smrg os=-mvs 156150539131Smrg ;; 156250539131Smrg *-next) 156350539131Smrg os=-nextstep3 156450539131Smrg ;; 156550539131Smrg *-gould) 156650539131Smrg os=-sysv 156750539131Smrg ;; 156850539131Smrg *-highlevel) 156950539131Smrg os=-bsd 157050539131Smrg ;; 157150539131Smrg *-encore) 157250539131Smrg os=-bsd 157350539131Smrg ;; 157450539131Smrg *-sgi) 157550539131Smrg os=-irix 157650539131Smrg ;; 157750539131Smrg *-siemens) 157850539131Smrg os=-sysv4 157950539131Smrg ;; 158050539131Smrg *-masscomp) 158150539131Smrg os=-rtu 158250539131Smrg ;; 158350539131Smrg f30[01]-fujitsu | f700-fujitsu) 158450539131Smrg os=-uxpv 158550539131Smrg ;; 158650539131Smrg *-rom68k) 158750539131Smrg os=-coff 158850539131Smrg ;; 158950539131Smrg *-*bug) 159050539131Smrg os=-coff 159150539131Smrg ;; 159250539131Smrg *-apple) 159350539131Smrg os=-macos 159450539131Smrg ;; 159550539131Smrg *-atari*) 159650539131Smrg os=-mint 159750539131Smrg ;; 159850539131Smrg *) 159950539131Smrg os=-none 160050539131Smrg ;; 160150539131Smrgesac 160250539131Smrgfi 160350539131Smrg 160450539131Smrg# Here we handle the case where we know the os, and the CPU type, but not the 160550539131Smrg# manufacturer. We pick the logical manufacturer. 160650539131Smrgvendor=unknown 160750539131Smrgcase $basic_machine in 160850539131Smrg *-unknown) 160950539131Smrg case $os in 161050539131Smrg -riscix*) 161150539131Smrg vendor=acorn 161250539131Smrg ;; 161350539131Smrg -sunos*) 161450539131Smrg vendor=sun 161550539131Smrg ;; 161650539131Smrg -aix*) 161750539131Smrg vendor=ibm 161850539131Smrg ;; 161950539131Smrg -beos*) 162050539131Smrg vendor=be 162150539131Smrg ;; 162250539131Smrg -hpux*) 162350539131Smrg vendor=hp 162450539131Smrg ;; 162550539131Smrg -mpeix*) 162650539131Smrg vendor=hp 162750539131Smrg ;; 162850539131Smrg -hiux*) 162950539131Smrg vendor=hitachi 163050539131Smrg ;; 163150539131Smrg -unos*) 163250539131Smrg vendor=crds 163350539131Smrg ;; 163450539131Smrg -dgux*) 163550539131Smrg vendor=dg 163650539131Smrg ;; 163750539131Smrg -luna*) 163850539131Smrg vendor=omron 163950539131Smrg ;; 164050539131Smrg -genix*) 164150539131Smrg vendor=ns 164250539131Smrg ;; 164350539131Smrg -mvs* | -opened*) 164450539131Smrg vendor=ibm 164550539131Smrg ;; 164650539131Smrg -os400*) 164750539131Smrg vendor=ibm 164850539131Smrg ;; 164950539131Smrg -ptx*) 165050539131Smrg vendor=sequent 165150539131Smrg ;; 165250539131Smrg -tpf*) 165350539131Smrg vendor=ibm 165450539131Smrg ;; 165550539131Smrg -vxsim* | -vxworks* | -windiss*) 165650539131Smrg vendor=wrs 165750539131Smrg ;; 165850539131Smrg -aux*) 165950539131Smrg vendor=apple 166050539131Smrg ;; 166150539131Smrg -hms*) 166250539131Smrg vendor=hitachi 166350539131Smrg ;; 166450539131Smrg -mpw* | -macos*) 166550539131Smrg vendor=apple 166650539131Smrg ;; 166750539131Smrg -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) 166850539131Smrg vendor=atari 166950539131Smrg ;; 167050539131Smrg -vos*) 167150539131Smrg vendor=stratus 167250539131Smrg ;; 167350539131Smrg esac 167450539131Smrg basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` 167550539131Smrg ;; 167650539131Smrgesac 167750539131Smrg 167850539131Smrgecho $basic_machine$os 167950539131Smrgexit 168050539131Smrg 168150539131Smrg# Local variables: 168250539131Smrg# eval: (add-hook 'write-file-hooks 'time-stamp) 168350539131Smrg# time-stamp-start: "timestamp='" 168450539131Smrg# time-stamp-format: "%:y-%02m-%02d" 168550539131Smrg# time-stamp-end: "'" 168650539131Smrg# End: 1687