config.sub revision d8556812
176888252Smrg#! /bin/sh 276888252Smrg# Configuration validation subroutine script. 376888252Smrg# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 41ae1b5e8Smrg# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 51ae1b5e8Smrg# Free Software Foundation, Inc. 676888252Smrg 7d8556812Smrgtimestamp='2008-01-16' 876888252Smrg 976888252Smrg# This file is (in principle) common to ALL GNU software. 1076888252Smrg# The presence of a machine in this file suggests that SOME GNU software 1176888252Smrg# can handle that machine. It does not imply ALL GNU software can. 1276888252Smrg# 1376888252Smrg# This file is free software; you can redistribute it and/or modify 1476888252Smrg# it under the terms of the GNU General Public License as published by 1576888252Smrg# the Free Software Foundation; either version 2 of the License, or 1676888252Smrg# (at your option) any later version. 1776888252Smrg# 1876888252Smrg# This program is distributed in the hope that it will be useful, 1976888252Smrg# but WITHOUT ANY WARRANTY; without even the implied warranty of 2076888252Smrg# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 2176888252Smrg# GNU General Public License for more details. 2276888252Smrg# 2376888252Smrg# You should have received a copy of the GNU General Public License 2476888252Smrg# along with this program; if not, write to the Free Software 251ae1b5e8Smrg# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 261ae1b5e8Smrg# 02110-1301, USA. 271ae1b5e8Smrg# 2876888252Smrg# As a special exception to the GNU General Public License, if you 2976888252Smrg# distribute this file as part of a program that contains a 3076888252Smrg# configuration script generated by Autoconf, you may include it under 3176888252Smrg# the same distribution terms that you use for the rest of that program. 3276888252Smrg 331ae1b5e8Smrg 3476888252Smrg# Please send patches to <config-patches@gnu.org>. Submit a context 3576888252Smrg# diff and a properly formatted ChangeLog entry. 3676888252Smrg# 3776888252Smrg# Configuration subroutine to validate and canonicalize a configuration type. 3876888252Smrg# Supply the specified configuration type as an argument. 3976888252Smrg# If it is invalid, we print an error message on stderr and exit with code 1. 4076888252Smrg# Otherwise, we print the canonical config type on stdout and succeed. 4176888252Smrg 4276888252Smrg# This file is supposed to be the same for all GNU packages 4376888252Smrg# and recognize all the CPU types, system types and aliases 4476888252Smrg# that are meaningful with *any* GNU software. 4576888252Smrg# Each package is responsible for reporting which valid configurations 4676888252Smrg# it does not support. The user should be able to distinguish 4776888252Smrg# a failure to support a valid configuration from a meaningless 4876888252Smrg# configuration. 4976888252Smrg 5076888252Smrg# The goal of this file is to map all the various variations of a given 5176888252Smrg# machine specification into a single specification in the form: 5276888252Smrg# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM 5376888252Smrg# or in some cases, the newer four-part form: 5476888252Smrg# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM 5576888252Smrg# It is wrong to echo any other type of specification. 5676888252Smrg 5776888252Smrgme=`echo "$0" | sed -e 's,.*/,,'` 5876888252Smrg 5976888252Smrgusage="\ 6076888252SmrgUsage: $0 [OPTION] CPU-MFR-OPSYS 6176888252Smrg $0 [OPTION] ALIAS 6276888252Smrg 6376888252SmrgCanonicalize a configuration name. 6476888252Smrg 6576888252SmrgOperation modes: 6676888252Smrg -h, --help print this help, then exit 6776888252Smrg -t, --time-stamp print date of last modification, then exit 6876888252Smrg -v, --version print version number, then exit 6976888252Smrg 7076888252SmrgReport bugs and patches to <config-patches@gnu.org>." 7176888252Smrg 7276888252Smrgversion="\ 7376888252SmrgGNU config.sub ($timestamp) 7476888252Smrg 751ae1b5e8SmrgCopyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 761ae1b5e8Smrg2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 7776888252Smrg 7876888252SmrgThis is free software; see the source for copying conditions. There is NO 7976888252Smrgwarranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." 8076888252Smrg 8176888252Smrghelp=" 8276888252SmrgTry \`$me --help' for more information." 8376888252Smrg 8476888252Smrg# Parse command line 8576888252Smrgwhile test $# -gt 0 ; do 8676888252Smrg case $1 in 8776888252Smrg --time-stamp | --time* | -t ) 881ae1b5e8Smrg echo "$timestamp" ; exit ;; 8976888252Smrg --version | -v ) 901ae1b5e8Smrg echo "$version" ; exit ;; 9176888252Smrg --help | --h* | -h ) 921ae1b5e8Smrg echo "$usage"; exit ;; 9376888252Smrg -- ) # Stop option processing 9476888252Smrg shift; break ;; 9576888252Smrg - ) # Use stdin as input. 9676888252Smrg break ;; 9776888252Smrg -* ) 9876888252Smrg echo "$me: invalid option $1$help" 9976888252Smrg exit 1 ;; 10076888252Smrg 10176888252Smrg *local*) 10276888252Smrg # First pass through any local machine types. 10376888252Smrg echo $1 1041ae1b5e8Smrg exit ;; 10576888252Smrg 10676888252Smrg * ) 10776888252Smrg break ;; 10876888252Smrg esac 10976888252Smrgdone 11076888252Smrg 11176888252Smrgcase $# in 11276888252Smrg 0) echo "$me: missing argument$help" >&2 11376888252Smrg exit 1;; 11476888252Smrg 1) ;; 11576888252Smrg *) echo "$me: too many arguments$help" >&2 11676888252Smrg exit 1;; 11776888252Smrgesac 11876888252Smrg 11976888252Smrg# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). 12076888252Smrg# Here we must recognize all the valid KERNEL-OS combinations. 12176888252Smrgmaybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` 12276888252Smrgcase $maybe_os in 1231ae1b5e8Smrg nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \ 1241ae1b5e8Smrg uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \ 1251ae1b5e8Smrg storm-chaos* | os2-emx* | rtmk-nova*) 12676888252Smrg os=-$maybe_os 12776888252Smrg basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` 12876888252Smrg ;; 12976888252Smrg *) 13076888252Smrg basic_machine=`echo $1 | sed 's/-[^-]*$//'` 13176888252Smrg if [ $basic_machine != $1 ] 13276888252Smrg then os=`echo $1 | sed 's/.*-/-/'` 13376888252Smrg else os=; fi 13476888252Smrg ;; 13576888252Smrgesac 13676888252Smrg 13776888252Smrg### Let's recognize common machines as not being operating systems so 13876888252Smrg### that things like config.sub decstation-3100 work. We also 13976888252Smrg### recognize some manufacturers as not being operating systems, so we 14076888252Smrg### can provide default operating systems below. 14176888252Smrgcase $os in 14276888252Smrg -sun*os*) 14376888252Smrg # Prevent following clause from handling this invalid input. 14476888252Smrg ;; 14576888252Smrg -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \ 14676888252Smrg -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ 14776888252Smrg -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ 14876888252Smrg -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ 14976888252Smrg -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ 15076888252Smrg -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ 1511ae1b5e8Smrg -apple | -axis | -knuth | -cray) 15276888252Smrg os= 15376888252Smrg basic_machine=$1 15476888252Smrg ;; 15576888252Smrg -sim | -cisco | -oki | -wec | -winbond) 15676888252Smrg os= 15776888252Smrg basic_machine=$1 15876888252Smrg ;; 15976888252Smrg -scout) 16076888252Smrg ;; 16176888252Smrg -wrs) 16276888252Smrg os=-vxworks 16376888252Smrg basic_machine=$1 16476888252Smrg ;; 16576888252Smrg -chorusos*) 16676888252Smrg os=-chorusos 16776888252Smrg basic_machine=$1 16876888252Smrg ;; 16976888252Smrg -chorusrdb) 17076888252Smrg os=-chorusrdb 17176888252Smrg basic_machine=$1 17276888252Smrg ;; 17376888252Smrg -hiux*) 17476888252Smrg os=-hiuxwe2 17576888252Smrg ;; 1761ae1b5e8Smrg -sco6) 1771ae1b5e8Smrg os=-sco5v6 1781ae1b5e8Smrg basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 1791ae1b5e8Smrg ;; 18076888252Smrg -sco5) 18176888252Smrg os=-sco3.2v5 18276888252Smrg basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 18376888252Smrg ;; 18476888252Smrg -sco4) 18576888252Smrg os=-sco3.2v4 18676888252Smrg basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 18776888252Smrg ;; 18876888252Smrg -sco3.2.[4-9]*) 18976888252Smrg os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` 19076888252Smrg basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 19176888252Smrg ;; 19276888252Smrg -sco3.2v[4-9]*) 19376888252Smrg # Don't forget version if it is 3.2v4 or newer. 19476888252Smrg basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 19576888252Smrg ;; 1961ae1b5e8Smrg -sco5v6*) 1971ae1b5e8Smrg # Don't forget version if it is 3.2v4 or newer. 1981ae1b5e8Smrg basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 1991ae1b5e8Smrg ;; 20076888252Smrg -sco*) 20176888252Smrg os=-sco3.2v2 20276888252Smrg basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 20376888252Smrg ;; 20476888252Smrg -udk*) 20576888252Smrg basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 20676888252Smrg ;; 20776888252Smrg -isc) 20876888252Smrg os=-isc2.2 20976888252Smrg basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 21076888252Smrg ;; 21176888252Smrg -clix*) 21276888252Smrg basic_machine=clipper-intergraph 21376888252Smrg ;; 21476888252Smrg -isc*) 21576888252Smrg basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 21676888252Smrg ;; 21776888252Smrg -lynx*) 21876888252Smrg os=-lynxos 21976888252Smrg ;; 22076888252Smrg -ptx*) 22176888252Smrg basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'` 22276888252Smrg ;; 22376888252Smrg -windowsnt*) 22476888252Smrg os=`echo $os | sed -e 's/windowsnt/winnt/'` 22576888252Smrg ;; 22676888252Smrg -psos*) 22776888252Smrg os=-psos 22876888252Smrg ;; 22976888252Smrg -mint | -mint[0-9]*) 23076888252Smrg basic_machine=m68k-atari 23176888252Smrg os=-mint 23276888252Smrg ;; 23376888252Smrgesac 23476888252Smrg 23576888252Smrg# Decode aliases for certain CPU-COMPANY combinations. 23676888252Smrgcase $basic_machine in 23776888252Smrg # Recognize the basic CPU types without company name. 23876888252Smrg # Some are omitted here because they have special meanings below. 23976888252Smrg 1750a | 580 \ 24076888252Smrg | a29k \ 24176888252Smrg | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ 24276888252Smrg | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ 2431ae1b5e8Smrg | am33_2.0 \ 2441ae1b5e8Smrg | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \ 2451ae1b5e8Smrg | bfin \ 24676888252Smrg | c4x | clipper \ 24776888252Smrg | d10v | d30v | dlx | dsp16xx \ 2481ae1b5e8Smrg | fido | fr30 | frv \ 24976888252Smrg | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ 25076888252Smrg | i370 | i860 | i960 | ia64 \ 2511ae1b5e8Smrg | ip2k | iq2000 \ 2521ae1b5e8Smrg | m32c | m32r | m32rle | m68000 | m68k | m88k \ 253d8556812Smrg | maxq | mb | microblaze | mcore | mep \ 25476888252Smrg | mips | mipsbe | mipseb | mipsel | mipsle \ 25576888252Smrg | mips16 \ 25676888252Smrg | mips64 | mips64el \ 2571ae1b5e8Smrg | mips64vr | mips64vrel \ 258d8556812Smrg | mips64orion | mips64orionel \ 25976888252Smrg | mips64vr4100 | mips64vr4100el \ 26076888252Smrg | mips64vr4300 | mips64vr4300el \ 26176888252Smrg | mips64vr5000 | mips64vr5000el \ 2621ae1b5e8Smrg | mips64vr5900 | mips64vr5900el \ 26376888252Smrg | mipsisa32 | mipsisa32el \ 26476888252Smrg | mipsisa32r2 | mipsisa32r2el \ 26576888252Smrg | mipsisa64 | mipsisa64el \ 2661ae1b5e8Smrg | mipsisa64r2 | mipsisa64r2el \ 26776888252Smrg | mipsisa64sb1 | mipsisa64sb1el \ 26876888252Smrg | mipsisa64sr71k | mipsisa64sr71kel \ 26976888252Smrg | mipstx39 | mipstx39el \ 27076888252Smrg | mn10200 | mn10300 \ 2711ae1b5e8Smrg | mt \ 27276888252Smrg | msp430 \ 2731ae1b5e8Smrg | nios | nios2 \ 27476888252Smrg | ns16k | ns32k \ 2751ae1b5e8Smrg | or32 \ 27676888252Smrg | pdp10 | pdp11 | pj | pjl \ 27776888252Smrg | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ 27876888252Smrg | pyramid \ 2791ae1b5e8Smrg | score \ 28086dafe34Smrg | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ 28176888252Smrg | sh64 | sh64le \ 2821ae1b5e8Smrg | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ 2831ae1b5e8Smrg | sparcv8 | sparcv9 | sparcv9b | sparcv9v \ 2841ae1b5e8Smrg | spu | strongarm \ 28576888252Smrg | tahoe | thumb | tic4x | tic80 | tron \ 28676888252Smrg | v850 | v850e \ 28776888252Smrg | we32k \ 2881ae1b5e8Smrg | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \ 289d8556812Smrg | z8k) 29076888252Smrg basic_machine=$basic_machine-unknown 29176888252Smrg ;; 29276888252Smrg m6811 | m68hc11 | m6812 | m68hc12) 29376888252Smrg # Motorola 68HC11/12. 29476888252Smrg basic_machine=$basic_machine-unknown 29576888252Smrg os=-none 29676888252Smrg ;; 29776888252Smrg m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) 29876888252Smrg ;; 2991ae1b5e8Smrg ms1) 3001ae1b5e8Smrg basic_machine=mt-unknown 3011ae1b5e8Smrg ;; 30276888252Smrg 30376888252Smrg # We use `pc' rather than `unknown' 30476888252Smrg # because (1) that's what they normally are, and 30576888252Smrg # (2) the word "unknown" tends to confuse beginning users. 30676888252Smrg i*86 | x86_64) 30776888252Smrg basic_machine=$basic_machine-pc 30876888252Smrg ;; 30976888252Smrg # Object if more than one company name word. 31076888252Smrg *-*-*) 31176888252Smrg echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 31276888252Smrg exit 1 31376888252Smrg ;; 31476888252Smrg # Recognize the basic CPU types with company name. 31576888252Smrg 580-* \ 31676888252Smrg | a29k-* \ 31776888252Smrg | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ 31876888252Smrg | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ 31976888252Smrg | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ 32076888252Smrg | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ 3211ae1b5e8Smrg | avr-* | avr32-* \ 3221ae1b5e8Smrg | bfin-* | bs2000-* \ 32376888252Smrg | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \ 3241ae1b5e8Smrg | clipper-* | craynv-* | cydra-* \ 32576888252Smrg | d10v-* | d30v-* | dlx-* \ 32676888252Smrg | elxsi-* \ 3271ae1b5e8Smrg | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \ 32876888252Smrg | h8300-* | h8500-* \ 32976888252Smrg | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ 33076888252Smrg | i*86-* | i860-* | i960-* | ia64-* \ 3311ae1b5e8Smrg | ip2k-* | iq2000-* \ 3321ae1b5e8Smrg | m32c-* | m32r-* | m32rle-* \ 33376888252Smrg | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ 334d8556812Smrg | m88110-* | m88k-* | maxq-* | mcore-* \ 33576888252Smrg | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ 33676888252Smrg | mips16-* \ 33776888252Smrg | mips64-* | mips64el-* \ 3381ae1b5e8Smrg | mips64vr-* | mips64vrel-* \ 339d8556812Smrg | mips64orion-* | mips64orionel-* \ 34076888252Smrg | mips64vr4100-* | mips64vr4100el-* \ 34176888252Smrg | mips64vr4300-* | mips64vr4300el-* \ 34276888252Smrg | mips64vr5000-* | mips64vr5000el-* \ 3431ae1b5e8Smrg | mips64vr5900-* | mips64vr5900el-* \ 34476888252Smrg | mipsisa32-* | mipsisa32el-* \ 34576888252Smrg | mipsisa32r2-* | mipsisa32r2el-* \ 34676888252Smrg | mipsisa64-* | mipsisa64el-* \ 3471ae1b5e8Smrg | mipsisa64r2-* | mipsisa64r2el-* \ 34876888252Smrg | mipsisa64sb1-* | mipsisa64sb1el-* \ 34976888252Smrg | mipsisa64sr71k-* | mipsisa64sr71kel-* \ 35076888252Smrg | mipstx39-* | mipstx39el-* \ 3511ae1b5e8Smrg | mmix-* \ 3521ae1b5e8Smrg | mt-* \ 35376888252Smrg | msp430-* \ 3541ae1b5e8Smrg | nios-* | nios2-* \ 3551ae1b5e8Smrg | none-* | np1-* | ns16k-* | ns32k-* \ 35676888252Smrg | orion-* \ 35776888252Smrg | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ 35876888252Smrg | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ 35976888252Smrg | pyramid-* \ 36076888252Smrg | romp-* | rs6000-* \ 36186dafe34Smrg | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \ 36276888252Smrg | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ 3631ae1b5e8Smrg | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \ 3641ae1b5e8Smrg | sparclite-* \ 3651ae1b5e8Smrg | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \ 36676888252Smrg | tahoe-* | thumb-* \ 367d8556812Smrg | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ 36876888252Smrg | tron-* \ 36976888252Smrg | v850-* | v850e-* | vax-* \ 37076888252Smrg | we32k-* \ 3711ae1b5e8Smrg | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \ 3721ae1b5e8Smrg | xstormy16-* | xtensa*-* \ 37376888252Smrg | ymp-* \ 374d8556812Smrg | z8k-*) 3751ae1b5e8Smrg ;; 3761ae1b5e8Smrg # Recognize the basic CPU types without company name, with glob match. 3771ae1b5e8Smrg xtensa*) 3781ae1b5e8Smrg basic_machine=$basic_machine-unknown 37976888252Smrg ;; 38076888252Smrg # Recognize the various machine names and aliases which stand 38176888252Smrg # for a CPU type and a company and sometimes even an OS. 38276888252Smrg 386bsd) 38376888252Smrg basic_machine=i386-unknown 38476888252Smrg os=-bsd 38576888252Smrg ;; 38676888252Smrg 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) 38776888252Smrg basic_machine=m68000-att 38876888252Smrg ;; 38976888252Smrg 3b*) 39076888252Smrg basic_machine=we32k-att 39176888252Smrg ;; 39276888252Smrg a29khif) 39376888252Smrg basic_machine=a29k-amd 39476888252Smrg os=-udi 39576888252Smrg ;; 3961ae1b5e8Smrg abacus) 3971ae1b5e8Smrg basic_machine=abacus-unknown 3981ae1b5e8Smrg ;; 39976888252Smrg adobe68k) 40076888252Smrg basic_machine=m68010-adobe 40176888252Smrg os=-scout 40276888252Smrg ;; 40376888252Smrg alliant | fx80) 40476888252Smrg basic_machine=fx80-alliant 40576888252Smrg ;; 40676888252Smrg altos | altos3068) 40776888252Smrg basic_machine=m68k-altos 40876888252Smrg ;; 40976888252Smrg am29k) 41076888252Smrg basic_machine=a29k-none 41176888252Smrg os=-bsd 41276888252Smrg ;; 41376888252Smrg amd64) 41476888252Smrg basic_machine=x86_64-pc 41576888252Smrg ;; 4161ae1b5e8Smrg amd64-*) 4171ae1b5e8Smrg basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'` 4181ae1b5e8Smrg ;; 41976888252Smrg amdahl) 42076888252Smrg basic_machine=580-amdahl 42176888252Smrg os=-sysv 42276888252Smrg ;; 42376888252Smrg amiga | amiga-*) 42476888252Smrg basic_machine=m68k-unknown 42576888252Smrg ;; 42676888252Smrg amigaos | amigados) 42776888252Smrg basic_machine=m68k-unknown 42876888252Smrg os=-amigaos 42976888252Smrg ;; 43076888252Smrg amigaunix | amix) 43176888252Smrg basic_machine=m68k-unknown 43276888252Smrg os=-sysv4 43376888252Smrg ;; 43476888252Smrg apollo68) 43576888252Smrg basic_machine=m68k-apollo 43676888252Smrg os=-sysv 43776888252Smrg ;; 43876888252Smrg apollo68bsd) 43976888252Smrg basic_machine=m68k-apollo 44076888252Smrg os=-bsd 44176888252Smrg ;; 44276888252Smrg aux) 44376888252Smrg basic_machine=m68k-apple 44476888252Smrg os=-aux 44576888252Smrg ;; 44676888252Smrg balance) 44776888252Smrg basic_machine=ns32k-sequent 44876888252Smrg os=-dynix 44976888252Smrg ;; 4501ae1b5e8Smrg blackfin) 4511ae1b5e8Smrg basic_machine=bfin-unknown 4521ae1b5e8Smrg os=-linux 4531ae1b5e8Smrg ;; 4541ae1b5e8Smrg blackfin-*) 4551ae1b5e8Smrg basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'` 4561ae1b5e8Smrg os=-linux 4571ae1b5e8Smrg ;; 45876888252Smrg c90) 45976888252Smrg basic_machine=c90-cray 46076888252Smrg os=-unicos 46176888252Smrg ;; 46276888252Smrg convex-c1) 46376888252Smrg basic_machine=c1-convex 46476888252Smrg os=-bsd 46576888252Smrg ;; 46676888252Smrg convex-c2) 46776888252Smrg basic_machine=c2-convex 46876888252Smrg os=-bsd 46976888252Smrg ;; 47076888252Smrg convex-c32) 47176888252Smrg basic_machine=c32-convex 47276888252Smrg os=-bsd 47376888252Smrg ;; 47476888252Smrg convex-c34) 47576888252Smrg basic_machine=c34-convex 47676888252Smrg os=-bsd 47776888252Smrg ;; 47876888252Smrg convex-c38) 47976888252Smrg basic_machine=c38-convex 48076888252Smrg os=-bsd 48176888252Smrg ;; 48276888252Smrg cray | j90) 48376888252Smrg basic_machine=j90-cray 48476888252Smrg os=-unicos 48576888252Smrg ;; 4861ae1b5e8Smrg craynv) 4871ae1b5e8Smrg basic_machine=craynv-cray 4881ae1b5e8Smrg os=-unicosmp 4891ae1b5e8Smrg ;; 4901ae1b5e8Smrg cr16) 4911ae1b5e8Smrg basic_machine=cr16-unknown 4921ae1b5e8Smrg os=-elf 4931ae1b5e8Smrg ;; 49476888252Smrg crds | unos) 49576888252Smrg basic_machine=m68k-crds 49676888252Smrg ;; 4971ae1b5e8Smrg crisv32 | crisv32-* | etraxfs*) 4981ae1b5e8Smrg basic_machine=crisv32-axis 4991ae1b5e8Smrg ;; 50076888252Smrg cris | cris-* | etrax*) 50176888252Smrg basic_machine=cris-axis 50276888252Smrg ;; 5031ae1b5e8Smrg crx) 5041ae1b5e8Smrg basic_machine=crx-unknown 5051ae1b5e8Smrg os=-elf 5061ae1b5e8Smrg ;; 50776888252Smrg da30 | da30-*) 50876888252Smrg basic_machine=m68k-da30 50976888252Smrg ;; 51076888252Smrg decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn) 51176888252Smrg basic_machine=mips-dec 51276888252Smrg ;; 51376888252Smrg decsystem10* | dec10*) 51476888252Smrg basic_machine=pdp10-dec 51576888252Smrg os=-tops10 51676888252Smrg ;; 51776888252Smrg decsystem20* | dec20*) 51876888252Smrg basic_machine=pdp10-dec 51976888252Smrg os=-tops20 52076888252Smrg ;; 52176888252Smrg delta | 3300 | motorola-3300 | motorola-delta \ 52276888252Smrg | 3300-motorola | delta-motorola) 52376888252Smrg basic_machine=m68k-motorola 52476888252Smrg ;; 52576888252Smrg delta88) 52676888252Smrg basic_machine=m88k-motorola 52776888252Smrg os=-sysv3 52876888252Smrg ;; 5291ae1b5e8Smrg djgpp) 5301ae1b5e8Smrg basic_machine=i586-pc 5311ae1b5e8Smrg os=-msdosdjgpp 5321ae1b5e8Smrg ;; 53376888252Smrg dpx20 | dpx20-*) 53476888252Smrg basic_machine=rs6000-bull 53576888252Smrg os=-bosx 53676888252Smrg ;; 53776888252Smrg dpx2* | dpx2*-bull) 53876888252Smrg basic_machine=m68k-bull 53976888252Smrg os=-sysv3 54076888252Smrg ;; 54176888252Smrg ebmon29k) 54276888252Smrg basic_machine=a29k-amd 54376888252Smrg os=-ebmon 54476888252Smrg ;; 54576888252Smrg elxsi) 54676888252Smrg basic_machine=elxsi-elxsi 54776888252Smrg os=-bsd 54876888252Smrg ;; 54976888252Smrg encore | umax | mmax) 55076888252Smrg basic_machine=ns32k-encore 55176888252Smrg ;; 55276888252Smrg es1800 | OSE68k | ose68k | ose | OSE) 55376888252Smrg basic_machine=m68k-ericsson 55476888252Smrg os=-ose 55576888252Smrg ;; 55676888252Smrg fx2800) 55776888252Smrg basic_machine=i860-alliant 55876888252Smrg ;; 55976888252Smrg genix) 56076888252Smrg basic_machine=ns32k-ns 56176888252Smrg ;; 56276888252Smrg gmicro) 56376888252Smrg basic_machine=tron-gmicro 56476888252Smrg os=-sysv 56576888252Smrg ;; 56676888252Smrg go32) 56776888252Smrg basic_machine=i386-pc 56876888252Smrg os=-go32 56976888252Smrg ;; 57076888252Smrg h3050r* | hiux*) 57176888252Smrg basic_machine=hppa1.1-hitachi 57276888252Smrg os=-hiuxwe2 57376888252Smrg ;; 57476888252Smrg h8300hms) 57576888252Smrg basic_machine=h8300-hitachi 57676888252Smrg os=-hms 57776888252Smrg ;; 57876888252Smrg h8300xray) 57976888252Smrg basic_machine=h8300-hitachi 58076888252Smrg os=-xray 58176888252Smrg ;; 58276888252Smrg h8500hms) 58376888252Smrg basic_machine=h8500-hitachi 58476888252Smrg os=-hms 58576888252Smrg ;; 58676888252Smrg harris) 58776888252Smrg basic_machine=m88k-harris 58876888252Smrg os=-sysv3 58976888252Smrg ;; 59076888252Smrg hp300-*) 59176888252Smrg basic_machine=m68k-hp 59276888252Smrg ;; 59376888252Smrg hp300bsd) 59476888252Smrg basic_machine=m68k-hp 59576888252Smrg os=-bsd 59676888252Smrg ;; 59776888252Smrg hp300hpux) 59876888252Smrg basic_machine=m68k-hp 59976888252Smrg os=-hpux 60076888252Smrg ;; 60176888252Smrg hp3k9[0-9][0-9] | hp9[0-9][0-9]) 60276888252Smrg basic_machine=hppa1.0-hp 60376888252Smrg ;; 60476888252Smrg hp9k2[0-9][0-9] | hp9k31[0-9]) 60576888252Smrg basic_machine=m68000-hp 60676888252Smrg ;; 60776888252Smrg hp9k3[2-9][0-9]) 60876888252Smrg basic_machine=m68k-hp 60976888252Smrg ;; 61076888252Smrg hp9k6[0-9][0-9] | hp6[0-9][0-9]) 61176888252Smrg basic_machine=hppa1.0-hp 61276888252Smrg ;; 61376888252Smrg hp9k7[0-79][0-9] | hp7[0-79][0-9]) 61476888252Smrg basic_machine=hppa1.1-hp 61576888252Smrg ;; 61676888252Smrg hp9k78[0-9] | hp78[0-9]) 61776888252Smrg # FIXME: really hppa2.0-hp 61876888252Smrg basic_machine=hppa1.1-hp 61976888252Smrg ;; 62076888252Smrg hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893) 62176888252Smrg # FIXME: really hppa2.0-hp 62276888252Smrg basic_machine=hppa1.1-hp 62376888252Smrg ;; 62476888252Smrg hp9k8[0-9][13679] | hp8[0-9][13679]) 62576888252Smrg basic_machine=hppa1.1-hp 62676888252Smrg ;; 62776888252Smrg hp9k8[0-9][0-9] | hp8[0-9][0-9]) 62876888252Smrg basic_machine=hppa1.0-hp 62976888252Smrg ;; 63076888252Smrg hppa-next) 63176888252Smrg os=-nextstep3 63276888252Smrg ;; 63376888252Smrg hppaosf) 63476888252Smrg basic_machine=hppa1.1-hp 63576888252Smrg os=-osf 63676888252Smrg ;; 63776888252Smrg hppro) 63876888252Smrg basic_machine=hppa1.1-hp 63976888252Smrg os=-proelf 64076888252Smrg ;; 64176888252Smrg i370-ibm* | ibm*) 64276888252Smrg basic_machine=i370-ibm 64376888252Smrg ;; 64476888252Smrg# I'm not sure what "Sysv32" means. Should this be sysv3.2? 64576888252Smrg i*86v32) 64676888252Smrg basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` 64776888252Smrg os=-sysv32 64876888252Smrg ;; 64976888252Smrg i*86v4*) 65076888252Smrg basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` 65176888252Smrg os=-sysv4 65276888252Smrg ;; 65376888252Smrg i*86v) 65476888252Smrg basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` 65576888252Smrg os=-sysv 65676888252Smrg ;; 65776888252Smrg i*86sol2) 65876888252Smrg basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` 65976888252Smrg os=-solaris2 66076888252Smrg ;; 66176888252Smrg i386mach) 66276888252Smrg basic_machine=i386-mach 66376888252Smrg os=-mach 66476888252Smrg ;; 66576888252Smrg i386-vsta | vsta) 66676888252Smrg basic_machine=i386-unknown 66776888252Smrg os=-vsta 66876888252Smrg ;; 66976888252Smrg iris | iris4d) 67076888252Smrg basic_machine=mips-sgi 67176888252Smrg case $os in 67276888252Smrg -irix*) 67376888252Smrg ;; 67476888252Smrg *) 67576888252Smrg os=-irix4 67676888252Smrg ;; 67776888252Smrg esac 67876888252Smrg ;; 67976888252Smrg isi68 | isi) 68076888252Smrg basic_machine=m68k-isi 68176888252Smrg os=-sysv 68276888252Smrg ;; 6831ae1b5e8Smrg m68knommu) 6841ae1b5e8Smrg basic_machine=m68k-unknown 6851ae1b5e8Smrg os=-linux 6861ae1b5e8Smrg ;; 6871ae1b5e8Smrg m68knommu-*) 6881ae1b5e8Smrg basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'` 6891ae1b5e8Smrg os=-linux 6901ae1b5e8Smrg ;; 69176888252Smrg m88k-omron*) 69276888252Smrg basic_machine=m88k-omron 69376888252Smrg ;; 69476888252Smrg magnum | m3230) 69576888252Smrg basic_machine=mips-mips 69676888252Smrg os=-sysv 69776888252Smrg ;; 69876888252Smrg merlin) 69976888252Smrg basic_machine=ns32k-utek 70076888252Smrg os=-sysv 70176888252Smrg ;; 70276888252Smrg mingw32) 70376888252Smrg basic_machine=i386-pc 70476888252Smrg os=-mingw32 70576888252Smrg ;; 7061ae1b5e8Smrg mingw32ce) 7071ae1b5e8Smrg basic_machine=arm-unknown 7081ae1b5e8Smrg os=-mingw32ce 7091ae1b5e8Smrg ;; 71076888252Smrg miniframe) 71176888252Smrg basic_machine=m68000-convergent 71276888252Smrg ;; 71376888252Smrg *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*) 71476888252Smrg basic_machine=m68k-atari 71576888252Smrg os=-mint 71676888252Smrg ;; 71776888252Smrg mips3*-*) 71876888252Smrg basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` 71976888252Smrg ;; 72076888252Smrg mips3*) 72176888252Smrg basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown 72276888252Smrg ;; 72376888252Smrg monitor) 72476888252Smrg basic_machine=m68k-rom68k 72576888252Smrg os=-coff 72676888252Smrg ;; 72776888252Smrg morphos) 72876888252Smrg basic_machine=powerpc-unknown 72976888252Smrg os=-morphos 73076888252Smrg ;; 73176888252Smrg msdos) 73276888252Smrg basic_machine=i386-pc 73376888252Smrg os=-msdos 73476888252Smrg ;; 7351ae1b5e8Smrg ms1-*) 7361ae1b5e8Smrg basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'` 7371ae1b5e8Smrg ;; 73876888252Smrg mvs) 73976888252Smrg basic_machine=i370-ibm 74076888252Smrg os=-mvs 74176888252Smrg ;; 74276888252Smrg ncr3000) 74376888252Smrg basic_machine=i486-ncr 74476888252Smrg os=-sysv4 74576888252Smrg ;; 74676888252Smrg netbsd386) 74776888252Smrg basic_machine=i386-unknown 74876888252Smrg os=-netbsd 74976888252Smrg ;; 75076888252Smrg netwinder) 75176888252Smrg basic_machine=armv4l-rebel 75276888252Smrg os=-linux 75376888252Smrg ;; 75476888252Smrg news | news700 | news800 | news900) 75576888252Smrg basic_machine=m68k-sony 75676888252Smrg os=-newsos 75776888252Smrg ;; 75876888252Smrg news1000) 75976888252Smrg basic_machine=m68030-sony 76076888252Smrg os=-newsos 76176888252Smrg ;; 76276888252Smrg news-3600 | risc-news) 76376888252Smrg basic_machine=mips-sony 76476888252Smrg os=-newsos 76576888252Smrg ;; 76676888252Smrg necv70) 76776888252Smrg basic_machine=v70-nec 76876888252Smrg os=-sysv 76976888252Smrg ;; 77076888252Smrg next | m*-next ) 77176888252Smrg basic_machine=m68k-next 77276888252Smrg case $os in 77376888252Smrg -nextstep* ) 77476888252Smrg ;; 77576888252Smrg -ns2*) 77676888252Smrg os=-nextstep2 77776888252Smrg ;; 77876888252Smrg *) 77976888252Smrg os=-nextstep3 78076888252Smrg ;; 78176888252Smrg esac 78276888252Smrg ;; 78376888252Smrg nh3000) 78476888252Smrg basic_machine=m68k-harris 78576888252Smrg os=-cxux 78676888252Smrg ;; 78776888252Smrg nh[45]000) 78876888252Smrg basic_machine=m88k-harris 78976888252Smrg os=-cxux 79076888252Smrg ;; 79176888252Smrg nindy960) 79276888252Smrg basic_machine=i960-intel 79376888252Smrg os=-nindy 79476888252Smrg ;; 79576888252Smrg mon960) 79676888252Smrg basic_machine=i960-intel 79776888252Smrg os=-mon960 79876888252Smrg ;; 79976888252Smrg nonstopux) 80076888252Smrg basic_machine=mips-compaq 80176888252Smrg os=-nonstopux 80276888252Smrg ;; 80376888252Smrg np1) 80476888252Smrg basic_machine=np1-gould 80576888252Smrg ;; 80676888252Smrg nsr-tandem) 80776888252Smrg basic_machine=nsr-tandem 80876888252Smrg ;; 80976888252Smrg op50n-* | op60c-*) 81076888252Smrg basic_machine=hppa1.1-oki 81176888252Smrg os=-proelf 81276888252Smrg ;; 8131ae1b5e8Smrg openrisc | openrisc-*) 81476888252Smrg basic_machine=or32-unknown 8151ae1b5e8Smrg ;; 8161ae1b5e8Smrg os400) 8171ae1b5e8Smrg basic_machine=powerpc-ibm 8181ae1b5e8Smrg os=-os400 81976888252Smrg ;; 82076888252Smrg OSE68000 | ose68000) 82176888252Smrg basic_machine=m68000-ericsson 82276888252Smrg os=-ose 82376888252Smrg ;; 82476888252Smrg os68k) 82576888252Smrg basic_machine=m68k-none 82676888252Smrg os=-os68k 82776888252Smrg ;; 82876888252Smrg pa-hitachi) 82976888252Smrg basic_machine=hppa1.1-hitachi 83076888252Smrg os=-hiuxwe2 83176888252Smrg ;; 83276888252Smrg paragon) 83376888252Smrg basic_machine=i860-intel 83476888252Smrg os=-osf 83576888252Smrg ;; 8361ae1b5e8Smrg parisc) 8371ae1b5e8Smrg basic_machine=hppa-unknown 8381ae1b5e8Smrg os=-linux 8391ae1b5e8Smrg ;; 8401ae1b5e8Smrg parisc-*) 8411ae1b5e8Smrg basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'` 8421ae1b5e8Smrg os=-linux 8431ae1b5e8Smrg ;; 84476888252Smrg pbd) 84576888252Smrg basic_machine=sparc-tti 84676888252Smrg ;; 84776888252Smrg pbb) 84876888252Smrg basic_machine=m68k-tti 84976888252Smrg ;; 85076888252Smrg pc532 | pc532-*) 85176888252Smrg basic_machine=ns32k-pc532 85276888252Smrg ;; 8531ae1b5e8Smrg pc98) 8541ae1b5e8Smrg basic_machine=i386-pc 8551ae1b5e8Smrg ;; 8561ae1b5e8Smrg pc98-*) 8571ae1b5e8Smrg basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'` 8581ae1b5e8Smrg ;; 85976888252Smrg pentium | p5 | k5 | k6 | nexgen | viac3) 86076888252Smrg basic_machine=i586-pc 86176888252Smrg ;; 86276888252Smrg pentiumpro | p6 | 6x86 | athlon | athlon_*) 86376888252Smrg basic_machine=i686-pc 86476888252Smrg ;; 86576888252Smrg pentiumii | pentium2 | pentiumiii | pentium3) 86676888252Smrg basic_machine=i686-pc 86776888252Smrg ;; 86876888252Smrg pentium4) 86976888252Smrg basic_machine=i786-pc 87076888252Smrg ;; 87176888252Smrg pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) 87276888252Smrg basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` 87376888252Smrg ;; 87476888252Smrg pentiumpro-* | p6-* | 6x86-* | athlon-*) 87576888252Smrg basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` 87676888252Smrg ;; 87776888252Smrg pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*) 87876888252Smrg basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` 87976888252Smrg ;; 88076888252Smrg pentium4-*) 88176888252Smrg basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'` 88276888252Smrg ;; 88376888252Smrg pn) 88476888252Smrg basic_machine=pn-gould 88576888252Smrg ;; 88676888252Smrg power) basic_machine=power-ibm 88776888252Smrg ;; 88876888252Smrg ppc) basic_machine=powerpc-unknown 88976888252Smrg ;; 89076888252Smrg ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` 89176888252Smrg ;; 89276888252Smrg ppcle | powerpclittle | ppc-le | powerpc-little) 89376888252Smrg basic_machine=powerpcle-unknown 89476888252Smrg ;; 89576888252Smrg ppcle-* | powerpclittle-*) 89676888252Smrg basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` 89776888252Smrg ;; 89876888252Smrg ppc64) basic_machine=powerpc64-unknown 89976888252Smrg ;; 90076888252Smrg ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'` 90176888252Smrg ;; 90276888252Smrg ppc64le | powerpc64little | ppc64-le | powerpc64-little) 90376888252Smrg basic_machine=powerpc64le-unknown 90476888252Smrg ;; 90576888252Smrg ppc64le-* | powerpc64little-*) 90676888252Smrg basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'` 90776888252Smrg ;; 90876888252Smrg ps2) 90976888252Smrg basic_machine=i386-ibm 91076888252Smrg ;; 91176888252Smrg pw32) 91276888252Smrg basic_machine=i586-unknown 91376888252Smrg os=-pw32 91476888252Smrg ;; 9151ae1b5e8Smrg rdos) 9161ae1b5e8Smrg basic_machine=i386-pc 9171ae1b5e8Smrg os=-rdos 9181ae1b5e8Smrg ;; 91976888252Smrg rom68k) 92076888252Smrg basic_machine=m68k-rom68k 92176888252Smrg os=-coff 92276888252Smrg ;; 92376888252Smrg rm[46]00) 92476888252Smrg basic_machine=mips-siemens 92576888252Smrg ;; 92676888252Smrg rtpc | rtpc-*) 92776888252Smrg basic_machine=romp-ibm 92876888252Smrg ;; 9291ae1b5e8Smrg s390 | s390-*) 9301ae1b5e8Smrg basic_machine=s390-ibm 9311ae1b5e8Smrg ;; 9321ae1b5e8Smrg s390x | s390x-*) 9331ae1b5e8Smrg basic_machine=s390x-ibm 9341ae1b5e8Smrg ;; 93576888252Smrg sa29200) 93676888252Smrg basic_machine=a29k-amd 93776888252Smrg os=-udi 93876888252Smrg ;; 93976888252Smrg sb1) 94076888252Smrg basic_machine=mipsisa64sb1-unknown 94176888252Smrg ;; 94276888252Smrg sb1el) 94376888252Smrg basic_machine=mipsisa64sb1el-unknown 94476888252Smrg ;; 9451ae1b5e8Smrg sde) 9461ae1b5e8Smrg basic_machine=mipsisa32-sde 9471ae1b5e8Smrg os=-elf 9481ae1b5e8Smrg ;; 94976888252Smrg sei) 95076888252Smrg basic_machine=mips-sei 95176888252Smrg os=-seiux 95276888252Smrg ;; 95376888252Smrg sequent) 95476888252Smrg basic_machine=i386-sequent 95576888252Smrg ;; 95676888252Smrg sh) 95776888252Smrg basic_machine=sh-hitachi 95876888252Smrg os=-hms 95976888252Smrg ;; 9601ae1b5e8Smrg sh5el) 9611ae1b5e8Smrg basic_machine=sh5le-unknown 9621ae1b5e8Smrg ;; 96376888252Smrg sh64) 96476888252Smrg basic_machine=sh64-unknown 96576888252Smrg ;; 96676888252Smrg sparclite-wrs | simso-wrs) 96776888252Smrg basic_machine=sparclite-wrs 96876888252Smrg os=-vxworks 96976888252Smrg ;; 97076888252Smrg sps7) 97176888252Smrg basic_machine=m68k-bull 97276888252Smrg os=-sysv2 97376888252Smrg ;; 97476888252Smrg spur) 97576888252Smrg basic_machine=spur-unknown 97676888252Smrg ;; 97776888252Smrg st2000) 97876888252Smrg basic_machine=m68k-tandem 97976888252Smrg ;; 98076888252Smrg stratus) 98176888252Smrg basic_machine=i860-stratus 98276888252Smrg os=-sysv4 98376888252Smrg ;; 98476888252Smrg sun2) 98576888252Smrg basic_machine=m68000-sun 98676888252Smrg ;; 98776888252Smrg sun2os3) 98876888252Smrg basic_machine=m68000-sun 98976888252Smrg os=-sunos3 99076888252Smrg ;; 99176888252Smrg sun2os4) 99276888252Smrg basic_machine=m68000-sun 99376888252Smrg os=-sunos4 99476888252Smrg ;; 99576888252Smrg sun3os3) 99676888252Smrg basic_machine=m68k-sun 99776888252Smrg os=-sunos3 99876888252Smrg ;; 99976888252Smrg sun3os4) 100076888252Smrg basic_machine=m68k-sun 100176888252Smrg os=-sunos4 100276888252Smrg ;; 100376888252Smrg sun4os3) 100476888252Smrg basic_machine=sparc-sun 100576888252Smrg os=-sunos3 100676888252Smrg ;; 100776888252Smrg sun4os4) 100876888252Smrg basic_machine=sparc-sun 100976888252Smrg os=-sunos4 101076888252Smrg ;; 101176888252Smrg sun4sol2) 101276888252Smrg basic_machine=sparc-sun 101376888252Smrg os=-solaris2 101476888252Smrg ;; 101576888252Smrg sun3 | sun3-*) 101676888252Smrg basic_machine=m68k-sun 101776888252Smrg ;; 101876888252Smrg sun4) 101976888252Smrg basic_machine=sparc-sun 102076888252Smrg ;; 102176888252Smrg sun386 | sun386i | roadrunner) 102276888252Smrg basic_machine=i386-sun 102376888252Smrg ;; 102476888252Smrg sv1) 102576888252Smrg basic_machine=sv1-cray 102676888252Smrg os=-unicos 102776888252Smrg ;; 102876888252Smrg symmetry) 102976888252Smrg basic_machine=i386-sequent 103076888252Smrg os=-dynix 103176888252Smrg ;; 103276888252Smrg t3e) 103376888252Smrg basic_machine=alphaev5-cray 103476888252Smrg os=-unicos 103576888252Smrg ;; 103676888252Smrg t90) 103776888252Smrg basic_machine=t90-cray 103876888252Smrg os=-unicos 103976888252Smrg ;; 104076888252Smrg tic54x | c54x*) 104176888252Smrg basic_machine=tic54x-unknown 104276888252Smrg os=-coff 104376888252Smrg ;; 104476888252Smrg tic55x | c55x*) 104576888252Smrg basic_machine=tic55x-unknown 104676888252Smrg os=-coff 104776888252Smrg ;; 104876888252Smrg tic6x | c6x*) 104976888252Smrg basic_machine=tic6x-unknown 105076888252Smrg os=-coff 105176888252Smrg ;; 10521ae1b5e8Smrg tile*) 10531ae1b5e8Smrg basic_machine=tile-unknown 10541ae1b5e8Smrg os=-linux-gnu 10551ae1b5e8Smrg ;; 105676888252Smrg tx39) 105776888252Smrg basic_machine=mipstx39-unknown 105876888252Smrg ;; 105976888252Smrg tx39el) 106076888252Smrg basic_machine=mipstx39el-unknown 106176888252Smrg ;; 106276888252Smrg toad1) 106376888252Smrg basic_machine=pdp10-xkl 106476888252Smrg os=-tops20 106576888252Smrg ;; 106676888252Smrg tower | tower-32) 106776888252Smrg basic_machine=m68k-ncr 106876888252Smrg ;; 10691ae1b5e8Smrg tpf) 10701ae1b5e8Smrg basic_machine=s390x-ibm 10711ae1b5e8Smrg os=-tpf 10721ae1b5e8Smrg ;; 107376888252Smrg udi29k) 107476888252Smrg basic_machine=a29k-amd 107576888252Smrg os=-udi 107676888252Smrg ;; 107776888252Smrg ultra3) 107876888252Smrg basic_machine=a29k-nyu 107976888252Smrg os=-sym1 108076888252Smrg ;; 108176888252Smrg v810 | necv810) 108276888252Smrg basic_machine=v810-nec 108376888252Smrg os=-none 108476888252Smrg ;; 108576888252Smrg vaxv) 108676888252Smrg basic_machine=vax-dec 108776888252Smrg os=-sysv 108876888252Smrg ;; 108976888252Smrg vms) 109076888252Smrg basic_machine=vax-dec 109176888252Smrg os=-vms 109276888252Smrg ;; 109376888252Smrg vpp*|vx|vx-*) 109476888252Smrg basic_machine=f301-fujitsu 109576888252Smrg ;; 109676888252Smrg vxworks960) 109776888252Smrg basic_machine=i960-wrs 109876888252Smrg os=-vxworks 109976888252Smrg ;; 110076888252Smrg vxworks68) 110176888252Smrg basic_machine=m68k-wrs 110276888252Smrg os=-vxworks 110376888252Smrg ;; 110476888252Smrg vxworks29k) 110576888252Smrg basic_machine=a29k-wrs 110676888252Smrg os=-vxworks 110776888252Smrg ;; 110876888252Smrg w65*) 110976888252Smrg basic_machine=w65-wdc 111076888252Smrg os=-none 111176888252Smrg ;; 111276888252Smrg w89k-*) 111376888252Smrg basic_machine=hppa1.1-winbond 111476888252Smrg os=-proelf 111576888252Smrg ;; 11161ae1b5e8Smrg xbox) 11171ae1b5e8Smrg basic_machine=i686-pc 11181ae1b5e8Smrg os=-mingw32 11191ae1b5e8Smrg ;; 112076888252Smrg xps | xps100) 112176888252Smrg basic_machine=xps100-honeywell 112276888252Smrg ;; 112376888252Smrg ymp) 112476888252Smrg basic_machine=ymp-cray 112576888252Smrg os=-unicos 112676888252Smrg ;; 112776888252Smrg z8k-*-coff) 112876888252Smrg basic_machine=z8k-unknown 112976888252Smrg os=-sim 113076888252Smrg ;; 113176888252Smrg none) 113276888252Smrg basic_machine=none-none 113376888252Smrg os=-none 113476888252Smrg ;; 113576888252Smrg 113676888252Smrg# Here we handle the default manufacturer of certain CPU types. It is in 113776888252Smrg# some cases the only manufacturer, in others, it is the most popular. 113876888252Smrg w89k) 113976888252Smrg basic_machine=hppa1.1-winbond 114076888252Smrg ;; 114176888252Smrg op50n) 114276888252Smrg basic_machine=hppa1.1-oki 114376888252Smrg ;; 114476888252Smrg op60c) 114576888252Smrg basic_machine=hppa1.1-oki 114676888252Smrg ;; 114776888252Smrg romp) 114876888252Smrg basic_machine=romp-ibm 114976888252Smrg ;; 11501ae1b5e8Smrg mmix) 11511ae1b5e8Smrg basic_machine=mmix-knuth 11521ae1b5e8Smrg ;; 115376888252Smrg rs6000) 115476888252Smrg basic_machine=rs6000-ibm 115576888252Smrg ;; 115676888252Smrg vax) 115776888252Smrg basic_machine=vax-dec 115876888252Smrg ;; 115976888252Smrg pdp10) 116076888252Smrg # there are many clones, so DEC is not a safe bet 116176888252Smrg basic_machine=pdp10-unknown 116276888252Smrg ;; 116376888252Smrg pdp11) 116476888252Smrg basic_machine=pdp11-dec 116576888252Smrg ;; 116676888252Smrg we32k) 116776888252Smrg basic_machine=we32k-att 116876888252Smrg ;; 116986dafe34Smrg sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele) 117076888252Smrg basic_machine=sh-unknown 117176888252Smrg ;; 11721ae1b5e8Smrg sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v) 117376888252Smrg basic_machine=sparc-sun 117476888252Smrg ;; 117576888252Smrg cydra) 117676888252Smrg basic_machine=cydra-cydrome 117776888252Smrg ;; 117876888252Smrg orion) 117976888252Smrg basic_machine=orion-highlevel 118076888252Smrg ;; 118176888252Smrg orion105) 118276888252Smrg basic_machine=clipper-highlevel 118376888252Smrg ;; 118476888252Smrg mac | mpw | mac-mpw) 118576888252Smrg basic_machine=m68k-apple 118676888252Smrg ;; 118776888252Smrg pmac | pmac-mpw) 118876888252Smrg basic_machine=powerpc-apple 118976888252Smrg ;; 119076888252Smrg *-unknown) 119176888252Smrg # Make sure to match an already-canonicalized machine name. 119276888252Smrg ;; 119376888252Smrg *) 119476888252Smrg echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 119576888252Smrg exit 1 119676888252Smrg ;; 119776888252Smrgesac 119876888252Smrg 119976888252Smrg# Here we canonicalize certain aliases for manufacturers. 120076888252Smrgcase $basic_machine in 120176888252Smrg *-digital*) 120276888252Smrg basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'` 120376888252Smrg ;; 120476888252Smrg *-commodore*) 120576888252Smrg basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'` 120676888252Smrg ;; 120776888252Smrg *) 120876888252Smrg ;; 120976888252Smrgesac 121076888252Smrg 121176888252Smrg# Decode manufacturer-specific aliases for certain operating systems. 121276888252Smrg 121376888252Smrgif [ x"$os" != x"" ] 121476888252Smrgthen 121576888252Smrgcase $os in 121676888252Smrg # First match some system type aliases 121776888252Smrg # that might get confused with valid system types. 121876888252Smrg # -solaris* is a basic system type, with this one exception. 121976888252Smrg -solaris1 | -solaris1.*) 122076888252Smrg os=`echo $os | sed -e 's|solaris1|sunos4|'` 122176888252Smrg ;; 122276888252Smrg -solaris) 122376888252Smrg os=-solaris2 122476888252Smrg ;; 122576888252Smrg -svr4*) 122676888252Smrg os=-sysv4 122776888252Smrg ;; 122876888252Smrg -unixware*) 122976888252Smrg os=-sysv4.2uw 123076888252Smrg ;; 123176888252Smrg -gnu/linux*) 123276888252Smrg os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'` 123376888252Smrg ;; 123476888252Smrg # First accept the basic system types. 123576888252Smrg # The portable systems comes first. 123676888252Smrg # Each alternative MUST END IN A *, to match a version number. 123776888252Smrg # -sysv* is not here because it comes later, after sysvr4. 123876888252Smrg -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ 123976888252Smrg | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\ 124076888252Smrg | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \ 124176888252Smrg | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ 124286dafe34Smrg | -aos* \ 124376888252Smrg | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ 124476888252Smrg | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ 12451ae1b5e8Smrg | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \ 12461ae1b5e8Smrg | -openbsd* | -solidbsd* \ 12471ae1b5e8Smrg | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ 12481ae1b5e8Smrg | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ 124976888252Smrg | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ 125076888252Smrg | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ 1251d8556812Smrg | -chorusos* | -chorusrdb* \ 125276888252Smrg | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ 12531ae1b5e8Smrg | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \ 12541ae1b5e8Smrg | -uxpv* | -beos* | -mpeix* | -udk* \ 125576888252Smrg | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ 125676888252Smrg | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ 125776888252Smrg | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ 125876888252Smrg | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ 125976888252Smrg | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ 12601ae1b5e8Smrg | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ 12611ae1b5e8Smrg | -skyos* | -haiku* | -rdos* | -toppers* | -drops*) 126276888252Smrg # Remember, each alternative MUST END IN *, to match a version number. 126376888252Smrg ;; 126476888252Smrg -qnx*) 126576888252Smrg case $basic_machine in 126676888252Smrg x86-* | i*86-*) 126776888252Smrg ;; 126876888252Smrg *) 126976888252Smrg os=-nto$os 127076888252Smrg ;; 127176888252Smrg esac 127276888252Smrg ;; 127376888252Smrg -nto-qnx*) 127476888252Smrg ;; 127576888252Smrg -nto*) 127676888252Smrg os=`echo $os | sed -e 's|nto|nto-qnx|'` 127776888252Smrg ;; 127876888252Smrg -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ 12791ae1b5e8Smrg | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \ 128076888252Smrg | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) 128176888252Smrg ;; 128276888252Smrg -mac*) 128376888252Smrg os=`echo $os | sed -e 's|mac|macos|'` 128476888252Smrg ;; 12851ae1b5e8Smrg -linux-dietlibc) 12861ae1b5e8Smrg os=-linux-dietlibc 12871ae1b5e8Smrg ;; 128876888252Smrg -linux*) 128976888252Smrg os=`echo $os | sed -e 's|linux|linux-gnu|'` 129076888252Smrg ;; 129176888252Smrg -sunos5*) 129276888252Smrg os=`echo $os | sed -e 's|sunos5|solaris2|'` 129376888252Smrg ;; 129476888252Smrg -sunos6*) 129576888252Smrg os=`echo $os | sed -e 's|sunos6|solaris3|'` 129676888252Smrg ;; 129776888252Smrg -opened*) 129876888252Smrg os=-openedition 129976888252Smrg ;; 13001ae1b5e8Smrg -os400*) 13011ae1b5e8Smrg os=-os400 13021ae1b5e8Smrg ;; 130376888252Smrg -wince*) 130476888252Smrg os=-wince 130576888252Smrg ;; 130676888252Smrg -osfrose*) 130776888252Smrg os=-osfrose 130876888252Smrg ;; 130976888252Smrg -osf*) 131076888252Smrg os=-osf 131176888252Smrg ;; 131276888252Smrg -utek*) 131376888252Smrg os=-bsd 131476888252Smrg ;; 131576888252Smrg -dynix*) 131676888252Smrg os=-bsd 131776888252Smrg ;; 131876888252Smrg -acis*) 131976888252Smrg os=-aos 132076888252Smrg ;; 132176888252Smrg -atheos*) 132276888252Smrg os=-atheos 132376888252Smrg ;; 13241ae1b5e8Smrg -syllable*) 13251ae1b5e8Smrg os=-syllable 13261ae1b5e8Smrg ;; 132776888252Smrg -386bsd) 132876888252Smrg os=-bsd 132976888252Smrg ;; 133076888252Smrg -ctix* | -uts*) 133176888252Smrg os=-sysv 133276888252Smrg ;; 133376888252Smrg -nova*) 133476888252Smrg os=-rtmk-nova 133576888252Smrg ;; 133676888252Smrg -ns2 ) 133776888252Smrg os=-nextstep2 133876888252Smrg ;; 133976888252Smrg -nsk*) 134076888252Smrg os=-nsk 134176888252Smrg ;; 134276888252Smrg # Preserve the version number of sinix5. 134376888252Smrg -sinix5.*) 134476888252Smrg os=`echo $os | sed -e 's|sinix|sysv|'` 134576888252Smrg ;; 134676888252Smrg -sinix*) 134776888252Smrg os=-sysv4 134876888252Smrg ;; 13491ae1b5e8Smrg -tpf*) 13501ae1b5e8Smrg os=-tpf 13511ae1b5e8Smrg ;; 135276888252Smrg -triton*) 135376888252Smrg os=-sysv3 135476888252Smrg ;; 135576888252Smrg -oss*) 135676888252Smrg os=-sysv3 135776888252Smrg ;; 135876888252Smrg -svr4) 135976888252Smrg os=-sysv4 136076888252Smrg ;; 136176888252Smrg -svr3) 136276888252Smrg os=-sysv3 136376888252Smrg ;; 136476888252Smrg -sysvr4) 136576888252Smrg os=-sysv4 136676888252Smrg ;; 136776888252Smrg # This must come after -sysvr4. 136876888252Smrg -sysv*) 136976888252Smrg ;; 137076888252Smrg -ose*) 137176888252Smrg os=-ose 137276888252Smrg ;; 137376888252Smrg -es1800*) 137476888252Smrg os=-ose 137576888252Smrg ;; 137676888252Smrg -xenix) 137776888252Smrg os=-xenix 137876888252Smrg ;; 137976888252Smrg -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) 138076888252Smrg os=-mint 138176888252Smrg ;; 138276888252Smrg -aros*) 138376888252Smrg os=-aros 138476888252Smrg ;; 138576888252Smrg -kaos*) 138676888252Smrg os=-kaos 138776888252Smrg ;; 13881ae1b5e8Smrg -zvmoe) 13891ae1b5e8Smrg os=-zvmoe 13901ae1b5e8Smrg ;; 139176888252Smrg -none) 139276888252Smrg ;; 139376888252Smrg *) 139476888252Smrg # Get rid of the `-' at the beginning of $os. 139576888252Smrg os=`echo $os | sed 's/[^-]*-//'` 139676888252Smrg echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2 139776888252Smrg exit 1 139876888252Smrg ;; 139976888252Smrgesac 140076888252Smrgelse 140176888252Smrg 140276888252Smrg# Here we handle the default operating systems that come with various machines. 140376888252Smrg# The value should be what the vendor currently ships out the door with their 140476888252Smrg# machine or put another way, the most popular os provided with the machine. 140576888252Smrg 140676888252Smrg# Note that if you're going to try to match "-MANUFACTURER" here (say, 140776888252Smrg# "-sun"), then you have to tell the case statement up towards the top 140876888252Smrg# that MANUFACTURER isn't an operating system. Otherwise, code above 140976888252Smrg# will signal an error saying that MANUFACTURER isn't an operating 141076888252Smrg# system, and we'll never get to this point. 141176888252Smrg 141276888252Smrgcase $basic_machine in 14131ae1b5e8Smrg score-*) 14141ae1b5e8Smrg os=-elf 14151ae1b5e8Smrg ;; 14161ae1b5e8Smrg spu-*) 14171ae1b5e8Smrg os=-elf 14181ae1b5e8Smrg ;; 141976888252Smrg *-acorn) 142076888252Smrg os=-riscix1.2 142176888252Smrg ;; 142276888252Smrg arm*-rebel) 142376888252Smrg os=-linux 142476888252Smrg ;; 142576888252Smrg arm*-semi) 142676888252Smrg os=-aout 142776888252Smrg ;; 14281ae1b5e8Smrg c4x-* | tic4x-*) 14291ae1b5e8Smrg os=-coff 143076888252Smrg ;; 143176888252Smrg # This must come before the *-dec entry. 143276888252Smrg pdp10-*) 143376888252Smrg os=-tops20 143476888252Smrg ;; 143576888252Smrg pdp11-*) 143676888252Smrg os=-none 143776888252Smrg ;; 143876888252Smrg *-dec | vax-*) 143976888252Smrg os=-ultrix4.2 144076888252Smrg ;; 144176888252Smrg m68*-apollo) 144276888252Smrg os=-domain 144376888252Smrg ;; 144476888252Smrg i386-sun) 144576888252Smrg os=-sunos4.0.2 144676888252Smrg ;; 144776888252Smrg m68000-sun) 144876888252Smrg os=-sunos3 144976888252Smrg # This also exists in the configure program, but was not the 145076888252Smrg # default. 145176888252Smrg # os=-sunos4 145276888252Smrg ;; 145376888252Smrg m68*-cisco) 145476888252Smrg os=-aout 145576888252Smrg ;; 14561ae1b5e8Smrg mep-*) 14571ae1b5e8Smrg os=-elf 14581ae1b5e8Smrg ;; 145976888252Smrg mips*-cisco) 146076888252Smrg os=-elf 146176888252Smrg ;; 146276888252Smrg mips*-*) 146376888252Smrg os=-elf 146476888252Smrg ;; 146576888252Smrg or32-*) 146676888252Smrg os=-coff 146776888252Smrg ;; 146876888252Smrg *-tti) # must be before sparc entry or we get the wrong os. 146976888252Smrg os=-sysv3 147076888252Smrg ;; 147176888252Smrg sparc-* | *-sun) 147276888252Smrg os=-sunos4.1.1 147376888252Smrg ;; 147476888252Smrg *-be) 147576888252Smrg os=-beos 147676888252Smrg ;; 14771ae1b5e8Smrg *-haiku) 14781ae1b5e8Smrg os=-haiku 14791ae1b5e8Smrg ;; 148076888252Smrg *-ibm) 148176888252Smrg os=-aix 148276888252Smrg ;; 14831ae1b5e8Smrg *-knuth) 14841ae1b5e8Smrg os=-mmixware 14851ae1b5e8Smrg ;; 148676888252Smrg *-wec) 148776888252Smrg os=-proelf 148876888252Smrg ;; 148976888252Smrg *-winbond) 149076888252Smrg os=-proelf 149176888252Smrg ;; 149276888252Smrg *-oki) 149376888252Smrg os=-proelf 149476888252Smrg ;; 149576888252Smrg *-hp) 149676888252Smrg os=-hpux 149776888252Smrg ;; 149876888252Smrg *-hitachi) 149976888252Smrg os=-hiux 150076888252Smrg ;; 150176888252Smrg i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent) 150276888252Smrg os=-sysv 150376888252Smrg ;; 150476888252Smrg *-cbm) 150576888252Smrg os=-amigaos 150676888252Smrg ;; 150776888252Smrg *-dg) 150876888252Smrg os=-dgux 150976888252Smrg ;; 151076888252Smrg *-dolphin) 151176888252Smrg os=-sysv3 151276888252Smrg ;; 151376888252Smrg m68k-ccur) 151476888252Smrg os=-rtu 151576888252Smrg ;; 151676888252Smrg m88k-omron*) 151776888252Smrg os=-luna 151876888252Smrg ;; 151976888252Smrg *-next ) 152076888252Smrg os=-nextstep 152176888252Smrg ;; 152276888252Smrg *-sequent) 152376888252Smrg os=-ptx 152476888252Smrg ;; 152576888252Smrg *-crds) 152676888252Smrg os=-unos 152776888252Smrg ;; 152876888252Smrg *-ns) 152976888252Smrg os=-genix 153076888252Smrg ;; 153176888252Smrg i370-*) 153276888252Smrg os=-mvs 153376888252Smrg ;; 153476888252Smrg *-next) 153576888252Smrg os=-nextstep3 153676888252Smrg ;; 153776888252Smrg *-gould) 153876888252Smrg os=-sysv 153976888252Smrg ;; 154076888252Smrg *-highlevel) 154176888252Smrg os=-bsd 154276888252Smrg ;; 154376888252Smrg *-encore) 154476888252Smrg os=-bsd 154576888252Smrg ;; 154676888252Smrg *-sgi) 154776888252Smrg os=-irix 154876888252Smrg ;; 154976888252Smrg *-siemens) 155076888252Smrg os=-sysv4 155176888252Smrg ;; 155276888252Smrg *-masscomp) 155376888252Smrg os=-rtu 155476888252Smrg ;; 155576888252Smrg f30[01]-fujitsu | f700-fujitsu) 155676888252Smrg os=-uxpv 155776888252Smrg ;; 155876888252Smrg *-rom68k) 155976888252Smrg os=-coff 156076888252Smrg ;; 156176888252Smrg *-*bug) 156276888252Smrg os=-coff 156376888252Smrg ;; 156476888252Smrg *-apple) 156576888252Smrg os=-macos 156676888252Smrg ;; 156776888252Smrg *-atari*) 156876888252Smrg os=-mint 156976888252Smrg ;; 157076888252Smrg *) 157176888252Smrg os=-none 157276888252Smrg ;; 157376888252Smrgesac 157476888252Smrgfi 157576888252Smrg 157676888252Smrg# Here we handle the case where we know the os, and the CPU type, but not the 157776888252Smrg# manufacturer. We pick the logical manufacturer. 157876888252Smrgvendor=unknown 157976888252Smrgcase $basic_machine in 158076888252Smrg *-unknown) 158176888252Smrg case $os in 158276888252Smrg -riscix*) 158376888252Smrg vendor=acorn 158476888252Smrg ;; 158576888252Smrg -sunos*) 158676888252Smrg vendor=sun 158776888252Smrg ;; 158876888252Smrg -aix*) 158976888252Smrg vendor=ibm 159076888252Smrg ;; 159176888252Smrg -beos*) 159276888252Smrg vendor=be 159376888252Smrg ;; 159476888252Smrg -hpux*) 159576888252Smrg vendor=hp 159676888252Smrg ;; 159776888252Smrg -mpeix*) 159876888252Smrg vendor=hp 159976888252Smrg ;; 160076888252Smrg -hiux*) 160176888252Smrg vendor=hitachi 160276888252Smrg ;; 160376888252Smrg -unos*) 160476888252Smrg vendor=crds 160576888252Smrg ;; 160676888252Smrg -dgux*) 160776888252Smrg vendor=dg 160876888252Smrg ;; 160976888252Smrg -luna*) 161076888252Smrg vendor=omron 161176888252Smrg ;; 161276888252Smrg -genix*) 161376888252Smrg vendor=ns 161476888252Smrg ;; 161576888252Smrg -mvs* | -opened*) 161676888252Smrg vendor=ibm 161776888252Smrg ;; 16181ae1b5e8Smrg -os400*) 16191ae1b5e8Smrg vendor=ibm 16201ae1b5e8Smrg ;; 162176888252Smrg -ptx*) 162276888252Smrg vendor=sequent 162376888252Smrg ;; 16241ae1b5e8Smrg -tpf*) 16251ae1b5e8Smrg vendor=ibm 16261ae1b5e8Smrg ;; 162776888252Smrg -vxsim* | -vxworks* | -windiss*) 162876888252Smrg vendor=wrs 162976888252Smrg ;; 163076888252Smrg -aux*) 163176888252Smrg vendor=apple 163276888252Smrg ;; 163376888252Smrg -hms*) 163476888252Smrg vendor=hitachi 163576888252Smrg ;; 163676888252Smrg -mpw* | -macos*) 163776888252Smrg vendor=apple 163876888252Smrg ;; 163976888252Smrg -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) 164076888252Smrg vendor=atari 164176888252Smrg ;; 164276888252Smrg -vos*) 164376888252Smrg vendor=stratus 164476888252Smrg ;; 164576888252Smrg esac 164676888252Smrg basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` 164776888252Smrg ;; 164876888252Smrgesac 164976888252Smrg 165076888252Smrgecho $basic_machine$os 16511ae1b5e8Smrgexit 165276888252Smrg 165376888252Smrg# Local variables: 165476888252Smrg# eval: (add-hook 'write-file-hooks 'time-stamp) 165576888252Smrg# time-stamp-start: "timestamp='" 165676888252Smrg# time-stamp-format: "%:y-%02m-%02d" 165776888252Smrg# time-stamp-end: "'" 165876888252Smrg# End: 1659