config.sub revision 123e2cc7
17da8b7e3Smrg#! /bin/sh 27da8b7e3Smrg# Configuration validation subroutine script. 37da8b7e3Smrg# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 4123e2cc7Smrg# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 5123e2cc7Smrg# Free Software Foundation, Inc. 67da8b7e3Smrg 7123e2cc7Smrgtimestamp='2009-04-17' 87da8b7e3Smrg 97da8b7e3Smrg# This file is (in principle) common to ALL GNU software. 107da8b7e3Smrg# The presence of a machine in this file suggests that SOME GNU software 117da8b7e3Smrg# can handle that machine. It does not imply ALL GNU software can. 127da8b7e3Smrg# 137da8b7e3Smrg# This file is free software; you can redistribute it and/or modify 147da8b7e3Smrg# it under the terms of the GNU General Public License as published by 157da8b7e3Smrg# the Free Software Foundation; either version 2 of the License, or 167da8b7e3Smrg# (at your option) any later version. 177da8b7e3Smrg# 187da8b7e3Smrg# This program is distributed in the hope that it will be useful, 197da8b7e3Smrg# but WITHOUT ANY WARRANTY; without even the implied warranty of 207da8b7e3Smrg# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 217da8b7e3Smrg# GNU General Public License for more details. 227da8b7e3Smrg# 237da8b7e3Smrg# You should have received a copy of the GNU General Public License 247da8b7e3Smrg# along with this program; if not, write to the Free Software 257da8b7e3Smrg# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 267da8b7e3Smrg# 02110-1301, USA. 277da8b7e3Smrg# 287da8b7e3Smrg# As a special exception to the GNU General Public License, if you 297da8b7e3Smrg# distribute this file as part of a program that contains a 307da8b7e3Smrg# configuration script generated by Autoconf, you may include it under 317da8b7e3Smrg# the same distribution terms that you use for the rest of that program. 327da8b7e3Smrg 337da8b7e3Smrg 347da8b7e3Smrg# Please send patches to <config-patches@gnu.org>. Submit a context 357da8b7e3Smrg# diff and a properly formatted ChangeLog entry. 367da8b7e3Smrg# 377da8b7e3Smrg# Configuration subroutine to validate and canonicalize a configuration type. 387da8b7e3Smrg# Supply the specified configuration type as an argument. 397da8b7e3Smrg# If it is invalid, we print an error message on stderr and exit with code 1. 407da8b7e3Smrg# Otherwise, we print the canonical config type on stdout and succeed. 417da8b7e3Smrg 427da8b7e3Smrg# This file is supposed to be the same for all GNU packages 437da8b7e3Smrg# and recognize all the CPU types, system types and aliases 447da8b7e3Smrg# that are meaningful with *any* GNU software. 457da8b7e3Smrg# Each package is responsible for reporting which valid configurations 467da8b7e3Smrg# it does not support. The user should be able to distinguish 477da8b7e3Smrg# a failure to support a valid configuration from a meaningless 487da8b7e3Smrg# configuration. 497da8b7e3Smrg 507da8b7e3Smrg# The goal of this file is to map all the various variations of a given 517da8b7e3Smrg# machine specification into a single specification in the form: 527da8b7e3Smrg# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM 537da8b7e3Smrg# or in some cases, the newer four-part form: 547da8b7e3Smrg# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM 557da8b7e3Smrg# It is wrong to echo any other type of specification. 567da8b7e3Smrg 577da8b7e3Smrgme=`echo "$0" | sed -e 's,.*/,,'` 587da8b7e3Smrg 597da8b7e3Smrgusage="\ 607da8b7e3SmrgUsage: $0 [OPTION] CPU-MFR-OPSYS 617da8b7e3Smrg $0 [OPTION] ALIAS 627da8b7e3Smrg 637da8b7e3SmrgCanonicalize a configuration name. 647da8b7e3Smrg 657da8b7e3SmrgOperation modes: 667da8b7e3Smrg -h, --help print this help, then exit 677da8b7e3Smrg -t, --time-stamp print date of last modification, then exit 687da8b7e3Smrg -v, --version print version number, then exit 697da8b7e3Smrg 707da8b7e3SmrgReport bugs and patches to <config-patches@gnu.org>." 717da8b7e3Smrg 727da8b7e3Smrgversion="\ 737da8b7e3SmrgGNU config.sub ($timestamp) 747da8b7e3Smrg 75123e2cc7SmrgCopyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 76123e2cc7Smrg2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 777da8b7e3Smrg 787da8b7e3SmrgThis is free software; see the source for copying conditions. There is NO 797da8b7e3Smrgwarranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." 807da8b7e3Smrg 817da8b7e3Smrghelp=" 827da8b7e3SmrgTry \`$me --help' for more information." 837da8b7e3Smrg 847da8b7e3Smrg# Parse command line 857da8b7e3Smrgwhile test $# -gt 0 ; do 867da8b7e3Smrg case $1 in 877da8b7e3Smrg --time-stamp | --time* | -t ) 887da8b7e3Smrg echo "$timestamp" ; exit ;; 897da8b7e3Smrg --version | -v ) 907da8b7e3Smrg echo "$version" ; exit ;; 917da8b7e3Smrg --help | --h* | -h ) 927da8b7e3Smrg echo "$usage"; exit ;; 937da8b7e3Smrg -- ) # Stop option processing 947da8b7e3Smrg shift; break ;; 957da8b7e3Smrg - ) # Use stdin as input. 967da8b7e3Smrg break ;; 977da8b7e3Smrg -* ) 987da8b7e3Smrg echo "$me: invalid option $1$help" 997da8b7e3Smrg exit 1 ;; 1007da8b7e3Smrg 1017da8b7e3Smrg *local*) 1027da8b7e3Smrg # First pass through any local machine types. 1037da8b7e3Smrg echo $1 1047da8b7e3Smrg exit ;; 1057da8b7e3Smrg 1067da8b7e3Smrg * ) 1077da8b7e3Smrg break ;; 1087da8b7e3Smrg esac 1097da8b7e3Smrgdone 1107da8b7e3Smrg 1117da8b7e3Smrgcase $# in 1127da8b7e3Smrg 0) echo "$me: missing argument$help" >&2 1137da8b7e3Smrg exit 1;; 1147da8b7e3Smrg 1) ;; 1157da8b7e3Smrg *) echo "$me: too many arguments$help" >&2 1167da8b7e3Smrg exit 1;; 1177da8b7e3Smrgesac 1187da8b7e3Smrg 1197da8b7e3Smrg# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). 1207da8b7e3Smrg# Here we must recognize all the valid KERNEL-OS combinations. 1217da8b7e3Smrgmaybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` 1227da8b7e3Smrgcase $maybe_os in 123123e2cc7Smrg nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \ 124123e2cc7Smrg uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \ 125123e2cc7Smrg kopensolaris*-gnu* | \ 126123e2cc7Smrg storm-chaos* | os2-emx* | rtmk-nova*) 1277da8b7e3Smrg os=-$maybe_os 1287da8b7e3Smrg basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` 1297da8b7e3Smrg ;; 1307da8b7e3Smrg *) 1317da8b7e3Smrg basic_machine=`echo $1 | sed 's/-[^-]*$//'` 1327da8b7e3Smrg if [ $basic_machine != $1 ] 1337da8b7e3Smrg then os=`echo $1 | sed 's/.*-/-/'` 1347da8b7e3Smrg else os=; fi 1357da8b7e3Smrg ;; 1367da8b7e3Smrgesac 1377da8b7e3Smrg 1387da8b7e3Smrg### Let's recognize common machines as not being operating systems so 1397da8b7e3Smrg### that things like config.sub decstation-3100 work. We also 1407da8b7e3Smrg### recognize some manufacturers as not being operating systems, so we 1417da8b7e3Smrg### can provide default operating systems below. 1427da8b7e3Smrgcase $os in 1437da8b7e3Smrg -sun*os*) 1447da8b7e3Smrg # Prevent following clause from handling this invalid input. 1457da8b7e3Smrg ;; 1467da8b7e3Smrg -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \ 1477da8b7e3Smrg -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ 1487da8b7e3Smrg -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ 1497da8b7e3Smrg -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ 1507da8b7e3Smrg -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ 1517da8b7e3Smrg -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ 1527da8b7e3Smrg -apple | -axis | -knuth | -cray) 1537da8b7e3Smrg os= 1547da8b7e3Smrg basic_machine=$1 1557da8b7e3Smrg ;; 1567da8b7e3Smrg -sim | -cisco | -oki | -wec | -winbond) 1577da8b7e3Smrg os= 1587da8b7e3Smrg basic_machine=$1 1597da8b7e3Smrg ;; 1607da8b7e3Smrg -scout) 1617da8b7e3Smrg ;; 1627da8b7e3Smrg -wrs) 1637da8b7e3Smrg os=-vxworks 1647da8b7e3Smrg basic_machine=$1 1657da8b7e3Smrg ;; 1667da8b7e3Smrg -chorusos*) 1677da8b7e3Smrg os=-chorusos 1687da8b7e3Smrg basic_machine=$1 1697da8b7e3Smrg ;; 1707da8b7e3Smrg -chorusrdb) 1717da8b7e3Smrg os=-chorusrdb 1727da8b7e3Smrg basic_machine=$1 1737da8b7e3Smrg ;; 1747da8b7e3Smrg -hiux*) 1757da8b7e3Smrg os=-hiuxwe2 1767da8b7e3Smrg ;; 177123e2cc7Smrg -sco6) 178123e2cc7Smrg os=-sco5v6 179123e2cc7Smrg basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 180123e2cc7Smrg ;; 1817da8b7e3Smrg -sco5) 1827da8b7e3Smrg os=-sco3.2v5 1837da8b7e3Smrg basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 1847da8b7e3Smrg ;; 1857da8b7e3Smrg -sco4) 1867da8b7e3Smrg os=-sco3.2v4 1877da8b7e3Smrg basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 1887da8b7e3Smrg ;; 1897da8b7e3Smrg -sco3.2.[4-9]*) 1907da8b7e3Smrg os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` 1917da8b7e3Smrg basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 1927da8b7e3Smrg ;; 1937da8b7e3Smrg -sco3.2v[4-9]*) 1947da8b7e3Smrg # Don't forget version if it is 3.2v4 or newer. 1957da8b7e3Smrg basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 1967da8b7e3Smrg ;; 197123e2cc7Smrg -sco5v6*) 198123e2cc7Smrg # Don't forget version if it is 3.2v4 or newer. 199123e2cc7Smrg basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 200123e2cc7Smrg ;; 2017da8b7e3Smrg -sco*) 2027da8b7e3Smrg os=-sco3.2v2 2037da8b7e3Smrg basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 2047da8b7e3Smrg ;; 2057da8b7e3Smrg -udk*) 2067da8b7e3Smrg basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 2077da8b7e3Smrg ;; 2087da8b7e3Smrg -isc) 2097da8b7e3Smrg os=-isc2.2 2107da8b7e3Smrg basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 2117da8b7e3Smrg ;; 2127da8b7e3Smrg -clix*) 2137da8b7e3Smrg basic_machine=clipper-intergraph 2147da8b7e3Smrg ;; 2157da8b7e3Smrg -isc*) 2167da8b7e3Smrg basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 2177da8b7e3Smrg ;; 2187da8b7e3Smrg -lynx*) 2197da8b7e3Smrg os=-lynxos 2207da8b7e3Smrg ;; 2217da8b7e3Smrg -ptx*) 2227da8b7e3Smrg basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'` 2237da8b7e3Smrg ;; 2247da8b7e3Smrg -windowsnt*) 2257da8b7e3Smrg os=`echo $os | sed -e 's/windowsnt/winnt/'` 2267da8b7e3Smrg ;; 2277da8b7e3Smrg -psos*) 2287da8b7e3Smrg os=-psos 2297da8b7e3Smrg ;; 2307da8b7e3Smrg -mint | -mint[0-9]*) 2317da8b7e3Smrg basic_machine=m68k-atari 2327da8b7e3Smrg os=-mint 2337da8b7e3Smrg ;; 2347da8b7e3Smrgesac 2357da8b7e3Smrg 2367da8b7e3Smrg# Decode aliases for certain CPU-COMPANY combinations. 2377da8b7e3Smrgcase $basic_machine in 2387da8b7e3Smrg # Recognize the basic CPU types without company name. 2397da8b7e3Smrg # Some are omitted here because they have special meanings below. 2407da8b7e3Smrg 1750a | 580 \ 2417da8b7e3Smrg | a29k \ 2427da8b7e3Smrg | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ 2437da8b7e3Smrg | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ 2447da8b7e3Smrg | am33_2.0 \ 245123e2cc7Smrg | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \ 2467da8b7e3Smrg | bfin \ 2477da8b7e3Smrg | c4x | clipper \ 2487da8b7e3Smrg | d10v | d30v | dlx | dsp16xx \ 249123e2cc7Smrg | fido | fr30 | frv \ 2507da8b7e3Smrg | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ 2517da8b7e3Smrg | i370 | i860 | i960 | ia64 \ 2527da8b7e3Smrg | ip2k | iq2000 \ 253123e2cc7Smrg | lm32 \ 254123e2cc7Smrg | m32c | m32r | m32rle | m68000 | m68k | m88k \ 255123e2cc7Smrg | maxq | mb | microblaze | mcore | mep | metag \ 2567da8b7e3Smrg | mips | mipsbe | mipseb | mipsel | mipsle \ 2577da8b7e3Smrg | mips16 \ 2587da8b7e3Smrg | mips64 | mips64el \ 259123e2cc7Smrg | mips64octeon | mips64octeonel \ 2607da8b7e3Smrg | mips64orion | mips64orionel \ 261123e2cc7Smrg | mips64r5900 | mips64r5900el \ 262123e2cc7Smrg | mips64vr | mips64vrel \ 2637da8b7e3Smrg | mips64vr4100 | mips64vr4100el \ 2647da8b7e3Smrg | mips64vr4300 | mips64vr4300el \ 2657da8b7e3Smrg | mips64vr5000 | mips64vr5000el \ 2667da8b7e3Smrg | mips64vr5900 | mips64vr5900el \ 2677da8b7e3Smrg | mipsisa32 | mipsisa32el \ 2687da8b7e3Smrg | mipsisa32r2 | mipsisa32r2el \ 2697da8b7e3Smrg | mipsisa64 | mipsisa64el \ 2707da8b7e3Smrg | mipsisa64r2 | mipsisa64r2el \ 2717da8b7e3Smrg | mipsisa64sb1 | mipsisa64sb1el \ 2727da8b7e3Smrg | mipsisa64sr71k | mipsisa64sr71kel \ 2737da8b7e3Smrg | mipstx39 | mipstx39el \ 2747da8b7e3Smrg | mn10200 | mn10300 \ 275123e2cc7Smrg | moxie \ 276123e2cc7Smrg | mt \ 2777da8b7e3Smrg | msp430 \ 278123e2cc7Smrg | nios | nios2 \ 2797da8b7e3Smrg | ns16k | ns32k \ 2807da8b7e3Smrg | or32 \ 2817da8b7e3Smrg | pdp10 | pdp11 | pj | pjl \ 2827da8b7e3Smrg | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ 2837da8b7e3Smrg | pyramid \ 284123e2cc7Smrg | score \ 285123e2cc7Smrg | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ 2867da8b7e3Smrg | sh64 | sh64le \ 287123e2cc7Smrg | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ 288123e2cc7Smrg | sparcv8 | sparcv9 | sparcv9b | sparcv9v \ 289123e2cc7Smrg | spu | strongarm \ 2907da8b7e3Smrg | tahoe | thumb | tic4x | tic80 | tron \ 2917da8b7e3Smrg | v850 | v850e \ 2927da8b7e3Smrg | we32k \ 293123e2cc7Smrg | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \ 294123e2cc7Smrg | z8k | z80) 2957da8b7e3Smrg basic_machine=$basic_machine-unknown 2967da8b7e3Smrg ;; 2977da8b7e3Smrg m6811 | m68hc11 | m6812 | m68hc12) 2987da8b7e3Smrg # Motorola 68HC11/12. 2997da8b7e3Smrg basic_machine=$basic_machine-unknown 3007da8b7e3Smrg os=-none 3017da8b7e3Smrg ;; 3027da8b7e3Smrg m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) 3037da8b7e3Smrg ;; 304123e2cc7Smrg ms1) 305123e2cc7Smrg basic_machine=mt-unknown 306123e2cc7Smrg ;; 3077da8b7e3Smrg 3087da8b7e3Smrg # We use `pc' rather than `unknown' 3097da8b7e3Smrg # because (1) that's what they normally are, and 3107da8b7e3Smrg # (2) the word "unknown" tends to confuse beginning users. 3117da8b7e3Smrg i*86 | x86_64) 3127da8b7e3Smrg basic_machine=$basic_machine-pc 3137da8b7e3Smrg ;; 3147da8b7e3Smrg # Object if more than one company name word. 3157da8b7e3Smrg *-*-*) 3167da8b7e3Smrg echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 3177da8b7e3Smrg exit 1 3187da8b7e3Smrg ;; 3197da8b7e3Smrg # Recognize the basic CPU types with company name. 3207da8b7e3Smrg 580-* \ 3217da8b7e3Smrg | a29k-* \ 3227da8b7e3Smrg | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ 3237da8b7e3Smrg | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ 3247da8b7e3Smrg | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ 3257da8b7e3Smrg | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ 326123e2cc7Smrg | avr-* | avr32-* \ 3277da8b7e3Smrg | bfin-* | bs2000-* \ 3287da8b7e3Smrg | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \ 3297da8b7e3Smrg | clipper-* | craynv-* | cydra-* \ 3307da8b7e3Smrg | d10v-* | d30v-* | dlx-* \ 3317da8b7e3Smrg | elxsi-* \ 332123e2cc7Smrg | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \ 3337da8b7e3Smrg | h8300-* | h8500-* \ 3347da8b7e3Smrg | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ 3357da8b7e3Smrg | i*86-* | i860-* | i960-* | ia64-* \ 3367da8b7e3Smrg | ip2k-* | iq2000-* \ 337123e2cc7Smrg | lm32-* \ 338123e2cc7Smrg | m32c-* | m32r-* | m32rle-* \ 3397da8b7e3Smrg | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ 340123e2cc7Smrg | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \ 3417da8b7e3Smrg | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ 3427da8b7e3Smrg | mips16-* \ 3437da8b7e3Smrg | mips64-* | mips64el-* \ 344123e2cc7Smrg | mips64octeon-* | mips64octeonel-* \ 3457da8b7e3Smrg | mips64orion-* | mips64orionel-* \ 346123e2cc7Smrg | mips64r5900-* | mips64r5900el-* \ 347123e2cc7Smrg | mips64vr-* | mips64vrel-* \ 3487da8b7e3Smrg | mips64vr4100-* | mips64vr4100el-* \ 3497da8b7e3Smrg | mips64vr4300-* | mips64vr4300el-* \ 3507da8b7e3Smrg | mips64vr5000-* | mips64vr5000el-* \ 3517da8b7e3Smrg | mips64vr5900-* | mips64vr5900el-* \ 3527da8b7e3Smrg | mipsisa32-* | mipsisa32el-* \ 3537da8b7e3Smrg | mipsisa32r2-* | mipsisa32r2el-* \ 3547da8b7e3Smrg | mipsisa64-* | mipsisa64el-* \ 3557da8b7e3Smrg | mipsisa64r2-* | mipsisa64r2el-* \ 3567da8b7e3Smrg | mipsisa64sb1-* | mipsisa64sb1el-* \ 3577da8b7e3Smrg | mipsisa64sr71k-* | mipsisa64sr71kel-* \ 3587da8b7e3Smrg | mipstx39-* | mipstx39el-* \ 3597da8b7e3Smrg | mmix-* \ 360123e2cc7Smrg | mt-* \ 3617da8b7e3Smrg | msp430-* \ 362123e2cc7Smrg | nios-* | nios2-* \ 3637da8b7e3Smrg | none-* | np1-* | ns16k-* | ns32k-* \ 3647da8b7e3Smrg | orion-* \ 3657da8b7e3Smrg | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ 3667da8b7e3Smrg | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ 3677da8b7e3Smrg | pyramid-* \ 3687da8b7e3Smrg | romp-* | rs6000-* \ 369123e2cc7Smrg | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \ 3707da8b7e3Smrg | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ 371123e2cc7Smrg | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \ 3727da8b7e3Smrg | sparclite-* \ 373123e2cc7Smrg | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \ 3747da8b7e3Smrg | tahoe-* | thumb-* \ 375123e2cc7Smrg | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* | tile-* \ 3767da8b7e3Smrg | tron-* \ 3777da8b7e3Smrg | v850-* | v850e-* | vax-* \ 3787da8b7e3Smrg | we32k-* \ 379123e2cc7Smrg | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \ 380123e2cc7Smrg | xstormy16-* | xtensa*-* \ 3817da8b7e3Smrg | ymp-* \ 382123e2cc7Smrg | z8k-* | z80-*) 3837da8b7e3Smrg ;; 384123e2cc7Smrg # Recognize the basic CPU types without company name, with glob match. 385123e2cc7Smrg xtensa*) 386123e2cc7Smrg basic_machine=$basic_machine-unknown 3877da8b7e3Smrg ;; 3887da8b7e3Smrg # Recognize the various machine names and aliases which stand 3897da8b7e3Smrg # for a CPU type and a company and sometimes even an OS. 3907da8b7e3Smrg 386bsd) 3917da8b7e3Smrg basic_machine=i386-unknown 3927da8b7e3Smrg os=-bsd 3937da8b7e3Smrg ;; 3947da8b7e3Smrg 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) 3957da8b7e3Smrg basic_machine=m68000-att 3967da8b7e3Smrg ;; 3977da8b7e3Smrg 3b*) 3987da8b7e3Smrg basic_machine=we32k-att 3997da8b7e3Smrg ;; 4007da8b7e3Smrg a29khif) 4017da8b7e3Smrg basic_machine=a29k-amd 4027da8b7e3Smrg os=-udi 4037da8b7e3Smrg ;; 4047da8b7e3Smrg abacus) 4057da8b7e3Smrg basic_machine=abacus-unknown 4067da8b7e3Smrg ;; 4077da8b7e3Smrg adobe68k) 4087da8b7e3Smrg basic_machine=m68010-adobe 4097da8b7e3Smrg os=-scout 4107da8b7e3Smrg ;; 4117da8b7e3Smrg alliant | fx80) 4127da8b7e3Smrg basic_machine=fx80-alliant 4137da8b7e3Smrg ;; 4147da8b7e3Smrg altos | altos3068) 4157da8b7e3Smrg basic_machine=m68k-altos 4167da8b7e3Smrg ;; 4177da8b7e3Smrg am29k) 4187da8b7e3Smrg basic_machine=a29k-none 4197da8b7e3Smrg os=-bsd 4207da8b7e3Smrg ;; 4217da8b7e3Smrg amd64) 4227da8b7e3Smrg basic_machine=x86_64-pc 4237da8b7e3Smrg ;; 4247da8b7e3Smrg amd64-*) 4257da8b7e3Smrg basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'` 4267da8b7e3Smrg ;; 4277da8b7e3Smrg amdahl) 4287da8b7e3Smrg basic_machine=580-amdahl 4297da8b7e3Smrg os=-sysv 4307da8b7e3Smrg ;; 4317da8b7e3Smrg amiga | amiga-*) 4327da8b7e3Smrg basic_machine=m68k-unknown 4337da8b7e3Smrg ;; 4347da8b7e3Smrg amigaos | amigados) 4357da8b7e3Smrg basic_machine=m68k-unknown 4367da8b7e3Smrg os=-amigaos 4377da8b7e3Smrg ;; 4387da8b7e3Smrg amigaunix | amix) 4397da8b7e3Smrg basic_machine=m68k-unknown 4407da8b7e3Smrg os=-sysv4 4417da8b7e3Smrg ;; 4427da8b7e3Smrg apollo68) 4437da8b7e3Smrg basic_machine=m68k-apollo 4447da8b7e3Smrg os=-sysv 4457da8b7e3Smrg ;; 4467da8b7e3Smrg apollo68bsd) 4477da8b7e3Smrg basic_machine=m68k-apollo 4487da8b7e3Smrg os=-bsd 4497da8b7e3Smrg ;; 450123e2cc7Smrg aros) 451123e2cc7Smrg basic_machine=i386-pc 452123e2cc7Smrg os=-aros 453123e2cc7Smrg ;; 4547da8b7e3Smrg aux) 4557da8b7e3Smrg basic_machine=m68k-apple 4567da8b7e3Smrg os=-aux 4577da8b7e3Smrg ;; 4587da8b7e3Smrg balance) 4597da8b7e3Smrg basic_machine=ns32k-sequent 4607da8b7e3Smrg os=-dynix 4617da8b7e3Smrg ;; 462123e2cc7Smrg blackfin) 463123e2cc7Smrg basic_machine=bfin-unknown 464123e2cc7Smrg os=-linux 465123e2cc7Smrg ;; 466123e2cc7Smrg blackfin-*) 467123e2cc7Smrg basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'` 468123e2cc7Smrg os=-linux 469123e2cc7Smrg ;; 4707da8b7e3Smrg c90) 4717da8b7e3Smrg basic_machine=c90-cray 4727da8b7e3Smrg os=-unicos 4737da8b7e3Smrg ;; 474123e2cc7Smrg cegcc) 475123e2cc7Smrg basic_machine=arm-unknown 476123e2cc7Smrg os=-cegcc 477123e2cc7Smrg ;; 4787da8b7e3Smrg convex-c1) 4797da8b7e3Smrg basic_machine=c1-convex 4807da8b7e3Smrg os=-bsd 4817da8b7e3Smrg ;; 4827da8b7e3Smrg convex-c2) 4837da8b7e3Smrg basic_machine=c2-convex 4847da8b7e3Smrg os=-bsd 4857da8b7e3Smrg ;; 4867da8b7e3Smrg convex-c32) 4877da8b7e3Smrg basic_machine=c32-convex 4887da8b7e3Smrg os=-bsd 4897da8b7e3Smrg ;; 4907da8b7e3Smrg convex-c34) 4917da8b7e3Smrg basic_machine=c34-convex 4927da8b7e3Smrg os=-bsd 4937da8b7e3Smrg ;; 4947da8b7e3Smrg convex-c38) 4957da8b7e3Smrg basic_machine=c38-convex 4967da8b7e3Smrg os=-bsd 4977da8b7e3Smrg ;; 4987da8b7e3Smrg cray | j90) 4997da8b7e3Smrg basic_machine=j90-cray 5007da8b7e3Smrg os=-unicos 5017da8b7e3Smrg ;; 5027da8b7e3Smrg craynv) 5037da8b7e3Smrg basic_machine=craynv-cray 5047da8b7e3Smrg os=-unicosmp 5057da8b7e3Smrg ;; 506123e2cc7Smrg cr16) 507123e2cc7Smrg basic_machine=cr16-unknown 5087da8b7e3Smrg os=-elf 5097da8b7e3Smrg ;; 5107da8b7e3Smrg crds | unos) 5117da8b7e3Smrg basic_machine=m68k-crds 5127da8b7e3Smrg ;; 5137da8b7e3Smrg crisv32 | crisv32-* | etraxfs*) 5147da8b7e3Smrg basic_machine=crisv32-axis 5157da8b7e3Smrg ;; 5167da8b7e3Smrg cris | cris-* | etrax*) 5177da8b7e3Smrg basic_machine=cris-axis 5187da8b7e3Smrg ;; 5197da8b7e3Smrg crx) 5207da8b7e3Smrg basic_machine=crx-unknown 5217da8b7e3Smrg os=-elf 5227da8b7e3Smrg ;; 5237da8b7e3Smrg da30 | da30-*) 5247da8b7e3Smrg basic_machine=m68k-da30 5257da8b7e3Smrg ;; 5267da8b7e3Smrg decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn) 5277da8b7e3Smrg basic_machine=mips-dec 5287da8b7e3Smrg ;; 5297da8b7e3Smrg decsystem10* | dec10*) 5307da8b7e3Smrg basic_machine=pdp10-dec 5317da8b7e3Smrg os=-tops10 5327da8b7e3Smrg ;; 5337da8b7e3Smrg decsystem20* | dec20*) 5347da8b7e3Smrg basic_machine=pdp10-dec 5357da8b7e3Smrg os=-tops20 5367da8b7e3Smrg ;; 5377da8b7e3Smrg delta | 3300 | motorola-3300 | motorola-delta \ 5387da8b7e3Smrg | 3300-motorola | delta-motorola) 5397da8b7e3Smrg basic_machine=m68k-motorola 5407da8b7e3Smrg ;; 5417da8b7e3Smrg delta88) 5427da8b7e3Smrg basic_machine=m88k-motorola 5437da8b7e3Smrg os=-sysv3 5447da8b7e3Smrg ;; 545123e2cc7Smrg dicos) 546123e2cc7Smrg basic_machine=i686-pc 547123e2cc7Smrg os=-dicos 548123e2cc7Smrg ;; 5497da8b7e3Smrg djgpp) 5507da8b7e3Smrg basic_machine=i586-pc 5517da8b7e3Smrg os=-msdosdjgpp 5527da8b7e3Smrg ;; 5537da8b7e3Smrg dpx20 | dpx20-*) 5547da8b7e3Smrg basic_machine=rs6000-bull 5557da8b7e3Smrg os=-bosx 5567da8b7e3Smrg ;; 5577da8b7e3Smrg dpx2* | dpx2*-bull) 5587da8b7e3Smrg basic_machine=m68k-bull 5597da8b7e3Smrg os=-sysv3 5607da8b7e3Smrg ;; 5617da8b7e3Smrg ebmon29k) 5627da8b7e3Smrg basic_machine=a29k-amd 5637da8b7e3Smrg os=-ebmon 5647da8b7e3Smrg ;; 5657da8b7e3Smrg elxsi) 5667da8b7e3Smrg basic_machine=elxsi-elxsi 5677da8b7e3Smrg os=-bsd 5687da8b7e3Smrg ;; 5697da8b7e3Smrg encore | umax | mmax) 5707da8b7e3Smrg basic_machine=ns32k-encore 5717da8b7e3Smrg ;; 5727da8b7e3Smrg es1800 | OSE68k | ose68k | ose | OSE) 5737da8b7e3Smrg basic_machine=m68k-ericsson 5747da8b7e3Smrg os=-ose 5757da8b7e3Smrg ;; 5767da8b7e3Smrg fx2800) 5777da8b7e3Smrg basic_machine=i860-alliant 5787da8b7e3Smrg ;; 5797da8b7e3Smrg genix) 5807da8b7e3Smrg basic_machine=ns32k-ns 5817da8b7e3Smrg ;; 5827da8b7e3Smrg gmicro) 5837da8b7e3Smrg basic_machine=tron-gmicro 5847da8b7e3Smrg os=-sysv 5857da8b7e3Smrg ;; 5867da8b7e3Smrg go32) 5877da8b7e3Smrg basic_machine=i386-pc 5887da8b7e3Smrg os=-go32 5897da8b7e3Smrg ;; 5907da8b7e3Smrg h3050r* | hiux*) 5917da8b7e3Smrg basic_machine=hppa1.1-hitachi 5927da8b7e3Smrg os=-hiuxwe2 5937da8b7e3Smrg ;; 5947da8b7e3Smrg h8300hms) 5957da8b7e3Smrg basic_machine=h8300-hitachi 5967da8b7e3Smrg os=-hms 5977da8b7e3Smrg ;; 5987da8b7e3Smrg h8300xray) 5997da8b7e3Smrg basic_machine=h8300-hitachi 6007da8b7e3Smrg os=-xray 6017da8b7e3Smrg ;; 6027da8b7e3Smrg h8500hms) 6037da8b7e3Smrg basic_machine=h8500-hitachi 6047da8b7e3Smrg os=-hms 6057da8b7e3Smrg ;; 6067da8b7e3Smrg harris) 6077da8b7e3Smrg basic_machine=m88k-harris 6087da8b7e3Smrg os=-sysv3 6097da8b7e3Smrg ;; 6107da8b7e3Smrg hp300-*) 6117da8b7e3Smrg basic_machine=m68k-hp 6127da8b7e3Smrg ;; 6137da8b7e3Smrg hp300bsd) 6147da8b7e3Smrg basic_machine=m68k-hp 6157da8b7e3Smrg os=-bsd 6167da8b7e3Smrg ;; 6177da8b7e3Smrg hp300hpux) 6187da8b7e3Smrg basic_machine=m68k-hp 6197da8b7e3Smrg os=-hpux 6207da8b7e3Smrg ;; 6217da8b7e3Smrg hp3k9[0-9][0-9] | hp9[0-9][0-9]) 6227da8b7e3Smrg basic_machine=hppa1.0-hp 6237da8b7e3Smrg ;; 6247da8b7e3Smrg hp9k2[0-9][0-9] | hp9k31[0-9]) 6257da8b7e3Smrg basic_machine=m68000-hp 6267da8b7e3Smrg ;; 6277da8b7e3Smrg hp9k3[2-9][0-9]) 6287da8b7e3Smrg basic_machine=m68k-hp 6297da8b7e3Smrg ;; 6307da8b7e3Smrg hp9k6[0-9][0-9] | hp6[0-9][0-9]) 6317da8b7e3Smrg basic_machine=hppa1.0-hp 6327da8b7e3Smrg ;; 6337da8b7e3Smrg hp9k7[0-79][0-9] | hp7[0-79][0-9]) 6347da8b7e3Smrg basic_machine=hppa1.1-hp 6357da8b7e3Smrg ;; 6367da8b7e3Smrg hp9k78[0-9] | hp78[0-9]) 6377da8b7e3Smrg # FIXME: really hppa2.0-hp 6387da8b7e3Smrg basic_machine=hppa1.1-hp 6397da8b7e3Smrg ;; 6407da8b7e3Smrg hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893) 6417da8b7e3Smrg # FIXME: really hppa2.0-hp 6427da8b7e3Smrg basic_machine=hppa1.1-hp 6437da8b7e3Smrg ;; 6447da8b7e3Smrg hp9k8[0-9][13679] | hp8[0-9][13679]) 6457da8b7e3Smrg basic_machine=hppa1.1-hp 6467da8b7e3Smrg ;; 6477da8b7e3Smrg hp9k8[0-9][0-9] | hp8[0-9][0-9]) 6487da8b7e3Smrg basic_machine=hppa1.0-hp 6497da8b7e3Smrg ;; 6507da8b7e3Smrg hppa-next) 6517da8b7e3Smrg os=-nextstep3 6527da8b7e3Smrg ;; 6537da8b7e3Smrg hppaosf) 6547da8b7e3Smrg basic_machine=hppa1.1-hp 6557da8b7e3Smrg os=-osf 6567da8b7e3Smrg ;; 6577da8b7e3Smrg hppro) 6587da8b7e3Smrg basic_machine=hppa1.1-hp 6597da8b7e3Smrg os=-proelf 6607da8b7e3Smrg ;; 6617da8b7e3Smrg i370-ibm* | ibm*) 6627da8b7e3Smrg basic_machine=i370-ibm 6637da8b7e3Smrg ;; 6647da8b7e3Smrg# I'm not sure what "Sysv32" means. Should this be sysv3.2? 6657da8b7e3Smrg i*86v32) 6667da8b7e3Smrg basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` 6677da8b7e3Smrg os=-sysv32 6687da8b7e3Smrg ;; 6697da8b7e3Smrg i*86v4*) 6707da8b7e3Smrg basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` 6717da8b7e3Smrg os=-sysv4 6727da8b7e3Smrg ;; 6737da8b7e3Smrg i*86v) 6747da8b7e3Smrg basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` 6757da8b7e3Smrg os=-sysv 6767da8b7e3Smrg ;; 6777da8b7e3Smrg i*86sol2) 6787da8b7e3Smrg basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` 6797da8b7e3Smrg os=-solaris2 6807da8b7e3Smrg ;; 6817da8b7e3Smrg i386mach) 6827da8b7e3Smrg basic_machine=i386-mach 6837da8b7e3Smrg os=-mach 6847da8b7e3Smrg ;; 6857da8b7e3Smrg i386-vsta | vsta) 6867da8b7e3Smrg basic_machine=i386-unknown 6877da8b7e3Smrg os=-vsta 6887da8b7e3Smrg ;; 6897da8b7e3Smrg iris | iris4d) 6907da8b7e3Smrg basic_machine=mips-sgi 6917da8b7e3Smrg case $os in 6927da8b7e3Smrg -irix*) 6937da8b7e3Smrg ;; 6947da8b7e3Smrg *) 6957da8b7e3Smrg os=-irix4 6967da8b7e3Smrg ;; 6977da8b7e3Smrg esac 6987da8b7e3Smrg ;; 6997da8b7e3Smrg isi68 | isi) 7007da8b7e3Smrg basic_machine=m68k-isi 7017da8b7e3Smrg os=-sysv 7027da8b7e3Smrg ;; 703123e2cc7Smrg m68knommu) 704123e2cc7Smrg basic_machine=m68k-unknown 705123e2cc7Smrg os=-linux 706123e2cc7Smrg ;; 707123e2cc7Smrg m68knommu-*) 708123e2cc7Smrg basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'` 709123e2cc7Smrg os=-linux 710123e2cc7Smrg ;; 7117da8b7e3Smrg m88k-omron*) 7127da8b7e3Smrg basic_machine=m88k-omron 7137da8b7e3Smrg ;; 7147da8b7e3Smrg magnum | m3230) 7157da8b7e3Smrg basic_machine=mips-mips 7167da8b7e3Smrg os=-sysv 7177da8b7e3Smrg ;; 7187da8b7e3Smrg merlin) 7197da8b7e3Smrg basic_machine=ns32k-utek 7207da8b7e3Smrg os=-sysv 7217da8b7e3Smrg ;; 7227da8b7e3Smrg mingw32) 7237da8b7e3Smrg basic_machine=i386-pc 7247da8b7e3Smrg os=-mingw32 7257da8b7e3Smrg ;; 726123e2cc7Smrg mingw32ce) 727123e2cc7Smrg basic_machine=arm-unknown 728123e2cc7Smrg os=-mingw32ce 729123e2cc7Smrg ;; 7307da8b7e3Smrg miniframe) 7317da8b7e3Smrg basic_machine=m68000-convergent 7327da8b7e3Smrg ;; 7337da8b7e3Smrg *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*) 7347da8b7e3Smrg basic_machine=m68k-atari 7357da8b7e3Smrg os=-mint 7367da8b7e3Smrg ;; 7377da8b7e3Smrg mips3*-*) 7387da8b7e3Smrg basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` 7397da8b7e3Smrg ;; 7407da8b7e3Smrg mips3*) 7417da8b7e3Smrg basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown 7427da8b7e3Smrg ;; 7437da8b7e3Smrg monitor) 7447da8b7e3Smrg basic_machine=m68k-rom68k 7457da8b7e3Smrg os=-coff 7467da8b7e3Smrg ;; 7477da8b7e3Smrg morphos) 7487da8b7e3Smrg basic_machine=powerpc-unknown 7497da8b7e3Smrg os=-morphos 7507da8b7e3Smrg ;; 7517da8b7e3Smrg msdos) 7527da8b7e3Smrg basic_machine=i386-pc 7537da8b7e3Smrg os=-msdos 7547da8b7e3Smrg ;; 755123e2cc7Smrg ms1-*) 756123e2cc7Smrg basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'` 757123e2cc7Smrg ;; 7587da8b7e3Smrg mvs) 7597da8b7e3Smrg basic_machine=i370-ibm 7607da8b7e3Smrg os=-mvs 7617da8b7e3Smrg ;; 7627da8b7e3Smrg ncr3000) 7637da8b7e3Smrg basic_machine=i486-ncr 7647da8b7e3Smrg os=-sysv4 7657da8b7e3Smrg ;; 7667da8b7e3Smrg netbsd386) 7677da8b7e3Smrg basic_machine=i386-unknown 7687da8b7e3Smrg os=-netbsd 7697da8b7e3Smrg ;; 7707da8b7e3Smrg netwinder) 7717da8b7e3Smrg basic_machine=armv4l-rebel 7727da8b7e3Smrg os=-linux 7737da8b7e3Smrg ;; 7747da8b7e3Smrg news | news700 | news800 | news900) 7757da8b7e3Smrg basic_machine=m68k-sony 7767da8b7e3Smrg os=-newsos 7777da8b7e3Smrg ;; 7787da8b7e3Smrg news1000) 7797da8b7e3Smrg basic_machine=m68030-sony 7807da8b7e3Smrg os=-newsos 7817da8b7e3Smrg ;; 7827da8b7e3Smrg news-3600 | risc-news) 7837da8b7e3Smrg basic_machine=mips-sony 7847da8b7e3Smrg os=-newsos 7857da8b7e3Smrg ;; 7867da8b7e3Smrg necv70) 7877da8b7e3Smrg basic_machine=v70-nec 7887da8b7e3Smrg os=-sysv 7897da8b7e3Smrg ;; 7907da8b7e3Smrg next | m*-next ) 7917da8b7e3Smrg basic_machine=m68k-next 7927da8b7e3Smrg case $os in 7937da8b7e3Smrg -nextstep* ) 7947da8b7e3Smrg ;; 7957da8b7e3Smrg -ns2*) 7967da8b7e3Smrg os=-nextstep2 7977da8b7e3Smrg ;; 7987da8b7e3Smrg *) 7997da8b7e3Smrg os=-nextstep3 8007da8b7e3Smrg ;; 8017da8b7e3Smrg esac 8027da8b7e3Smrg ;; 8037da8b7e3Smrg nh3000) 8047da8b7e3Smrg basic_machine=m68k-harris 8057da8b7e3Smrg os=-cxux 8067da8b7e3Smrg ;; 8077da8b7e3Smrg nh[45]000) 8087da8b7e3Smrg basic_machine=m88k-harris 8097da8b7e3Smrg os=-cxux 8107da8b7e3Smrg ;; 8117da8b7e3Smrg nindy960) 8127da8b7e3Smrg basic_machine=i960-intel 8137da8b7e3Smrg os=-nindy 8147da8b7e3Smrg ;; 8157da8b7e3Smrg mon960) 8167da8b7e3Smrg basic_machine=i960-intel 8177da8b7e3Smrg os=-mon960 8187da8b7e3Smrg ;; 8197da8b7e3Smrg nonstopux) 8207da8b7e3Smrg basic_machine=mips-compaq 8217da8b7e3Smrg os=-nonstopux 8227da8b7e3Smrg ;; 8237da8b7e3Smrg np1) 8247da8b7e3Smrg basic_machine=np1-gould 8257da8b7e3Smrg ;; 8267da8b7e3Smrg nsr-tandem) 8277da8b7e3Smrg basic_machine=nsr-tandem 8287da8b7e3Smrg ;; 8297da8b7e3Smrg op50n-* | op60c-*) 8307da8b7e3Smrg basic_machine=hppa1.1-oki 8317da8b7e3Smrg os=-proelf 8327da8b7e3Smrg ;; 8337da8b7e3Smrg openrisc | openrisc-*) 8347da8b7e3Smrg basic_machine=or32-unknown 8357da8b7e3Smrg ;; 8367da8b7e3Smrg os400) 8377da8b7e3Smrg basic_machine=powerpc-ibm 8387da8b7e3Smrg os=-os400 8397da8b7e3Smrg ;; 8407da8b7e3Smrg OSE68000 | ose68000) 8417da8b7e3Smrg basic_machine=m68000-ericsson 8427da8b7e3Smrg os=-ose 8437da8b7e3Smrg ;; 8447da8b7e3Smrg os68k) 8457da8b7e3Smrg basic_machine=m68k-none 8467da8b7e3Smrg os=-os68k 8477da8b7e3Smrg ;; 8487da8b7e3Smrg pa-hitachi) 8497da8b7e3Smrg basic_machine=hppa1.1-hitachi 8507da8b7e3Smrg os=-hiuxwe2 8517da8b7e3Smrg ;; 8527da8b7e3Smrg paragon) 8537da8b7e3Smrg basic_machine=i860-intel 8547da8b7e3Smrg os=-osf 8557da8b7e3Smrg ;; 856123e2cc7Smrg parisc) 857123e2cc7Smrg basic_machine=hppa-unknown 858123e2cc7Smrg os=-linux 859123e2cc7Smrg ;; 860123e2cc7Smrg parisc-*) 861123e2cc7Smrg basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'` 862123e2cc7Smrg os=-linux 863123e2cc7Smrg ;; 8647da8b7e3Smrg pbd) 8657da8b7e3Smrg basic_machine=sparc-tti 8667da8b7e3Smrg ;; 8677da8b7e3Smrg pbb) 8687da8b7e3Smrg basic_machine=m68k-tti 8697da8b7e3Smrg ;; 8707da8b7e3Smrg pc532 | pc532-*) 8717da8b7e3Smrg basic_machine=ns32k-pc532 8727da8b7e3Smrg ;; 873123e2cc7Smrg pc98) 874123e2cc7Smrg basic_machine=i386-pc 875123e2cc7Smrg ;; 876123e2cc7Smrg pc98-*) 877123e2cc7Smrg basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'` 878123e2cc7Smrg ;; 8797da8b7e3Smrg pentium | p5 | k5 | k6 | nexgen | viac3) 8807da8b7e3Smrg basic_machine=i586-pc 8817da8b7e3Smrg ;; 8827da8b7e3Smrg pentiumpro | p6 | 6x86 | athlon | athlon_*) 8837da8b7e3Smrg basic_machine=i686-pc 8847da8b7e3Smrg ;; 8857da8b7e3Smrg pentiumii | pentium2 | pentiumiii | pentium3) 8867da8b7e3Smrg basic_machine=i686-pc 8877da8b7e3Smrg ;; 8887da8b7e3Smrg pentium4) 8897da8b7e3Smrg basic_machine=i786-pc 8907da8b7e3Smrg ;; 8917da8b7e3Smrg pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) 8927da8b7e3Smrg basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` 8937da8b7e3Smrg ;; 8947da8b7e3Smrg pentiumpro-* | p6-* | 6x86-* | athlon-*) 8957da8b7e3Smrg basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` 8967da8b7e3Smrg ;; 8977da8b7e3Smrg pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*) 8987da8b7e3Smrg basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` 8997da8b7e3Smrg ;; 9007da8b7e3Smrg pentium4-*) 9017da8b7e3Smrg basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'` 9027da8b7e3Smrg ;; 9037da8b7e3Smrg pn) 9047da8b7e3Smrg basic_machine=pn-gould 9057da8b7e3Smrg ;; 9067da8b7e3Smrg power) basic_machine=power-ibm 9077da8b7e3Smrg ;; 9087da8b7e3Smrg ppc) basic_machine=powerpc-unknown 9097da8b7e3Smrg ;; 9107da8b7e3Smrg ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` 9117da8b7e3Smrg ;; 9127da8b7e3Smrg ppcle | powerpclittle | ppc-le | powerpc-little) 9137da8b7e3Smrg basic_machine=powerpcle-unknown 9147da8b7e3Smrg ;; 9157da8b7e3Smrg ppcle-* | powerpclittle-*) 9167da8b7e3Smrg basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` 9177da8b7e3Smrg ;; 9187da8b7e3Smrg ppc64) basic_machine=powerpc64-unknown 9197da8b7e3Smrg ;; 9207da8b7e3Smrg ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'` 9217da8b7e3Smrg ;; 9227da8b7e3Smrg ppc64le | powerpc64little | ppc64-le | powerpc64-little) 9237da8b7e3Smrg basic_machine=powerpc64le-unknown 9247da8b7e3Smrg ;; 9257da8b7e3Smrg ppc64le-* | powerpc64little-*) 9267da8b7e3Smrg basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'` 9277da8b7e3Smrg ;; 9287da8b7e3Smrg ps2) 9297da8b7e3Smrg basic_machine=i386-ibm 9307da8b7e3Smrg ;; 9317da8b7e3Smrg pw32) 9327da8b7e3Smrg basic_machine=i586-unknown 9337da8b7e3Smrg os=-pw32 9347da8b7e3Smrg ;; 935123e2cc7Smrg rdos) 936123e2cc7Smrg basic_machine=i386-pc 937123e2cc7Smrg os=-rdos 938123e2cc7Smrg ;; 9397da8b7e3Smrg rom68k) 9407da8b7e3Smrg basic_machine=m68k-rom68k 9417da8b7e3Smrg os=-coff 9427da8b7e3Smrg ;; 9437da8b7e3Smrg rm[46]00) 9447da8b7e3Smrg basic_machine=mips-siemens 9457da8b7e3Smrg ;; 9467da8b7e3Smrg rtpc | rtpc-*) 9477da8b7e3Smrg basic_machine=romp-ibm 9487da8b7e3Smrg ;; 9497da8b7e3Smrg s390 | s390-*) 9507da8b7e3Smrg basic_machine=s390-ibm 9517da8b7e3Smrg ;; 9527da8b7e3Smrg s390x | s390x-*) 9537da8b7e3Smrg basic_machine=s390x-ibm 9547da8b7e3Smrg ;; 9557da8b7e3Smrg sa29200) 9567da8b7e3Smrg basic_machine=a29k-amd 9577da8b7e3Smrg os=-udi 9587da8b7e3Smrg ;; 9597da8b7e3Smrg sb1) 9607da8b7e3Smrg basic_machine=mipsisa64sb1-unknown 9617da8b7e3Smrg ;; 9627da8b7e3Smrg sb1el) 9637da8b7e3Smrg basic_machine=mipsisa64sb1el-unknown 9647da8b7e3Smrg ;; 965123e2cc7Smrg sde) 966123e2cc7Smrg basic_machine=mipsisa32-sde 967123e2cc7Smrg os=-elf 968123e2cc7Smrg ;; 9697da8b7e3Smrg sei) 9707da8b7e3Smrg basic_machine=mips-sei 9717da8b7e3Smrg os=-seiux 9727da8b7e3Smrg ;; 9737da8b7e3Smrg sequent) 9747da8b7e3Smrg basic_machine=i386-sequent 9757da8b7e3Smrg ;; 9767da8b7e3Smrg sh) 9777da8b7e3Smrg basic_machine=sh-hitachi 9787da8b7e3Smrg os=-hms 9797da8b7e3Smrg ;; 980123e2cc7Smrg sh5el) 981123e2cc7Smrg basic_machine=sh5le-unknown 982123e2cc7Smrg ;; 9837da8b7e3Smrg sh64) 9847da8b7e3Smrg basic_machine=sh64-unknown 9857da8b7e3Smrg ;; 9867da8b7e3Smrg sparclite-wrs | simso-wrs) 9877da8b7e3Smrg basic_machine=sparclite-wrs 9887da8b7e3Smrg os=-vxworks 9897da8b7e3Smrg ;; 9907da8b7e3Smrg sps7) 9917da8b7e3Smrg basic_machine=m68k-bull 9927da8b7e3Smrg os=-sysv2 9937da8b7e3Smrg ;; 9947da8b7e3Smrg spur) 9957da8b7e3Smrg basic_machine=spur-unknown 9967da8b7e3Smrg ;; 9977da8b7e3Smrg st2000) 9987da8b7e3Smrg basic_machine=m68k-tandem 9997da8b7e3Smrg ;; 10007da8b7e3Smrg stratus) 10017da8b7e3Smrg basic_machine=i860-stratus 10027da8b7e3Smrg os=-sysv4 10037da8b7e3Smrg ;; 10047da8b7e3Smrg sun2) 10057da8b7e3Smrg basic_machine=m68000-sun 10067da8b7e3Smrg ;; 10077da8b7e3Smrg sun2os3) 10087da8b7e3Smrg basic_machine=m68000-sun 10097da8b7e3Smrg os=-sunos3 10107da8b7e3Smrg ;; 10117da8b7e3Smrg sun2os4) 10127da8b7e3Smrg basic_machine=m68000-sun 10137da8b7e3Smrg os=-sunos4 10147da8b7e3Smrg ;; 10157da8b7e3Smrg sun3os3) 10167da8b7e3Smrg basic_machine=m68k-sun 10177da8b7e3Smrg os=-sunos3 10187da8b7e3Smrg ;; 10197da8b7e3Smrg sun3os4) 10207da8b7e3Smrg basic_machine=m68k-sun 10217da8b7e3Smrg os=-sunos4 10227da8b7e3Smrg ;; 10237da8b7e3Smrg sun4os3) 10247da8b7e3Smrg basic_machine=sparc-sun 10257da8b7e3Smrg os=-sunos3 10267da8b7e3Smrg ;; 10277da8b7e3Smrg sun4os4) 10287da8b7e3Smrg basic_machine=sparc-sun 10297da8b7e3Smrg os=-sunos4 10307da8b7e3Smrg ;; 10317da8b7e3Smrg sun4sol2) 10327da8b7e3Smrg basic_machine=sparc-sun 10337da8b7e3Smrg os=-solaris2 10347da8b7e3Smrg ;; 10357da8b7e3Smrg sun3 | sun3-*) 10367da8b7e3Smrg basic_machine=m68k-sun 10377da8b7e3Smrg ;; 10387da8b7e3Smrg sun4) 10397da8b7e3Smrg basic_machine=sparc-sun 10407da8b7e3Smrg ;; 10417da8b7e3Smrg sun386 | sun386i | roadrunner) 10427da8b7e3Smrg basic_machine=i386-sun 10437da8b7e3Smrg ;; 10447da8b7e3Smrg sv1) 10457da8b7e3Smrg basic_machine=sv1-cray 10467da8b7e3Smrg os=-unicos 10477da8b7e3Smrg ;; 10487da8b7e3Smrg symmetry) 10497da8b7e3Smrg basic_machine=i386-sequent 10507da8b7e3Smrg os=-dynix 10517da8b7e3Smrg ;; 10527da8b7e3Smrg t3e) 10537da8b7e3Smrg basic_machine=alphaev5-cray 10547da8b7e3Smrg os=-unicos 10557da8b7e3Smrg ;; 10567da8b7e3Smrg t90) 10577da8b7e3Smrg basic_machine=t90-cray 10587da8b7e3Smrg os=-unicos 10597da8b7e3Smrg ;; 10607da8b7e3Smrg tic54x | c54x*) 10617da8b7e3Smrg basic_machine=tic54x-unknown 10627da8b7e3Smrg os=-coff 10637da8b7e3Smrg ;; 10647da8b7e3Smrg tic55x | c55x*) 10657da8b7e3Smrg basic_machine=tic55x-unknown 10667da8b7e3Smrg os=-coff 10677da8b7e3Smrg ;; 10687da8b7e3Smrg tic6x | c6x*) 10697da8b7e3Smrg basic_machine=tic6x-unknown 10707da8b7e3Smrg os=-coff 10717da8b7e3Smrg ;; 1072123e2cc7Smrg tile*) 1073123e2cc7Smrg basic_machine=tile-unknown 1074123e2cc7Smrg os=-linux-gnu 1075123e2cc7Smrg ;; 10767da8b7e3Smrg tx39) 10777da8b7e3Smrg basic_machine=mipstx39-unknown 10787da8b7e3Smrg ;; 10797da8b7e3Smrg tx39el) 10807da8b7e3Smrg basic_machine=mipstx39el-unknown 10817da8b7e3Smrg ;; 10827da8b7e3Smrg toad1) 10837da8b7e3Smrg basic_machine=pdp10-xkl 10847da8b7e3Smrg os=-tops20 10857da8b7e3Smrg ;; 10867da8b7e3Smrg tower | tower-32) 10877da8b7e3Smrg basic_machine=m68k-ncr 10887da8b7e3Smrg ;; 10897da8b7e3Smrg tpf) 10907da8b7e3Smrg basic_machine=s390x-ibm 10917da8b7e3Smrg os=-tpf 10927da8b7e3Smrg ;; 10937da8b7e3Smrg udi29k) 10947da8b7e3Smrg basic_machine=a29k-amd 10957da8b7e3Smrg os=-udi 10967da8b7e3Smrg ;; 10977da8b7e3Smrg ultra3) 10987da8b7e3Smrg basic_machine=a29k-nyu 10997da8b7e3Smrg os=-sym1 11007da8b7e3Smrg ;; 11017da8b7e3Smrg v810 | necv810) 11027da8b7e3Smrg basic_machine=v810-nec 11037da8b7e3Smrg os=-none 11047da8b7e3Smrg ;; 11057da8b7e3Smrg vaxv) 11067da8b7e3Smrg basic_machine=vax-dec 11077da8b7e3Smrg os=-sysv 11087da8b7e3Smrg ;; 11097da8b7e3Smrg vms) 11107da8b7e3Smrg basic_machine=vax-dec 11117da8b7e3Smrg os=-vms 11127da8b7e3Smrg ;; 11137da8b7e3Smrg vpp*|vx|vx-*) 11147da8b7e3Smrg basic_machine=f301-fujitsu 11157da8b7e3Smrg ;; 11167da8b7e3Smrg vxworks960) 11177da8b7e3Smrg basic_machine=i960-wrs 11187da8b7e3Smrg os=-vxworks 11197da8b7e3Smrg ;; 11207da8b7e3Smrg vxworks68) 11217da8b7e3Smrg basic_machine=m68k-wrs 11227da8b7e3Smrg os=-vxworks 11237da8b7e3Smrg ;; 11247da8b7e3Smrg vxworks29k) 11257da8b7e3Smrg basic_machine=a29k-wrs 11267da8b7e3Smrg os=-vxworks 11277da8b7e3Smrg ;; 11287da8b7e3Smrg w65*) 11297da8b7e3Smrg basic_machine=w65-wdc 11307da8b7e3Smrg os=-none 11317da8b7e3Smrg ;; 11327da8b7e3Smrg w89k-*) 11337da8b7e3Smrg basic_machine=hppa1.1-winbond 11347da8b7e3Smrg os=-proelf 11357da8b7e3Smrg ;; 11367da8b7e3Smrg xbox) 11377da8b7e3Smrg basic_machine=i686-pc 11387da8b7e3Smrg os=-mingw32 11397da8b7e3Smrg ;; 11407da8b7e3Smrg xps | xps100) 11417da8b7e3Smrg basic_machine=xps100-honeywell 11427da8b7e3Smrg ;; 11437da8b7e3Smrg ymp) 11447da8b7e3Smrg basic_machine=ymp-cray 11457da8b7e3Smrg os=-unicos 11467da8b7e3Smrg ;; 11477da8b7e3Smrg z8k-*-coff) 11487da8b7e3Smrg basic_machine=z8k-unknown 11497da8b7e3Smrg os=-sim 11507da8b7e3Smrg ;; 1151123e2cc7Smrg z80-*-coff) 1152123e2cc7Smrg basic_machine=z80-unknown 1153123e2cc7Smrg os=-sim 1154123e2cc7Smrg ;; 11557da8b7e3Smrg none) 11567da8b7e3Smrg basic_machine=none-none 11577da8b7e3Smrg os=-none 11587da8b7e3Smrg ;; 11597da8b7e3Smrg 11607da8b7e3Smrg# Here we handle the default manufacturer of certain CPU types. It is in 11617da8b7e3Smrg# some cases the only manufacturer, in others, it is the most popular. 11627da8b7e3Smrg w89k) 11637da8b7e3Smrg basic_machine=hppa1.1-winbond 11647da8b7e3Smrg ;; 11657da8b7e3Smrg op50n) 11667da8b7e3Smrg basic_machine=hppa1.1-oki 11677da8b7e3Smrg ;; 11687da8b7e3Smrg op60c) 11697da8b7e3Smrg basic_machine=hppa1.1-oki 11707da8b7e3Smrg ;; 11717da8b7e3Smrg romp) 11727da8b7e3Smrg basic_machine=romp-ibm 11737da8b7e3Smrg ;; 11747da8b7e3Smrg mmix) 11757da8b7e3Smrg basic_machine=mmix-knuth 11767da8b7e3Smrg ;; 11777da8b7e3Smrg rs6000) 11787da8b7e3Smrg basic_machine=rs6000-ibm 11797da8b7e3Smrg ;; 11807da8b7e3Smrg vax) 11817da8b7e3Smrg basic_machine=vax-dec 11827da8b7e3Smrg ;; 11837da8b7e3Smrg pdp10) 11847da8b7e3Smrg # there are many clones, so DEC is not a safe bet 11857da8b7e3Smrg basic_machine=pdp10-unknown 11867da8b7e3Smrg ;; 11877da8b7e3Smrg pdp11) 11887da8b7e3Smrg basic_machine=pdp11-dec 11897da8b7e3Smrg ;; 11907da8b7e3Smrg we32k) 11917da8b7e3Smrg basic_machine=we32k-att 11927da8b7e3Smrg ;; 1193123e2cc7Smrg sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele) 11947da8b7e3Smrg basic_machine=sh-unknown 11957da8b7e3Smrg ;; 1196123e2cc7Smrg sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v) 11977da8b7e3Smrg basic_machine=sparc-sun 11987da8b7e3Smrg ;; 11997da8b7e3Smrg cydra) 12007da8b7e3Smrg basic_machine=cydra-cydrome 12017da8b7e3Smrg ;; 12027da8b7e3Smrg orion) 12037da8b7e3Smrg basic_machine=orion-highlevel 12047da8b7e3Smrg ;; 12057da8b7e3Smrg orion105) 12067da8b7e3Smrg basic_machine=clipper-highlevel 12077da8b7e3Smrg ;; 12087da8b7e3Smrg mac | mpw | mac-mpw) 12097da8b7e3Smrg basic_machine=m68k-apple 12107da8b7e3Smrg ;; 12117da8b7e3Smrg pmac | pmac-mpw) 12127da8b7e3Smrg basic_machine=powerpc-apple 12137da8b7e3Smrg ;; 12147da8b7e3Smrg *-unknown) 12157da8b7e3Smrg # Make sure to match an already-canonicalized machine name. 12167da8b7e3Smrg ;; 12177da8b7e3Smrg *) 12187da8b7e3Smrg echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 12197da8b7e3Smrg exit 1 12207da8b7e3Smrg ;; 12217da8b7e3Smrgesac 12227da8b7e3Smrg 12237da8b7e3Smrg# Here we canonicalize certain aliases for manufacturers. 12247da8b7e3Smrgcase $basic_machine in 12257da8b7e3Smrg *-digital*) 12267da8b7e3Smrg basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'` 12277da8b7e3Smrg ;; 12287da8b7e3Smrg *-commodore*) 12297da8b7e3Smrg basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'` 12307da8b7e3Smrg ;; 12317da8b7e3Smrg *) 12327da8b7e3Smrg ;; 12337da8b7e3Smrgesac 12347da8b7e3Smrg 12357da8b7e3Smrg# Decode manufacturer-specific aliases for certain operating systems. 12367da8b7e3Smrg 12377da8b7e3Smrgif [ x"$os" != x"" ] 12387da8b7e3Smrgthen 12397da8b7e3Smrgcase $os in 12407da8b7e3Smrg # First match some system type aliases 12417da8b7e3Smrg # that might get confused with valid system types. 12427da8b7e3Smrg # -solaris* is a basic system type, with this one exception. 12437da8b7e3Smrg -solaris1 | -solaris1.*) 12447da8b7e3Smrg os=`echo $os | sed -e 's|solaris1|sunos4|'` 12457da8b7e3Smrg ;; 12467da8b7e3Smrg -solaris) 12477da8b7e3Smrg os=-solaris2 12487da8b7e3Smrg ;; 12497da8b7e3Smrg -svr4*) 12507da8b7e3Smrg os=-sysv4 12517da8b7e3Smrg ;; 12527da8b7e3Smrg -unixware*) 12537da8b7e3Smrg os=-sysv4.2uw 12547da8b7e3Smrg ;; 12557da8b7e3Smrg -gnu/linux*) 12567da8b7e3Smrg os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'` 12577da8b7e3Smrg ;; 12587da8b7e3Smrg # First accept the basic system types. 12597da8b7e3Smrg # The portable systems comes first. 12607da8b7e3Smrg # Each alternative MUST END IN A *, to match a version number. 12617da8b7e3Smrg # -sysv* is not here because it comes later, after sysvr4. 12627da8b7e3Smrg -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ 12637da8b7e3Smrg | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\ 12647da8b7e3Smrg | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \ 1265123e2cc7Smrg | -kopensolaris* \ 12667da8b7e3Smrg | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ 1267123e2cc7Smrg | -aos* | -aros* \ 12687da8b7e3Smrg | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ 12697da8b7e3Smrg | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ 1270123e2cc7Smrg | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \ 1271123e2cc7Smrg | -openbsd* | -solidbsd* \ 12727da8b7e3Smrg | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ 12737da8b7e3Smrg | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ 12747da8b7e3Smrg | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ 12757da8b7e3Smrg | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ 1276123e2cc7Smrg | -chorusos* | -chorusrdb* | -cegcc* \ 12777da8b7e3Smrg | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ 1278123e2cc7Smrg | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \ 1279123e2cc7Smrg | -uxpv* | -beos* | -mpeix* | -udk* \ 12807da8b7e3Smrg | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ 12817da8b7e3Smrg | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ 12827da8b7e3Smrg | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ 12837da8b7e3Smrg | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ 12847da8b7e3Smrg | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ 12857da8b7e3Smrg | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ 1286123e2cc7Smrg | -skyos* | -haiku* | -rdos* | -toppers* | -drops*) 12877da8b7e3Smrg # Remember, each alternative MUST END IN *, to match a version number. 12887da8b7e3Smrg ;; 12897da8b7e3Smrg -qnx*) 12907da8b7e3Smrg case $basic_machine in 12917da8b7e3Smrg x86-* | i*86-*) 12927da8b7e3Smrg ;; 12937da8b7e3Smrg *) 12947da8b7e3Smrg os=-nto$os 12957da8b7e3Smrg ;; 12967da8b7e3Smrg esac 12977da8b7e3Smrg ;; 12987da8b7e3Smrg -nto-qnx*) 12997da8b7e3Smrg ;; 13007da8b7e3Smrg -nto*) 13017da8b7e3Smrg os=`echo $os | sed -e 's|nto|nto-qnx|'` 13027da8b7e3Smrg ;; 13037da8b7e3Smrg -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ 13047da8b7e3Smrg | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \ 13057da8b7e3Smrg | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) 13067da8b7e3Smrg ;; 13077da8b7e3Smrg -mac*) 13087da8b7e3Smrg os=`echo $os | sed -e 's|mac|macos|'` 13097da8b7e3Smrg ;; 13107da8b7e3Smrg -linux-dietlibc) 13117da8b7e3Smrg os=-linux-dietlibc 13127da8b7e3Smrg ;; 13137da8b7e3Smrg -linux*) 13147da8b7e3Smrg os=`echo $os | sed -e 's|linux|linux-gnu|'` 13157da8b7e3Smrg ;; 13167da8b7e3Smrg -sunos5*) 13177da8b7e3Smrg os=`echo $os | sed -e 's|sunos5|solaris2|'` 13187da8b7e3Smrg ;; 13197da8b7e3Smrg -sunos6*) 13207da8b7e3Smrg os=`echo $os | sed -e 's|sunos6|solaris3|'` 13217da8b7e3Smrg ;; 13227da8b7e3Smrg -opened*) 13237da8b7e3Smrg os=-openedition 13247da8b7e3Smrg ;; 13257da8b7e3Smrg -os400*) 13267da8b7e3Smrg os=-os400 13277da8b7e3Smrg ;; 13287da8b7e3Smrg -wince*) 13297da8b7e3Smrg os=-wince 13307da8b7e3Smrg ;; 13317da8b7e3Smrg -osfrose*) 13327da8b7e3Smrg os=-osfrose 13337da8b7e3Smrg ;; 13347da8b7e3Smrg -osf*) 13357da8b7e3Smrg os=-osf 13367da8b7e3Smrg ;; 13377da8b7e3Smrg -utek*) 13387da8b7e3Smrg os=-bsd 13397da8b7e3Smrg ;; 13407da8b7e3Smrg -dynix*) 13417da8b7e3Smrg os=-bsd 13427da8b7e3Smrg ;; 13437da8b7e3Smrg -acis*) 13447da8b7e3Smrg os=-aos 13457da8b7e3Smrg ;; 13467da8b7e3Smrg -atheos*) 13477da8b7e3Smrg os=-atheos 13487da8b7e3Smrg ;; 13497da8b7e3Smrg -syllable*) 13507da8b7e3Smrg os=-syllable 13517da8b7e3Smrg ;; 13527da8b7e3Smrg -386bsd) 13537da8b7e3Smrg os=-bsd 13547da8b7e3Smrg ;; 13557da8b7e3Smrg -ctix* | -uts*) 13567da8b7e3Smrg os=-sysv 13577da8b7e3Smrg ;; 13587da8b7e3Smrg -nova*) 13597da8b7e3Smrg os=-rtmk-nova 13607da8b7e3Smrg ;; 13617da8b7e3Smrg -ns2 ) 13627da8b7e3Smrg os=-nextstep2 13637da8b7e3Smrg ;; 13647da8b7e3Smrg -nsk*) 13657da8b7e3Smrg os=-nsk 13667da8b7e3Smrg ;; 13677da8b7e3Smrg # Preserve the version number of sinix5. 13687da8b7e3Smrg -sinix5.*) 13697da8b7e3Smrg os=`echo $os | sed -e 's|sinix|sysv|'` 13707da8b7e3Smrg ;; 13717da8b7e3Smrg -sinix*) 13727da8b7e3Smrg os=-sysv4 13737da8b7e3Smrg ;; 13747da8b7e3Smrg -tpf*) 13757da8b7e3Smrg os=-tpf 13767da8b7e3Smrg ;; 13777da8b7e3Smrg -triton*) 13787da8b7e3Smrg os=-sysv3 13797da8b7e3Smrg ;; 13807da8b7e3Smrg -oss*) 13817da8b7e3Smrg os=-sysv3 13827da8b7e3Smrg ;; 13837da8b7e3Smrg -svr4) 13847da8b7e3Smrg os=-sysv4 13857da8b7e3Smrg ;; 13867da8b7e3Smrg -svr3) 13877da8b7e3Smrg os=-sysv3 13887da8b7e3Smrg ;; 13897da8b7e3Smrg -sysvr4) 13907da8b7e3Smrg os=-sysv4 13917da8b7e3Smrg ;; 13927da8b7e3Smrg # This must come after -sysvr4. 13937da8b7e3Smrg -sysv*) 13947da8b7e3Smrg ;; 13957da8b7e3Smrg -ose*) 13967da8b7e3Smrg os=-ose 13977da8b7e3Smrg ;; 13987da8b7e3Smrg -es1800*) 13997da8b7e3Smrg os=-ose 14007da8b7e3Smrg ;; 14017da8b7e3Smrg -xenix) 14027da8b7e3Smrg os=-xenix 14037da8b7e3Smrg ;; 14047da8b7e3Smrg -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) 14057da8b7e3Smrg os=-mint 14067da8b7e3Smrg ;; 14077da8b7e3Smrg -aros*) 14087da8b7e3Smrg os=-aros 14097da8b7e3Smrg ;; 14107da8b7e3Smrg -kaos*) 14117da8b7e3Smrg os=-kaos 14127da8b7e3Smrg ;; 14137da8b7e3Smrg -zvmoe) 14147da8b7e3Smrg os=-zvmoe 14157da8b7e3Smrg ;; 1416123e2cc7Smrg -dicos*) 1417123e2cc7Smrg os=-dicos 1418123e2cc7Smrg ;; 14197da8b7e3Smrg -none) 14207da8b7e3Smrg ;; 14217da8b7e3Smrg *) 14227da8b7e3Smrg # Get rid of the `-' at the beginning of $os. 14237da8b7e3Smrg os=`echo $os | sed 's/[^-]*-//'` 14247da8b7e3Smrg echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2 14257da8b7e3Smrg exit 1 14267da8b7e3Smrg ;; 14277da8b7e3Smrgesac 14287da8b7e3Smrgelse 14297da8b7e3Smrg 14307da8b7e3Smrg# Here we handle the default operating systems that come with various machines. 14317da8b7e3Smrg# The value should be what the vendor currently ships out the door with their 14327da8b7e3Smrg# machine or put another way, the most popular os provided with the machine. 14337da8b7e3Smrg 14347da8b7e3Smrg# Note that if you're going to try to match "-MANUFACTURER" here (say, 14357da8b7e3Smrg# "-sun"), then you have to tell the case statement up towards the top 14367da8b7e3Smrg# that MANUFACTURER isn't an operating system. Otherwise, code above 14377da8b7e3Smrg# will signal an error saying that MANUFACTURER isn't an operating 14387da8b7e3Smrg# system, and we'll never get to this point. 14397da8b7e3Smrg 14407da8b7e3Smrgcase $basic_machine in 1441123e2cc7Smrg score-*) 1442123e2cc7Smrg os=-elf 1443123e2cc7Smrg ;; 1444123e2cc7Smrg spu-*) 1445123e2cc7Smrg os=-elf 1446123e2cc7Smrg ;; 14477da8b7e3Smrg *-acorn) 14487da8b7e3Smrg os=-riscix1.2 14497da8b7e3Smrg ;; 14507da8b7e3Smrg arm*-rebel) 14517da8b7e3Smrg os=-linux 14527da8b7e3Smrg ;; 14537da8b7e3Smrg arm*-semi) 14547da8b7e3Smrg os=-aout 14557da8b7e3Smrg ;; 1456123e2cc7Smrg c4x-* | tic4x-*) 1457123e2cc7Smrg os=-coff 1458123e2cc7Smrg ;; 14597da8b7e3Smrg # This must come before the *-dec entry. 14607da8b7e3Smrg pdp10-*) 14617da8b7e3Smrg os=-tops20 14627da8b7e3Smrg ;; 14637da8b7e3Smrg pdp11-*) 14647da8b7e3Smrg os=-none 14657da8b7e3Smrg ;; 14667da8b7e3Smrg *-dec | vax-*) 14677da8b7e3Smrg os=-ultrix4.2 14687da8b7e3Smrg ;; 14697da8b7e3Smrg m68*-apollo) 14707da8b7e3Smrg os=-domain 14717da8b7e3Smrg ;; 14727da8b7e3Smrg i386-sun) 14737da8b7e3Smrg os=-sunos4.0.2 14747da8b7e3Smrg ;; 14757da8b7e3Smrg m68000-sun) 14767da8b7e3Smrg os=-sunos3 14777da8b7e3Smrg # This also exists in the configure program, but was not the 14787da8b7e3Smrg # default. 14797da8b7e3Smrg # os=-sunos4 14807da8b7e3Smrg ;; 14817da8b7e3Smrg m68*-cisco) 14827da8b7e3Smrg os=-aout 14837da8b7e3Smrg ;; 1484123e2cc7Smrg mep-*) 1485123e2cc7Smrg os=-elf 1486123e2cc7Smrg ;; 14877da8b7e3Smrg mips*-cisco) 14887da8b7e3Smrg os=-elf 14897da8b7e3Smrg ;; 14907da8b7e3Smrg mips*-*) 14917da8b7e3Smrg os=-elf 14927da8b7e3Smrg ;; 14937da8b7e3Smrg or32-*) 14947da8b7e3Smrg os=-coff 14957da8b7e3Smrg ;; 14967da8b7e3Smrg *-tti) # must be before sparc entry or we get the wrong os. 14977da8b7e3Smrg os=-sysv3 14987da8b7e3Smrg ;; 14997da8b7e3Smrg sparc-* | *-sun) 15007da8b7e3Smrg os=-sunos4.1.1 15017da8b7e3Smrg ;; 15027da8b7e3Smrg *-be) 15037da8b7e3Smrg os=-beos 15047da8b7e3Smrg ;; 15057da8b7e3Smrg *-haiku) 15067da8b7e3Smrg os=-haiku 15077da8b7e3Smrg ;; 15087da8b7e3Smrg *-ibm) 15097da8b7e3Smrg os=-aix 15107da8b7e3Smrg ;; 15117da8b7e3Smrg *-knuth) 15127da8b7e3Smrg os=-mmixware 15137da8b7e3Smrg ;; 15147da8b7e3Smrg *-wec) 15157da8b7e3Smrg os=-proelf 15167da8b7e3Smrg ;; 15177da8b7e3Smrg *-winbond) 15187da8b7e3Smrg os=-proelf 15197da8b7e3Smrg ;; 15207da8b7e3Smrg *-oki) 15217da8b7e3Smrg os=-proelf 15227da8b7e3Smrg ;; 15237da8b7e3Smrg *-hp) 15247da8b7e3Smrg os=-hpux 15257da8b7e3Smrg ;; 15267da8b7e3Smrg *-hitachi) 15277da8b7e3Smrg os=-hiux 15287da8b7e3Smrg ;; 15297da8b7e3Smrg i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent) 15307da8b7e3Smrg os=-sysv 15317da8b7e3Smrg ;; 15327da8b7e3Smrg *-cbm) 15337da8b7e3Smrg os=-amigaos 15347da8b7e3Smrg ;; 15357da8b7e3Smrg *-dg) 15367da8b7e3Smrg os=-dgux 15377da8b7e3Smrg ;; 15387da8b7e3Smrg *-dolphin) 15397da8b7e3Smrg os=-sysv3 15407da8b7e3Smrg ;; 15417da8b7e3Smrg m68k-ccur) 15427da8b7e3Smrg os=-rtu 15437da8b7e3Smrg ;; 15447da8b7e3Smrg m88k-omron*) 15457da8b7e3Smrg os=-luna 15467da8b7e3Smrg ;; 15477da8b7e3Smrg *-next ) 15487da8b7e3Smrg os=-nextstep 15497da8b7e3Smrg ;; 15507da8b7e3Smrg *-sequent) 15517da8b7e3Smrg os=-ptx 15527da8b7e3Smrg ;; 15537da8b7e3Smrg *-crds) 15547da8b7e3Smrg os=-unos 15557da8b7e3Smrg ;; 15567da8b7e3Smrg *-ns) 15577da8b7e3Smrg os=-genix 15587da8b7e3Smrg ;; 15597da8b7e3Smrg i370-*) 15607da8b7e3Smrg os=-mvs 15617da8b7e3Smrg ;; 15627da8b7e3Smrg *-next) 15637da8b7e3Smrg os=-nextstep3 15647da8b7e3Smrg ;; 15657da8b7e3Smrg *-gould) 15667da8b7e3Smrg os=-sysv 15677da8b7e3Smrg ;; 15687da8b7e3Smrg *-highlevel) 15697da8b7e3Smrg os=-bsd 15707da8b7e3Smrg ;; 15717da8b7e3Smrg *-encore) 15727da8b7e3Smrg os=-bsd 15737da8b7e3Smrg ;; 15747da8b7e3Smrg *-sgi) 15757da8b7e3Smrg os=-irix 15767da8b7e3Smrg ;; 15777da8b7e3Smrg *-siemens) 15787da8b7e3Smrg os=-sysv4 15797da8b7e3Smrg ;; 15807da8b7e3Smrg *-masscomp) 15817da8b7e3Smrg os=-rtu 15827da8b7e3Smrg ;; 15837da8b7e3Smrg f30[01]-fujitsu | f700-fujitsu) 15847da8b7e3Smrg os=-uxpv 15857da8b7e3Smrg ;; 15867da8b7e3Smrg *-rom68k) 15877da8b7e3Smrg os=-coff 15887da8b7e3Smrg ;; 15897da8b7e3Smrg *-*bug) 15907da8b7e3Smrg os=-coff 15917da8b7e3Smrg ;; 15927da8b7e3Smrg *-apple) 15937da8b7e3Smrg os=-macos 15947da8b7e3Smrg ;; 15957da8b7e3Smrg *-atari*) 15967da8b7e3Smrg os=-mint 15977da8b7e3Smrg ;; 15987da8b7e3Smrg *) 15997da8b7e3Smrg os=-none 16007da8b7e3Smrg ;; 16017da8b7e3Smrgesac 16027da8b7e3Smrgfi 16037da8b7e3Smrg 16047da8b7e3Smrg# Here we handle the case where we know the os, and the CPU type, but not the 16057da8b7e3Smrg# manufacturer. We pick the logical manufacturer. 16067da8b7e3Smrgvendor=unknown 16077da8b7e3Smrgcase $basic_machine in 16087da8b7e3Smrg *-unknown) 16097da8b7e3Smrg case $os in 16107da8b7e3Smrg -riscix*) 16117da8b7e3Smrg vendor=acorn 16127da8b7e3Smrg ;; 16137da8b7e3Smrg -sunos*) 16147da8b7e3Smrg vendor=sun 16157da8b7e3Smrg ;; 16167da8b7e3Smrg -aix*) 16177da8b7e3Smrg vendor=ibm 16187da8b7e3Smrg ;; 16197da8b7e3Smrg -beos*) 16207da8b7e3Smrg vendor=be 16217da8b7e3Smrg ;; 16227da8b7e3Smrg -hpux*) 16237da8b7e3Smrg vendor=hp 16247da8b7e3Smrg ;; 16257da8b7e3Smrg -mpeix*) 16267da8b7e3Smrg vendor=hp 16277da8b7e3Smrg ;; 16287da8b7e3Smrg -hiux*) 16297da8b7e3Smrg vendor=hitachi 16307da8b7e3Smrg ;; 16317da8b7e3Smrg -unos*) 16327da8b7e3Smrg vendor=crds 16337da8b7e3Smrg ;; 16347da8b7e3Smrg -dgux*) 16357da8b7e3Smrg vendor=dg 16367da8b7e3Smrg ;; 16377da8b7e3Smrg -luna*) 16387da8b7e3Smrg vendor=omron 16397da8b7e3Smrg ;; 16407da8b7e3Smrg -genix*) 16417da8b7e3Smrg vendor=ns 16427da8b7e3Smrg ;; 16437da8b7e3Smrg -mvs* | -opened*) 16447da8b7e3Smrg vendor=ibm 16457da8b7e3Smrg ;; 16467da8b7e3Smrg -os400*) 16477da8b7e3Smrg vendor=ibm 16487da8b7e3Smrg ;; 16497da8b7e3Smrg -ptx*) 16507da8b7e3Smrg vendor=sequent 16517da8b7e3Smrg ;; 16527da8b7e3Smrg -tpf*) 16537da8b7e3Smrg vendor=ibm 16547da8b7e3Smrg ;; 16557da8b7e3Smrg -vxsim* | -vxworks* | -windiss*) 16567da8b7e3Smrg vendor=wrs 16577da8b7e3Smrg ;; 16587da8b7e3Smrg -aux*) 16597da8b7e3Smrg vendor=apple 16607da8b7e3Smrg ;; 16617da8b7e3Smrg -hms*) 16627da8b7e3Smrg vendor=hitachi 16637da8b7e3Smrg ;; 16647da8b7e3Smrg -mpw* | -macos*) 16657da8b7e3Smrg vendor=apple 16667da8b7e3Smrg ;; 16677da8b7e3Smrg -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) 16687da8b7e3Smrg vendor=atari 16697da8b7e3Smrg ;; 16707da8b7e3Smrg -vos*) 16717da8b7e3Smrg vendor=stratus 16727da8b7e3Smrg ;; 16737da8b7e3Smrg esac 16747da8b7e3Smrg basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` 16757da8b7e3Smrg ;; 16767da8b7e3Smrgesac 16777da8b7e3Smrg 16787da8b7e3Smrgecho $basic_machine$os 16797da8b7e3Smrgexit 16807da8b7e3Smrg 16817da8b7e3Smrg# Local variables: 16827da8b7e3Smrg# eval: (add-hook 'write-file-hooks 'time-stamp) 16837da8b7e3Smrg# time-stamp-start: "timestamp='" 16847da8b7e3Smrg# time-stamp-format: "%:y-%02m-%02d" 16857da8b7e3Smrg# time-stamp-end: "'" 16867da8b7e3Smrg# End: 1687