config.sub revision 21e67964
1c43cc173Smrg#! /bin/sh 2c43cc173Smrg# Configuration validation subroutine script. 3c43cc173Smrg# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 421e67964Smrg# 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation, 521e67964Smrg# Inc. 6c43cc173Smrg 721e67964Smrgtimestamp='2007-04-29' 8c43cc173Smrg 9c43cc173Smrg# This file is (in principle) common to ALL GNU software. 10c43cc173Smrg# The presence of a machine in this file suggests that SOME GNU software 11c43cc173Smrg# can handle that machine. It does not imply ALL GNU software can. 12c43cc173Smrg# 13c43cc173Smrg# This file is free software; you can redistribute it and/or modify 14c43cc173Smrg# it under the terms of the GNU General Public License as published by 15c43cc173Smrg# the Free Software Foundation; either version 2 of the License, or 16c43cc173Smrg# (at your option) any later version. 17c43cc173Smrg# 18c43cc173Smrg# This program is distributed in the hope that it will be useful, 19c43cc173Smrg# but WITHOUT ANY WARRANTY; without even the implied warranty of 20c43cc173Smrg# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 21c43cc173Smrg# GNU General Public License for more details. 22c43cc173Smrg# 23c43cc173Smrg# You should have received a copy of the GNU General Public License 24c43cc173Smrg# along with this program; if not, write to the Free Software 2521e67964Smrg# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 2621e67964Smrg# 02110-1301, USA. 2721e67964Smrg# 28c43cc173Smrg# As a special exception to the GNU General Public License, if you 29c43cc173Smrg# distribute this file as part of a program that contains a 30c43cc173Smrg# configuration script generated by Autoconf, you may include it under 31c43cc173Smrg# the same distribution terms that you use for the rest of that program. 32c43cc173Smrg 3321e67964Smrg 34c43cc173Smrg# Please send patches to <config-patches@gnu.org>. Submit a context 35c43cc173Smrg# diff and a properly formatted ChangeLog entry. 36c43cc173Smrg# 37c43cc173Smrg# Configuration subroutine to validate and canonicalize a configuration type. 38c43cc173Smrg# Supply the specified configuration type as an argument. 39c43cc173Smrg# If it is invalid, we print an error message on stderr and exit with code 1. 40c43cc173Smrg# Otherwise, we print the canonical config type on stdout and succeed. 41c43cc173Smrg 42c43cc173Smrg# This file is supposed to be the same for all GNU packages 43c43cc173Smrg# and recognize all the CPU types, system types and aliases 44c43cc173Smrg# that are meaningful with *any* GNU software. 45c43cc173Smrg# Each package is responsible for reporting which valid configurations 46c43cc173Smrg# it does not support. The user should be able to distinguish 47c43cc173Smrg# a failure to support a valid configuration from a meaningless 48c43cc173Smrg# configuration. 49c43cc173Smrg 50c43cc173Smrg# The goal of this file is to map all the various variations of a given 51c43cc173Smrg# machine specification into a single specification in the form: 52c43cc173Smrg# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM 53c43cc173Smrg# or in some cases, the newer four-part form: 54c43cc173Smrg# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM 55c43cc173Smrg# It is wrong to echo any other type of specification. 56c43cc173Smrg 57c43cc173Smrgme=`echo "$0" | sed -e 's,.*/,,'` 58c43cc173Smrg 59c43cc173Smrgusage="\ 60c43cc173SmrgUsage: $0 [OPTION] CPU-MFR-OPSYS 61c43cc173Smrg $0 [OPTION] ALIAS 62c43cc173Smrg 63c43cc173SmrgCanonicalize a configuration name. 64c43cc173Smrg 65c43cc173SmrgOperation modes: 66c43cc173Smrg -h, --help print this help, then exit 67c43cc173Smrg -t, --time-stamp print date of last modification, then exit 68c43cc173Smrg -v, --version print version number, then exit 69c43cc173Smrg 70c43cc173SmrgReport bugs and patches to <config-patches@gnu.org>." 71c43cc173Smrg 72c43cc173Smrgversion="\ 73c43cc173SmrgGNU config.sub ($timestamp) 74c43cc173Smrg 7521e67964SmrgCopyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 76c43cc173SmrgFree Software Foundation, Inc. 77c43cc173Smrg 78c43cc173SmrgThis is free software; see the source for copying conditions. There is NO 79c43cc173Smrgwarranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." 80c43cc173Smrg 81c43cc173Smrghelp=" 82c43cc173SmrgTry \`$me --help' for more information." 83c43cc173Smrg 84c43cc173Smrg# Parse command line 85c43cc173Smrgwhile test $# -gt 0 ; do 86c43cc173Smrg case $1 in 87c43cc173Smrg --time-stamp | --time* | -t ) 8821e67964Smrg echo "$timestamp" ; exit ;; 89c43cc173Smrg --version | -v ) 9021e67964Smrg echo "$version" ; exit ;; 91c43cc173Smrg --help | --h* | -h ) 9221e67964Smrg echo "$usage"; exit ;; 93c43cc173Smrg -- ) # Stop option processing 94c43cc173Smrg shift; break ;; 95c43cc173Smrg - ) # Use stdin as input. 96c43cc173Smrg break ;; 97c43cc173Smrg -* ) 98c43cc173Smrg echo "$me: invalid option $1$help" 99c43cc173Smrg exit 1 ;; 100c43cc173Smrg 101c43cc173Smrg *local*) 102c43cc173Smrg # First pass through any local machine types. 103c43cc173Smrg echo $1 10421e67964Smrg exit ;; 105c43cc173Smrg 106c43cc173Smrg * ) 107c43cc173Smrg break ;; 108c43cc173Smrg esac 109c43cc173Smrgdone 110c43cc173Smrg 111c43cc173Smrgcase $# in 112c43cc173Smrg 0) echo "$me: missing argument$help" >&2 113c43cc173Smrg exit 1;; 114c43cc173Smrg 1) ;; 115c43cc173Smrg *) echo "$me: too many arguments$help" >&2 116c43cc173Smrg exit 1;; 117c43cc173Smrgesac 118c43cc173Smrg 119c43cc173Smrg# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). 120c43cc173Smrg# Here we must recognize all the valid KERNEL-OS combinations. 121c43cc173Smrgmaybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` 122c43cc173Smrgcase $maybe_os in 12321e67964Smrg nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \ 12421e67964Smrg uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \ 12521e67964Smrg storm-chaos* | os2-emx* | rtmk-nova*) 126c43cc173Smrg os=-$maybe_os 127c43cc173Smrg basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` 128c43cc173Smrg ;; 129c43cc173Smrg *) 130c43cc173Smrg basic_machine=`echo $1 | sed 's/-[^-]*$//'` 131c43cc173Smrg if [ $basic_machine != $1 ] 132c43cc173Smrg then os=`echo $1 | sed 's/.*-/-/'` 133c43cc173Smrg else os=; fi 134c43cc173Smrg ;; 135c43cc173Smrgesac 136c43cc173Smrg 137c43cc173Smrg### Let's recognize common machines as not being operating systems so 138c43cc173Smrg### that things like config.sub decstation-3100 work. We also 139c43cc173Smrg### recognize some manufacturers as not being operating systems, so we 140c43cc173Smrg### can provide default operating systems below. 141c43cc173Smrgcase $os in 142c43cc173Smrg -sun*os*) 143c43cc173Smrg # Prevent following clause from handling this invalid input. 144c43cc173Smrg ;; 145c43cc173Smrg -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \ 146c43cc173Smrg -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ 147c43cc173Smrg -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ 148c43cc173Smrg -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ 149c43cc173Smrg -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ 150c43cc173Smrg -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ 15121e67964Smrg -apple | -axis | -knuth | -cray) 152c43cc173Smrg os= 153c43cc173Smrg basic_machine=$1 154c43cc173Smrg ;; 155c43cc173Smrg -sim | -cisco | -oki | -wec | -winbond) 156c43cc173Smrg os= 157c43cc173Smrg basic_machine=$1 158c43cc173Smrg ;; 159c43cc173Smrg -scout) 160c43cc173Smrg ;; 161c43cc173Smrg -wrs) 162c43cc173Smrg os=-vxworks 163c43cc173Smrg basic_machine=$1 164c43cc173Smrg ;; 165c43cc173Smrg -chorusos*) 166c43cc173Smrg os=-chorusos 167c43cc173Smrg basic_machine=$1 168c43cc173Smrg ;; 169c43cc173Smrg -chorusrdb) 170c43cc173Smrg os=-chorusrdb 171c43cc173Smrg basic_machine=$1 172c43cc173Smrg ;; 173c43cc173Smrg -hiux*) 174c43cc173Smrg os=-hiuxwe2 175c43cc173Smrg ;; 17621e67964Smrg -sco6) 17721e67964Smrg os=-sco5v6 17821e67964Smrg basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 17921e67964Smrg ;; 180c43cc173Smrg -sco5) 181c43cc173Smrg os=-sco3.2v5 182c43cc173Smrg basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 183c43cc173Smrg ;; 184c43cc173Smrg -sco4) 185c43cc173Smrg os=-sco3.2v4 186c43cc173Smrg basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 187c43cc173Smrg ;; 188c43cc173Smrg -sco3.2.[4-9]*) 189c43cc173Smrg os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` 190c43cc173Smrg basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 191c43cc173Smrg ;; 192c43cc173Smrg -sco3.2v[4-9]*) 193c43cc173Smrg # Don't forget version if it is 3.2v4 or newer. 194c43cc173Smrg basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 195c43cc173Smrg ;; 19621e67964Smrg -sco5v6*) 19721e67964Smrg # Don't forget version if it is 3.2v4 or newer. 19821e67964Smrg basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 19921e67964Smrg ;; 200c43cc173Smrg -sco*) 201c43cc173Smrg os=-sco3.2v2 202c43cc173Smrg basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 203c43cc173Smrg ;; 204c43cc173Smrg -udk*) 205c43cc173Smrg basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 206c43cc173Smrg ;; 207c43cc173Smrg -isc) 208c43cc173Smrg os=-isc2.2 209c43cc173Smrg basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 210c43cc173Smrg ;; 211c43cc173Smrg -clix*) 212c43cc173Smrg basic_machine=clipper-intergraph 213c43cc173Smrg ;; 214c43cc173Smrg -isc*) 215c43cc173Smrg basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 216c43cc173Smrg ;; 217c43cc173Smrg -lynx*) 218c43cc173Smrg os=-lynxos 219c43cc173Smrg ;; 220c43cc173Smrg -ptx*) 221c43cc173Smrg basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'` 222c43cc173Smrg ;; 223c43cc173Smrg -windowsnt*) 224c43cc173Smrg os=`echo $os | sed -e 's/windowsnt/winnt/'` 225c43cc173Smrg ;; 226c43cc173Smrg -psos*) 227c43cc173Smrg os=-psos 228c43cc173Smrg ;; 229c43cc173Smrg -mint | -mint[0-9]*) 230c43cc173Smrg basic_machine=m68k-atari 231c43cc173Smrg os=-mint 232c43cc173Smrg ;; 233c43cc173Smrgesac 234c43cc173Smrg 235c43cc173Smrg# Decode aliases for certain CPU-COMPANY combinations. 236c43cc173Smrgcase $basic_machine in 237c43cc173Smrg # Recognize the basic CPU types without company name. 238c43cc173Smrg # Some are omitted here because they have special meanings below. 239c43cc173Smrg 1750a | 580 \ 240c43cc173Smrg | a29k \ 241c43cc173Smrg | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ 242c43cc173Smrg | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ 24321e67964Smrg | am33_2.0 \ 24421e67964Smrg | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \ 24521e67964Smrg | bfin \ 246c43cc173Smrg | c4x | clipper \ 247c43cc173Smrg | d10v | d30v | dlx | dsp16xx \ 24821e67964Smrg | fido | fr30 | frv \ 249c43cc173Smrg | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ 250c43cc173Smrg | i370 | i860 | i960 | ia64 \ 25121e67964Smrg | ip2k | iq2000 \ 25221e67964Smrg | m32c | m32r | m32rle | m68000 | m68k | m88k \ 25321e67964Smrg | maxq | mb | microblaze | mcore | mep \ 254c43cc173Smrg | mips | mipsbe | mipseb | mipsel | mipsle \ 255c43cc173Smrg | mips16 \ 256c43cc173Smrg | mips64 | mips64el \ 257c43cc173Smrg | mips64vr | mips64vrel \ 258c43cc173Smrg | mips64orion | mips64orionel \ 259c43cc173Smrg | mips64vr4100 | mips64vr4100el \ 260c43cc173Smrg | mips64vr4300 | mips64vr4300el \ 261c43cc173Smrg | mips64vr5000 | mips64vr5000el \ 26221e67964Smrg | mips64vr5900 | mips64vr5900el \ 263c43cc173Smrg | mipsisa32 | mipsisa32el \ 264c43cc173Smrg | mipsisa32r2 | mipsisa32r2el \ 265c43cc173Smrg | mipsisa64 | mipsisa64el \ 26621e67964Smrg | mipsisa64r2 | mipsisa64r2el \ 267c43cc173Smrg | mipsisa64sb1 | mipsisa64sb1el \ 268c43cc173Smrg | mipsisa64sr71k | mipsisa64sr71kel \ 269c43cc173Smrg | mipstx39 | mipstx39el \ 270c43cc173Smrg | mn10200 | mn10300 \ 27121e67964Smrg | mt \ 272c43cc173Smrg | msp430 \ 27321e67964Smrg | nios | nios2 \ 274c43cc173Smrg | ns16k | ns32k \ 27521e67964Smrg | or32 \ 276c43cc173Smrg | pdp10 | pdp11 | pj | pjl \ 277c43cc173Smrg | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ 278c43cc173Smrg | pyramid \ 27921e67964Smrg | score \ 28021e67964Smrg | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ 281c43cc173Smrg | sh64 | sh64le \ 28221e67964Smrg | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ 28321e67964Smrg | sparcv8 | sparcv9 | sparcv9b | sparcv9v \ 28421e67964Smrg | spu | strongarm \ 285c43cc173Smrg | tahoe | thumb | tic4x | tic80 | tron \ 286c43cc173Smrg | v850 | v850e \ 287c43cc173Smrg | we32k \ 28821e67964Smrg | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \ 289c43cc173Smrg | z8k) 290c43cc173Smrg basic_machine=$basic_machine-unknown 291c43cc173Smrg ;; 292c43cc173Smrg m6811 | m68hc11 | m6812 | m68hc12) 293c43cc173Smrg # Motorola 68HC11/12. 294c43cc173Smrg basic_machine=$basic_machine-unknown 295c43cc173Smrg os=-none 296c43cc173Smrg ;; 297c43cc173Smrg m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) 298c43cc173Smrg ;; 29921e67964Smrg ms1) 30021e67964Smrg basic_machine=mt-unknown 30121e67964Smrg ;; 302c43cc173Smrg 303c43cc173Smrg # We use `pc' rather than `unknown' 304c43cc173Smrg # because (1) that's what they normally are, and 305c43cc173Smrg # (2) the word "unknown" tends to confuse beginning users. 306c43cc173Smrg i*86 | x86_64) 307c43cc173Smrg basic_machine=$basic_machine-pc 308c43cc173Smrg ;; 309c43cc173Smrg # Object if more than one company name word. 310c43cc173Smrg *-*-*) 311c43cc173Smrg echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 312c43cc173Smrg exit 1 313c43cc173Smrg ;; 314c43cc173Smrg # Recognize the basic CPU types with company name. 315c43cc173Smrg 580-* \ 316c43cc173Smrg | a29k-* \ 317c43cc173Smrg | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ 318c43cc173Smrg | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ 31921e67964Smrg | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ 320c43cc173Smrg | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ 32121e67964Smrg | avr-* | avr32-* \ 32221e67964Smrg | bfin-* | bs2000-* \ 323c43cc173Smrg | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \ 32421e67964Smrg | clipper-* | craynv-* | cydra-* \ 325c43cc173Smrg | d10v-* | d30v-* | dlx-* \ 326c43cc173Smrg | elxsi-* \ 32721e67964Smrg | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \ 328c43cc173Smrg | h8300-* | h8500-* \ 329c43cc173Smrg | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ 330c43cc173Smrg | i*86-* | i860-* | i960-* | ia64-* \ 33121e67964Smrg | ip2k-* | iq2000-* \ 33221e67964Smrg | m32c-* | m32r-* | m32rle-* \ 333c43cc173Smrg | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ 33421e67964Smrg | m88110-* | m88k-* | maxq-* | mcore-* \ 335c43cc173Smrg | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ 336c43cc173Smrg | mips16-* \ 337c43cc173Smrg | mips64-* | mips64el-* \ 338c43cc173Smrg | mips64vr-* | mips64vrel-* \ 339c43cc173Smrg | mips64orion-* | mips64orionel-* \ 340c43cc173Smrg | mips64vr4100-* | mips64vr4100el-* \ 341c43cc173Smrg | mips64vr4300-* | mips64vr4300el-* \ 342c43cc173Smrg | mips64vr5000-* | mips64vr5000el-* \ 34321e67964Smrg | mips64vr5900-* | mips64vr5900el-* \ 344c43cc173Smrg | mipsisa32-* | mipsisa32el-* \ 345c43cc173Smrg | mipsisa32r2-* | mipsisa32r2el-* \ 346c43cc173Smrg | mipsisa64-* | mipsisa64el-* \ 34721e67964Smrg | mipsisa64r2-* | mipsisa64r2el-* \ 348c43cc173Smrg | mipsisa64sb1-* | mipsisa64sb1el-* \ 349c43cc173Smrg | mipsisa64sr71k-* | mipsisa64sr71kel-* \ 350c43cc173Smrg | mipstx39-* | mipstx39el-* \ 35121e67964Smrg | mmix-* \ 35221e67964Smrg | mt-* \ 353c43cc173Smrg | msp430-* \ 35421e67964Smrg | nios-* | nios2-* \ 35521e67964Smrg | none-* | np1-* | ns16k-* | ns32k-* \ 356c43cc173Smrg | orion-* \ 357c43cc173Smrg | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ 358c43cc173Smrg | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ 359c43cc173Smrg | pyramid-* \ 360c43cc173Smrg | romp-* | rs6000-* \ 36121e67964Smrg | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \ 362c43cc173Smrg | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ 36321e67964Smrg | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \ 36421e67964Smrg | sparclite-* \ 36521e67964Smrg | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \ 366c43cc173Smrg | tahoe-* | thumb-* \ 367c43cc173Smrg | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ 368c43cc173Smrg | tron-* \ 369c43cc173Smrg | v850-* | v850e-* | vax-* \ 370c43cc173Smrg | we32k-* \ 37121e67964Smrg | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \ 37221e67964Smrg | xstormy16-* | xtensa-* \ 373c43cc173Smrg | ymp-* \ 374c43cc173Smrg | z8k-*) 375c43cc173Smrg ;; 376c43cc173Smrg # Recognize the various machine names and aliases which stand 377c43cc173Smrg # for a CPU type and a company and sometimes even an OS. 378c43cc173Smrg 386bsd) 379c43cc173Smrg basic_machine=i386-unknown 380c43cc173Smrg os=-bsd 381c43cc173Smrg ;; 382c43cc173Smrg 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) 383c43cc173Smrg basic_machine=m68000-att 384c43cc173Smrg ;; 385c43cc173Smrg 3b*) 386c43cc173Smrg basic_machine=we32k-att 387c43cc173Smrg ;; 388c43cc173Smrg a29khif) 389c43cc173Smrg basic_machine=a29k-amd 390c43cc173Smrg os=-udi 391c43cc173Smrg ;; 39221e67964Smrg abacus) 39321e67964Smrg basic_machine=abacus-unknown 39421e67964Smrg ;; 395c43cc173Smrg adobe68k) 396c43cc173Smrg basic_machine=m68010-adobe 397c43cc173Smrg os=-scout 398c43cc173Smrg ;; 399c43cc173Smrg alliant | fx80) 400c43cc173Smrg basic_machine=fx80-alliant 401c43cc173Smrg ;; 402c43cc173Smrg altos | altos3068) 403c43cc173Smrg basic_machine=m68k-altos 404c43cc173Smrg ;; 405c43cc173Smrg am29k) 406c43cc173Smrg basic_machine=a29k-none 407c43cc173Smrg os=-bsd 408c43cc173Smrg ;; 409c43cc173Smrg amd64) 410c43cc173Smrg basic_machine=x86_64-pc 411c43cc173Smrg ;; 41221e67964Smrg amd64-*) 41321e67964Smrg basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'` 41421e67964Smrg ;; 415c43cc173Smrg amdahl) 416c43cc173Smrg basic_machine=580-amdahl 417c43cc173Smrg os=-sysv 418c43cc173Smrg ;; 419c43cc173Smrg amiga | amiga-*) 420c43cc173Smrg basic_machine=m68k-unknown 421c43cc173Smrg ;; 422c43cc173Smrg amigaos | amigados) 423c43cc173Smrg basic_machine=m68k-unknown 424c43cc173Smrg os=-amigaos 425c43cc173Smrg ;; 426c43cc173Smrg amigaunix | amix) 427c43cc173Smrg basic_machine=m68k-unknown 428c43cc173Smrg os=-sysv4 429c43cc173Smrg ;; 430c43cc173Smrg apollo68) 431c43cc173Smrg basic_machine=m68k-apollo 432c43cc173Smrg os=-sysv 433c43cc173Smrg ;; 434c43cc173Smrg apollo68bsd) 435c43cc173Smrg basic_machine=m68k-apollo 436c43cc173Smrg os=-bsd 437c43cc173Smrg ;; 438c43cc173Smrg aux) 439c43cc173Smrg basic_machine=m68k-apple 440c43cc173Smrg os=-aux 441c43cc173Smrg ;; 442c43cc173Smrg balance) 443c43cc173Smrg basic_machine=ns32k-sequent 444c43cc173Smrg os=-dynix 445c43cc173Smrg ;; 446c43cc173Smrg c90) 447c43cc173Smrg basic_machine=c90-cray 448c43cc173Smrg os=-unicos 449c43cc173Smrg ;; 450c43cc173Smrg convex-c1) 451c43cc173Smrg basic_machine=c1-convex 452c43cc173Smrg os=-bsd 453c43cc173Smrg ;; 454c43cc173Smrg convex-c2) 455c43cc173Smrg basic_machine=c2-convex 456c43cc173Smrg os=-bsd 457c43cc173Smrg ;; 458c43cc173Smrg convex-c32) 459c43cc173Smrg basic_machine=c32-convex 460c43cc173Smrg os=-bsd 461c43cc173Smrg ;; 462c43cc173Smrg convex-c34) 463c43cc173Smrg basic_machine=c34-convex 464c43cc173Smrg os=-bsd 465c43cc173Smrg ;; 466c43cc173Smrg convex-c38) 467c43cc173Smrg basic_machine=c38-convex 468c43cc173Smrg os=-bsd 469c43cc173Smrg ;; 470c43cc173Smrg cray | j90) 471c43cc173Smrg basic_machine=j90-cray 472c43cc173Smrg os=-unicos 473c43cc173Smrg ;; 47421e67964Smrg craynv) 47521e67964Smrg basic_machine=craynv-cray 47621e67964Smrg os=-unicosmp 47721e67964Smrg ;; 47821e67964Smrg cr16c) 47921e67964Smrg basic_machine=cr16c-unknown 48021e67964Smrg os=-elf 48121e67964Smrg ;; 482c43cc173Smrg crds | unos) 483c43cc173Smrg basic_machine=m68k-crds 484c43cc173Smrg ;; 48521e67964Smrg crisv32 | crisv32-* | etraxfs*) 48621e67964Smrg basic_machine=crisv32-axis 48721e67964Smrg ;; 488c43cc173Smrg cris | cris-* | etrax*) 489c43cc173Smrg basic_machine=cris-axis 490c43cc173Smrg ;; 49121e67964Smrg crx) 49221e67964Smrg basic_machine=crx-unknown 49321e67964Smrg os=-elf 49421e67964Smrg ;; 495c43cc173Smrg da30 | da30-*) 496c43cc173Smrg basic_machine=m68k-da30 497c43cc173Smrg ;; 498c43cc173Smrg decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn) 499c43cc173Smrg basic_machine=mips-dec 500c43cc173Smrg ;; 501c43cc173Smrg decsystem10* | dec10*) 502c43cc173Smrg basic_machine=pdp10-dec 503c43cc173Smrg os=-tops10 504c43cc173Smrg ;; 505c43cc173Smrg decsystem20* | dec20*) 506c43cc173Smrg basic_machine=pdp10-dec 507c43cc173Smrg os=-tops20 508c43cc173Smrg ;; 509c43cc173Smrg delta | 3300 | motorola-3300 | motorola-delta \ 510c43cc173Smrg | 3300-motorola | delta-motorola) 511c43cc173Smrg basic_machine=m68k-motorola 512c43cc173Smrg ;; 513c43cc173Smrg delta88) 514c43cc173Smrg basic_machine=m88k-motorola 515c43cc173Smrg os=-sysv3 516c43cc173Smrg ;; 51721e67964Smrg djgpp) 51821e67964Smrg basic_machine=i586-pc 51921e67964Smrg os=-msdosdjgpp 52021e67964Smrg ;; 521c43cc173Smrg dpx20 | dpx20-*) 522c43cc173Smrg basic_machine=rs6000-bull 523c43cc173Smrg os=-bosx 524c43cc173Smrg ;; 525c43cc173Smrg dpx2* | dpx2*-bull) 526c43cc173Smrg basic_machine=m68k-bull 527c43cc173Smrg os=-sysv3 528c43cc173Smrg ;; 529c43cc173Smrg ebmon29k) 530c43cc173Smrg basic_machine=a29k-amd 531c43cc173Smrg os=-ebmon 532c43cc173Smrg ;; 533c43cc173Smrg elxsi) 534c43cc173Smrg basic_machine=elxsi-elxsi 535c43cc173Smrg os=-bsd 536c43cc173Smrg ;; 537c43cc173Smrg encore | umax | mmax) 538c43cc173Smrg basic_machine=ns32k-encore 539c43cc173Smrg ;; 540c43cc173Smrg es1800 | OSE68k | ose68k | ose | OSE) 541c43cc173Smrg basic_machine=m68k-ericsson 542c43cc173Smrg os=-ose 543c43cc173Smrg ;; 544c43cc173Smrg fx2800) 545c43cc173Smrg basic_machine=i860-alliant 546c43cc173Smrg ;; 547c43cc173Smrg genix) 548c43cc173Smrg basic_machine=ns32k-ns 549c43cc173Smrg ;; 550c43cc173Smrg gmicro) 551c43cc173Smrg basic_machine=tron-gmicro 552c43cc173Smrg os=-sysv 553c43cc173Smrg ;; 554c43cc173Smrg go32) 555c43cc173Smrg basic_machine=i386-pc 556c43cc173Smrg os=-go32 557c43cc173Smrg ;; 558c43cc173Smrg h3050r* | hiux*) 559c43cc173Smrg basic_machine=hppa1.1-hitachi 560c43cc173Smrg os=-hiuxwe2 561c43cc173Smrg ;; 562c43cc173Smrg h8300hms) 563c43cc173Smrg basic_machine=h8300-hitachi 564c43cc173Smrg os=-hms 565c43cc173Smrg ;; 566c43cc173Smrg h8300xray) 567c43cc173Smrg basic_machine=h8300-hitachi 568c43cc173Smrg os=-xray 569c43cc173Smrg ;; 570c43cc173Smrg h8500hms) 571c43cc173Smrg basic_machine=h8500-hitachi 572c43cc173Smrg os=-hms 573c43cc173Smrg ;; 574c43cc173Smrg harris) 575c43cc173Smrg basic_machine=m88k-harris 576c43cc173Smrg os=-sysv3 577c43cc173Smrg ;; 578c43cc173Smrg hp300-*) 579c43cc173Smrg basic_machine=m68k-hp 580c43cc173Smrg ;; 581c43cc173Smrg hp300bsd) 582c43cc173Smrg basic_machine=m68k-hp 583c43cc173Smrg os=-bsd 584c43cc173Smrg ;; 585c43cc173Smrg hp300hpux) 586c43cc173Smrg basic_machine=m68k-hp 587c43cc173Smrg os=-hpux 588c43cc173Smrg ;; 589c43cc173Smrg hp3k9[0-9][0-9] | hp9[0-9][0-9]) 590c43cc173Smrg basic_machine=hppa1.0-hp 591c43cc173Smrg ;; 592c43cc173Smrg hp9k2[0-9][0-9] | hp9k31[0-9]) 593c43cc173Smrg basic_machine=m68000-hp 594c43cc173Smrg ;; 595c43cc173Smrg hp9k3[2-9][0-9]) 596c43cc173Smrg basic_machine=m68k-hp 597c43cc173Smrg ;; 598c43cc173Smrg hp9k6[0-9][0-9] | hp6[0-9][0-9]) 599c43cc173Smrg basic_machine=hppa1.0-hp 600c43cc173Smrg ;; 601c43cc173Smrg hp9k7[0-79][0-9] | hp7[0-79][0-9]) 602c43cc173Smrg basic_machine=hppa1.1-hp 603c43cc173Smrg ;; 604c43cc173Smrg hp9k78[0-9] | hp78[0-9]) 605c43cc173Smrg # FIXME: really hppa2.0-hp 606c43cc173Smrg basic_machine=hppa1.1-hp 607c43cc173Smrg ;; 608c43cc173Smrg hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893) 609c43cc173Smrg # FIXME: really hppa2.0-hp 610c43cc173Smrg basic_machine=hppa1.1-hp 611c43cc173Smrg ;; 612c43cc173Smrg hp9k8[0-9][13679] | hp8[0-9][13679]) 613c43cc173Smrg basic_machine=hppa1.1-hp 614c43cc173Smrg ;; 615c43cc173Smrg hp9k8[0-9][0-9] | hp8[0-9][0-9]) 616c43cc173Smrg basic_machine=hppa1.0-hp 617c43cc173Smrg ;; 618c43cc173Smrg hppa-next) 619c43cc173Smrg os=-nextstep3 620c43cc173Smrg ;; 621c43cc173Smrg hppaosf) 622c43cc173Smrg basic_machine=hppa1.1-hp 623c43cc173Smrg os=-osf 624c43cc173Smrg ;; 625c43cc173Smrg hppro) 626c43cc173Smrg basic_machine=hppa1.1-hp 627c43cc173Smrg os=-proelf 628c43cc173Smrg ;; 629c43cc173Smrg i370-ibm* | ibm*) 630c43cc173Smrg basic_machine=i370-ibm 631c43cc173Smrg ;; 632c43cc173Smrg# I'm not sure what "Sysv32" means. Should this be sysv3.2? 633c43cc173Smrg i*86v32) 634c43cc173Smrg basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` 635c43cc173Smrg os=-sysv32 636c43cc173Smrg ;; 637c43cc173Smrg i*86v4*) 638c43cc173Smrg basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` 639c43cc173Smrg os=-sysv4 640c43cc173Smrg ;; 641c43cc173Smrg i*86v) 642c43cc173Smrg basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` 643c43cc173Smrg os=-sysv 644c43cc173Smrg ;; 645c43cc173Smrg i*86sol2) 646c43cc173Smrg basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` 647c43cc173Smrg os=-solaris2 648c43cc173Smrg ;; 649c43cc173Smrg i386mach) 650c43cc173Smrg basic_machine=i386-mach 651c43cc173Smrg os=-mach 652c43cc173Smrg ;; 653c43cc173Smrg i386-vsta | vsta) 654c43cc173Smrg basic_machine=i386-unknown 655c43cc173Smrg os=-vsta 656c43cc173Smrg ;; 657c43cc173Smrg iris | iris4d) 658c43cc173Smrg basic_machine=mips-sgi 659c43cc173Smrg case $os in 660c43cc173Smrg -irix*) 661c43cc173Smrg ;; 662c43cc173Smrg *) 663c43cc173Smrg os=-irix4 664c43cc173Smrg ;; 665c43cc173Smrg esac 666c43cc173Smrg ;; 667c43cc173Smrg isi68 | isi) 668c43cc173Smrg basic_machine=m68k-isi 669c43cc173Smrg os=-sysv 670c43cc173Smrg ;; 671c43cc173Smrg m88k-omron*) 672c43cc173Smrg basic_machine=m88k-omron 673c43cc173Smrg ;; 674c43cc173Smrg magnum | m3230) 675c43cc173Smrg basic_machine=mips-mips 676c43cc173Smrg os=-sysv 677c43cc173Smrg ;; 678c43cc173Smrg merlin) 679c43cc173Smrg basic_machine=ns32k-utek 680c43cc173Smrg os=-sysv 681c43cc173Smrg ;; 682c43cc173Smrg mingw32) 683c43cc173Smrg basic_machine=i386-pc 684c43cc173Smrg os=-mingw32 685c43cc173Smrg ;; 68621e67964Smrg mingw32ce) 68721e67964Smrg basic_machine=arm-unknown 68821e67964Smrg os=-mingw32ce 68921e67964Smrg ;; 690c43cc173Smrg miniframe) 691c43cc173Smrg basic_machine=m68000-convergent 692c43cc173Smrg ;; 693c43cc173Smrg *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*) 694c43cc173Smrg basic_machine=m68k-atari 695c43cc173Smrg os=-mint 696c43cc173Smrg ;; 697c43cc173Smrg mips3*-*) 698c43cc173Smrg basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` 699c43cc173Smrg ;; 700c43cc173Smrg mips3*) 701c43cc173Smrg basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown 702c43cc173Smrg ;; 703c43cc173Smrg monitor) 704c43cc173Smrg basic_machine=m68k-rom68k 705c43cc173Smrg os=-coff 706c43cc173Smrg ;; 707c43cc173Smrg morphos) 708c43cc173Smrg basic_machine=powerpc-unknown 709c43cc173Smrg os=-morphos 710c43cc173Smrg ;; 711c43cc173Smrg msdos) 712c43cc173Smrg basic_machine=i386-pc 713c43cc173Smrg os=-msdos 714c43cc173Smrg ;; 71521e67964Smrg ms1-*) 71621e67964Smrg basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'` 71721e67964Smrg ;; 718c43cc173Smrg mvs) 719c43cc173Smrg basic_machine=i370-ibm 720c43cc173Smrg os=-mvs 721c43cc173Smrg ;; 722c43cc173Smrg ncr3000) 723c43cc173Smrg basic_machine=i486-ncr 724c43cc173Smrg os=-sysv4 725c43cc173Smrg ;; 726c43cc173Smrg netbsd386) 727c43cc173Smrg basic_machine=i386-unknown 728c43cc173Smrg os=-netbsd 729c43cc173Smrg ;; 730c43cc173Smrg netwinder) 731c43cc173Smrg basic_machine=armv4l-rebel 732c43cc173Smrg os=-linux 733c43cc173Smrg ;; 734c43cc173Smrg news | news700 | news800 | news900) 735c43cc173Smrg basic_machine=m68k-sony 736c43cc173Smrg os=-newsos 737c43cc173Smrg ;; 738c43cc173Smrg news1000) 739c43cc173Smrg basic_machine=m68030-sony 740c43cc173Smrg os=-newsos 741c43cc173Smrg ;; 742c43cc173Smrg news-3600 | risc-news) 743c43cc173Smrg basic_machine=mips-sony 744c43cc173Smrg os=-newsos 745c43cc173Smrg ;; 746c43cc173Smrg necv70) 747c43cc173Smrg basic_machine=v70-nec 748c43cc173Smrg os=-sysv 749c43cc173Smrg ;; 750c43cc173Smrg next | m*-next ) 751c43cc173Smrg basic_machine=m68k-next 752c43cc173Smrg case $os in 753c43cc173Smrg -nextstep* ) 754c43cc173Smrg ;; 755c43cc173Smrg -ns2*) 756c43cc173Smrg os=-nextstep2 757c43cc173Smrg ;; 758c43cc173Smrg *) 759c43cc173Smrg os=-nextstep3 760c43cc173Smrg ;; 761c43cc173Smrg esac 762c43cc173Smrg ;; 763c43cc173Smrg nh3000) 764c43cc173Smrg basic_machine=m68k-harris 765c43cc173Smrg os=-cxux 766c43cc173Smrg ;; 767c43cc173Smrg nh[45]000) 768c43cc173Smrg basic_machine=m88k-harris 769c43cc173Smrg os=-cxux 770c43cc173Smrg ;; 771c43cc173Smrg nindy960) 772c43cc173Smrg basic_machine=i960-intel 773c43cc173Smrg os=-nindy 774c43cc173Smrg ;; 775c43cc173Smrg mon960) 776c43cc173Smrg basic_machine=i960-intel 777c43cc173Smrg os=-mon960 778c43cc173Smrg ;; 779c43cc173Smrg nonstopux) 780c43cc173Smrg basic_machine=mips-compaq 781c43cc173Smrg os=-nonstopux 782c43cc173Smrg ;; 783c43cc173Smrg np1) 784c43cc173Smrg basic_machine=np1-gould 785c43cc173Smrg ;; 786c43cc173Smrg nsr-tandem) 787c43cc173Smrg basic_machine=nsr-tandem 788c43cc173Smrg ;; 789c43cc173Smrg op50n-* | op60c-*) 790c43cc173Smrg basic_machine=hppa1.1-oki 791c43cc173Smrg os=-proelf 792c43cc173Smrg ;; 79321e67964Smrg openrisc | openrisc-*) 794c43cc173Smrg basic_machine=or32-unknown 79521e67964Smrg ;; 79621e67964Smrg os400) 79721e67964Smrg basic_machine=powerpc-ibm 79821e67964Smrg os=-os400 799c43cc173Smrg ;; 800c43cc173Smrg OSE68000 | ose68000) 801c43cc173Smrg basic_machine=m68000-ericsson 802c43cc173Smrg os=-ose 803c43cc173Smrg ;; 804c43cc173Smrg os68k) 805c43cc173Smrg basic_machine=m68k-none 806c43cc173Smrg os=-os68k 807c43cc173Smrg ;; 808c43cc173Smrg pa-hitachi) 809c43cc173Smrg basic_machine=hppa1.1-hitachi 810c43cc173Smrg os=-hiuxwe2 811c43cc173Smrg ;; 812c43cc173Smrg paragon) 813c43cc173Smrg basic_machine=i860-intel 814c43cc173Smrg os=-osf 815c43cc173Smrg ;; 816c43cc173Smrg pbd) 817c43cc173Smrg basic_machine=sparc-tti 818c43cc173Smrg ;; 819c43cc173Smrg pbb) 820c43cc173Smrg basic_machine=m68k-tti 821c43cc173Smrg ;; 822c43cc173Smrg pc532 | pc532-*) 823c43cc173Smrg basic_machine=ns32k-pc532 824c43cc173Smrg ;; 82521e67964Smrg pc98) 82621e67964Smrg basic_machine=i386-pc 82721e67964Smrg ;; 82821e67964Smrg pc98-*) 82921e67964Smrg basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'` 83021e67964Smrg ;; 831c43cc173Smrg pentium | p5 | k5 | k6 | nexgen | viac3) 832c43cc173Smrg basic_machine=i586-pc 833c43cc173Smrg ;; 834c43cc173Smrg pentiumpro | p6 | 6x86 | athlon | athlon_*) 835c43cc173Smrg basic_machine=i686-pc 836c43cc173Smrg ;; 837c43cc173Smrg pentiumii | pentium2 | pentiumiii | pentium3) 838c43cc173Smrg basic_machine=i686-pc 839c43cc173Smrg ;; 840c43cc173Smrg pentium4) 841c43cc173Smrg basic_machine=i786-pc 842c43cc173Smrg ;; 843c43cc173Smrg pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) 844c43cc173Smrg basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` 845c43cc173Smrg ;; 846c43cc173Smrg pentiumpro-* | p6-* | 6x86-* | athlon-*) 847c43cc173Smrg basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` 848c43cc173Smrg ;; 849c43cc173Smrg pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*) 850c43cc173Smrg basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` 851c43cc173Smrg ;; 852c43cc173Smrg pentium4-*) 853c43cc173Smrg basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'` 854c43cc173Smrg ;; 855c43cc173Smrg pn) 856c43cc173Smrg basic_machine=pn-gould 857c43cc173Smrg ;; 858c43cc173Smrg power) basic_machine=power-ibm 859c43cc173Smrg ;; 860c43cc173Smrg ppc) basic_machine=powerpc-unknown 861c43cc173Smrg ;; 862c43cc173Smrg ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` 863c43cc173Smrg ;; 864c43cc173Smrg ppcle | powerpclittle | ppc-le | powerpc-little) 865c43cc173Smrg basic_machine=powerpcle-unknown 866c43cc173Smrg ;; 867c43cc173Smrg ppcle-* | powerpclittle-*) 868c43cc173Smrg basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` 869c43cc173Smrg ;; 870c43cc173Smrg ppc64) basic_machine=powerpc64-unknown 871c43cc173Smrg ;; 872c43cc173Smrg ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'` 873c43cc173Smrg ;; 874c43cc173Smrg ppc64le | powerpc64little | ppc64-le | powerpc64-little) 875c43cc173Smrg basic_machine=powerpc64le-unknown 876c43cc173Smrg ;; 877c43cc173Smrg ppc64le-* | powerpc64little-*) 878c43cc173Smrg basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'` 879c43cc173Smrg ;; 880c43cc173Smrg ps2) 881c43cc173Smrg basic_machine=i386-ibm 882c43cc173Smrg ;; 883c43cc173Smrg pw32) 884c43cc173Smrg basic_machine=i586-unknown 885c43cc173Smrg os=-pw32 886c43cc173Smrg ;; 88721e67964Smrg rdos) 88821e67964Smrg basic_machine=i386-pc 88921e67964Smrg os=-rdos 89021e67964Smrg ;; 891c43cc173Smrg rom68k) 892c43cc173Smrg basic_machine=m68k-rom68k 893c43cc173Smrg os=-coff 894c43cc173Smrg ;; 895c43cc173Smrg rm[46]00) 896c43cc173Smrg basic_machine=mips-siemens 897c43cc173Smrg ;; 898c43cc173Smrg rtpc | rtpc-*) 899c43cc173Smrg basic_machine=romp-ibm 900c43cc173Smrg ;; 901c43cc173Smrg s390 | s390-*) 902c43cc173Smrg basic_machine=s390-ibm 903c43cc173Smrg ;; 904c43cc173Smrg s390x | s390x-*) 905c43cc173Smrg basic_machine=s390x-ibm 906c43cc173Smrg ;; 907c43cc173Smrg sa29200) 908c43cc173Smrg basic_machine=a29k-amd 909c43cc173Smrg os=-udi 910c43cc173Smrg ;; 911c43cc173Smrg sb1) 912c43cc173Smrg basic_machine=mipsisa64sb1-unknown 913c43cc173Smrg ;; 914c43cc173Smrg sb1el) 915c43cc173Smrg basic_machine=mipsisa64sb1el-unknown 916c43cc173Smrg ;; 91721e67964Smrg sde) 91821e67964Smrg basic_machine=mipsisa32-sde 91921e67964Smrg os=-elf 92021e67964Smrg ;; 921c43cc173Smrg sei) 922c43cc173Smrg basic_machine=mips-sei 923c43cc173Smrg os=-seiux 924c43cc173Smrg ;; 925c43cc173Smrg sequent) 926c43cc173Smrg basic_machine=i386-sequent 927c43cc173Smrg ;; 928c43cc173Smrg sh) 929c43cc173Smrg basic_machine=sh-hitachi 930c43cc173Smrg os=-hms 931c43cc173Smrg ;; 93221e67964Smrg sh5el) 93321e67964Smrg basic_machine=sh5le-unknown 93421e67964Smrg ;; 935c43cc173Smrg sh64) 936c43cc173Smrg basic_machine=sh64-unknown 937c43cc173Smrg ;; 938c43cc173Smrg sparclite-wrs | simso-wrs) 939c43cc173Smrg basic_machine=sparclite-wrs 940c43cc173Smrg os=-vxworks 941c43cc173Smrg ;; 942c43cc173Smrg sps7) 943c43cc173Smrg basic_machine=m68k-bull 944c43cc173Smrg os=-sysv2 945c43cc173Smrg ;; 946c43cc173Smrg spur) 947c43cc173Smrg basic_machine=spur-unknown 948c43cc173Smrg ;; 949c43cc173Smrg st2000) 950c43cc173Smrg basic_machine=m68k-tandem 951c43cc173Smrg ;; 952c43cc173Smrg stratus) 953c43cc173Smrg basic_machine=i860-stratus 954c43cc173Smrg os=-sysv4 955c43cc173Smrg ;; 956c43cc173Smrg sun2) 957c43cc173Smrg basic_machine=m68000-sun 958c43cc173Smrg ;; 959c43cc173Smrg sun2os3) 960c43cc173Smrg basic_machine=m68000-sun 961c43cc173Smrg os=-sunos3 962c43cc173Smrg ;; 963c43cc173Smrg sun2os4) 964c43cc173Smrg basic_machine=m68000-sun 965c43cc173Smrg os=-sunos4 966c43cc173Smrg ;; 967c43cc173Smrg sun3os3) 968c43cc173Smrg basic_machine=m68k-sun 969c43cc173Smrg os=-sunos3 970c43cc173Smrg ;; 971c43cc173Smrg sun3os4) 972c43cc173Smrg basic_machine=m68k-sun 973c43cc173Smrg os=-sunos4 974c43cc173Smrg ;; 975c43cc173Smrg sun4os3) 976c43cc173Smrg basic_machine=sparc-sun 977c43cc173Smrg os=-sunos3 978c43cc173Smrg ;; 979c43cc173Smrg sun4os4) 980c43cc173Smrg basic_machine=sparc-sun 981c43cc173Smrg os=-sunos4 982c43cc173Smrg ;; 983c43cc173Smrg sun4sol2) 984c43cc173Smrg basic_machine=sparc-sun 985c43cc173Smrg os=-solaris2 986c43cc173Smrg ;; 987c43cc173Smrg sun3 | sun3-*) 988c43cc173Smrg basic_machine=m68k-sun 989c43cc173Smrg ;; 990c43cc173Smrg sun4) 991c43cc173Smrg basic_machine=sparc-sun 992c43cc173Smrg ;; 993c43cc173Smrg sun386 | sun386i | roadrunner) 994c43cc173Smrg basic_machine=i386-sun 995c43cc173Smrg ;; 996c43cc173Smrg sv1) 997c43cc173Smrg basic_machine=sv1-cray 998c43cc173Smrg os=-unicos 999c43cc173Smrg ;; 1000c43cc173Smrg symmetry) 1001c43cc173Smrg basic_machine=i386-sequent 1002c43cc173Smrg os=-dynix 1003c43cc173Smrg ;; 1004c43cc173Smrg t3e) 1005c43cc173Smrg basic_machine=alphaev5-cray 1006c43cc173Smrg os=-unicos 1007c43cc173Smrg ;; 1008c43cc173Smrg t90) 1009c43cc173Smrg basic_machine=t90-cray 1010c43cc173Smrg os=-unicos 1011c43cc173Smrg ;; 1012c43cc173Smrg tic54x | c54x*) 1013c43cc173Smrg basic_machine=tic54x-unknown 1014c43cc173Smrg os=-coff 1015c43cc173Smrg ;; 1016c43cc173Smrg tic55x | c55x*) 1017c43cc173Smrg basic_machine=tic55x-unknown 1018c43cc173Smrg os=-coff 1019c43cc173Smrg ;; 1020c43cc173Smrg tic6x | c6x*) 1021c43cc173Smrg basic_machine=tic6x-unknown 1022c43cc173Smrg os=-coff 1023c43cc173Smrg ;; 1024c43cc173Smrg tx39) 1025c43cc173Smrg basic_machine=mipstx39-unknown 1026c43cc173Smrg ;; 1027c43cc173Smrg tx39el) 1028c43cc173Smrg basic_machine=mipstx39el-unknown 1029c43cc173Smrg ;; 1030c43cc173Smrg toad1) 1031c43cc173Smrg basic_machine=pdp10-xkl 1032c43cc173Smrg os=-tops20 1033c43cc173Smrg ;; 1034c43cc173Smrg tower | tower-32) 1035c43cc173Smrg basic_machine=m68k-ncr 1036c43cc173Smrg ;; 103721e67964Smrg tpf) 103821e67964Smrg basic_machine=s390x-ibm 103921e67964Smrg os=-tpf 104021e67964Smrg ;; 1041c43cc173Smrg udi29k) 1042c43cc173Smrg basic_machine=a29k-amd 1043c43cc173Smrg os=-udi 1044c43cc173Smrg ;; 1045c43cc173Smrg ultra3) 1046c43cc173Smrg basic_machine=a29k-nyu 1047c43cc173Smrg os=-sym1 1048c43cc173Smrg ;; 1049c43cc173Smrg v810 | necv810) 1050c43cc173Smrg basic_machine=v810-nec 1051c43cc173Smrg os=-none 1052c43cc173Smrg ;; 1053c43cc173Smrg vaxv) 1054c43cc173Smrg basic_machine=vax-dec 1055c43cc173Smrg os=-sysv 1056c43cc173Smrg ;; 1057c43cc173Smrg vms) 1058c43cc173Smrg basic_machine=vax-dec 1059c43cc173Smrg os=-vms 1060c43cc173Smrg ;; 1061c43cc173Smrg vpp*|vx|vx-*) 1062c43cc173Smrg basic_machine=f301-fujitsu 1063c43cc173Smrg ;; 1064c43cc173Smrg vxworks960) 1065c43cc173Smrg basic_machine=i960-wrs 1066c43cc173Smrg os=-vxworks 1067c43cc173Smrg ;; 1068c43cc173Smrg vxworks68) 1069c43cc173Smrg basic_machine=m68k-wrs 1070c43cc173Smrg os=-vxworks 1071c43cc173Smrg ;; 1072c43cc173Smrg vxworks29k) 1073c43cc173Smrg basic_machine=a29k-wrs 1074c43cc173Smrg os=-vxworks 1075c43cc173Smrg ;; 1076c43cc173Smrg w65*) 1077c43cc173Smrg basic_machine=w65-wdc 1078c43cc173Smrg os=-none 1079c43cc173Smrg ;; 1080c43cc173Smrg w89k-*) 1081c43cc173Smrg basic_machine=hppa1.1-winbond 1082c43cc173Smrg os=-proelf 1083c43cc173Smrg ;; 108421e67964Smrg xbox) 108521e67964Smrg basic_machine=i686-pc 108621e67964Smrg os=-mingw32 108721e67964Smrg ;; 1088c43cc173Smrg xps | xps100) 1089c43cc173Smrg basic_machine=xps100-honeywell 1090c43cc173Smrg ;; 1091c43cc173Smrg ymp) 1092c43cc173Smrg basic_machine=ymp-cray 1093c43cc173Smrg os=-unicos 1094c43cc173Smrg ;; 1095c43cc173Smrg z8k-*-coff) 1096c43cc173Smrg basic_machine=z8k-unknown 1097c43cc173Smrg os=-sim 1098c43cc173Smrg ;; 1099c43cc173Smrg none) 1100c43cc173Smrg basic_machine=none-none 1101c43cc173Smrg os=-none 1102c43cc173Smrg ;; 1103c43cc173Smrg 1104c43cc173Smrg# Here we handle the default manufacturer of certain CPU types. It is in 1105c43cc173Smrg# some cases the only manufacturer, in others, it is the most popular. 1106c43cc173Smrg w89k) 1107c43cc173Smrg basic_machine=hppa1.1-winbond 1108c43cc173Smrg ;; 1109c43cc173Smrg op50n) 1110c43cc173Smrg basic_machine=hppa1.1-oki 1111c43cc173Smrg ;; 1112c43cc173Smrg op60c) 1113c43cc173Smrg basic_machine=hppa1.1-oki 1114c43cc173Smrg ;; 1115c43cc173Smrg romp) 1116c43cc173Smrg basic_machine=romp-ibm 1117c43cc173Smrg ;; 111821e67964Smrg mmix) 111921e67964Smrg basic_machine=mmix-knuth 112021e67964Smrg ;; 1121c43cc173Smrg rs6000) 1122c43cc173Smrg basic_machine=rs6000-ibm 1123c43cc173Smrg ;; 1124c43cc173Smrg vax) 1125c43cc173Smrg basic_machine=vax-dec 1126c43cc173Smrg ;; 1127c43cc173Smrg pdp10) 1128c43cc173Smrg # there are many clones, so DEC is not a safe bet 1129c43cc173Smrg basic_machine=pdp10-unknown 1130c43cc173Smrg ;; 1131c43cc173Smrg pdp11) 1132c43cc173Smrg basic_machine=pdp11-dec 1133c43cc173Smrg ;; 1134c43cc173Smrg we32k) 1135c43cc173Smrg basic_machine=we32k-att 1136c43cc173Smrg ;; 113721e67964Smrg sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele) 1138c43cc173Smrg basic_machine=sh-unknown 1139c43cc173Smrg ;; 114021e67964Smrg sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v) 1141c43cc173Smrg basic_machine=sparc-sun 1142c43cc173Smrg ;; 1143c43cc173Smrg cydra) 1144c43cc173Smrg basic_machine=cydra-cydrome 1145c43cc173Smrg ;; 1146c43cc173Smrg orion) 1147c43cc173Smrg basic_machine=orion-highlevel 1148c43cc173Smrg ;; 1149c43cc173Smrg orion105) 1150c43cc173Smrg basic_machine=clipper-highlevel 1151c43cc173Smrg ;; 1152c43cc173Smrg mac | mpw | mac-mpw) 1153c43cc173Smrg basic_machine=m68k-apple 1154c43cc173Smrg ;; 1155c43cc173Smrg pmac | pmac-mpw) 1156c43cc173Smrg basic_machine=powerpc-apple 1157c43cc173Smrg ;; 1158c43cc173Smrg *-unknown) 1159c43cc173Smrg # Make sure to match an already-canonicalized machine name. 1160c43cc173Smrg ;; 1161c43cc173Smrg *) 1162c43cc173Smrg echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 1163c43cc173Smrg exit 1 1164c43cc173Smrg ;; 1165c43cc173Smrgesac 1166c43cc173Smrg 1167c43cc173Smrg# Here we canonicalize certain aliases for manufacturers. 1168c43cc173Smrgcase $basic_machine in 1169c43cc173Smrg *-digital*) 1170c43cc173Smrg basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'` 1171c43cc173Smrg ;; 1172c43cc173Smrg *-commodore*) 1173c43cc173Smrg basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'` 1174c43cc173Smrg ;; 1175c43cc173Smrg *) 1176c43cc173Smrg ;; 1177c43cc173Smrgesac 1178c43cc173Smrg 1179c43cc173Smrg# Decode manufacturer-specific aliases for certain operating systems. 1180c43cc173Smrg 1181c43cc173Smrgif [ x"$os" != x"" ] 1182c43cc173Smrgthen 1183c43cc173Smrgcase $os in 1184c43cc173Smrg # First match some system type aliases 1185c43cc173Smrg # that might get confused with valid system types. 1186c43cc173Smrg # -solaris* is a basic system type, with this one exception. 1187c43cc173Smrg -solaris1 | -solaris1.*) 1188c43cc173Smrg os=`echo $os | sed -e 's|solaris1|sunos4|'` 1189c43cc173Smrg ;; 1190c43cc173Smrg -solaris) 1191c43cc173Smrg os=-solaris2 1192c43cc173Smrg ;; 1193c43cc173Smrg -svr4*) 1194c43cc173Smrg os=-sysv4 1195c43cc173Smrg ;; 1196c43cc173Smrg -unixware*) 1197c43cc173Smrg os=-sysv4.2uw 1198c43cc173Smrg ;; 1199c43cc173Smrg -gnu/linux*) 1200c43cc173Smrg os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'` 1201c43cc173Smrg ;; 1202c43cc173Smrg # First accept the basic system types. 1203c43cc173Smrg # The portable systems comes first. 1204c43cc173Smrg # Each alternative MUST END IN A *, to match a version number. 1205c43cc173Smrg # -sysv* is not here because it comes later, after sysvr4. 1206c43cc173Smrg -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ 1207c43cc173Smrg | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\ 1208c43cc173Smrg | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \ 1209c43cc173Smrg | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ 1210c43cc173Smrg | -aos* \ 1211c43cc173Smrg | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ 1212c43cc173Smrg | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ 121321e67964Smrg | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \ 121421e67964Smrg | -openbsd* | -solidbsd* \ 121521e67964Smrg | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ 121621e67964Smrg | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ 1217c43cc173Smrg | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ 1218c43cc173Smrg | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ 1219c43cc173Smrg | -chorusos* | -chorusrdb* \ 1220c43cc173Smrg | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ 122121e67964Smrg | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \ 122221e67964Smrg | -uxpv* | -beos* | -mpeix* | -udk* \ 1223c43cc173Smrg | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ 1224c43cc173Smrg | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ 1225c43cc173Smrg | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ 1226c43cc173Smrg | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ 1227c43cc173Smrg | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ 122821e67964Smrg | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ 122921e67964Smrg | -skyos* | -haiku* | -rdos* | -toppers* | -drops*) 1230c43cc173Smrg # Remember, each alternative MUST END IN *, to match a version number. 1231c43cc173Smrg ;; 1232c43cc173Smrg -qnx*) 1233c43cc173Smrg case $basic_machine in 1234c43cc173Smrg x86-* | i*86-*) 1235c43cc173Smrg ;; 1236c43cc173Smrg *) 1237c43cc173Smrg os=-nto$os 1238c43cc173Smrg ;; 1239c43cc173Smrg esac 1240c43cc173Smrg ;; 1241c43cc173Smrg -nto-qnx*) 1242c43cc173Smrg ;; 1243c43cc173Smrg -nto*) 1244c43cc173Smrg os=`echo $os | sed -e 's|nto|nto-qnx|'` 1245c43cc173Smrg ;; 1246c43cc173Smrg -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ 124721e67964Smrg | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \ 1248c43cc173Smrg | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) 1249c43cc173Smrg ;; 1250c43cc173Smrg -mac*) 1251c43cc173Smrg os=`echo $os | sed -e 's|mac|macos|'` 1252c43cc173Smrg ;; 125321e67964Smrg -linux-dietlibc) 125421e67964Smrg os=-linux-dietlibc 125521e67964Smrg ;; 1256c43cc173Smrg -linux*) 1257c43cc173Smrg os=`echo $os | sed -e 's|linux|linux-gnu|'` 1258c43cc173Smrg ;; 1259c43cc173Smrg -sunos5*) 1260c43cc173Smrg os=`echo $os | sed -e 's|sunos5|solaris2|'` 1261c43cc173Smrg ;; 1262c43cc173Smrg -sunos6*) 1263c43cc173Smrg os=`echo $os | sed -e 's|sunos6|solaris3|'` 1264c43cc173Smrg ;; 1265c43cc173Smrg -opened*) 1266c43cc173Smrg os=-openedition 1267c43cc173Smrg ;; 126821e67964Smrg -os400*) 126921e67964Smrg os=-os400 127021e67964Smrg ;; 1271c43cc173Smrg -wince*) 1272c43cc173Smrg os=-wince 1273c43cc173Smrg ;; 1274c43cc173Smrg -osfrose*) 1275c43cc173Smrg os=-osfrose 1276c43cc173Smrg ;; 1277c43cc173Smrg -osf*) 1278c43cc173Smrg os=-osf 1279c43cc173Smrg ;; 1280c43cc173Smrg -utek*) 1281c43cc173Smrg os=-bsd 1282c43cc173Smrg ;; 1283c43cc173Smrg -dynix*) 1284c43cc173Smrg os=-bsd 1285c43cc173Smrg ;; 1286c43cc173Smrg -acis*) 1287c43cc173Smrg os=-aos 1288c43cc173Smrg ;; 1289c43cc173Smrg -atheos*) 1290c43cc173Smrg os=-atheos 1291c43cc173Smrg ;; 129221e67964Smrg -syllable*) 129321e67964Smrg os=-syllable 129421e67964Smrg ;; 1295c43cc173Smrg -386bsd) 1296c43cc173Smrg os=-bsd 1297c43cc173Smrg ;; 1298c43cc173Smrg -ctix* | -uts*) 1299c43cc173Smrg os=-sysv 1300c43cc173Smrg ;; 1301c43cc173Smrg -nova*) 1302c43cc173Smrg os=-rtmk-nova 1303c43cc173Smrg ;; 1304c43cc173Smrg -ns2 ) 1305c43cc173Smrg os=-nextstep2 1306c43cc173Smrg ;; 1307c43cc173Smrg -nsk*) 1308c43cc173Smrg os=-nsk 1309c43cc173Smrg ;; 1310c43cc173Smrg # Preserve the version number of sinix5. 1311c43cc173Smrg -sinix5.*) 1312c43cc173Smrg os=`echo $os | sed -e 's|sinix|sysv|'` 1313c43cc173Smrg ;; 1314c43cc173Smrg -sinix*) 1315c43cc173Smrg os=-sysv4 1316c43cc173Smrg ;; 131721e67964Smrg -tpf*) 131821e67964Smrg os=-tpf 131921e67964Smrg ;; 1320c43cc173Smrg -triton*) 1321c43cc173Smrg os=-sysv3 1322c43cc173Smrg ;; 1323c43cc173Smrg -oss*) 1324c43cc173Smrg os=-sysv3 1325c43cc173Smrg ;; 1326c43cc173Smrg -svr4) 1327c43cc173Smrg os=-sysv4 1328c43cc173Smrg ;; 1329c43cc173Smrg -svr3) 1330c43cc173Smrg os=-sysv3 1331c43cc173Smrg ;; 1332c43cc173Smrg -sysvr4) 1333c43cc173Smrg os=-sysv4 1334c43cc173Smrg ;; 1335c43cc173Smrg # This must come after -sysvr4. 1336c43cc173Smrg -sysv*) 1337c43cc173Smrg ;; 1338c43cc173Smrg -ose*) 1339c43cc173Smrg os=-ose 1340c43cc173Smrg ;; 1341c43cc173Smrg -es1800*) 1342c43cc173Smrg os=-ose 1343c43cc173Smrg ;; 1344c43cc173Smrg -xenix) 1345c43cc173Smrg os=-xenix 1346c43cc173Smrg ;; 1347c43cc173Smrg -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) 1348c43cc173Smrg os=-mint 1349c43cc173Smrg ;; 1350c43cc173Smrg -aros*) 1351c43cc173Smrg os=-aros 1352c43cc173Smrg ;; 1353c43cc173Smrg -kaos*) 1354c43cc173Smrg os=-kaos 1355c43cc173Smrg ;; 135621e67964Smrg -zvmoe) 135721e67964Smrg os=-zvmoe 135821e67964Smrg ;; 1359c43cc173Smrg -none) 1360c43cc173Smrg ;; 1361c43cc173Smrg *) 1362c43cc173Smrg # Get rid of the `-' at the beginning of $os. 1363c43cc173Smrg os=`echo $os | sed 's/[^-]*-//'` 1364c43cc173Smrg echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2 1365c43cc173Smrg exit 1 1366c43cc173Smrg ;; 1367c43cc173Smrgesac 1368c43cc173Smrgelse 1369c43cc173Smrg 1370c43cc173Smrg# Here we handle the default operating systems that come with various machines. 1371c43cc173Smrg# The value should be what the vendor currently ships out the door with their 1372c43cc173Smrg# machine or put another way, the most popular os provided with the machine. 1373c43cc173Smrg 1374c43cc173Smrg# Note that if you're going to try to match "-MANUFACTURER" here (say, 1375c43cc173Smrg# "-sun"), then you have to tell the case statement up towards the top 1376c43cc173Smrg# that MANUFACTURER isn't an operating system. Otherwise, code above 1377c43cc173Smrg# will signal an error saying that MANUFACTURER isn't an operating 1378c43cc173Smrg# system, and we'll never get to this point. 1379c43cc173Smrg 1380c43cc173Smrgcase $basic_machine in 138121e67964Smrg score-*) 138221e67964Smrg os=-elf 138321e67964Smrg ;; 138421e67964Smrg spu-*) 138521e67964Smrg os=-elf 138621e67964Smrg ;; 1387c43cc173Smrg *-acorn) 1388c43cc173Smrg os=-riscix1.2 1389c43cc173Smrg ;; 1390c43cc173Smrg arm*-rebel) 1391c43cc173Smrg os=-linux 1392c43cc173Smrg ;; 1393c43cc173Smrg arm*-semi) 1394c43cc173Smrg os=-aout 1395c43cc173Smrg ;; 139621e67964Smrg c4x-* | tic4x-*) 139721e67964Smrg os=-coff 139821e67964Smrg ;; 1399c43cc173Smrg # This must come before the *-dec entry. 1400c43cc173Smrg pdp10-*) 1401c43cc173Smrg os=-tops20 1402c43cc173Smrg ;; 1403c43cc173Smrg pdp11-*) 1404c43cc173Smrg os=-none 1405c43cc173Smrg ;; 1406c43cc173Smrg *-dec | vax-*) 1407c43cc173Smrg os=-ultrix4.2 1408c43cc173Smrg ;; 1409c43cc173Smrg m68*-apollo) 1410c43cc173Smrg os=-domain 1411c43cc173Smrg ;; 1412c43cc173Smrg i386-sun) 1413c43cc173Smrg os=-sunos4.0.2 1414c43cc173Smrg ;; 1415c43cc173Smrg m68000-sun) 1416c43cc173Smrg os=-sunos3 1417c43cc173Smrg # This also exists in the configure program, but was not the 1418c43cc173Smrg # default. 1419c43cc173Smrg # os=-sunos4 1420c43cc173Smrg ;; 1421c43cc173Smrg m68*-cisco) 1422c43cc173Smrg os=-aout 1423c43cc173Smrg ;; 142421e67964Smrg mep-*) 142521e67964Smrg os=-elf 142621e67964Smrg ;; 1427c43cc173Smrg mips*-cisco) 1428c43cc173Smrg os=-elf 1429c43cc173Smrg ;; 1430c43cc173Smrg mips*-*) 1431c43cc173Smrg os=-elf 1432c43cc173Smrg ;; 1433c43cc173Smrg or32-*) 1434c43cc173Smrg os=-coff 1435c43cc173Smrg ;; 1436c43cc173Smrg *-tti) # must be before sparc entry or we get the wrong os. 1437c43cc173Smrg os=-sysv3 1438c43cc173Smrg ;; 1439c43cc173Smrg sparc-* | *-sun) 1440c43cc173Smrg os=-sunos4.1.1 1441c43cc173Smrg ;; 1442c43cc173Smrg *-be) 1443c43cc173Smrg os=-beos 1444c43cc173Smrg ;; 144521e67964Smrg *-haiku) 144621e67964Smrg os=-haiku 144721e67964Smrg ;; 1448c43cc173Smrg *-ibm) 1449c43cc173Smrg os=-aix 1450c43cc173Smrg ;; 145121e67964Smrg *-knuth) 145221e67964Smrg os=-mmixware 145321e67964Smrg ;; 1454c43cc173Smrg *-wec) 1455c43cc173Smrg os=-proelf 1456c43cc173Smrg ;; 1457c43cc173Smrg *-winbond) 1458c43cc173Smrg os=-proelf 1459c43cc173Smrg ;; 1460c43cc173Smrg *-oki) 1461c43cc173Smrg os=-proelf 1462c43cc173Smrg ;; 1463c43cc173Smrg *-hp) 1464c43cc173Smrg os=-hpux 1465c43cc173Smrg ;; 1466c43cc173Smrg *-hitachi) 1467c43cc173Smrg os=-hiux 1468c43cc173Smrg ;; 1469c43cc173Smrg i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent) 1470c43cc173Smrg os=-sysv 1471c43cc173Smrg ;; 1472c43cc173Smrg *-cbm) 1473c43cc173Smrg os=-amigaos 1474c43cc173Smrg ;; 1475c43cc173Smrg *-dg) 1476c43cc173Smrg os=-dgux 1477c43cc173Smrg ;; 1478c43cc173Smrg *-dolphin) 1479c43cc173Smrg os=-sysv3 1480c43cc173Smrg ;; 1481c43cc173Smrg m68k-ccur) 1482c43cc173Smrg os=-rtu 1483c43cc173Smrg ;; 1484c43cc173Smrg m88k-omron*) 1485c43cc173Smrg os=-luna 1486c43cc173Smrg ;; 1487c43cc173Smrg *-next ) 1488c43cc173Smrg os=-nextstep 1489c43cc173Smrg ;; 1490c43cc173Smrg *-sequent) 1491c43cc173Smrg os=-ptx 1492c43cc173Smrg ;; 1493c43cc173Smrg *-crds) 1494c43cc173Smrg os=-unos 1495c43cc173Smrg ;; 1496c43cc173Smrg *-ns) 1497c43cc173Smrg os=-genix 1498c43cc173Smrg ;; 1499c43cc173Smrg i370-*) 1500c43cc173Smrg os=-mvs 1501c43cc173Smrg ;; 1502c43cc173Smrg *-next) 1503c43cc173Smrg os=-nextstep3 1504c43cc173Smrg ;; 1505c43cc173Smrg *-gould) 1506c43cc173Smrg os=-sysv 1507c43cc173Smrg ;; 1508c43cc173Smrg *-highlevel) 1509c43cc173Smrg os=-bsd 1510c43cc173Smrg ;; 1511c43cc173Smrg *-encore) 1512c43cc173Smrg os=-bsd 1513c43cc173Smrg ;; 1514c43cc173Smrg *-sgi) 1515c43cc173Smrg os=-irix 1516c43cc173Smrg ;; 1517c43cc173Smrg *-siemens) 1518c43cc173Smrg os=-sysv4 1519c43cc173Smrg ;; 1520c43cc173Smrg *-masscomp) 1521c43cc173Smrg os=-rtu 1522c43cc173Smrg ;; 1523c43cc173Smrg f30[01]-fujitsu | f700-fujitsu) 1524c43cc173Smrg os=-uxpv 1525c43cc173Smrg ;; 1526c43cc173Smrg *-rom68k) 1527c43cc173Smrg os=-coff 1528c43cc173Smrg ;; 1529c43cc173Smrg *-*bug) 1530c43cc173Smrg os=-coff 1531c43cc173Smrg ;; 1532c43cc173Smrg *-apple) 1533c43cc173Smrg os=-macos 1534c43cc173Smrg ;; 1535c43cc173Smrg *-atari*) 1536c43cc173Smrg os=-mint 1537c43cc173Smrg ;; 1538c43cc173Smrg *) 1539c43cc173Smrg os=-none 1540c43cc173Smrg ;; 1541c43cc173Smrgesac 1542c43cc173Smrgfi 1543c43cc173Smrg 1544c43cc173Smrg# Here we handle the case where we know the os, and the CPU type, but not the 1545c43cc173Smrg# manufacturer. We pick the logical manufacturer. 1546c43cc173Smrgvendor=unknown 1547c43cc173Smrgcase $basic_machine in 1548c43cc173Smrg *-unknown) 1549c43cc173Smrg case $os in 1550c43cc173Smrg -riscix*) 1551c43cc173Smrg vendor=acorn 1552c43cc173Smrg ;; 1553c43cc173Smrg -sunos*) 1554c43cc173Smrg vendor=sun 1555c43cc173Smrg ;; 1556c43cc173Smrg -aix*) 1557c43cc173Smrg vendor=ibm 1558c43cc173Smrg ;; 1559c43cc173Smrg -beos*) 1560c43cc173Smrg vendor=be 1561c43cc173Smrg ;; 1562c43cc173Smrg -hpux*) 1563c43cc173Smrg vendor=hp 1564c43cc173Smrg ;; 1565c43cc173Smrg -mpeix*) 1566c43cc173Smrg vendor=hp 1567c43cc173Smrg ;; 1568c43cc173Smrg -hiux*) 1569c43cc173Smrg vendor=hitachi 1570c43cc173Smrg ;; 1571c43cc173Smrg -unos*) 1572c43cc173Smrg vendor=crds 1573c43cc173Smrg ;; 1574c43cc173Smrg -dgux*) 1575c43cc173Smrg vendor=dg 1576c43cc173Smrg ;; 1577c43cc173Smrg -luna*) 1578c43cc173Smrg vendor=omron 1579c43cc173Smrg ;; 1580c43cc173Smrg -genix*) 1581c43cc173Smrg vendor=ns 1582c43cc173Smrg ;; 1583c43cc173Smrg -mvs* | -opened*) 1584c43cc173Smrg vendor=ibm 1585c43cc173Smrg ;; 158621e67964Smrg -os400*) 158721e67964Smrg vendor=ibm 158821e67964Smrg ;; 1589c43cc173Smrg -ptx*) 1590c43cc173Smrg vendor=sequent 1591c43cc173Smrg ;; 159221e67964Smrg -tpf*) 159321e67964Smrg vendor=ibm 159421e67964Smrg ;; 1595c43cc173Smrg -vxsim* | -vxworks* | -windiss*) 1596c43cc173Smrg vendor=wrs 1597c43cc173Smrg ;; 1598c43cc173Smrg -aux*) 1599c43cc173Smrg vendor=apple 1600c43cc173Smrg ;; 1601c43cc173Smrg -hms*) 1602c43cc173Smrg vendor=hitachi 1603c43cc173Smrg ;; 1604c43cc173Smrg -mpw* | -macos*) 1605c43cc173Smrg vendor=apple 1606c43cc173Smrg ;; 1607c43cc173Smrg -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) 1608c43cc173Smrg vendor=atari 1609c43cc173Smrg ;; 1610c43cc173Smrg -vos*) 1611c43cc173Smrg vendor=stratus 1612c43cc173Smrg ;; 1613c43cc173Smrg esac 1614c43cc173Smrg basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` 1615c43cc173Smrg ;; 1616c43cc173Smrgesac 1617c43cc173Smrg 1618c43cc173Smrgecho $basic_machine$os 161921e67964Smrgexit 1620c43cc173Smrg 1621c43cc173Smrg# Local variables: 1622c43cc173Smrg# eval: (add-hook 'write-file-hooks 'time-stamp) 1623c43cc173Smrg# time-stamp-start: "timestamp='" 1624c43cc173Smrg# time-stamp-format: "%:y-%02m-%02d" 1625c43cc173Smrg# time-stamp-end: "'" 1626c43cc173Smrg# End: 1627