config.sub revision 5c10afb9
15c10afb9Smrg#! /bin/sh 25c10afb9Smrg# Configuration validation subroutine script. 35c10afb9Smrg# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 45c10afb9Smrg# 2000, 2001, 2002, 2003 Free Software Foundation, Inc. 55c10afb9Smrg 65c10afb9Smrgtimestamp='2003-06-18' 75c10afb9Smrg 85c10afb9Smrg# This file is (in principle) common to ALL GNU software. 95c10afb9Smrg# The presence of a machine in this file suggests that SOME GNU software 105c10afb9Smrg# can handle that machine. It does not imply ALL GNU software can. 115c10afb9Smrg# 125c10afb9Smrg# This file is free software; you can redistribute it and/or modify 135c10afb9Smrg# it under the terms of the GNU General Public License as published by 145c10afb9Smrg# the Free Software Foundation; either version 2 of the License, or 155c10afb9Smrg# (at your option) any later version. 165c10afb9Smrg# 175c10afb9Smrg# This program is distributed in the hope that it will be useful, 185c10afb9Smrg# but WITHOUT ANY WARRANTY; without even the implied warranty of 195c10afb9Smrg# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 205c10afb9Smrg# GNU General Public License for more details. 215c10afb9Smrg# 225c10afb9Smrg# You should have received a copy of the GNU General Public License 235c10afb9Smrg# along with this program; if not, write to the Free Software 245c10afb9Smrg# Foundation, Inc., 59 Temple Place - Suite 330, 255c10afb9Smrg# Boston, MA 02111-1307, USA. 265c10afb9Smrg 275c10afb9Smrg# As a special exception to the GNU General Public License, if you 285c10afb9Smrg# distribute this file as part of a program that contains a 295c10afb9Smrg# configuration script generated by Autoconf, you may include it under 305c10afb9Smrg# the same distribution terms that you use for the rest of that program. 315c10afb9Smrg 325c10afb9Smrg# Please send patches to <config-patches@gnu.org>. Submit a context 335c10afb9Smrg# diff and a properly formatted ChangeLog entry. 345c10afb9Smrg# 355c10afb9Smrg# Configuration subroutine to validate and canonicalize a configuration type. 365c10afb9Smrg# Supply the specified configuration type as an argument. 375c10afb9Smrg# If it is invalid, we print an error message on stderr and exit with code 1. 385c10afb9Smrg# Otherwise, we print the canonical config type on stdout and succeed. 395c10afb9Smrg 405c10afb9Smrg# This file is supposed to be the same for all GNU packages 415c10afb9Smrg# and recognize all the CPU types, system types and aliases 425c10afb9Smrg# that are meaningful with *any* GNU software. 435c10afb9Smrg# Each package is responsible for reporting which valid configurations 445c10afb9Smrg# it does not support. The user should be able to distinguish 455c10afb9Smrg# a failure to support a valid configuration from a meaningless 465c10afb9Smrg# configuration. 475c10afb9Smrg 485c10afb9Smrg# The goal of this file is to map all the various variations of a given 495c10afb9Smrg# machine specification into a single specification in the form: 505c10afb9Smrg# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM 515c10afb9Smrg# or in some cases, the newer four-part form: 525c10afb9Smrg# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM 535c10afb9Smrg# It is wrong to echo any other type of specification. 545c10afb9Smrg 555c10afb9Smrgme=`echo "$0" | sed -e 's,.*/,,'` 565c10afb9Smrg 575c10afb9Smrgusage="\ 585c10afb9SmrgUsage: $0 [OPTION] CPU-MFR-OPSYS 595c10afb9Smrg $0 [OPTION] ALIAS 605c10afb9Smrg 615c10afb9SmrgCanonicalize a configuration name. 625c10afb9Smrg 635c10afb9SmrgOperation modes: 645c10afb9Smrg -h, --help print this help, then exit 655c10afb9Smrg -t, --time-stamp print date of last modification, then exit 665c10afb9Smrg -v, --version print version number, then exit 675c10afb9Smrg 685c10afb9SmrgReport bugs and patches to <config-patches@gnu.org>." 695c10afb9Smrg 705c10afb9Smrgversion="\ 715c10afb9SmrgGNU config.sub ($timestamp) 725c10afb9Smrg 735c10afb9SmrgCopyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001 745c10afb9SmrgFree Software Foundation, Inc. 755c10afb9Smrg 765c10afb9SmrgThis is free software; see the source for copying conditions. There is NO 775c10afb9Smrgwarranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." 785c10afb9Smrg 795c10afb9Smrghelp=" 805c10afb9SmrgTry \`$me --help' for more information." 815c10afb9Smrg 825c10afb9Smrg# Parse command line 835c10afb9Smrgwhile test $# -gt 0 ; do 845c10afb9Smrg case $1 in 855c10afb9Smrg --time-stamp | --time* | -t ) 865c10afb9Smrg echo "$timestamp" ; exit 0 ;; 875c10afb9Smrg --version | -v ) 885c10afb9Smrg echo "$version" ; exit 0 ;; 895c10afb9Smrg --help | --h* | -h ) 905c10afb9Smrg echo "$usage"; exit 0 ;; 915c10afb9Smrg -- ) # Stop option processing 925c10afb9Smrg shift; break ;; 935c10afb9Smrg - ) # Use stdin as input. 945c10afb9Smrg break ;; 955c10afb9Smrg -* ) 965c10afb9Smrg echo "$me: invalid option $1$help" 975c10afb9Smrg exit 1 ;; 985c10afb9Smrg 995c10afb9Smrg *local*) 1005c10afb9Smrg # First pass through any local machine types. 1015c10afb9Smrg echo $1 1025c10afb9Smrg exit 0;; 1035c10afb9Smrg 1045c10afb9Smrg * ) 1055c10afb9Smrg break ;; 1065c10afb9Smrg esac 1075c10afb9Smrgdone 1085c10afb9Smrg 1095c10afb9Smrgcase $# in 1105c10afb9Smrg 0) echo "$me: missing argument$help" >&2 1115c10afb9Smrg exit 1;; 1125c10afb9Smrg 1) ;; 1135c10afb9Smrg *) echo "$me: too many arguments$help" >&2 1145c10afb9Smrg exit 1;; 1155c10afb9Smrgesac 1165c10afb9Smrg 1175c10afb9Smrg# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). 1185c10afb9Smrg# Here we must recognize all the valid KERNEL-OS combinations. 1195c10afb9Smrgmaybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` 1205c10afb9Smrgcase $maybe_os in 1215c10afb9Smrg nto-qnx* | linux-gnu* | freebsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*) 1225c10afb9Smrg os=-$maybe_os 1235c10afb9Smrg basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` 1245c10afb9Smrg ;; 1255c10afb9Smrg *) 1265c10afb9Smrg basic_machine=`echo $1 | sed 's/-[^-]*$//'` 1275c10afb9Smrg if [ $basic_machine != $1 ] 1285c10afb9Smrg then os=`echo $1 | sed 's/.*-/-/'` 1295c10afb9Smrg else os=; fi 1305c10afb9Smrg ;; 1315c10afb9Smrgesac 1325c10afb9Smrg 1335c10afb9Smrg### Let's recognize common machines as not being operating systems so 1345c10afb9Smrg### that things like config.sub decstation-3100 work. We also 1355c10afb9Smrg### recognize some manufacturers as not being operating systems, so we 1365c10afb9Smrg### can provide default operating systems below. 1375c10afb9Smrgcase $os in 1385c10afb9Smrg -sun*os*) 1395c10afb9Smrg # Prevent following clause from handling this invalid input. 1405c10afb9Smrg ;; 1415c10afb9Smrg -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \ 1425c10afb9Smrg -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ 1435c10afb9Smrg -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ 1445c10afb9Smrg -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ 1455c10afb9Smrg -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ 1465c10afb9Smrg -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ 1475c10afb9Smrg -apple | -axis) 1485c10afb9Smrg os= 1495c10afb9Smrg basic_machine=$1 1505c10afb9Smrg ;; 1515c10afb9Smrg -sim | -cisco | -oki | -wec | -winbond) 1525c10afb9Smrg os= 1535c10afb9Smrg basic_machine=$1 1545c10afb9Smrg ;; 1555c10afb9Smrg -scout) 1565c10afb9Smrg ;; 1575c10afb9Smrg -wrs) 1585c10afb9Smrg os=-vxworks 1595c10afb9Smrg basic_machine=$1 1605c10afb9Smrg ;; 1615c10afb9Smrg -chorusos*) 1625c10afb9Smrg os=-chorusos 1635c10afb9Smrg basic_machine=$1 1645c10afb9Smrg ;; 1655c10afb9Smrg -chorusrdb) 1665c10afb9Smrg os=-chorusrdb 1675c10afb9Smrg basic_machine=$1 1685c10afb9Smrg ;; 1695c10afb9Smrg -hiux*) 1705c10afb9Smrg os=-hiuxwe2 1715c10afb9Smrg ;; 1725c10afb9Smrg -sco5) 1735c10afb9Smrg os=-sco3.2v5 1745c10afb9Smrg basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 1755c10afb9Smrg ;; 1765c10afb9Smrg -sco4) 1775c10afb9Smrg os=-sco3.2v4 1785c10afb9Smrg basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 1795c10afb9Smrg ;; 1805c10afb9Smrg -sco3.2.[4-9]*) 1815c10afb9Smrg os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` 1825c10afb9Smrg basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 1835c10afb9Smrg ;; 1845c10afb9Smrg -sco3.2v[4-9]*) 1855c10afb9Smrg # Don't forget version if it is 3.2v4 or newer. 1865c10afb9Smrg basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 1875c10afb9Smrg ;; 1885c10afb9Smrg -sco*) 1895c10afb9Smrg os=-sco3.2v2 1905c10afb9Smrg basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 1915c10afb9Smrg ;; 1925c10afb9Smrg -udk*) 1935c10afb9Smrg basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 1945c10afb9Smrg ;; 1955c10afb9Smrg -isc) 1965c10afb9Smrg os=-isc2.2 1975c10afb9Smrg basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 1985c10afb9Smrg ;; 1995c10afb9Smrg -clix*) 2005c10afb9Smrg basic_machine=clipper-intergraph 2015c10afb9Smrg ;; 2025c10afb9Smrg -isc*) 2035c10afb9Smrg basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 2045c10afb9Smrg ;; 2055c10afb9Smrg -lynx*) 2065c10afb9Smrg os=-lynxos 2075c10afb9Smrg ;; 2085c10afb9Smrg -ptx*) 2095c10afb9Smrg basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'` 2105c10afb9Smrg ;; 2115c10afb9Smrg -windowsnt*) 2125c10afb9Smrg os=`echo $os | sed -e 's/windowsnt/winnt/'` 2135c10afb9Smrg ;; 2145c10afb9Smrg -psos*) 2155c10afb9Smrg os=-psos 2165c10afb9Smrg ;; 2175c10afb9Smrg -mint | -mint[0-9]*) 2185c10afb9Smrg basic_machine=m68k-atari 2195c10afb9Smrg os=-mint 2205c10afb9Smrg ;; 2215c10afb9Smrgesac 2225c10afb9Smrg 2235c10afb9Smrg# Decode aliases for certain CPU-COMPANY combinations. 2245c10afb9Smrgcase $basic_machine in 2255c10afb9Smrg # Recognize the basic CPU types without company name. 2265c10afb9Smrg # Some are omitted here because they have special meanings below. 2275c10afb9Smrg 1750a | 580 \ 2285c10afb9Smrg | a29k \ 2295c10afb9Smrg | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ 2305c10afb9Smrg | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ 2315c10afb9Smrg | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \ 2325c10afb9Smrg | c4x | clipper \ 2335c10afb9Smrg | d10v | d30v | dlx | dsp16xx \ 2345c10afb9Smrg | fr30 | frv \ 2355c10afb9Smrg | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ 2365c10afb9Smrg | i370 | i860 | i960 | ia64 \ 2375c10afb9Smrg | ip2k \ 2385c10afb9Smrg | m32r | m68000 | m68k | m88k | mcore \ 2395c10afb9Smrg | mips | mipsbe | mipseb | mipsel | mipsle \ 2405c10afb9Smrg | mips16 \ 2415c10afb9Smrg | mips64 | mips64el \ 2425c10afb9Smrg | mips64vr | mips64vrel \ 2435c10afb9Smrg | mips64orion | mips64orionel \ 2445c10afb9Smrg | mips64vr4100 | mips64vr4100el \ 2455c10afb9Smrg | mips64vr4300 | mips64vr4300el \ 2465c10afb9Smrg | mips64vr5000 | mips64vr5000el \ 2475c10afb9Smrg | mipsisa32 | mipsisa32el \ 2485c10afb9Smrg | mipsisa32r2 | mipsisa32r2el \ 2495c10afb9Smrg | mipsisa64 | mipsisa64el \ 2505c10afb9Smrg | mipsisa64sb1 | mipsisa64sb1el \ 2515c10afb9Smrg | mipsisa64sr71k | mipsisa64sr71kel \ 2525c10afb9Smrg | mipstx39 | mipstx39el \ 2535c10afb9Smrg | mn10200 | mn10300 \ 2545c10afb9Smrg | msp430 \ 2555c10afb9Smrg | ns16k | ns32k \ 2565c10afb9Smrg | openrisc | or32 \ 2575c10afb9Smrg | pdp10 | pdp11 | pj | pjl \ 2585c10afb9Smrg | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ 2595c10afb9Smrg | pyramid \ 2605c10afb9Smrg | s390 | s390x \ 2615c10afb9Smrg | sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \ 2625c10afb9Smrg | sh64 | sh64le \ 2635c10afb9Smrg | sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv9 | sparcv9b \ 2645c10afb9Smrg | strongarm \ 2655c10afb9Smrg | tahoe | thumb | tic4x | tic80 | tron \ 2665c10afb9Smrg | v850 | v850e \ 2675c10afb9Smrg | we32k \ 2685c10afb9Smrg | x86 | xscale | xstormy16 | xtensa \ 2695c10afb9Smrg | z8k) 2705c10afb9Smrg basic_machine=$basic_machine-unknown 2715c10afb9Smrg ;; 2725c10afb9Smrg m6811 | m68hc11 | m6812 | m68hc12) 2735c10afb9Smrg # Motorola 68HC11/12. 2745c10afb9Smrg basic_machine=$basic_machine-unknown 2755c10afb9Smrg os=-none 2765c10afb9Smrg ;; 2775c10afb9Smrg m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) 2785c10afb9Smrg ;; 2795c10afb9Smrg 2805c10afb9Smrg # We use `pc' rather than `unknown' 2815c10afb9Smrg # because (1) that's what they normally are, and 2825c10afb9Smrg # (2) the word "unknown" tends to confuse beginning users. 2835c10afb9Smrg i*86 | x86_64) 2845c10afb9Smrg basic_machine=$basic_machine-pc 2855c10afb9Smrg ;; 2865c10afb9Smrg # Object if more than one company name word. 2875c10afb9Smrg *-*-*) 2885c10afb9Smrg echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 2895c10afb9Smrg exit 1 2905c10afb9Smrg ;; 2915c10afb9Smrg # Recognize the basic CPU types with company name. 2925c10afb9Smrg 580-* \ 2935c10afb9Smrg | a29k-* \ 2945c10afb9Smrg | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ 2955c10afb9Smrg | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ 2965c10afb9Smrg | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ 2975c10afb9Smrg | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ 2985c10afb9Smrg | avr-* \ 2995c10afb9Smrg | bs2000-* \ 3005c10afb9Smrg | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \ 3015c10afb9Smrg | clipper-* | cydra-* \ 3025c10afb9Smrg | d10v-* | d30v-* | dlx-* \ 3035c10afb9Smrg | elxsi-* \ 3045c10afb9Smrg | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \ 3055c10afb9Smrg | h8300-* | h8500-* \ 3065c10afb9Smrg | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ 3075c10afb9Smrg | i*86-* | i860-* | i960-* | ia64-* \ 3085c10afb9Smrg | ip2k-* \ 3095c10afb9Smrg | m32r-* \ 3105c10afb9Smrg | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ 3115c10afb9Smrg | m88110-* | m88k-* | mcore-* \ 3125c10afb9Smrg | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ 3135c10afb9Smrg | mips16-* \ 3145c10afb9Smrg | mips64-* | mips64el-* \ 3155c10afb9Smrg | mips64vr-* | mips64vrel-* \ 3165c10afb9Smrg | mips64orion-* | mips64orionel-* \ 3175c10afb9Smrg | mips64vr4100-* | mips64vr4100el-* \ 3185c10afb9Smrg | mips64vr4300-* | mips64vr4300el-* \ 3195c10afb9Smrg | mips64vr5000-* | mips64vr5000el-* \ 3205c10afb9Smrg | mipsisa32-* | mipsisa32el-* \ 3215c10afb9Smrg | mipsisa32r2-* | mipsisa32r2el-* \ 3225c10afb9Smrg | mipsisa64-* | mipsisa64el-* \ 3235c10afb9Smrg | mipsisa64sb1-* | mipsisa64sb1el-* \ 3245c10afb9Smrg | mipsisa64sr71k-* | mipsisa64sr71kel-* \ 3255c10afb9Smrg | mipstx39-* | mipstx39el-* \ 3265c10afb9Smrg | msp430-* \ 3275c10afb9Smrg | none-* | np1-* | nv1-* | ns16k-* | ns32k-* \ 3285c10afb9Smrg | orion-* \ 3295c10afb9Smrg | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ 3305c10afb9Smrg | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ 3315c10afb9Smrg | pyramid-* \ 3325c10afb9Smrg | romp-* | rs6000-* \ 3335c10afb9Smrg | s390-* | s390x-* \ 3345c10afb9Smrg | sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \ 3355c10afb9Smrg | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ 3365c10afb9Smrg | sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \ 3375c10afb9Smrg | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \ 3385c10afb9Smrg | tahoe-* | thumb-* \ 3395c10afb9Smrg | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ 3405c10afb9Smrg | tron-* \ 3415c10afb9Smrg | v850-* | v850e-* | vax-* \ 3425c10afb9Smrg | we32k-* \ 3435c10afb9Smrg | x86-* | x86_64-* | xps100-* | xscale-* | xstormy16-* \ 3445c10afb9Smrg | xtensa-* \ 3455c10afb9Smrg | ymp-* \ 3465c10afb9Smrg | z8k-*) 3475c10afb9Smrg ;; 3485c10afb9Smrg # Recognize the various machine names and aliases which stand 3495c10afb9Smrg # for a CPU type and a company and sometimes even an OS. 3505c10afb9Smrg 386bsd) 3515c10afb9Smrg basic_machine=i386-unknown 3525c10afb9Smrg os=-bsd 3535c10afb9Smrg ;; 3545c10afb9Smrg 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) 3555c10afb9Smrg basic_machine=m68000-att 3565c10afb9Smrg ;; 3575c10afb9Smrg 3b*) 3585c10afb9Smrg basic_machine=we32k-att 3595c10afb9Smrg ;; 3605c10afb9Smrg a29khif) 3615c10afb9Smrg basic_machine=a29k-amd 3625c10afb9Smrg os=-udi 3635c10afb9Smrg ;; 3645c10afb9Smrg adobe68k) 3655c10afb9Smrg basic_machine=m68010-adobe 3665c10afb9Smrg os=-scout 3675c10afb9Smrg ;; 3685c10afb9Smrg alliant | fx80) 3695c10afb9Smrg basic_machine=fx80-alliant 3705c10afb9Smrg ;; 3715c10afb9Smrg altos | altos3068) 3725c10afb9Smrg basic_machine=m68k-altos 3735c10afb9Smrg ;; 3745c10afb9Smrg am29k) 3755c10afb9Smrg basic_machine=a29k-none 3765c10afb9Smrg os=-bsd 3775c10afb9Smrg ;; 3785c10afb9Smrg amd64) 3795c10afb9Smrg basic_machine=x86_64-pc 3805c10afb9Smrg ;; 3815c10afb9Smrg amdahl) 3825c10afb9Smrg basic_machine=580-amdahl 3835c10afb9Smrg os=-sysv 3845c10afb9Smrg ;; 3855c10afb9Smrg amiga | amiga-*) 3865c10afb9Smrg basic_machine=m68k-unknown 3875c10afb9Smrg ;; 3885c10afb9Smrg amigaos | amigados) 3895c10afb9Smrg basic_machine=m68k-unknown 3905c10afb9Smrg os=-amigaos 3915c10afb9Smrg ;; 3925c10afb9Smrg amigaunix | amix) 3935c10afb9Smrg basic_machine=m68k-unknown 3945c10afb9Smrg os=-sysv4 3955c10afb9Smrg ;; 3965c10afb9Smrg apollo68) 3975c10afb9Smrg basic_machine=m68k-apollo 3985c10afb9Smrg os=-sysv 3995c10afb9Smrg ;; 4005c10afb9Smrg apollo68bsd) 4015c10afb9Smrg basic_machine=m68k-apollo 4025c10afb9Smrg os=-bsd 4035c10afb9Smrg ;; 4045c10afb9Smrg aux) 4055c10afb9Smrg basic_machine=m68k-apple 4065c10afb9Smrg os=-aux 4075c10afb9Smrg ;; 4085c10afb9Smrg balance) 4095c10afb9Smrg basic_machine=ns32k-sequent 4105c10afb9Smrg os=-dynix 4115c10afb9Smrg ;; 4125c10afb9Smrg c90) 4135c10afb9Smrg basic_machine=c90-cray 4145c10afb9Smrg os=-unicos 4155c10afb9Smrg ;; 4165c10afb9Smrg convex-c1) 4175c10afb9Smrg basic_machine=c1-convex 4185c10afb9Smrg os=-bsd 4195c10afb9Smrg ;; 4205c10afb9Smrg convex-c2) 4215c10afb9Smrg basic_machine=c2-convex 4225c10afb9Smrg os=-bsd 4235c10afb9Smrg ;; 4245c10afb9Smrg convex-c32) 4255c10afb9Smrg basic_machine=c32-convex 4265c10afb9Smrg os=-bsd 4275c10afb9Smrg ;; 4285c10afb9Smrg convex-c34) 4295c10afb9Smrg basic_machine=c34-convex 4305c10afb9Smrg os=-bsd 4315c10afb9Smrg ;; 4325c10afb9Smrg convex-c38) 4335c10afb9Smrg basic_machine=c38-convex 4345c10afb9Smrg os=-bsd 4355c10afb9Smrg ;; 4365c10afb9Smrg cray | j90) 4375c10afb9Smrg basic_machine=j90-cray 4385c10afb9Smrg os=-unicos 4395c10afb9Smrg ;; 4405c10afb9Smrg crds | unos) 4415c10afb9Smrg basic_machine=m68k-crds 4425c10afb9Smrg ;; 4435c10afb9Smrg cris | cris-* | etrax*) 4445c10afb9Smrg basic_machine=cris-axis 4455c10afb9Smrg ;; 4465c10afb9Smrg da30 | da30-*) 4475c10afb9Smrg basic_machine=m68k-da30 4485c10afb9Smrg ;; 4495c10afb9Smrg decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn) 4505c10afb9Smrg basic_machine=mips-dec 4515c10afb9Smrg ;; 4525c10afb9Smrg decsystem10* | dec10*) 4535c10afb9Smrg basic_machine=pdp10-dec 4545c10afb9Smrg os=-tops10 4555c10afb9Smrg ;; 4565c10afb9Smrg decsystem20* | dec20*) 4575c10afb9Smrg basic_machine=pdp10-dec 4585c10afb9Smrg os=-tops20 4595c10afb9Smrg ;; 4605c10afb9Smrg delta | 3300 | motorola-3300 | motorola-delta \ 4615c10afb9Smrg | 3300-motorola | delta-motorola) 4625c10afb9Smrg basic_machine=m68k-motorola 4635c10afb9Smrg ;; 4645c10afb9Smrg delta88) 4655c10afb9Smrg basic_machine=m88k-motorola 4665c10afb9Smrg os=-sysv3 4675c10afb9Smrg ;; 4685c10afb9Smrg dpx20 | dpx20-*) 4695c10afb9Smrg basic_machine=rs6000-bull 4705c10afb9Smrg os=-bosx 4715c10afb9Smrg ;; 4725c10afb9Smrg dpx2* | dpx2*-bull) 4735c10afb9Smrg basic_machine=m68k-bull 4745c10afb9Smrg os=-sysv3 4755c10afb9Smrg ;; 4765c10afb9Smrg ebmon29k) 4775c10afb9Smrg basic_machine=a29k-amd 4785c10afb9Smrg os=-ebmon 4795c10afb9Smrg ;; 4805c10afb9Smrg elxsi) 4815c10afb9Smrg basic_machine=elxsi-elxsi 4825c10afb9Smrg os=-bsd 4835c10afb9Smrg ;; 4845c10afb9Smrg encore | umax | mmax) 4855c10afb9Smrg basic_machine=ns32k-encore 4865c10afb9Smrg ;; 4875c10afb9Smrg es1800 | OSE68k | ose68k | ose | OSE) 4885c10afb9Smrg basic_machine=m68k-ericsson 4895c10afb9Smrg os=-ose 4905c10afb9Smrg ;; 4915c10afb9Smrg fx2800) 4925c10afb9Smrg basic_machine=i860-alliant 4935c10afb9Smrg ;; 4945c10afb9Smrg genix) 4955c10afb9Smrg basic_machine=ns32k-ns 4965c10afb9Smrg ;; 4975c10afb9Smrg gmicro) 4985c10afb9Smrg basic_machine=tron-gmicro 4995c10afb9Smrg os=-sysv 5005c10afb9Smrg ;; 5015c10afb9Smrg go32) 5025c10afb9Smrg basic_machine=i386-pc 5035c10afb9Smrg os=-go32 5045c10afb9Smrg ;; 5055c10afb9Smrg h3050r* | hiux*) 5065c10afb9Smrg basic_machine=hppa1.1-hitachi 5075c10afb9Smrg os=-hiuxwe2 5085c10afb9Smrg ;; 5095c10afb9Smrg h8300hms) 5105c10afb9Smrg basic_machine=h8300-hitachi 5115c10afb9Smrg os=-hms 5125c10afb9Smrg ;; 5135c10afb9Smrg h8300xray) 5145c10afb9Smrg basic_machine=h8300-hitachi 5155c10afb9Smrg os=-xray 5165c10afb9Smrg ;; 5175c10afb9Smrg h8500hms) 5185c10afb9Smrg basic_machine=h8500-hitachi 5195c10afb9Smrg os=-hms 5205c10afb9Smrg ;; 5215c10afb9Smrg harris) 5225c10afb9Smrg basic_machine=m88k-harris 5235c10afb9Smrg os=-sysv3 5245c10afb9Smrg ;; 5255c10afb9Smrg hp300-*) 5265c10afb9Smrg basic_machine=m68k-hp 5275c10afb9Smrg ;; 5285c10afb9Smrg hp300bsd) 5295c10afb9Smrg basic_machine=m68k-hp 5305c10afb9Smrg os=-bsd 5315c10afb9Smrg ;; 5325c10afb9Smrg hp300hpux) 5335c10afb9Smrg basic_machine=m68k-hp 5345c10afb9Smrg os=-hpux 5355c10afb9Smrg ;; 5365c10afb9Smrg hp3k9[0-9][0-9] | hp9[0-9][0-9]) 5375c10afb9Smrg basic_machine=hppa1.0-hp 5385c10afb9Smrg ;; 5395c10afb9Smrg hp9k2[0-9][0-9] | hp9k31[0-9]) 5405c10afb9Smrg basic_machine=m68000-hp 5415c10afb9Smrg ;; 5425c10afb9Smrg hp9k3[2-9][0-9]) 5435c10afb9Smrg basic_machine=m68k-hp 5445c10afb9Smrg ;; 5455c10afb9Smrg hp9k6[0-9][0-9] | hp6[0-9][0-9]) 5465c10afb9Smrg basic_machine=hppa1.0-hp 5475c10afb9Smrg ;; 5485c10afb9Smrg hp9k7[0-79][0-9] | hp7[0-79][0-9]) 5495c10afb9Smrg basic_machine=hppa1.1-hp 5505c10afb9Smrg ;; 5515c10afb9Smrg hp9k78[0-9] | hp78[0-9]) 5525c10afb9Smrg # FIXME: really hppa2.0-hp 5535c10afb9Smrg basic_machine=hppa1.1-hp 5545c10afb9Smrg ;; 5555c10afb9Smrg hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893) 5565c10afb9Smrg # FIXME: really hppa2.0-hp 5575c10afb9Smrg basic_machine=hppa1.1-hp 5585c10afb9Smrg ;; 5595c10afb9Smrg hp9k8[0-9][13679] | hp8[0-9][13679]) 5605c10afb9Smrg basic_machine=hppa1.1-hp 5615c10afb9Smrg ;; 5625c10afb9Smrg hp9k8[0-9][0-9] | hp8[0-9][0-9]) 5635c10afb9Smrg basic_machine=hppa1.0-hp 5645c10afb9Smrg ;; 5655c10afb9Smrg hppa-next) 5665c10afb9Smrg os=-nextstep3 5675c10afb9Smrg ;; 5685c10afb9Smrg hppaosf) 5695c10afb9Smrg basic_machine=hppa1.1-hp 5705c10afb9Smrg os=-osf 5715c10afb9Smrg ;; 5725c10afb9Smrg hppro) 5735c10afb9Smrg basic_machine=hppa1.1-hp 5745c10afb9Smrg os=-proelf 5755c10afb9Smrg ;; 5765c10afb9Smrg i370-ibm* | ibm*) 5775c10afb9Smrg basic_machine=i370-ibm 5785c10afb9Smrg ;; 5795c10afb9Smrg# I'm not sure what "Sysv32" means. Should this be sysv3.2? 5805c10afb9Smrg i*86v32) 5815c10afb9Smrg basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` 5825c10afb9Smrg os=-sysv32 5835c10afb9Smrg ;; 5845c10afb9Smrg i*86v4*) 5855c10afb9Smrg basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` 5865c10afb9Smrg os=-sysv4 5875c10afb9Smrg ;; 5885c10afb9Smrg i*86v) 5895c10afb9Smrg basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` 5905c10afb9Smrg os=-sysv 5915c10afb9Smrg ;; 5925c10afb9Smrg i*86sol2) 5935c10afb9Smrg basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` 5945c10afb9Smrg os=-solaris2 5955c10afb9Smrg ;; 5965c10afb9Smrg i386mach) 5975c10afb9Smrg basic_machine=i386-mach 5985c10afb9Smrg os=-mach 5995c10afb9Smrg ;; 6005c10afb9Smrg i386-vsta | vsta) 6015c10afb9Smrg basic_machine=i386-unknown 6025c10afb9Smrg os=-vsta 6035c10afb9Smrg ;; 6045c10afb9Smrg iris | iris4d) 6055c10afb9Smrg basic_machine=mips-sgi 6065c10afb9Smrg case $os in 6075c10afb9Smrg -irix*) 6085c10afb9Smrg ;; 6095c10afb9Smrg *) 6105c10afb9Smrg os=-irix4 6115c10afb9Smrg ;; 6125c10afb9Smrg esac 6135c10afb9Smrg ;; 6145c10afb9Smrg isi68 | isi) 6155c10afb9Smrg basic_machine=m68k-isi 6165c10afb9Smrg os=-sysv 6175c10afb9Smrg ;; 6185c10afb9Smrg m88k-omron*) 6195c10afb9Smrg basic_machine=m88k-omron 6205c10afb9Smrg ;; 6215c10afb9Smrg magnum | m3230) 6225c10afb9Smrg basic_machine=mips-mips 6235c10afb9Smrg os=-sysv 6245c10afb9Smrg ;; 6255c10afb9Smrg merlin) 6265c10afb9Smrg basic_machine=ns32k-utek 6275c10afb9Smrg os=-sysv 6285c10afb9Smrg ;; 6295c10afb9Smrg mingw32) 6305c10afb9Smrg basic_machine=i386-pc 6315c10afb9Smrg os=-mingw32 6325c10afb9Smrg ;; 6335c10afb9Smrg miniframe) 6345c10afb9Smrg basic_machine=m68000-convergent 6355c10afb9Smrg ;; 6365c10afb9Smrg *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*) 6375c10afb9Smrg basic_machine=m68k-atari 6385c10afb9Smrg os=-mint 6395c10afb9Smrg ;; 6405c10afb9Smrg mips3*-*) 6415c10afb9Smrg basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` 6425c10afb9Smrg ;; 6435c10afb9Smrg mips3*) 6445c10afb9Smrg basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown 6455c10afb9Smrg ;; 6465c10afb9Smrg mmix*) 6475c10afb9Smrg basic_machine=mmix-knuth 6485c10afb9Smrg os=-mmixware 6495c10afb9Smrg ;; 6505c10afb9Smrg monitor) 6515c10afb9Smrg basic_machine=m68k-rom68k 6525c10afb9Smrg os=-coff 6535c10afb9Smrg ;; 6545c10afb9Smrg morphos) 6555c10afb9Smrg basic_machine=powerpc-unknown 6565c10afb9Smrg os=-morphos 6575c10afb9Smrg ;; 6585c10afb9Smrg msdos) 6595c10afb9Smrg basic_machine=i386-pc 6605c10afb9Smrg os=-msdos 6615c10afb9Smrg ;; 6625c10afb9Smrg mvs) 6635c10afb9Smrg basic_machine=i370-ibm 6645c10afb9Smrg os=-mvs 6655c10afb9Smrg ;; 6665c10afb9Smrg ncr3000) 6675c10afb9Smrg basic_machine=i486-ncr 6685c10afb9Smrg os=-sysv4 6695c10afb9Smrg ;; 6705c10afb9Smrg netbsd386) 6715c10afb9Smrg basic_machine=i386-unknown 6725c10afb9Smrg os=-netbsd 6735c10afb9Smrg ;; 6745c10afb9Smrg netwinder) 6755c10afb9Smrg basic_machine=armv4l-rebel 6765c10afb9Smrg os=-linux 6775c10afb9Smrg ;; 6785c10afb9Smrg news | news700 | news800 | news900) 6795c10afb9Smrg basic_machine=m68k-sony 6805c10afb9Smrg os=-newsos 6815c10afb9Smrg ;; 6825c10afb9Smrg news1000) 6835c10afb9Smrg basic_machine=m68030-sony 6845c10afb9Smrg os=-newsos 6855c10afb9Smrg ;; 6865c10afb9Smrg news-3600 | risc-news) 6875c10afb9Smrg basic_machine=mips-sony 6885c10afb9Smrg os=-newsos 6895c10afb9Smrg ;; 6905c10afb9Smrg necv70) 6915c10afb9Smrg basic_machine=v70-nec 6925c10afb9Smrg os=-sysv 6935c10afb9Smrg ;; 6945c10afb9Smrg next | m*-next ) 6955c10afb9Smrg basic_machine=m68k-next 6965c10afb9Smrg case $os in 6975c10afb9Smrg -nextstep* ) 6985c10afb9Smrg ;; 6995c10afb9Smrg -ns2*) 7005c10afb9Smrg os=-nextstep2 7015c10afb9Smrg ;; 7025c10afb9Smrg *) 7035c10afb9Smrg os=-nextstep3 7045c10afb9Smrg ;; 7055c10afb9Smrg esac 7065c10afb9Smrg ;; 7075c10afb9Smrg nh3000) 7085c10afb9Smrg basic_machine=m68k-harris 7095c10afb9Smrg os=-cxux 7105c10afb9Smrg ;; 7115c10afb9Smrg nh[45]000) 7125c10afb9Smrg basic_machine=m88k-harris 7135c10afb9Smrg os=-cxux 7145c10afb9Smrg ;; 7155c10afb9Smrg nindy960) 7165c10afb9Smrg basic_machine=i960-intel 7175c10afb9Smrg os=-nindy 7185c10afb9Smrg ;; 7195c10afb9Smrg mon960) 7205c10afb9Smrg basic_machine=i960-intel 7215c10afb9Smrg os=-mon960 7225c10afb9Smrg ;; 7235c10afb9Smrg nonstopux) 7245c10afb9Smrg basic_machine=mips-compaq 7255c10afb9Smrg os=-nonstopux 7265c10afb9Smrg ;; 7275c10afb9Smrg np1) 7285c10afb9Smrg basic_machine=np1-gould 7295c10afb9Smrg ;; 7305c10afb9Smrg nv1) 7315c10afb9Smrg basic_machine=nv1-cray 7325c10afb9Smrg os=-unicosmp 7335c10afb9Smrg ;; 7345c10afb9Smrg nsr-tandem) 7355c10afb9Smrg basic_machine=nsr-tandem 7365c10afb9Smrg ;; 7375c10afb9Smrg op50n-* | op60c-*) 7385c10afb9Smrg basic_machine=hppa1.1-oki 7395c10afb9Smrg os=-proelf 7405c10afb9Smrg ;; 7415c10afb9Smrg or32 | or32-*) 7425c10afb9Smrg basic_machine=or32-unknown 7435c10afb9Smrg os=-coff 7445c10afb9Smrg ;; 7455c10afb9Smrg OSE68000 | ose68000) 7465c10afb9Smrg basic_machine=m68000-ericsson 7475c10afb9Smrg os=-ose 7485c10afb9Smrg ;; 7495c10afb9Smrg os68k) 7505c10afb9Smrg basic_machine=m68k-none 7515c10afb9Smrg os=-os68k 7525c10afb9Smrg ;; 7535c10afb9Smrg pa-hitachi) 7545c10afb9Smrg basic_machine=hppa1.1-hitachi 7555c10afb9Smrg os=-hiuxwe2 7565c10afb9Smrg ;; 7575c10afb9Smrg paragon) 7585c10afb9Smrg basic_machine=i860-intel 7595c10afb9Smrg os=-osf 7605c10afb9Smrg ;; 7615c10afb9Smrg pbd) 7625c10afb9Smrg basic_machine=sparc-tti 7635c10afb9Smrg ;; 7645c10afb9Smrg pbb) 7655c10afb9Smrg basic_machine=m68k-tti 7665c10afb9Smrg ;; 7675c10afb9Smrg pc532 | pc532-*) 7685c10afb9Smrg basic_machine=ns32k-pc532 7695c10afb9Smrg ;; 7705c10afb9Smrg pentium | p5 | k5 | k6 | nexgen | viac3) 7715c10afb9Smrg basic_machine=i586-pc 7725c10afb9Smrg ;; 7735c10afb9Smrg pentiumpro | p6 | 6x86 | athlon | athlon_*) 7745c10afb9Smrg basic_machine=i686-pc 7755c10afb9Smrg ;; 7765c10afb9Smrg pentiumii | pentium2 | pentiumiii | pentium3) 7775c10afb9Smrg basic_machine=i686-pc 7785c10afb9Smrg ;; 7795c10afb9Smrg pentium4) 7805c10afb9Smrg basic_machine=i786-pc 7815c10afb9Smrg ;; 7825c10afb9Smrg pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) 7835c10afb9Smrg basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` 7845c10afb9Smrg ;; 7855c10afb9Smrg pentiumpro-* | p6-* | 6x86-* | athlon-*) 7865c10afb9Smrg basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` 7875c10afb9Smrg ;; 7885c10afb9Smrg pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*) 7895c10afb9Smrg basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` 7905c10afb9Smrg ;; 7915c10afb9Smrg pentium4-*) 7925c10afb9Smrg basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'` 7935c10afb9Smrg ;; 7945c10afb9Smrg pn) 7955c10afb9Smrg basic_machine=pn-gould 7965c10afb9Smrg ;; 7975c10afb9Smrg power) basic_machine=power-ibm 7985c10afb9Smrg ;; 7995c10afb9Smrg ppc) basic_machine=powerpc-unknown 8005c10afb9Smrg ;; 8015c10afb9Smrg ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` 8025c10afb9Smrg ;; 8035c10afb9Smrg ppcle | powerpclittle | ppc-le | powerpc-little) 8045c10afb9Smrg basic_machine=powerpcle-unknown 8055c10afb9Smrg ;; 8065c10afb9Smrg ppcle-* | powerpclittle-*) 8075c10afb9Smrg basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` 8085c10afb9Smrg ;; 8095c10afb9Smrg ppc64) basic_machine=powerpc64-unknown 8105c10afb9Smrg ;; 8115c10afb9Smrg ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'` 8125c10afb9Smrg ;; 8135c10afb9Smrg ppc64le | powerpc64little | ppc64-le | powerpc64-little) 8145c10afb9Smrg basic_machine=powerpc64le-unknown 8155c10afb9Smrg ;; 8165c10afb9Smrg ppc64le-* | powerpc64little-*) 8175c10afb9Smrg basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'` 8185c10afb9Smrg ;; 8195c10afb9Smrg ps2) 8205c10afb9Smrg basic_machine=i386-ibm 8215c10afb9Smrg ;; 8225c10afb9Smrg pw32) 8235c10afb9Smrg basic_machine=i586-unknown 8245c10afb9Smrg os=-pw32 8255c10afb9Smrg ;; 8265c10afb9Smrg rom68k) 8275c10afb9Smrg basic_machine=m68k-rom68k 8285c10afb9Smrg os=-coff 8295c10afb9Smrg ;; 8305c10afb9Smrg rm[46]00) 8315c10afb9Smrg basic_machine=mips-siemens 8325c10afb9Smrg ;; 8335c10afb9Smrg rtpc | rtpc-*) 8345c10afb9Smrg basic_machine=romp-ibm 8355c10afb9Smrg ;; 8365c10afb9Smrg sa29200) 8375c10afb9Smrg basic_machine=a29k-amd 8385c10afb9Smrg os=-udi 8395c10afb9Smrg ;; 8405c10afb9Smrg sb1) 8415c10afb9Smrg basic_machine=mipsisa64sb1-unknown 8425c10afb9Smrg ;; 8435c10afb9Smrg sb1el) 8445c10afb9Smrg basic_machine=mipsisa64sb1el-unknown 8455c10afb9Smrg ;; 8465c10afb9Smrg sei) 8475c10afb9Smrg basic_machine=mips-sei 8485c10afb9Smrg os=-seiux 8495c10afb9Smrg ;; 8505c10afb9Smrg sequent) 8515c10afb9Smrg basic_machine=i386-sequent 8525c10afb9Smrg ;; 8535c10afb9Smrg sh) 8545c10afb9Smrg basic_machine=sh-hitachi 8555c10afb9Smrg os=-hms 8565c10afb9Smrg ;; 8575c10afb9Smrg sh64) 8585c10afb9Smrg basic_machine=sh64-unknown 8595c10afb9Smrg ;; 8605c10afb9Smrg sparclite-wrs | simso-wrs) 8615c10afb9Smrg basic_machine=sparclite-wrs 8625c10afb9Smrg os=-vxworks 8635c10afb9Smrg ;; 8645c10afb9Smrg sps7) 8655c10afb9Smrg basic_machine=m68k-bull 8665c10afb9Smrg os=-sysv2 8675c10afb9Smrg ;; 8685c10afb9Smrg spur) 8695c10afb9Smrg basic_machine=spur-unknown 8705c10afb9Smrg ;; 8715c10afb9Smrg st2000) 8725c10afb9Smrg basic_machine=m68k-tandem 8735c10afb9Smrg ;; 8745c10afb9Smrg stratus) 8755c10afb9Smrg basic_machine=i860-stratus 8765c10afb9Smrg os=-sysv4 8775c10afb9Smrg ;; 8785c10afb9Smrg sun2) 8795c10afb9Smrg basic_machine=m68000-sun 8805c10afb9Smrg ;; 8815c10afb9Smrg sun2os3) 8825c10afb9Smrg basic_machine=m68000-sun 8835c10afb9Smrg os=-sunos3 8845c10afb9Smrg ;; 8855c10afb9Smrg sun2os4) 8865c10afb9Smrg basic_machine=m68000-sun 8875c10afb9Smrg os=-sunos4 8885c10afb9Smrg ;; 8895c10afb9Smrg sun3os3) 8905c10afb9Smrg basic_machine=m68k-sun 8915c10afb9Smrg os=-sunos3 8925c10afb9Smrg ;; 8935c10afb9Smrg sun3os4) 8945c10afb9Smrg basic_machine=m68k-sun 8955c10afb9Smrg os=-sunos4 8965c10afb9Smrg ;; 8975c10afb9Smrg sun4os3) 8985c10afb9Smrg basic_machine=sparc-sun 8995c10afb9Smrg os=-sunos3 9005c10afb9Smrg ;; 9015c10afb9Smrg sun4os4) 9025c10afb9Smrg basic_machine=sparc-sun 9035c10afb9Smrg os=-sunos4 9045c10afb9Smrg ;; 9055c10afb9Smrg sun4sol2) 9065c10afb9Smrg basic_machine=sparc-sun 9075c10afb9Smrg os=-solaris2 9085c10afb9Smrg ;; 9095c10afb9Smrg sun3 | sun3-*) 9105c10afb9Smrg basic_machine=m68k-sun 9115c10afb9Smrg ;; 9125c10afb9Smrg sun4) 9135c10afb9Smrg basic_machine=sparc-sun 9145c10afb9Smrg ;; 9155c10afb9Smrg sun386 | sun386i | roadrunner) 9165c10afb9Smrg basic_machine=i386-sun 9175c10afb9Smrg ;; 9185c10afb9Smrg sv1) 9195c10afb9Smrg basic_machine=sv1-cray 9205c10afb9Smrg os=-unicos 9215c10afb9Smrg ;; 9225c10afb9Smrg symmetry) 9235c10afb9Smrg basic_machine=i386-sequent 9245c10afb9Smrg os=-dynix 9255c10afb9Smrg ;; 9265c10afb9Smrg t3e) 9275c10afb9Smrg basic_machine=alphaev5-cray 9285c10afb9Smrg os=-unicos 9295c10afb9Smrg ;; 9305c10afb9Smrg t90) 9315c10afb9Smrg basic_machine=t90-cray 9325c10afb9Smrg os=-unicos 9335c10afb9Smrg ;; 9345c10afb9Smrg tic54x | c54x*) 9355c10afb9Smrg basic_machine=tic54x-unknown 9365c10afb9Smrg os=-coff 9375c10afb9Smrg ;; 9385c10afb9Smrg tic55x | c55x*) 9395c10afb9Smrg basic_machine=tic55x-unknown 9405c10afb9Smrg os=-coff 9415c10afb9Smrg ;; 9425c10afb9Smrg tic6x | c6x*) 9435c10afb9Smrg basic_machine=tic6x-unknown 9445c10afb9Smrg os=-coff 9455c10afb9Smrg ;; 9465c10afb9Smrg tx39) 9475c10afb9Smrg basic_machine=mipstx39-unknown 9485c10afb9Smrg ;; 9495c10afb9Smrg tx39el) 9505c10afb9Smrg basic_machine=mipstx39el-unknown 9515c10afb9Smrg ;; 9525c10afb9Smrg toad1) 9535c10afb9Smrg basic_machine=pdp10-xkl 9545c10afb9Smrg os=-tops20 9555c10afb9Smrg ;; 9565c10afb9Smrg tower | tower-32) 9575c10afb9Smrg basic_machine=m68k-ncr 9585c10afb9Smrg ;; 9595c10afb9Smrg udi29k) 9605c10afb9Smrg basic_machine=a29k-amd 9615c10afb9Smrg os=-udi 9625c10afb9Smrg ;; 9635c10afb9Smrg ultra3) 9645c10afb9Smrg basic_machine=a29k-nyu 9655c10afb9Smrg os=-sym1 9665c10afb9Smrg ;; 9675c10afb9Smrg v810 | necv810) 9685c10afb9Smrg basic_machine=v810-nec 9695c10afb9Smrg os=-none 9705c10afb9Smrg ;; 9715c10afb9Smrg vaxv) 9725c10afb9Smrg basic_machine=vax-dec 9735c10afb9Smrg os=-sysv 9745c10afb9Smrg ;; 9755c10afb9Smrg vms) 9765c10afb9Smrg basic_machine=vax-dec 9775c10afb9Smrg os=-vms 9785c10afb9Smrg ;; 9795c10afb9Smrg vpp*|vx|vx-*) 9805c10afb9Smrg basic_machine=f301-fujitsu 9815c10afb9Smrg ;; 9825c10afb9Smrg vxworks960) 9835c10afb9Smrg basic_machine=i960-wrs 9845c10afb9Smrg os=-vxworks 9855c10afb9Smrg ;; 9865c10afb9Smrg vxworks68) 9875c10afb9Smrg basic_machine=m68k-wrs 9885c10afb9Smrg os=-vxworks 9895c10afb9Smrg ;; 9905c10afb9Smrg vxworks29k) 9915c10afb9Smrg basic_machine=a29k-wrs 9925c10afb9Smrg os=-vxworks 9935c10afb9Smrg ;; 9945c10afb9Smrg w65*) 9955c10afb9Smrg basic_machine=w65-wdc 9965c10afb9Smrg os=-none 9975c10afb9Smrg ;; 9985c10afb9Smrg w89k-*) 9995c10afb9Smrg basic_machine=hppa1.1-winbond 10005c10afb9Smrg os=-proelf 10015c10afb9Smrg ;; 10025c10afb9Smrg xps | xps100) 10035c10afb9Smrg basic_machine=xps100-honeywell 10045c10afb9Smrg ;; 10055c10afb9Smrg ymp) 10065c10afb9Smrg basic_machine=ymp-cray 10075c10afb9Smrg os=-unicos 10085c10afb9Smrg ;; 10095c10afb9Smrg z8k-*-coff) 10105c10afb9Smrg basic_machine=z8k-unknown 10115c10afb9Smrg os=-sim 10125c10afb9Smrg ;; 10135c10afb9Smrg none) 10145c10afb9Smrg basic_machine=none-none 10155c10afb9Smrg os=-none 10165c10afb9Smrg ;; 10175c10afb9Smrg 10185c10afb9Smrg# Here we handle the default manufacturer of certain CPU types. It is in 10195c10afb9Smrg# some cases the only manufacturer, in others, it is the most popular. 10205c10afb9Smrg w89k) 10215c10afb9Smrg basic_machine=hppa1.1-winbond 10225c10afb9Smrg ;; 10235c10afb9Smrg op50n) 10245c10afb9Smrg basic_machine=hppa1.1-oki 10255c10afb9Smrg ;; 10265c10afb9Smrg op60c) 10275c10afb9Smrg basic_machine=hppa1.1-oki 10285c10afb9Smrg ;; 10295c10afb9Smrg romp) 10305c10afb9Smrg basic_machine=romp-ibm 10315c10afb9Smrg ;; 10325c10afb9Smrg rs6000) 10335c10afb9Smrg basic_machine=rs6000-ibm 10345c10afb9Smrg ;; 10355c10afb9Smrg vax) 10365c10afb9Smrg basic_machine=vax-dec 10375c10afb9Smrg ;; 10385c10afb9Smrg pdp10) 10395c10afb9Smrg # there are many clones, so DEC is not a safe bet 10405c10afb9Smrg basic_machine=pdp10-unknown 10415c10afb9Smrg ;; 10425c10afb9Smrg pdp11) 10435c10afb9Smrg basic_machine=pdp11-dec 10445c10afb9Smrg ;; 10455c10afb9Smrg we32k) 10465c10afb9Smrg basic_machine=we32k-att 10475c10afb9Smrg ;; 10485c10afb9Smrg sh3 | sh4 | sh[34]eb | sh[1234]le | sh[23]ele) 10495c10afb9Smrg basic_machine=sh-unknown 10505c10afb9Smrg ;; 10515c10afb9Smrg sh64) 10525c10afb9Smrg basic_machine=sh64-unknown 10535c10afb9Smrg ;; 10545c10afb9Smrg sparc | sparcv9 | sparcv9b) 10555c10afb9Smrg basic_machine=sparc-sun 10565c10afb9Smrg ;; 10575c10afb9Smrg cydra) 10585c10afb9Smrg basic_machine=cydra-cydrome 10595c10afb9Smrg ;; 10605c10afb9Smrg orion) 10615c10afb9Smrg basic_machine=orion-highlevel 10625c10afb9Smrg ;; 10635c10afb9Smrg orion105) 10645c10afb9Smrg basic_machine=clipper-highlevel 10655c10afb9Smrg ;; 10665c10afb9Smrg mac | mpw | mac-mpw) 10675c10afb9Smrg basic_machine=m68k-apple 10685c10afb9Smrg ;; 10695c10afb9Smrg pmac | pmac-mpw) 10705c10afb9Smrg basic_machine=powerpc-apple 10715c10afb9Smrg ;; 10725c10afb9Smrg *-unknown) 10735c10afb9Smrg # Make sure to match an already-canonicalized machine name. 10745c10afb9Smrg ;; 10755c10afb9Smrg *) 10765c10afb9Smrg echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 10775c10afb9Smrg exit 1 10785c10afb9Smrg ;; 10795c10afb9Smrgesac 10805c10afb9Smrg 10815c10afb9Smrg# Here we canonicalize certain aliases for manufacturers. 10825c10afb9Smrgcase $basic_machine in 10835c10afb9Smrg *-digital*) 10845c10afb9Smrg basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'` 10855c10afb9Smrg ;; 10865c10afb9Smrg *-commodore*) 10875c10afb9Smrg basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'` 10885c10afb9Smrg ;; 10895c10afb9Smrg *) 10905c10afb9Smrg ;; 10915c10afb9Smrgesac 10925c10afb9Smrg 10935c10afb9Smrg# Decode manufacturer-specific aliases for certain operating systems. 10945c10afb9Smrg 10955c10afb9Smrgif [ x"$os" != x"" ] 10965c10afb9Smrgthen 10975c10afb9Smrgcase $os in 10985c10afb9Smrg # First match some system type aliases 10995c10afb9Smrg # that might get confused with valid system types. 11005c10afb9Smrg # -solaris* is a basic system type, with this one exception. 11015c10afb9Smrg -solaris1 | -solaris1.*) 11025c10afb9Smrg os=`echo $os | sed -e 's|solaris1|sunos4|'` 11035c10afb9Smrg ;; 11045c10afb9Smrg -solaris) 11055c10afb9Smrg os=-solaris2 11065c10afb9Smrg ;; 11075c10afb9Smrg -svr4*) 11085c10afb9Smrg os=-sysv4 11095c10afb9Smrg ;; 11105c10afb9Smrg -unixware*) 11115c10afb9Smrg os=-sysv4.2uw 11125c10afb9Smrg ;; 11135c10afb9Smrg -gnu/linux*) 11145c10afb9Smrg os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'` 11155c10afb9Smrg ;; 11165c10afb9Smrg # First accept the basic system types. 11175c10afb9Smrg # The portable systems comes first. 11185c10afb9Smrg # Each alternative MUST END IN A *, to match a version number. 11195c10afb9Smrg # -sysv* is not here because it comes later, after sysvr4. 11205c10afb9Smrg -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ 11215c10afb9Smrg | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\ 11225c10afb9Smrg | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \ 11235c10afb9Smrg | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ 11245c10afb9Smrg | -aos* \ 11255c10afb9Smrg | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ 11265c10afb9Smrg | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ 11275c10afb9Smrg | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \ 11285c10afb9Smrg | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ 11295c10afb9Smrg | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ 11305c10afb9Smrg | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ 11315c10afb9Smrg | -chorusos* | -chorusrdb* \ 11325c10afb9Smrg | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ 11335c10afb9Smrg | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \ 11345c10afb9Smrg | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ 11355c10afb9Smrg | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ 11365c10afb9Smrg | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ 11375c10afb9Smrg | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ 11385c10afb9Smrg | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ 11395c10afb9Smrg | -powermax* | -dnix* | -nx6 | -nx7 | -sei*) 11405c10afb9Smrg # Remember, each alternative MUST END IN *, to match a version number. 11415c10afb9Smrg ;; 11425c10afb9Smrg -qnx*) 11435c10afb9Smrg case $basic_machine in 11445c10afb9Smrg x86-* | i*86-*) 11455c10afb9Smrg ;; 11465c10afb9Smrg *) 11475c10afb9Smrg os=-nto$os 11485c10afb9Smrg ;; 11495c10afb9Smrg esac 11505c10afb9Smrg ;; 11515c10afb9Smrg -nto-qnx*) 11525c10afb9Smrg ;; 11535c10afb9Smrg -nto*) 11545c10afb9Smrg os=`echo $os | sed -e 's|nto|nto-qnx|'` 11555c10afb9Smrg ;; 11565c10afb9Smrg -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ 11575c10afb9Smrg | -windows* | -osx | -abug | -netware* | -os9* | -beos* \ 11585c10afb9Smrg | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) 11595c10afb9Smrg ;; 11605c10afb9Smrg -mac*) 11615c10afb9Smrg os=`echo $os | sed -e 's|mac|macos|'` 11625c10afb9Smrg ;; 11635c10afb9Smrg -linux*) 11645c10afb9Smrg os=`echo $os | sed -e 's|linux|linux-gnu|'` 11655c10afb9Smrg ;; 11665c10afb9Smrg -sunos5*) 11675c10afb9Smrg os=`echo $os | sed -e 's|sunos5|solaris2|'` 11685c10afb9Smrg ;; 11695c10afb9Smrg -sunos6*) 11705c10afb9Smrg os=`echo $os | sed -e 's|sunos6|solaris3|'` 11715c10afb9Smrg ;; 11725c10afb9Smrg -opened*) 11735c10afb9Smrg os=-openedition 11745c10afb9Smrg ;; 11755c10afb9Smrg -wince*) 11765c10afb9Smrg os=-wince 11775c10afb9Smrg ;; 11785c10afb9Smrg -osfrose*) 11795c10afb9Smrg os=-osfrose 11805c10afb9Smrg ;; 11815c10afb9Smrg -osf*) 11825c10afb9Smrg os=-osf 11835c10afb9Smrg ;; 11845c10afb9Smrg -utek*) 11855c10afb9Smrg os=-bsd 11865c10afb9Smrg ;; 11875c10afb9Smrg -dynix*) 11885c10afb9Smrg os=-bsd 11895c10afb9Smrg ;; 11905c10afb9Smrg -acis*) 11915c10afb9Smrg os=-aos 11925c10afb9Smrg ;; 11935c10afb9Smrg -atheos*) 11945c10afb9Smrg os=-atheos 11955c10afb9Smrg ;; 11965c10afb9Smrg -386bsd) 11975c10afb9Smrg os=-bsd 11985c10afb9Smrg ;; 11995c10afb9Smrg -ctix* | -uts*) 12005c10afb9Smrg os=-sysv 12015c10afb9Smrg ;; 12025c10afb9Smrg -nova*) 12035c10afb9Smrg os=-rtmk-nova 12045c10afb9Smrg ;; 12055c10afb9Smrg -ns2 ) 12065c10afb9Smrg os=-nextstep2 12075c10afb9Smrg ;; 12085c10afb9Smrg -nsk*) 12095c10afb9Smrg os=-nsk 12105c10afb9Smrg ;; 12115c10afb9Smrg # Preserve the version number of sinix5. 12125c10afb9Smrg -sinix5.*) 12135c10afb9Smrg os=`echo $os | sed -e 's|sinix|sysv|'` 12145c10afb9Smrg ;; 12155c10afb9Smrg -sinix*) 12165c10afb9Smrg os=-sysv4 12175c10afb9Smrg ;; 12185c10afb9Smrg -triton*) 12195c10afb9Smrg os=-sysv3 12205c10afb9Smrg ;; 12215c10afb9Smrg -oss*) 12225c10afb9Smrg os=-sysv3 12235c10afb9Smrg ;; 12245c10afb9Smrg -svr4) 12255c10afb9Smrg os=-sysv4 12265c10afb9Smrg ;; 12275c10afb9Smrg -svr3) 12285c10afb9Smrg os=-sysv3 12295c10afb9Smrg ;; 12305c10afb9Smrg -sysvr4) 12315c10afb9Smrg os=-sysv4 12325c10afb9Smrg ;; 12335c10afb9Smrg # This must come after -sysvr4. 12345c10afb9Smrg -sysv*) 12355c10afb9Smrg ;; 12365c10afb9Smrg -ose*) 12375c10afb9Smrg os=-ose 12385c10afb9Smrg ;; 12395c10afb9Smrg -es1800*) 12405c10afb9Smrg os=-ose 12415c10afb9Smrg ;; 12425c10afb9Smrg -xenix) 12435c10afb9Smrg os=-xenix 12445c10afb9Smrg ;; 12455c10afb9Smrg -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) 12465c10afb9Smrg os=-mint 12475c10afb9Smrg ;; 12485c10afb9Smrg -aros*) 12495c10afb9Smrg os=-aros 12505c10afb9Smrg ;; 12515c10afb9Smrg -kaos*) 12525c10afb9Smrg os=-kaos 12535c10afb9Smrg ;; 12545c10afb9Smrg -none) 12555c10afb9Smrg ;; 12565c10afb9Smrg *) 12575c10afb9Smrg # Get rid of the `-' at the beginning of $os. 12585c10afb9Smrg os=`echo $os | sed 's/[^-]*-//'` 12595c10afb9Smrg echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2 12605c10afb9Smrg exit 1 12615c10afb9Smrg ;; 12625c10afb9Smrgesac 12635c10afb9Smrgelse 12645c10afb9Smrg 12655c10afb9Smrg# Here we handle the default operating systems that come with various machines. 12665c10afb9Smrg# The value should be what the vendor currently ships out the door with their 12675c10afb9Smrg# machine or put another way, the most popular os provided with the machine. 12685c10afb9Smrg 12695c10afb9Smrg# Note that if you're going to try to match "-MANUFACTURER" here (say, 12705c10afb9Smrg# "-sun"), then you have to tell the case statement up towards the top 12715c10afb9Smrg# that MANUFACTURER isn't an operating system. Otherwise, code above 12725c10afb9Smrg# will signal an error saying that MANUFACTURER isn't an operating 12735c10afb9Smrg# system, and we'll never get to this point. 12745c10afb9Smrg 12755c10afb9Smrgcase $basic_machine in 12765c10afb9Smrg *-acorn) 12775c10afb9Smrg os=-riscix1.2 12785c10afb9Smrg ;; 12795c10afb9Smrg arm*-rebel) 12805c10afb9Smrg os=-linux 12815c10afb9Smrg ;; 12825c10afb9Smrg arm*-semi) 12835c10afb9Smrg os=-aout 12845c10afb9Smrg ;; 12855c10afb9Smrg c4x-* | tic4x-*) 12865c10afb9Smrg os=-coff 12875c10afb9Smrg ;; 12885c10afb9Smrg # This must come before the *-dec entry. 12895c10afb9Smrg pdp10-*) 12905c10afb9Smrg os=-tops20 12915c10afb9Smrg ;; 12925c10afb9Smrg pdp11-*) 12935c10afb9Smrg os=-none 12945c10afb9Smrg ;; 12955c10afb9Smrg *-dec | vax-*) 12965c10afb9Smrg os=-ultrix4.2 12975c10afb9Smrg ;; 12985c10afb9Smrg m68*-apollo) 12995c10afb9Smrg os=-domain 13005c10afb9Smrg ;; 13015c10afb9Smrg i386-sun) 13025c10afb9Smrg os=-sunos4.0.2 13035c10afb9Smrg ;; 13045c10afb9Smrg m68000-sun) 13055c10afb9Smrg os=-sunos3 13065c10afb9Smrg # This also exists in the configure program, but was not the 13075c10afb9Smrg # default. 13085c10afb9Smrg # os=-sunos4 13095c10afb9Smrg ;; 13105c10afb9Smrg m68*-cisco) 13115c10afb9Smrg os=-aout 13125c10afb9Smrg ;; 13135c10afb9Smrg mips*-cisco) 13145c10afb9Smrg os=-elf 13155c10afb9Smrg ;; 13165c10afb9Smrg mips*-*) 13175c10afb9Smrg os=-elf 13185c10afb9Smrg ;; 13195c10afb9Smrg or32-*) 13205c10afb9Smrg os=-coff 13215c10afb9Smrg ;; 13225c10afb9Smrg *-tti) # must be before sparc entry or we get the wrong os. 13235c10afb9Smrg os=-sysv3 13245c10afb9Smrg ;; 13255c10afb9Smrg sparc-* | *-sun) 13265c10afb9Smrg os=-sunos4.1.1 13275c10afb9Smrg ;; 13285c10afb9Smrg *-be) 13295c10afb9Smrg os=-beos 13305c10afb9Smrg ;; 13315c10afb9Smrg *-ibm) 13325c10afb9Smrg os=-aix 13335c10afb9Smrg ;; 13345c10afb9Smrg *-wec) 13355c10afb9Smrg os=-proelf 13365c10afb9Smrg ;; 13375c10afb9Smrg *-winbond) 13385c10afb9Smrg os=-proelf 13395c10afb9Smrg ;; 13405c10afb9Smrg *-oki) 13415c10afb9Smrg os=-proelf 13425c10afb9Smrg ;; 13435c10afb9Smrg *-hp) 13445c10afb9Smrg os=-hpux 13455c10afb9Smrg ;; 13465c10afb9Smrg *-hitachi) 13475c10afb9Smrg os=-hiux 13485c10afb9Smrg ;; 13495c10afb9Smrg i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent) 13505c10afb9Smrg os=-sysv 13515c10afb9Smrg ;; 13525c10afb9Smrg *-cbm) 13535c10afb9Smrg os=-amigaos 13545c10afb9Smrg ;; 13555c10afb9Smrg *-dg) 13565c10afb9Smrg os=-dgux 13575c10afb9Smrg ;; 13585c10afb9Smrg *-dolphin) 13595c10afb9Smrg os=-sysv3 13605c10afb9Smrg ;; 13615c10afb9Smrg m68k-ccur) 13625c10afb9Smrg os=-rtu 13635c10afb9Smrg ;; 13645c10afb9Smrg m88k-omron*) 13655c10afb9Smrg os=-luna 13665c10afb9Smrg ;; 13675c10afb9Smrg *-next ) 13685c10afb9Smrg os=-nextstep 13695c10afb9Smrg ;; 13705c10afb9Smrg *-sequent) 13715c10afb9Smrg os=-ptx 13725c10afb9Smrg ;; 13735c10afb9Smrg *-crds) 13745c10afb9Smrg os=-unos 13755c10afb9Smrg ;; 13765c10afb9Smrg *-ns) 13775c10afb9Smrg os=-genix 13785c10afb9Smrg ;; 13795c10afb9Smrg i370-*) 13805c10afb9Smrg os=-mvs 13815c10afb9Smrg ;; 13825c10afb9Smrg *-next) 13835c10afb9Smrg os=-nextstep3 13845c10afb9Smrg ;; 13855c10afb9Smrg *-gould) 13865c10afb9Smrg os=-sysv 13875c10afb9Smrg ;; 13885c10afb9Smrg *-highlevel) 13895c10afb9Smrg os=-bsd 13905c10afb9Smrg ;; 13915c10afb9Smrg *-encore) 13925c10afb9Smrg os=-bsd 13935c10afb9Smrg ;; 13945c10afb9Smrg *-sgi) 13955c10afb9Smrg os=-irix 13965c10afb9Smrg ;; 13975c10afb9Smrg *-siemens) 13985c10afb9Smrg os=-sysv4 13995c10afb9Smrg ;; 14005c10afb9Smrg *-masscomp) 14015c10afb9Smrg os=-rtu 14025c10afb9Smrg ;; 14035c10afb9Smrg f30[01]-fujitsu | f700-fujitsu) 14045c10afb9Smrg os=-uxpv 14055c10afb9Smrg ;; 14065c10afb9Smrg *-rom68k) 14075c10afb9Smrg os=-coff 14085c10afb9Smrg ;; 14095c10afb9Smrg *-*bug) 14105c10afb9Smrg os=-coff 14115c10afb9Smrg ;; 14125c10afb9Smrg *-apple) 14135c10afb9Smrg os=-macos 14145c10afb9Smrg ;; 14155c10afb9Smrg *-atari*) 14165c10afb9Smrg os=-mint 14175c10afb9Smrg ;; 14185c10afb9Smrg *) 14195c10afb9Smrg os=-none 14205c10afb9Smrg ;; 14215c10afb9Smrgesac 14225c10afb9Smrgfi 14235c10afb9Smrg 14245c10afb9Smrg# Here we handle the case where we know the os, and the CPU type, but not the 14255c10afb9Smrg# manufacturer. We pick the logical manufacturer. 14265c10afb9Smrgvendor=unknown 14275c10afb9Smrgcase $basic_machine in 14285c10afb9Smrg *-unknown) 14295c10afb9Smrg case $os in 14305c10afb9Smrg -riscix*) 14315c10afb9Smrg vendor=acorn 14325c10afb9Smrg ;; 14335c10afb9Smrg -sunos*) 14345c10afb9Smrg vendor=sun 14355c10afb9Smrg ;; 14365c10afb9Smrg -aix*) 14375c10afb9Smrg vendor=ibm 14385c10afb9Smrg ;; 14395c10afb9Smrg -beos*) 14405c10afb9Smrg vendor=be 14415c10afb9Smrg ;; 14425c10afb9Smrg -hpux*) 14435c10afb9Smrg vendor=hp 14445c10afb9Smrg ;; 14455c10afb9Smrg -mpeix*) 14465c10afb9Smrg vendor=hp 14475c10afb9Smrg ;; 14485c10afb9Smrg -hiux*) 14495c10afb9Smrg vendor=hitachi 14505c10afb9Smrg ;; 14515c10afb9Smrg -unos*) 14525c10afb9Smrg vendor=crds 14535c10afb9Smrg ;; 14545c10afb9Smrg -dgux*) 14555c10afb9Smrg vendor=dg 14565c10afb9Smrg ;; 14575c10afb9Smrg -luna*) 14585c10afb9Smrg vendor=omron 14595c10afb9Smrg ;; 14605c10afb9Smrg -genix*) 14615c10afb9Smrg vendor=ns 14625c10afb9Smrg ;; 14635c10afb9Smrg -mvs* | -opened*) 14645c10afb9Smrg vendor=ibm 14655c10afb9Smrg ;; 14665c10afb9Smrg -ptx*) 14675c10afb9Smrg vendor=sequent 14685c10afb9Smrg ;; 14695c10afb9Smrg -vxsim* | -vxworks* | -windiss*) 14705c10afb9Smrg vendor=wrs 14715c10afb9Smrg ;; 14725c10afb9Smrg -aux*) 14735c10afb9Smrg vendor=apple 14745c10afb9Smrg ;; 14755c10afb9Smrg -hms*) 14765c10afb9Smrg vendor=hitachi 14775c10afb9Smrg ;; 14785c10afb9Smrg -mpw* | -macos*) 14795c10afb9Smrg vendor=apple 14805c10afb9Smrg ;; 14815c10afb9Smrg -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) 14825c10afb9Smrg vendor=atari 14835c10afb9Smrg ;; 14845c10afb9Smrg -vos*) 14855c10afb9Smrg vendor=stratus 14865c10afb9Smrg ;; 14875c10afb9Smrg esac 14885c10afb9Smrg basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` 14895c10afb9Smrg ;; 14905c10afb9Smrgesac 14915c10afb9Smrg 14925c10afb9Smrgecho $basic_machine$os 14935c10afb9Smrgexit 0 14945c10afb9Smrg 14955c10afb9Smrg# Local variables: 14965c10afb9Smrg# eval: (add-hook 'write-file-hooks 'time-stamp) 14975c10afb9Smrg# time-stamp-start: "timestamp='" 14985c10afb9Smrg# time-stamp-format: "%:y-%02m-%02d" 14995c10afb9Smrg# time-stamp-end: "'" 15005c10afb9Smrg# End: 1501