17c478bd9Sstevel@tonic-gate#! /bin/sh 27c478bd9Sstevel@tonic-gate# Configuration validation subroutine script. 37c478bd9Sstevel@tonic-gate# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 4*1b8adde7SWilliam Kucharski# 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc. 57c478bd9Sstevel@tonic-gate 6*1b8adde7SWilliam Kucharskitimestamp='2004-11-30' 77c478bd9Sstevel@tonic-gate 87c478bd9Sstevel@tonic-gate# This file is (in principle) common to ALL GNU software. 97c478bd9Sstevel@tonic-gate# The presence of a machine in this file suggests that SOME GNU software 107c478bd9Sstevel@tonic-gate# can handle that machine. It does not imply ALL GNU software can. 117c478bd9Sstevel@tonic-gate# 127c478bd9Sstevel@tonic-gate# This file is free software; you can redistribute it and/or modify 137c478bd9Sstevel@tonic-gate# it under the terms of the GNU General Public License as published by 147c478bd9Sstevel@tonic-gate# the Free Software Foundation; either version 2 of the License, or 157c478bd9Sstevel@tonic-gate# (at your option) any later version. 167c478bd9Sstevel@tonic-gate# 177c478bd9Sstevel@tonic-gate# This program is distributed in the hope that it will be useful, 187c478bd9Sstevel@tonic-gate# but WITHOUT ANY WARRANTY; without even the implied warranty of 197c478bd9Sstevel@tonic-gate# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 207c478bd9Sstevel@tonic-gate# GNU General Public License for more details. 217c478bd9Sstevel@tonic-gate# 227c478bd9Sstevel@tonic-gate# You should have received a copy of the GNU General Public License 237c478bd9Sstevel@tonic-gate# along with this program; if not, write to the Free Software 247c478bd9Sstevel@tonic-gate# Foundation, Inc., 59 Temple Place - Suite 330, 257c478bd9Sstevel@tonic-gate# Boston, MA 02111-1307, USA. 267c478bd9Sstevel@tonic-gate 277c478bd9Sstevel@tonic-gate# As a special exception to the GNU General Public License, if you 287c478bd9Sstevel@tonic-gate# distribute this file as part of a program that contains a 297c478bd9Sstevel@tonic-gate# configuration script generated by Autoconf, you may include it under 307c478bd9Sstevel@tonic-gate# the same distribution terms that you use for the rest of that program. 317c478bd9Sstevel@tonic-gate 327c478bd9Sstevel@tonic-gate# Please send patches to <config-patches@gnu.org>. Submit a context 337c478bd9Sstevel@tonic-gate# diff and a properly formatted ChangeLog entry. 347c478bd9Sstevel@tonic-gate# 357c478bd9Sstevel@tonic-gate# Configuration subroutine to validate and canonicalize a configuration type. 367c478bd9Sstevel@tonic-gate# Supply the specified configuration type as an argument. 377c478bd9Sstevel@tonic-gate# If it is invalid, we print an error message on stderr and exit with code 1. 387c478bd9Sstevel@tonic-gate# Otherwise, we print the canonical config type on stdout and succeed. 397c478bd9Sstevel@tonic-gate 407c478bd9Sstevel@tonic-gate# This file is supposed to be the same for all GNU packages 417c478bd9Sstevel@tonic-gate# and recognize all the CPU types, system types and aliases 427c478bd9Sstevel@tonic-gate# that are meaningful with *any* GNU software. 437c478bd9Sstevel@tonic-gate# Each package is responsible for reporting which valid configurations 447c478bd9Sstevel@tonic-gate# it does not support. The user should be able to distinguish 457c478bd9Sstevel@tonic-gate# a failure to support a valid configuration from a meaningless 467c478bd9Sstevel@tonic-gate# configuration. 477c478bd9Sstevel@tonic-gate 487c478bd9Sstevel@tonic-gate# The goal of this file is to map all the various variations of a given 497c478bd9Sstevel@tonic-gate# machine specification into a single specification in the form: 507c478bd9Sstevel@tonic-gate# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM 517c478bd9Sstevel@tonic-gate# or in some cases, the newer four-part form: 527c478bd9Sstevel@tonic-gate# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM 537c478bd9Sstevel@tonic-gate# It is wrong to echo any other type of specification. 547c478bd9Sstevel@tonic-gate 557c478bd9Sstevel@tonic-gateme=`echo "$0" | sed -e 's,.*/,,'` 567c478bd9Sstevel@tonic-gate 577c478bd9Sstevel@tonic-gateusage="\ 587c478bd9Sstevel@tonic-gateUsage: $0 [OPTION] CPU-MFR-OPSYS 597c478bd9Sstevel@tonic-gate $0 [OPTION] ALIAS 607c478bd9Sstevel@tonic-gate 617c478bd9Sstevel@tonic-gateCanonicalize a configuration name. 627c478bd9Sstevel@tonic-gate 637c478bd9Sstevel@tonic-gateOperation modes: 647c478bd9Sstevel@tonic-gate -h, --help print this help, then exit 657c478bd9Sstevel@tonic-gate -t, --time-stamp print date of last modification, then exit 667c478bd9Sstevel@tonic-gate -v, --version print version number, then exit 677c478bd9Sstevel@tonic-gate 687c478bd9Sstevel@tonic-gateReport bugs and patches to <config-patches@gnu.org>." 697c478bd9Sstevel@tonic-gate 707c478bd9Sstevel@tonic-gateversion="\ 717c478bd9Sstevel@tonic-gateGNU config.sub ($timestamp) 727c478bd9Sstevel@tonic-gate 73*1b8adde7SWilliam KucharskiCopyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004 747c478bd9Sstevel@tonic-gateFree Software Foundation, Inc. 757c478bd9Sstevel@tonic-gate 767c478bd9Sstevel@tonic-gateThis is free software; see the source for copying conditions. There is NO 777c478bd9Sstevel@tonic-gatewarranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." 787c478bd9Sstevel@tonic-gate 797c478bd9Sstevel@tonic-gatehelp=" 807c478bd9Sstevel@tonic-gateTry \`$me --help' for more information." 817c478bd9Sstevel@tonic-gate 827c478bd9Sstevel@tonic-gate# Parse command line 837c478bd9Sstevel@tonic-gatewhile test $# -gt 0 ; do 847c478bd9Sstevel@tonic-gate case $1 in 857c478bd9Sstevel@tonic-gate --time-stamp | --time* | -t ) 867c478bd9Sstevel@tonic-gate echo "$timestamp" ; exit 0 ;; 877c478bd9Sstevel@tonic-gate --version | -v ) 887c478bd9Sstevel@tonic-gate echo "$version" ; exit 0 ;; 897c478bd9Sstevel@tonic-gate --help | --h* | -h ) 907c478bd9Sstevel@tonic-gate echo "$usage"; exit 0 ;; 917c478bd9Sstevel@tonic-gate -- ) # Stop option processing 927c478bd9Sstevel@tonic-gate shift; break ;; 937c478bd9Sstevel@tonic-gate - ) # Use stdin as input. 947c478bd9Sstevel@tonic-gate break ;; 957c478bd9Sstevel@tonic-gate -* ) 967c478bd9Sstevel@tonic-gate echo "$me: invalid option $1$help" 977c478bd9Sstevel@tonic-gate exit 1 ;; 987c478bd9Sstevel@tonic-gate 997c478bd9Sstevel@tonic-gate *local*) 1007c478bd9Sstevel@tonic-gate # First pass through any local machine types. 1017c478bd9Sstevel@tonic-gate echo $1 1027c478bd9Sstevel@tonic-gate exit 0;; 1037c478bd9Sstevel@tonic-gate 1047c478bd9Sstevel@tonic-gate * ) 1057c478bd9Sstevel@tonic-gate break ;; 1067c478bd9Sstevel@tonic-gate esac 1077c478bd9Sstevel@tonic-gatedone 1087c478bd9Sstevel@tonic-gate 1097c478bd9Sstevel@tonic-gatecase $# in 1107c478bd9Sstevel@tonic-gate 0) echo "$me: missing argument$help" >&2 1117c478bd9Sstevel@tonic-gate exit 1;; 1127c478bd9Sstevel@tonic-gate 1) ;; 1137c478bd9Sstevel@tonic-gate *) echo "$me: too many arguments$help" >&2 1147c478bd9Sstevel@tonic-gate exit 1;; 1157c478bd9Sstevel@tonic-gateesac 1167c478bd9Sstevel@tonic-gate 1177c478bd9Sstevel@tonic-gate# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). 1187c478bd9Sstevel@tonic-gate# Here we must recognize all the valid KERNEL-OS combinations. 1197c478bd9Sstevel@tonic-gatemaybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` 1207c478bd9Sstevel@tonic-gatecase $maybe_os in 1217c478bd9Sstevel@tonic-gate nto-qnx* | linux-gnu* | linux-dietlibc | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | \ 1227c478bd9Sstevel@tonic-gate kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*) 1237c478bd9Sstevel@tonic-gate os=-$maybe_os 1247c478bd9Sstevel@tonic-gate basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` 1257c478bd9Sstevel@tonic-gate ;; 1267c478bd9Sstevel@tonic-gate *) 1277c478bd9Sstevel@tonic-gate basic_machine=`echo $1 | sed 's/-[^-]*$//'` 1287c478bd9Sstevel@tonic-gate if [ $basic_machine != $1 ] 1297c478bd9Sstevel@tonic-gate then os=`echo $1 | sed 's/.*-/-/'` 1307c478bd9Sstevel@tonic-gate else os=; fi 1317c478bd9Sstevel@tonic-gate ;; 1327c478bd9Sstevel@tonic-gateesac 1337c478bd9Sstevel@tonic-gate 1347c478bd9Sstevel@tonic-gate### Let's recognize common machines as not being operating systems so 1357c478bd9Sstevel@tonic-gate### that things like config.sub decstation-3100 work. We also 1367c478bd9Sstevel@tonic-gate### recognize some manufacturers as not being operating systems, so we 1377c478bd9Sstevel@tonic-gate### can provide default operating systems below. 1387c478bd9Sstevel@tonic-gatecase $os in 1397c478bd9Sstevel@tonic-gate -sun*os*) 1407c478bd9Sstevel@tonic-gate # Prevent following clause from handling this invalid input. 1417c478bd9Sstevel@tonic-gate ;; 1427c478bd9Sstevel@tonic-gate -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \ 1437c478bd9Sstevel@tonic-gate -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ 1447c478bd9Sstevel@tonic-gate -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ 1457c478bd9Sstevel@tonic-gate -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ 1467c478bd9Sstevel@tonic-gate -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ 1477c478bd9Sstevel@tonic-gate -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ 148*1b8adde7SWilliam Kucharski -apple | -axis | -knuth | -cray) 1497c478bd9Sstevel@tonic-gate os= 1507c478bd9Sstevel@tonic-gate basic_machine=$1 1517c478bd9Sstevel@tonic-gate ;; 1527c478bd9Sstevel@tonic-gate -sim | -cisco | -oki | -wec | -winbond) 1537c478bd9Sstevel@tonic-gate os= 1547c478bd9Sstevel@tonic-gate basic_machine=$1 1557c478bd9Sstevel@tonic-gate ;; 1567c478bd9Sstevel@tonic-gate -scout) 1577c478bd9Sstevel@tonic-gate ;; 1587c478bd9Sstevel@tonic-gate -wrs) 1597c478bd9Sstevel@tonic-gate os=-vxworks 1607c478bd9Sstevel@tonic-gate basic_machine=$1 1617c478bd9Sstevel@tonic-gate ;; 1627c478bd9Sstevel@tonic-gate -chorusos*) 1637c478bd9Sstevel@tonic-gate os=-chorusos 1647c478bd9Sstevel@tonic-gate basic_machine=$1 1657c478bd9Sstevel@tonic-gate ;; 1667c478bd9Sstevel@tonic-gate -chorusrdb) 1677c478bd9Sstevel@tonic-gate os=-chorusrdb 1687c478bd9Sstevel@tonic-gate basic_machine=$1 1697c478bd9Sstevel@tonic-gate ;; 1707c478bd9Sstevel@tonic-gate -hiux*) 1717c478bd9Sstevel@tonic-gate os=-hiuxwe2 1727c478bd9Sstevel@tonic-gate ;; 1737c478bd9Sstevel@tonic-gate -sco5) 1747c478bd9Sstevel@tonic-gate os=-sco3.2v5 1757c478bd9Sstevel@tonic-gate basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 1767c478bd9Sstevel@tonic-gate ;; 1777c478bd9Sstevel@tonic-gate -sco4) 1787c478bd9Sstevel@tonic-gate os=-sco3.2v4 1797c478bd9Sstevel@tonic-gate basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 1807c478bd9Sstevel@tonic-gate ;; 1817c478bd9Sstevel@tonic-gate -sco3.2.[4-9]*) 1827c478bd9Sstevel@tonic-gate os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` 1837c478bd9Sstevel@tonic-gate basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 1847c478bd9Sstevel@tonic-gate ;; 1857c478bd9Sstevel@tonic-gate -sco3.2v[4-9]*) 1867c478bd9Sstevel@tonic-gate # Don't forget version if it is 3.2v4 or newer. 1877c478bd9Sstevel@tonic-gate basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 1887c478bd9Sstevel@tonic-gate ;; 1897c478bd9Sstevel@tonic-gate -sco*) 1907c478bd9Sstevel@tonic-gate os=-sco3.2v2 1917c478bd9Sstevel@tonic-gate basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 1927c478bd9Sstevel@tonic-gate ;; 1937c478bd9Sstevel@tonic-gate -udk*) 1947c478bd9Sstevel@tonic-gate basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 1957c478bd9Sstevel@tonic-gate ;; 1967c478bd9Sstevel@tonic-gate -isc) 1977c478bd9Sstevel@tonic-gate os=-isc2.2 1987c478bd9Sstevel@tonic-gate basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 1997c478bd9Sstevel@tonic-gate ;; 2007c478bd9Sstevel@tonic-gate -clix*) 2017c478bd9Sstevel@tonic-gate basic_machine=clipper-intergraph 2027c478bd9Sstevel@tonic-gate ;; 2037c478bd9Sstevel@tonic-gate -isc*) 2047c478bd9Sstevel@tonic-gate basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 2057c478bd9Sstevel@tonic-gate ;; 2067c478bd9Sstevel@tonic-gate -lynx*) 2077c478bd9Sstevel@tonic-gate os=-lynxos 2087c478bd9Sstevel@tonic-gate ;; 2097c478bd9Sstevel@tonic-gate -ptx*) 2107c478bd9Sstevel@tonic-gate basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'` 2117c478bd9Sstevel@tonic-gate ;; 2127c478bd9Sstevel@tonic-gate -windowsnt*) 2137c478bd9Sstevel@tonic-gate os=`echo $os | sed -e 's/windowsnt/winnt/'` 2147c478bd9Sstevel@tonic-gate ;; 2157c478bd9Sstevel@tonic-gate -psos*) 2167c478bd9Sstevel@tonic-gate os=-psos 2177c478bd9Sstevel@tonic-gate ;; 2187c478bd9Sstevel@tonic-gate -mint | -mint[0-9]*) 2197c478bd9Sstevel@tonic-gate basic_machine=m68k-atari 2207c478bd9Sstevel@tonic-gate os=-mint 2217c478bd9Sstevel@tonic-gate ;; 2227c478bd9Sstevel@tonic-gateesac 2237c478bd9Sstevel@tonic-gate 2247c478bd9Sstevel@tonic-gate# Decode aliases for certain CPU-COMPANY combinations. 2257c478bd9Sstevel@tonic-gatecase $basic_machine in 2267c478bd9Sstevel@tonic-gate # Recognize the basic CPU types without company name. 2277c478bd9Sstevel@tonic-gate # Some are omitted here because they have special meanings below. 2287c478bd9Sstevel@tonic-gate 1750a | 580 \ 2297c478bd9Sstevel@tonic-gate | a29k \ 2307c478bd9Sstevel@tonic-gate | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ 2317c478bd9Sstevel@tonic-gate | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ 2327c478bd9Sstevel@tonic-gate | am33_2.0 \ 2337c478bd9Sstevel@tonic-gate | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \ 2347c478bd9Sstevel@tonic-gate | c4x | clipper \ 2357c478bd9Sstevel@tonic-gate | d10v | d30v | dlx | dsp16xx \ 2367c478bd9Sstevel@tonic-gate | fr30 | frv \ 2377c478bd9Sstevel@tonic-gate | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ 2387c478bd9Sstevel@tonic-gate | i370 | i860 | i960 | ia64 \ 2397c478bd9Sstevel@tonic-gate | ip2k | iq2000 \ 240*1b8adde7SWilliam Kucharski | m32r | m32rle | m68000 | m68k | m88k | maxq | mcore \ 2417c478bd9Sstevel@tonic-gate | mips | mipsbe | mipseb | mipsel | mipsle \ 2427c478bd9Sstevel@tonic-gate | mips16 \ 2437c478bd9Sstevel@tonic-gate | mips64 | mips64el \ 2447c478bd9Sstevel@tonic-gate | mips64vr | mips64vrel \ 2457c478bd9Sstevel@tonic-gate | mips64orion | mips64orionel \ 2467c478bd9Sstevel@tonic-gate | mips64vr4100 | mips64vr4100el \ 2477c478bd9Sstevel@tonic-gate | mips64vr4300 | mips64vr4300el \ 2487c478bd9Sstevel@tonic-gate | mips64vr5000 | mips64vr5000el \ 2497c478bd9Sstevel@tonic-gate | mipsisa32 | mipsisa32el \ 2507c478bd9Sstevel@tonic-gate | mipsisa32r2 | mipsisa32r2el \ 2517c478bd9Sstevel@tonic-gate | mipsisa64 | mipsisa64el \ 2527c478bd9Sstevel@tonic-gate | mipsisa64r2 | mipsisa64r2el \ 2537c478bd9Sstevel@tonic-gate | mipsisa64sb1 | mipsisa64sb1el \ 2547c478bd9Sstevel@tonic-gate | mipsisa64sr71k | mipsisa64sr71kel \ 2557c478bd9Sstevel@tonic-gate | mipstx39 | mipstx39el \ 2567c478bd9Sstevel@tonic-gate | mn10200 | mn10300 \ 2577c478bd9Sstevel@tonic-gate | msp430 \ 2587c478bd9Sstevel@tonic-gate | ns16k | ns32k \ 2597c478bd9Sstevel@tonic-gate | openrisc | or32 \ 2607c478bd9Sstevel@tonic-gate | pdp10 | pdp11 | pj | pjl \ 2617c478bd9Sstevel@tonic-gate | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ 2627c478bd9Sstevel@tonic-gate | pyramid \ 2637c478bd9Sstevel@tonic-gate | sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \ 2647c478bd9Sstevel@tonic-gate | sh64 | sh64le \ 265*1b8adde7SWilliam Kucharski | sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv8 | sparcv9 | sparcv9b \ 2667c478bd9Sstevel@tonic-gate | strongarm \ 2677c478bd9Sstevel@tonic-gate | tahoe | thumb | tic4x | tic80 | tron \ 2687c478bd9Sstevel@tonic-gate | v850 | v850e \ 2697c478bd9Sstevel@tonic-gate | we32k \ 270*1b8adde7SWilliam Kucharski | x86 | xscale | xscalee[bl] | xstormy16 | xtensa \ 2717c478bd9Sstevel@tonic-gate | z8k) 2727c478bd9Sstevel@tonic-gate basic_machine=$basic_machine-unknown 2737c478bd9Sstevel@tonic-gate ;; 2747c478bd9Sstevel@tonic-gate m6811 | m68hc11 | m6812 | m68hc12) 2757c478bd9Sstevel@tonic-gate # Motorola 68HC11/12. 2767c478bd9Sstevel@tonic-gate basic_machine=$basic_machine-unknown 2777c478bd9Sstevel@tonic-gate os=-none 2787c478bd9Sstevel@tonic-gate ;; 2797c478bd9Sstevel@tonic-gate m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) 2807c478bd9Sstevel@tonic-gate ;; 2817c478bd9Sstevel@tonic-gate 2827c478bd9Sstevel@tonic-gate # We use `pc' rather than `unknown' 2837c478bd9Sstevel@tonic-gate # because (1) that's what they normally are, and 2847c478bd9Sstevel@tonic-gate # (2) the word "unknown" tends to confuse beginning users. 2857c478bd9Sstevel@tonic-gate i*86 | x86_64) 2867c478bd9Sstevel@tonic-gate basic_machine=$basic_machine-pc 2877c478bd9Sstevel@tonic-gate ;; 2887c478bd9Sstevel@tonic-gate # Object if more than one company name word. 2897c478bd9Sstevel@tonic-gate *-*-*) 2907c478bd9Sstevel@tonic-gate echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 2917c478bd9Sstevel@tonic-gate exit 1 2927c478bd9Sstevel@tonic-gate ;; 2937c478bd9Sstevel@tonic-gate # Recognize the basic CPU types with company name. 2947c478bd9Sstevel@tonic-gate 580-* \ 2957c478bd9Sstevel@tonic-gate | a29k-* \ 2967c478bd9Sstevel@tonic-gate | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ 2977c478bd9Sstevel@tonic-gate | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ 2987c478bd9Sstevel@tonic-gate | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ 2997c478bd9Sstevel@tonic-gate | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ 3007c478bd9Sstevel@tonic-gate | avr-* \ 3017c478bd9Sstevel@tonic-gate | bs2000-* \ 3027c478bd9Sstevel@tonic-gate | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \ 303*1b8adde7SWilliam Kucharski | clipper-* | craynv-* | cydra-* \ 3047c478bd9Sstevel@tonic-gate | d10v-* | d30v-* | dlx-* \ 3057c478bd9Sstevel@tonic-gate | elxsi-* \ 3067c478bd9Sstevel@tonic-gate | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \ 3077c478bd9Sstevel@tonic-gate | h8300-* | h8500-* \ 3087c478bd9Sstevel@tonic-gate | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ 3097c478bd9Sstevel@tonic-gate | i*86-* | i860-* | i960-* | ia64-* \ 3107c478bd9Sstevel@tonic-gate | ip2k-* | iq2000-* \ 311*1b8adde7SWilliam Kucharski | m32r-* | m32rle-* \ 3127c478bd9Sstevel@tonic-gate | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ 313*1b8adde7SWilliam Kucharski | m88110-* | m88k-* | maxq-* | mcore-* \ 3147c478bd9Sstevel@tonic-gate | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ 3157c478bd9Sstevel@tonic-gate | mips16-* \ 3167c478bd9Sstevel@tonic-gate | mips64-* | mips64el-* \ 3177c478bd9Sstevel@tonic-gate | mips64vr-* | mips64vrel-* \ 3187c478bd9Sstevel@tonic-gate | mips64orion-* | mips64orionel-* \ 3197c478bd9Sstevel@tonic-gate | mips64vr4100-* | mips64vr4100el-* \ 3207c478bd9Sstevel@tonic-gate | mips64vr4300-* | mips64vr4300el-* \ 3217c478bd9Sstevel@tonic-gate | mips64vr5000-* | mips64vr5000el-* \ 3227c478bd9Sstevel@tonic-gate | mipsisa32-* | mipsisa32el-* \ 3237c478bd9Sstevel@tonic-gate | mipsisa32r2-* | mipsisa32r2el-* \ 3247c478bd9Sstevel@tonic-gate | mipsisa64-* | mipsisa64el-* \ 3257c478bd9Sstevel@tonic-gate | mipsisa64r2-* | mipsisa64r2el-* \ 3267c478bd9Sstevel@tonic-gate | mipsisa64sb1-* | mipsisa64sb1el-* \ 3277c478bd9Sstevel@tonic-gate | mipsisa64sr71k-* | mipsisa64sr71kel-* \ 3287c478bd9Sstevel@tonic-gate | mipstx39-* | mipstx39el-* \ 329*1b8adde7SWilliam Kucharski | mmix-* \ 3307c478bd9Sstevel@tonic-gate | msp430-* \ 331*1b8adde7SWilliam Kucharski | none-* | np1-* | ns16k-* | ns32k-* \ 3327c478bd9Sstevel@tonic-gate | orion-* \ 3337c478bd9Sstevel@tonic-gate | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ 3347c478bd9Sstevel@tonic-gate | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ 3357c478bd9Sstevel@tonic-gate | pyramid-* \ 3367c478bd9Sstevel@tonic-gate | romp-* | rs6000-* \ 3377c478bd9Sstevel@tonic-gate | sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \ 3387c478bd9Sstevel@tonic-gate | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ 3397c478bd9Sstevel@tonic-gate | sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \ 340*1b8adde7SWilliam Kucharski | sparcv8-* | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \ 3417c478bd9Sstevel@tonic-gate | tahoe-* | thumb-* \ 3427c478bd9Sstevel@tonic-gate | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ 3437c478bd9Sstevel@tonic-gate | tron-* \ 3447c478bd9Sstevel@tonic-gate | v850-* | v850e-* | vax-* \ 3457c478bd9Sstevel@tonic-gate | we32k-* \ 346*1b8adde7SWilliam Kucharski | x86-* | x86_64-* | xps100-* | xscale-* | xscalee[bl]-* \ 347*1b8adde7SWilliam Kucharski | xstormy16-* | xtensa-* \ 3487c478bd9Sstevel@tonic-gate | ymp-* \ 3497c478bd9Sstevel@tonic-gate | z8k-*) 3507c478bd9Sstevel@tonic-gate ;; 3517c478bd9Sstevel@tonic-gate # Recognize the various machine names and aliases which stand 3527c478bd9Sstevel@tonic-gate # for a CPU type and a company and sometimes even an OS. 3537c478bd9Sstevel@tonic-gate 386bsd) 3547c478bd9Sstevel@tonic-gate basic_machine=i386-unknown 3557c478bd9Sstevel@tonic-gate os=-bsd 3567c478bd9Sstevel@tonic-gate ;; 3577c478bd9Sstevel@tonic-gate 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) 3587c478bd9Sstevel@tonic-gate basic_machine=m68000-att 3597c478bd9Sstevel@tonic-gate ;; 3607c478bd9Sstevel@tonic-gate 3b*) 3617c478bd9Sstevel@tonic-gate basic_machine=we32k-att 3627c478bd9Sstevel@tonic-gate ;; 3637c478bd9Sstevel@tonic-gate a29khif) 3647c478bd9Sstevel@tonic-gate basic_machine=a29k-amd 3657c478bd9Sstevel@tonic-gate os=-udi 3667c478bd9Sstevel@tonic-gate ;; 367*1b8adde7SWilliam Kucharski abacus) 368*1b8adde7SWilliam Kucharski basic_machine=abacus-unknown 369*1b8adde7SWilliam Kucharski ;; 3707c478bd9Sstevel@tonic-gate adobe68k) 3717c478bd9Sstevel@tonic-gate basic_machine=m68010-adobe 3727c478bd9Sstevel@tonic-gate os=-scout 3737c478bd9Sstevel@tonic-gate ;; 3747c478bd9Sstevel@tonic-gate alliant | fx80) 3757c478bd9Sstevel@tonic-gate basic_machine=fx80-alliant 3767c478bd9Sstevel@tonic-gate ;; 3777c478bd9Sstevel@tonic-gate altos | altos3068) 3787c478bd9Sstevel@tonic-gate basic_machine=m68k-altos 3797c478bd9Sstevel@tonic-gate ;; 3807c478bd9Sstevel@tonic-gate am29k) 3817c478bd9Sstevel@tonic-gate basic_machine=a29k-none 3827c478bd9Sstevel@tonic-gate os=-bsd 3837c478bd9Sstevel@tonic-gate ;; 3847c478bd9Sstevel@tonic-gate amd64) 3857c478bd9Sstevel@tonic-gate basic_machine=x86_64-pc 3867c478bd9Sstevel@tonic-gate ;; 3877c478bd9Sstevel@tonic-gate amd64-*) 3887c478bd9Sstevel@tonic-gate basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'` 3897c478bd9Sstevel@tonic-gate ;; 3907c478bd9Sstevel@tonic-gate amdahl) 3917c478bd9Sstevel@tonic-gate basic_machine=580-amdahl 3927c478bd9Sstevel@tonic-gate os=-sysv 3937c478bd9Sstevel@tonic-gate ;; 3947c478bd9Sstevel@tonic-gate amiga | amiga-*) 3957c478bd9Sstevel@tonic-gate basic_machine=m68k-unknown 3967c478bd9Sstevel@tonic-gate ;; 3977c478bd9Sstevel@tonic-gate amigaos | amigados) 3987c478bd9Sstevel@tonic-gate basic_machine=m68k-unknown 3997c478bd9Sstevel@tonic-gate os=-amigaos 4007c478bd9Sstevel@tonic-gate ;; 4017c478bd9Sstevel@tonic-gate amigaunix | amix) 4027c478bd9Sstevel@tonic-gate basic_machine=m68k-unknown 4037c478bd9Sstevel@tonic-gate os=-sysv4 4047c478bd9Sstevel@tonic-gate ;; 4057c478bd9Sstevel@tonic-gate apollo68) 4067c478bd9Sstevel@tonic-gate basic_machine=m68k-apollo 4077c478bd9Sstevel@tonic-gate os=-sysv 4087c478bd9Sstevel@tonic-gate ;; 4097c478bd9Sstevel@tonic-gate apollo68bsd) 4107c478bd9Sstevel@tonic-gate basic_machine=m68k-apollo 4117c478bd9Sstevel@tonic-gate os=-bsd 4127c478bd9Sstevel@tonic-gate ;; 4137c478bd9Sstevel@tonic-gate aux) 4147c478bd9Sstevel@tonic-gate basic_machine=m68k-apple 4157c478bd9Sstevel@tonic-gate os=-aux 4167c478bd9Sstevel@tonic-gate ;; 4177c478bd9Sstevel@tonic-gate balance) 4187c478bd9Sstevel@tonic-gate basic_machine=ns32k-sequent 4197c478bd9Sstevel@tonic-gate os=-dynix 4207c478bd9Sstevel@tonic-gate ;; 4217c478bd9Sstevel@tonic-gate c90) 4227c478bd9Sstevel@tonic-gate basic_machine=c90-cray 4237c478bd9Sstevel@tonic-gate os=-unicos 4247c478bd9Sstevel@tonic-gate ;; 4257c478bd9Sstevel@tonic-gate convex-c1) 4267c478bd9Sstevel@tonic-gate basic_machine=c1-convex 4277c478bd9Sstevel@tonic-gate os=-bsd 4287c478bd9Sstevel@tonic-gate ;; 4297c478bd9Sstevel@tonic-gate convex-c2) 4307c478bd9Sstevel@tonic-gate basic_machine=c2-convex 4317c478bd9Sstevel@tonic-gate os=-bsd 4327c478bd9Sstevel@tonic-gate ;; 4337c478bd9Sstevel@tonic-gate convex-c32) 4347c478bd9Sstevel@tonic-gate basic_machine=c32-convex 4357c478bd9Sstevel@tonic-gate os=-bsd 4367c478bd9Sstevel@tonic-gate ;; 4377c478bd9Sstevel@tonic-gate convex-c34) 4387c478bd9Sstevel@tonic-gate basic_machine=c34-convex 4397c478bd9Sstevel@tonic-gate os=-bsd 4407c478bd9Sstevel@tonic-gate ;; 4417c478bd9Sstevel@tonic-gate convex-c38) 4427c478bd9Sstevel@tonic-gate basic_machine=c38-convex 4437c478bd9Sstevel@tonic-gate os=-bsd 4447c478bd9Sstevel@tonic-gate ;; 4457c478bd9Sstevel@tonic-gate cray | j90) 4467c478bd9Sstevel@tonic-gate basic_machine=j90-cray 4477c478bd9Sstevel@tonic-gate os=-unicos 4487c478bd9Sstevel@tonic-gate ;; 449*1b8adde7SWilliam Kucharski craynv) 450*1b8adde7SWilliam Kucharski basic_machine=craynv-cray 451*1b8adde7SWilliam Kucharski os=-unicosmp 452*1b8adde7SWilliam Kucharski ;; 453*1b8adde7SWilliam Kucharski cr16c) 454*1b8adde7SWilliam Kucharski basic_machine=cr16c-unknown 455*1b8adde7SWilliam Kucharski os=-elf 456*1b8adde7SWilliam Kucharski ;; 4577c478bd9Sstevel@tonic-gate crds | unos) 4587c478bd9Sstevel@tonic-gate basic_machine=m68k-crds 4597c478bd9Sstevel@tonic-gate ;; 460*1b8adde7SWilliam Kucharski crisv32 | crisv32-* | etraxfs*) 461*1b8adde7SWilliam Kucharski basic_machine=crisv32-axis 462*1b8adde7SWilliam Kucharski ;; 4637c478bd9Sstevel@tonic-gate cris | cris-* | etrax*) 4647c478bd9Sstevel@tonic-gate basic_machine=cris-axis 4657c478bd9Sstevel@tonic-gate ;; 466*1b8adde7SWilliam Kucharski crx) 467*1b8adde7SWilliam Kucharski basic_machine=crx-unknown 468*1b8adde7SWilliam Kucharski os=-elf 469*1b8adde7SWilliam Kucharski ;; 4707c478bd9Sstevel@tonic-gate da30 | da30-*) 4717c478bd9Sstevel@tonic-gate basic_machine=m68k-da30 4727c478bd9Sstevel@tonic-gate ;; 4737c478bd9Sstevel@tonic-gate decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn) 4747c478bd9Sstevel@tonic-gate basic_machine=mips-dec 4757c478bd9Sstevel@tonic-gate ;; 4767c478bd9Sstevel@tonic-gate decsystem10* | dec10*) 4777c478bd9Sstevel@tonic-gate basic_machine=pdp10-dec 4787c478bd9Sstevel@tonic-gate os=-tops10 4797c478bd9Sstevel@tonic-gate ;; 4807c478bd9Sstevel@tonic-gate decsystem20* | dec20*) 4817c478bd9Sstevel@tonic-gate basic_machine=pdp10-dec 4827c478bd9Sstevel@tonic-gate os=-tops20 4837c478bd9Sstevel@tonic-gate ;; 4847c478bd9Sstevel@tonic-gate delta | 3300 | motorola-3300 | motorola-delta \ 4857c478bd9Sstevel@tonic-gate | 3300-motorola | delta-motorola) 4867c478bd9Sstevel@tonic-gate basic_machine=m68k-motorola 4877c478bd9Sstevel@tonic-gate ;; 4887c478bd9Sstevel@tonic-gate delta88) 4897c478bd9Sstevel@tonic-gate basic_machine=m88k-motorola 4907c478bd9Sstevel@tonic-gate os=-sysv3 4917c478bd9Sstevel@tonic-gate ;; 492*1b8adde7SWilliam Kucharski djgpp) 493*1b8adde7SWilliam Kucharski basic_machine=i586-pc 494*1b8adde7SWilliam Kucharski os=-msdosdjgpp 495*1b8adde7SWilliam Kucharski ;; 4967c478bd9Sstevel@tonic-gate dpx20 | dpx20-*) 4977c478bd9Sstevel@tonic-gate basic_machine=rs6000-bull 4987c478bd9Sstevel@tonic-gate os=-bosx 4997c478bd9Sstevel@tonic-gate ;; 5007c478bd9Sstevel@tonic-gate dpx2* | dpx2*-bull) 5017c478bd9Sstevel@tonic-gate basic_machine=m68k-bull 5027c478bd9Sstevel@tonic-gate os=-sysv3 5037c478bd9Sstevel@tonic-gate ;; 5047c478bd9Sstevel@tonic-gate ebmon29k) 5057c478bd9Sstevel@tonic-gate basic_machine=a29k-amd 5067c478bd9Sstevel@tonic-gate os=-ebmon 5077c478bd9Sstevel@tonic-gate ;; 5087c478bd9Sstevel@tonic-gate elxsi) 5097c478bd9Sstevel@tonic-gate basic_machine=elxsi-elxsi 5107c478bd9Sstevel@tonic-gate os=-bsd 5117c478bd9Sstevel@tonic-gate ;; 5127c478bd9Sstevel@tonic-gate encore | umax | mmax) 5137c478bd9Sstevel@tonic-gate basic_machine=ns32k-encore 5147c478bd9Sstevel@tonic-gate ;; 5157c478bd9Sstevel@tonic-gate es1800 | OSE68k | ose68k | ose | OSE) 5167c478bd9Sstevel@tonic-gate basic_machine=m68k-ericsson 5177c478bd9Sstevel@tonic-gate os=-ose 5187c478bd9Sstevel@tonic-gate ;; 5197c478bd9Sstevel@tonic-gate fx2800) 5207c478bd9Sstevel@tonic-gate basic_machine=i860-alliant 5217c478bd9Sstevel@tonic-gate ;; 5227c478bd9Sstevel@tonic-gate genix) 5237c478bd9Sstevel@tonic-gate basic_machine=ns32k-ns 5247c478bd9Sstevel@tonic-gate ;; 5257c478bd9Sstevel@tonic-gate gmicro) 5267c478bd9Sstevel@tonic-gate basic_machine=tron-gmicro 5277c478bd9Sstevel@tonic-gate os=-sysv 5287c478bd9Sstevel@tonic-gate ;; 5297c478bd9Sstevel@tonic-gate go32) 5307c478bd9Sstevel@tonic-gate basic_machine=i386-pc 5317c478bd9Sstevel@tonic-gate os=-go32 5327c478bd9Sstevel@tonic-gate ;; 5337c478bd9Sstevel@tonic-gate h3050r* | hiux*) 5347c478bd9Sstevel@tonic-gate basic_machine=hppa1.1-hitachi 5357c478bd9Sstevel@tonic-gate os=-hiuxwe2 5367c478bd9Sstevel@tonic-gate ;; 5377c478bd9Sstevel@tonic-gate h8300hms) 5387c478bd9Sstevel@tonic-gate basic_machine=h8300-hitachi 5397c478bd9Sstevel@tonic-gate os=-hms 5407c478bd9Sstevel@tonic-gate ;; 5417c478bd9Sstevel@tonic-gate h8300xray) 5427c478bd9Sstevel@tonic-gate basic_machine=h8300-hitachi 5437c478bd9Sstevel@tonic-gate os=-xray 5447c478bd9Sstevel@tonic-gate ;; 5457c478bd9Sstevel@tonic-gate h8500hms) 5467c478bd9Sstevel@tonic-gate basic_machine=h8500-hitachi 5477c478bd9Sstevel@tonic-gate os=-hms 5487c478bd9Sstevel@tonic-gate ;; 5497c478bd9Sstevel@tonic-gate harris) 5507c478bd9Sstevel@tonic-gate basic_machine=m88k-harris 5517c478bd9Sstevel@tonic-gate os=-sysv3 5527c478bd9Sstevel@tonic-gate ;; 5537c478bd9Sstevel@tonic-gate hp300-*) 5547c478bd9Sstevel@tonic-gate basic_machine=m68k-hp 5557c478bd9Sstevel@tonic-gate ;; 5567c478bd9Sstevel@tonic-gate hp300bsd) 5577c478bd9Sstevel@tonic-gate basic_machine=m68k-hp 5587c478bd9Sstevel@tonic-gate os=-bsd 5597c478bd9Sstevel@tonic-gate ;; 5607c478bd9Sstevel@tonic-gate hp300hpux) 5617c478bd9Sstevel@tonic-gate basic_machine=m68k-hp 5627c478bd9Sstevel@tonic-gate os=-hpux 5637c478bd9Sstevel@tonic-gate ;; 5647c478bd9Sstevel@tonic-gate hp3k9[0-9][0-9] | hp9[0-9][0-9]) 5657c478bd9Sstevel@tonic-gate basic_machine=hppa1.0-hp 5667c478bd9Sstevel@tonic-gate ;; 5677c478bd9Sstevel@tonic-gate hp9k2[0-9][0-9] | hp9k31[0-9]) 5687c478bd9Sstevel@tonic-gate basic_machine=m68000-hp 5697c478bd9Sstevel@tonic-gate ;; 5707c478bd9Sstevel@tonic-gate hp9k3[2-9][0-9]) 5717c478bd9Sstevel@tonic-gate basic_machine=m68k-hp 5727c478bd9Sstevel@tonic-gate ;; 5737c478bd9Sstevel@tonic-gate hp9k6[0-9][0-9] | hp6[0-9][0-9]) 5747c478bd9Sstevel@tonic-gate basic_machine=hppa1.0-hp 5757c478bd9Sstevel@tonic-gate ;; 5767c478bd9Sstevel@tonic-gate hp9k7[0-79][0-9] | hp7[0-79][0-9]) 5777c478bd9Sstevel@tonic-gate basic_machine=hppa1.1-hp 5787c478bd9Sstevel@tonic-gate ;; 5797c478bd9Sstevel@tonic-gate hp9k78[0-9] | hp78[0-9]) 5807c478bd9Sstevel@tonic-gate # FIXME: really hppa2.0-hp 5817c478bd9Sstevel@tonic-gate basic_machine=hppa1.1-hp 5827c478bd9Sstevel@tonic-gate ;; 5837c478bd9Sstevel@tonic-gate hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893) 5847c478bd9Sstevel@tonic-gate # FIXME: really hppa2.0-hp 5857c478bd9Sstevel@tonic-gate basic_machine=hppa1.1-hp 5867c478bd9Sstevel@tonic-gate ;; 5877c478bd9Sstevel@tonic-gate hp9k8[0-9][13679] | hp8[0-9][13679]) 5887c478bd9Sstevel@tonic-gate basic_machine=hppa1.1-hp 5897c478bd9Sstevel@tonic-gate ;; 5907c478bd9Sstevel@tonic-gate hp9k8[0-9][0-9] | hp8[0-9][0-9]) 5917c478bd9Sstevel@tonic-gate basic_machine=hppa1.0-hp 5927c478bd9Sstevel@tonic-gate ;; 5937c478bd9Sstevel@tonic-gate hppa-next) 5947c478bd9Sstevel@tonic-gate os=-nextstep3 5957c478bd9Sstevel@tonic-gate ;; 5967c478bd9Sstevel@tonic-gate hppaosf) 5977c478bd9Sstevel@tonic-gate basic_machine=hppa1.1-hp 5987c478bd9Sstevel@tonic-gate os=-osf 5997c478bd9Sstevel@tonic-gate ;; 6007c478bd9Sstevel@tonic-gate hppro) 6017c478bd9Sstevel@tonic-gate basic_machine=hppa1.1-hp 6027c478bd9Sstevel@tonic-gate os=-proelf 6037c478bd9Sstevel@tonic-gate ;; 6047c478bd9Sstevel@tonic-gate i370-ibm* | ibm*) 6057c478bd9Sstevel@tonic-gate basic_machine=i370-ibm 6067c478bd9Sstevel@tonic-gate ;; 6077c478bd9Sstevel@tonic-gate# I'm not sure what "Sysv32" means. Should this be sysv3.2? 6087c478bd9Sstevel@tonic-gate i*86v32) 6097c478bd9Sstevel@tonic-gate basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` 6107c478bd9Sstevel@tonic-gate os=-sysv32 6117c478bd9Sstevel@tonic-gate ;; 6127c478bd9Sstevel@tonic-gate i*86v4*) 6137c478bd9Sstevel@tonic-gate basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` 6147c478bd9Sstevel@tonic-gate os=-sysv4 6157c478bd9Sstevel@tonic-gate ;; 6167c478bd9Sstevel@tonic-gate i*86v) 6177c478bd9Sstevel@tonic-gate basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` 6187c478bd9Sstevel@tonic-gate os=-sysv 6197c478bd9Sstevel@tonic-gate ;; 6207c478bd9Sstevel@tonic-gate i*86sol2) 6217c478bd9Sstevel@tonic-gate basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` 6227c478bd9Sstevel@tonic-gate os=-solaris2 6237c478bd9Sstevel@tonic-gate ;; 6247c478bd9Sstevel@tonic-gate i386mach) 6257c478bd9Sstevel@tonic-gate basic_machine=i386-mach 6267c478bd9Sstevel@tonic-gate os=-mach 6277c478bd9Sstevel@tonic-gate ;; 6287c478bd9Sstevel@tonic-gate i386-vsta | vsta) 6297c478bd9Sstevel@tonic-gate basic_machine=i386-unknown 6307c478bd9Sstevel@tonic-gate os=-vsta 6317c478bd9Sstevel@tonic-gate ;; 6327c478bd9Sstevel@tonic-gate iris | iris4d) 6337c478bd9Sstevel@tonic-gate basic_machine=mips-sgi 6347c478bd9Sstevel@tonic-gate case $os in 6357c478bd9Sstevel@tonic-gate -irix*) 6367c478bd9Sstevel@tonic-gate ;; 6377c478bd9Sstevel@tonic-gate *) 6387c478bd9Sstevel@tonic-gate os=-irix4 6397c478bd9Sstevel@tonic-gate ;; 6407c478bd9Sstevel@tonic-gate esac 6417c478bd9Sstevel@tonic-gate ;; 6427c478bd9Sstevel@tonic-gate isi68 | isi) 6437c478bd9Sstevel@tonic-gate basic_machine=m68k-isi 6447c478bd9Sstevel@tonic-gate os=-sysv 6457c478bd9Sstevel@tonic-gate ;; 6467c478bd9Sstevel@tonic-gate m88k-omron*) 6477c478bd9Sstevel@tonic-gate basic_machine=m88k-omron 6487c478bd9Sstevel@tonic-gate ;; 6497c478bd9Sstevel@tonic-gate magnum | m3230) 6507c478bd9Sstevel@tonic-gate basic_machine=mips-mips 6517c478bd9Sstevel@tonic-gate os=-sysv 6527c478bd9Sstevel@tonic-gate ;; 6537c478bd9Sstevel@tonic-gate merlin) 6547c478bd9Sstevel@tonic-gate basic_machine=ns32k-utek 6557c478bd9Sstevel@tonic-gate os=-sysv 6567c478bd9Sstevel@tonic-gate ;; 6577c478bd9Sstevel@tonic-gate mingw32) 6587c478bd9Sstevel@tonic-gate basic_machine=i386-pc 6597c478bd9Sstevel@tonic-gate os=-mingw32 6607c478bd9Sstevel@tonic-gate ;; 6617c478bd9Sstevel@tonic-gate miniframe) 6627c478bd9Sstevel@tonic-gate basic_machine=m68000-convergent 6637c478bd9Sstevel@tonic-gate ;; 6647c478bd9Sstevel@tonic-gate *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*) 6657c478bd9Sstevel@tonic-gate basic_machine=m68k-atari 6667c478bd9Sstevel@tonic-gate os=-mint 6677c478bd9Sstevel@tonic-gate ;; 6687c478bd9Sstevel@tonic-gate mips3*-*) 6697c478bd9Sstevel@tonic-gate basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` 6707c478bd9Sstevel@tonic-gate ;; 6717c478bd9Sstevel@tonic-gate mips3*) 6727c478bd9Sstevel@tonic-gate basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown 6737c478bd9Sstevel@tonic-gate ;; 6747c478bd9Sstevel@tonic-gate monitor) 6757c478bd9Sstevel@tonic-gate basic_machine=m68k-rom68k 6767c478bd9Sstevel@tonic-gate os=-coff 6777c478bd9Sstevel@tonic-gate ;; 6787c478bd9Sstevel@tonic-gate morphos) 6797c478bd9Sstevel@tonic-gate basic_machine=powerpc-unknown 6807c478bd9Sstevel@tonic-gate os=-morphos 6817c478bd9Sstevel@tonic-gate ;; 6827c478bd9Sstevel@tonic-gate msdos) 6837c478bd9Sstevel@tonic-gate basic_machine=i386-pc 6847c478bd9Sstevel@tonic-gate os=-msdos 6857c478bd9Sstevel@tonic-gate ;; 6867c478bd9Sstevel@tonic-gate mvs) 6877c478bd9Sstevel@tonic-gate basic_machine=i370-ibm 6887c478bd9Sstevel@tonic-gate os=-mvs 6897c478bd9Sstevel@tonic-gate ;; 6907c478bd9Sstevel@tonic-gate ncr3000) 6917c478bd9Sstevel@tonic-gate basic_machine=i486-ncr 6927c478bd9Sstevel@tonic-gate os=-sysv4 6937c478bd9Sstevel@tonic-gate ;; 6947c478bd9Sstevel@tonic-gate netbsd386) 6957c478bd9Sstevel@tonic-gate basic_machine=i386-unknown 6967c478bd9Sstevel@tonic-gate os=-netbsd 6977c478bd9Sstevel@tonic-gate ;; 6987c478bd9Sstevel@tonic-gate netwinder) 6997c478bd9Sstevel@tonic-gate basic_machine=armv4l-rebel 7007c478bd9Sstevel@tonic-gate os=-linux 7017c478bd9Sstevel@tonic-gate ;; 7027c478bd9Sstevel@tonic-gate news | news700 | news800 | news900) 7037c478bd9Sstevel@tonic-gate basic_machine=m68k-sony 7047c478bd9Sstevel@tonic-gate os=-newsos 7057c478bd9Sstevel@tonic-gate ;; 7067c478bd9Sstevel@tonic-gate news1000) 7077c478bd9Sstevel@tonic-gate basic_machine=m68030-sony 7087c478bd9Sstevel@tonic-gate os=-newsos 7097c478bd9Sstevel@tonic-gate ;; 7107c478bd9Sstevel@tonic-gate news-3600 | risc-news) 7117c478bd9Sstevel@tonic-gate basic_machine=mips-sony 7127c478bd9Sstevel@tonic-gate os=-newsos 7137c478bd9Sstevel@tonic-gate ;; 7147c478bd9Sstevel@tonic-gate necv70) 7157c478bd9Sstevel@tonic-gate basic_machine=v70-nec 7167c478bd9Sstevel@tonic-gate os=-sysv 7177c478bd9Sstevel@tonic-gate ;; 7187c478bd9Sstevel@tonic-gate next | m*-next ) 7197c478bd9Sstevel@tonic-gate basic_machine=m68k-next 7207c478bd9Sstevel@tonic-gate case $os in 7217c478bd9Sstevel@tonic-gate -nextstep* ) 7227c478bd9Sstevel@tonic-gate ;; 7237c478bd9Sstevel@tonic-gate -ns2*) 7247c478bd9Sstevel@tonic-gate os=-nextstep2 7257c478bd9Sstevel@tonic-gate ;; 7267c478bd9Sstevel@tonic-gate *) 7277c478bd9Sstevel@tonic-gate os=-nextstep3 7287c478bd9Sstevel@tonic-gate ;; 7297c478bd9Sstevel@tonic-gate esac 7307c478bd9Sstevel@tonic-gate ;; 7317c478bd9Sstevel@tonic-gate nh3000) 7327c478bd9Sstevel@tonic-gate basic_machine=m68k-harris 7337c478bd9Sstevel@tonic-gate os=-cxux 7347c478bd9Sstevel@tonic-gate ;; 7357c478bd9Sstevel@tonic-gate nh[45]000) 7367c478bd9Sstevel@tonic-gate basic_machine=m88k-harris 7377c478bd9Sstevel@tonic-gate os=-cxux 7387c478bd9Sstevel@tonic-gate ;; 7397c478bd9Sstevel@tonic-gate nindy960) 7407c478bd9Sstevel@tonic-gate basic_machine=i960-intel 7417c478bd9Sstevel@tonic-gate os=-nindy 7427c478bd9Sstevel@tonic-gate ;; 7437c478bd9Sstevel@tonic-gate mon960) 7447c478bd9Sstevel@tonic-gate basic_machine=i960-intel 7457c478bd9Sstevel@tonic-gate os=-mon960 7467c478bd9Sstevel@tonic-gate ;; 7477c478bd9Sstevel@tonic-gate nonstopux) 7487c478bd9Sstevel@tonic-gate basic_machine=mips-compaq 7497c478bd9Sstevel@tonic-gate os=-nonstopux 7507c478bd9Sstevel@tonic-gate ;; 7517c478bd9Sstevel@tonic-gate np1) 7527c478bd9Sstevel@tonic-gate basic_machine=np1-gould 7537c478bd9Sstevel@tonic-gate ;; 7547c478bd9Sstevel@tonic-gate nsr-tandem) 7557c478bd9Sstevel@tonic-gate basic_machine=nsr-tandem 7567c478bd9Sstevel@tonic-gate ;; 7577c478bd9Sstevel@tonic-gate op50n-* | op60c-*) 7587c478bd9Sstevel@tonic-gate basic_machine=hppa1.1-oki 7597c478bd9Sstevel@tonic-gate os=-proelf 7607c478bd9Sstevel@tonic-gate ;; 7617c478bd9Sstevel@tonic-gate or32 | or32-*) 7627c478bd9Sstevel@tonic-gate basic_machine=or32-unknown 7637c478bd9Sstevel@tonic-gate os=-coff 7647c478bd9Sstevel@tonic-gate ;; 7657c478bd9Sstevel@tonic-gate os400) 7667c478bd9Sstevel@tonic-gate basic_machine=powerpc-ibm 7677c478bd9Sstevel@tonic-gate os=-os400 7687c478bd9Sstevel@tonic-gate ;; 7697c478bd9Sstevel@tonic-gate OSE68000 | ose68000) 7707c478bd9Sstevel@tonic-gate basic_machine=m68000-ericsson 7717c478bd9Sstevel@tonic-gate os=-ose 7727c478bd9Sstevel@tonic-gate ;; 7737c478bd9Sstevel@tonic-gate os68k) 7747c478bd9Sstevel@tonic-gate basic_machine=m68k-none 7757c478bd9Sstevel@tonic-gate os=-os68k 7767c478bd9Sstevel@tonic-gate ;; 7777c478bd9Sstevel@tonic-gate pa-hitachi) 7787c478bd9Sstevel@tonic-gate basic_machine=hppa1.1-hitachi 7797c478bd9Sstevel@tonic-gate os=-hiuxwe2 7807c478bd9Sstevel@tonic-gate ;; 7817c478bd9Sstevel@tonic-gate paragon) 7827c478bd9Sstevel@tonic-gate basic_machine=i860-intel 7837c478bd9Sstevel@tonic-gate os=-osf 7847c478bd9Sstevel@tonic-gate ;; 7857c478bd9Sstevel@tonic-gate pbd) 7867c478bd9Sstevel@tonic-gate basic_machine=sparc-tti 7877c478bd9Sstevel@tonic-gate ;; 7887c478bd9Sstevel@tonic-gate pbb) 7897c478bd9Sstevel@tonic-gate basic_machine=m68k-tti 7907c478bd9Sstevel@tonic-gate ;; 7917c478bd9Sstevel@tonic-gate pc532 | pc532-*) 7927c478bd9Sstevel@tonic-gate basic_machine=ns32k-pc532 7937c478bd9Sstevel@tonic-gate ;; 7947c478bd9Sstevel@tonic-gate pentium | p5 | k5 | k6 | nexgen | viac3) 7957c478bd9Sstevel@tonic-gate basic_machine=i586-pc 7967c478bd9Sstevel@tonic-gate ;; 7977c478bd9Sstevel@tonic-gate pentiumpro | p6 | 6x86 | athlon | athlon_*) 7987c478bd9Sstevel@tonic-gate basic_machine=i686-pc 7997c478bd9Sstevel@tonic-gate ;; 8007c478bd9Sstevel@tonic-gate pentiumii | pentium2 | pentiumiii | pentium3) 8017c478bd9Sstevel@tonic-gate basic_machine=i686-pc 8027c478bd9Sstevel@tonic-gate ;; 8037c478bd9Sstevel@tonic-gate pentium4) 8047c478bd9Sstevel@tonic-gate basic_machine=i786-pc 8057c478bd9Sstevel@tonic-gate ;; 8067c478bd9Sstevel@tonic-gate pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) 8077c478bd9Sstevel@tonic-gate basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` 8087c478bd9Sstevel@tonic-gate ;; 8097c478bd9Sstevel@tonic-gate pentiumpro-* | p6-* | 6x86-* | athlon-*) 8107c478bd9Sstevel@tonic-gate basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` 8117c478bd9Sstevel@tonic-gate ;; 8127c478bd9Sstevel@tonic-gate pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*) 8137c478bd9Sstevel@tonic-gate basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` 8147c478bd9Sstevel@tonic-gate ;; 8157c478bd9Sstevel@tonic-gate pentium4-*) 8167c478bd9Sstevel@tonic-gate basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'` 8177c478bd9Sstevel@tonic-gate ;; 8187c478bd9Sstevel@tonic-gate pn) 8197c478bd9Sstevel@tonic-gate basic_machine=pn-gould 8207c478bd9Sstevel@tonic-gate ;; 8217c478bd9Sstevel@tonic-gate power) basic_machine=power-ibm 8227c478bd9Sstevel@tonic-gate ;; 8237c478bd9Sstevel@tonic-gate ppc) basic_machine=powerpc-unknown 8247c478bd9Sstevel@tonic-gate ;; 8257c478bd9Sstevel@tonic-gate ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` 8267c478bd9Sstevel@tonic-gate ;; 8277c478bd9Sstevel@tonic-gate ppcle | powerpclittle | ppc-le | powerpc-little) 8287c478bd9Sstevel@tonic-gate basic_machine=powerpcle-unknown 8297c478bd9Sstevel@tonic-gate ;; 8307c478bd9Sstevel@tonic-gate ppcle-* | powerpclittle-*) 8317c478bd9Sstevel@tonic-gate basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` 8327c478bd9Sstevel@tonic-gate ;; 8337c478bd9Sstevel@tonic-gate ppc64) basic_machine=powerpc64-unknown 8347c478bd9Sstevel@tonic-gate ;; 8357c478bd9Sstevel@tonic-gate ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'` 8367c478bd9Sstevel@tonic-gate ;; 8377c478bd9Sstevel@tonic-gate ppc64le | powerpc64little | ppc64-le | powerpc64-little) 8387c478bd9Sstevel@tonic-gate basic_machine=powerpc64le-unknown 8397c478bd9Sstevel@tonic-gate ;; 8407c478bd9Sstevel@tonic-gate ppc64le-* | powerpc64little-*) 8417c478bd9Sstevel@tonic-gate basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'` 8427c478bd9Sstevel@tonic-gate ;; 8437c478bd9Sstevel@tonic-gate ps2) 8447c478bd9Sstevel@tonic-gate basic_machine=i386-ibm 8457c478bd9Sstevel@tonic-gate ;; 8467c478bd9Sstevel@tonic-gate pw32) 8477c478bd9Sstevel@tonic-gate basic_machine=i586-unknown 8487c478bd9Sstevel@tonic-gate os=-pw32 8497c478bd9Sstevel@tonic-gate ;; 8507c478bd9Sstevel@tonic-gate rom68k) 8517c478bd9Sstevel@tonic-gate basic_machine=m68k-rom68k 8527c478bd9Sstevel@tonic-gate os=-coff 8537c478bd9Sstevel@tonic-gate ;; 8547c478bd9Sstevel@tonic-gate rm[46]00) 8557c478bd9Sstevel@tonic-gate basic_machine=mips-siemens 8567c478bd9Sstevel@tonic-gate ;; 8577c478bd9Sstevel@tonic-gate rtpc | rtpc-*) 8587c478bd9Sstevel@tonic-gate basic_machine=romp-ibm 8597c478bd9Sstevel@tonic-gate ;; 8607c478bd9Sstevel@tonic-gate s390 | s390-*) 8617c478bd9Sstevel@tonic-gate basic_machine=s390-ibm 8627c478bd9Sstevel@tonic-gate ;; 8637c478bd9Sstevel@tonic-gate s390x | s390x-*) 8647c478bd9Sstevel@tonic-gate basic_machine=s390x-ibm 8657c478bd9Sstevel@tonic-gate ;; 8667c478bd9Sstevel@tonic-gate sa29200) 8677c478bd9Sstevel@tonic-gate basic_machine=a29k-amd 8687c478bd9Sstevel@tonic-gate os=-udi 8697c478bd9Sstevel@tonic-gate ;; 8707c478bd9Sstevel@tonic-gate sb1) 8717c478bd9Sstevel@tonic-gate basic_machine=mipsisa64sb1-unknown 8727c478bd9Sstevel@tonic-gate ;; 8737c478bd9Sstevel@tonic-gate sb1el) 8747c478bd9Sstevel@tonic-gate basic_machine=mipsisa64sb1el-unknown 8757c478bd9Sstevel@tonic-gate ;; 8767c478bd9Sstevel@tonic-gate sei) 8777c478bd9Sstevel@tonic-gate basic_machine=mips-sei 8787c478bd9Sstevel@tonic-gate os=-seiux 8797c478bd9Sstevel@tonic-gate ;; 8807c478bd9Sstevel@tonic-gate sequent) 8817c478bd9Sstevel@tonic-gate basic_machine=i386-sequent 8827c478bd9Sstevel@tonic-gate ;; 8837c478bd9Sstevel@tonic-gate sh) 8847c478bd9Sstevel@tonic-gate basic_machine=sh-hitachi 8857c478bd9Sstevel@tonic-gate os=-hms 8867c478bd9Sstevel@tonic-gate ;; 8877c478bd9Sstevel@tonic-gate sh64) 8887c478bd9Sstevel@tonic-gate basic_machine=sh64-unknown 8897c478bd9Sstevel@tonic-gate ;; 8907c478bd9Sstevel@tonic-gate sparclite-wrs | simso-wrs) 8917c478bd9Sstevel@tonic-gate basic_machine=sparclite-wrs 8927c478bd9Sstevel@tonic-gate os=-vxworks 8937c478bd9Sstevel@tonic-gate ;; 8947c478bd9Sstevel@tonic-gate sps7) 8957c478bd9Sstevel@tonic-gate basic_machine=m68k-bull 8967c478bd9Sstevel@tonic-gate os=-sysv2 8977c478bd9Sstevel@tonic-gate ;; 8987c478bd9Sstevel@tonic-gate spur) 8997c478bd9Sstevel@tonic-gate basic_machine=spur-unknown 9007c478bd9Sstevel@tonic-gate ;; 9017c478bd9Sstevel@tonic-gate st2000) 9027c478bd9Sstevel@tonic-gate basic_machine=m68k-tandem 9037c478bd9Sstevel@tonic-gate ;; 9047c478bd9Sstevel@tonic-gate stratus) 9057c478bd9Sstevel@tonic-gate basic_machine=i860-stratus 9067c478bd9Sstevel@tonic-gate os=-sysv4 9077c478bd9Sstevel@tonic-gate ;; 9087c478bd9Sstevel@tonic-gate sun2) 9097c478bd9Sstevel@tonic-gate basic_machine=m68000-sun 9107c478bd9Sstevel@tonic-gate ;; 9117c478bd9Sstevel@tonic-gate sun2os3) 9127c478bd9Sstevel@tonic-gate basic_machine=m68000-sun 9137c478bd9Sstevel@tonic-gate os=-sunos3 9147c478bd9Sstevel@tonic-gate ;; 9157c478bd9Sstevel@tonic-gate sun2os4) 9167c478bd9Sstevel@tonic-gate basic_machine=m68000-sun 9177c478bd9Sstevel@tonic-gate os=-sunos4 9187c478bd9Sstevel@tonic-gate ;; 9197c478bd9Sstevel@tonic-gate sun3os3) 9207c478bd9Sstevel@tonic-gate basic_machine=m68k-sun 9217c478bd9Sstevel@tonic-gate os=-sunos3 9227c478bd9Sstevel@tonic-gate ;; 9237c478bd9Sstevel@tonic-gate sun3os4) 9247c478bd9Sstevel@tonic-gate basic_machine=m68k-sun 9257c478bd9Sstevel@tonic-gate os=-sunos4 9267c478bd9Sstevel@tonic-gate ;; 9277c478bd9Sstevel@tonic-gate sun4os3) 9287c478bd9Sstevel@tonic-gate basic_machine=sparc-sun 9297c478bd9Sstevel@tonic-gate os=-sunos3 9307c478bd9Sstevel@tonic-gate ;; 9317c478bd9Sstevel@tonic-gate sun4os4) 9327c478bd9Sstevel@tonic-gate basic_machine=sparc-sun 9337c478bd9Sstevel@tonic-gate os=-sunos4 9347c478bd9Sstevel@tonic-gate ;; 9357c478bd9Sstevel@tonic-gate sun4sol2) 9367c478bd9Sstevel@tonic-gate basic_machine=sparc-sun 9377c478bd9Sstevel@tonic-gate os=-solaris2 9387c478bd9Sstevel@tonic-gate ;; 9397c478bd9Sstevel@tonic-gate sun3 | sun3-*) 9407c478bd9Sstevel@tonic-gate basic_machine=m68k-sun 9417c478bd9Sstevel@tonic-gate ;; 9427c478bd9Sstevel@tonic-gate sun4) 9437c478bd9Sstevel@tonic-gate basic_machine=sparc-sun 9447c478bd9Sstevel@tonic-gate ;; 9457c478bd9Sstevel@tonic-gate sun386 | sun386i | roadrunner) 9467c478bd9Sstevel@tonic-gate basic_machine=i386-sun 9477c478bd9Sstevel@tonic-gate ;; 9487c478bd9Sstevel@tonic-gate sv1) 9497c478bd9Sstevel@tonic-gate basic_machine=sv1-cray 9507c478bd9Sstevel@tonic-gate os=-unicos 9517c478bd9Sstevel@tonic-gate ;; 9527c478bd9Sstevel@tonic-gate symmetry) 9537c478bd9Sstevel@tonic-gate basic_machine=i386-sequent 9547c478bd9Sstevel@tonic-gate os=-dynix 9557c478bd9Sstevel@tonic-gate ;; 9567c478bd9Sstevel@tonic-gate t3e) 9577c478bd9Sstevel@tonic-gate basic_machine=alphaev5-cray 9587c478bd9Sstevel@tonic-gate os=-unicos 9597c478bd9Sstevel@tonic-gate ;; 9607c478bd9Sstevel@tonic-gate t90) 9617c478bd9Sstevel@tonic-gate basic_machine=t90-cray 9627c478bd9Sstevel@tonic-gate os=-unicos 9637c478bd9Sstevel@tonic-gate ;; 9647c478bd9Sstevel@tonic-gate tic54x | c54x*) 9657c478bd9Sstevel@tonic-gate basic_machine=tic54x-unknown 9667c478bd9Sstevel@tonic-gate os=-coff 9677c478bd9Sstevel@tonic-gate ;; 9687c478bd9Sstevel@tonic-gate tic55x | c55x*) 9697c478bd9Sstevel@tonic-gate basic_machine=tic55x-unknown 9707c478bd9Sstevel@tonic-gate os=-coff 9717c478bd9Sstevel@tonic-gate ;; 9727c478bd9Sstevel@tonic-gate tic6x | c6x*) 9737c478bd9Sstevel@tonic-gate basic_machine=tic6x-unknown 9747c478bd9Sstevel@tonic-gate os=-coff 9757c478bd9Sstevel@tonic-gate ;; 9767c478bd9Sstevel@tonic-gate tx39) 9777c478bd9Sstevel@tonic-gate basic_machine=mipstx39-unknown 9787c478bd9Sstevel@tonic-gate ;; 9797c478bd9Sstevel@tonic-gate tx39el) 9807c478bd9Sstevel@tonic-gate basic_machine=mipstx39el-unknown 9817c478bd9Sstevel@tonic-gate ;; 9827c478bd9Sstevel@tonic-gate toad1) 9837c478bd9Sstevel@tonic-gate basic_machine=pdp10-xkl 9847c478bd9Sstevel@tonic-gate os=-tops20 9857c478bd9Sstevel@tonic-gate ;; 9867c478bd9Sstevel@tonic-gate tower | tower-32) 9877c478bd9Sstevel@tonic-gate basic_machine=m68k-ncr 9887c478bd9Sstevel@tonic-gate ;; 9897c478bd9Sstevel@tonic-gate tpf) 9907c478bd9Sstevel@tonic-gate basic_machine=s390x-ibm 9917c478bd9Sstevel@tonic-gate os=-tpf 9927c478bd9Sstevel@tonic-gate ;; 9937c478bd9Sstevel@tonic-gate udi29k) 9947c478bd9Sstevel@tonic-gate basic_machine=a29k-amd 9957c478bd9Sstevel@tonic-gate os=-udi 9967c478bd9Sstevel@tonic-gate ;; 9977c478bd9Sstevel@tonic-gate ultra3) 9987c478bd9Sstevel@tonic-gate basic_machine=a29k-nyu 9997c478bd9Sstevel@tonic-gate os=-sym1 10007c478bd9Sstevel@tonic-gate ;; 10017c478bd9Sstevel@tonic-gate v810 | necv810) 10027c478bd9Sstevel@tonic-gate basic_machine=v810-nec 10037c478bd9Sstevel@tonic-gate os=-none 10047c478bd9Sstevel@tonic-gate ;; 10057c478bd9Sstevel@tonic-gate vaxv) 10067c478bd9Sstevel@tonic-gate basic_machine=vax-dec 10077c478bd9Sstevel@tonic-gate os=-sysv 10087c478bd9Sstevel@tonic-gate ;; 10097c478bd9Sstevel@tonic-gate vms) 10107c478bd9Sstevel@tonic-gate basic_machine=vax-dec 10117c478bd9Sstevel@tonic-gate os=-vms 10127c478bd9Sstevel@tonic-gate ;; 10137c478bd9Sstevel@tonic-gate vpp*|vx|vx-*) 10147c478bd9Sstevel@tonic-gate basic_machine=f301-fujitsu 10157c478bd9Sstevel@tonic-gate ;; 10167c478bd9Sstevel@tonic-gate vxworks960) 10177c478bd9Sstevel@tonic-gate basic_machine=i960-wrs 10187c478bd9Sstevel@tonic-gate os=-vxworks 10197c478bd9Sstevel@tonic-gate ;; 10207c478bd9Sstevel@tonic-gate vxworks68) 10217c478bd9Sstevel@tonic-gate basic_machine=m68k-wrs 10227c478bd9Sstevel@tonic-gate os=-vxworks 10237c478bd9Sstevel@tonic-gate ;; 10247c478bd9Sstevel@tonic-gate vxworks29k) 10257c478bd9Sstevel@tonic-gate basic_machine=a29k-wrs 10267c478bd9Sstevel@tonic-gate os=-vxworks 10277c478bd9Sstevel@tonic-gate ;; 10287c478bd9Sstevel@tonic-gate w65*) 10297c478bd9Sstevel@tonic-gate basic_machine=w65-wdc 10307c478bd9Sstevel@tonic-gate os=-none 10317c478bd9Sstevel@tonic-gate ;; 10327c478bd9Sstevel@tonic-gate w89k-*) 10337c478bd9Sstevel@tonic-gate basic_machine=hppa1.1-winbond 10347c478bd9Sstevel@tonic-gate os=-proelf 10357c478bd9Sstevel@tonic-gate ;; 1036*1b8adde7SWilliam Kucharski xbox) 1037*1b8adde7SWilliam Kucharski basic_machine=i686-pc 1038*1b8adde7SWilliam Kucharski os=-mingw32 1039*1b8adde7SWilliam Kucharski ;; 10407c478bd9Sstevel@tonic-gate xps | xps100) 10417c478bd9Sstevel@tonic-gate basic_machine=xps100-honeywell 10427c478bd9Sstevel@tonic-gate ;; 10437c478bd9Sstevel@tonic-gate ymp) 10447c478bd9Sstevel@tonic-gate basic_machine=ymp-cray 10457c478bd9Sstevel@tonic-gate os=-unicos 10467c478bd9Sstevel@tonic-gate ;; 10477c478bd9Sstevel@tonic-gate z8k-*-coff) 10487c478bd9Sstevel@tonic-gate basic_machine=z8k-unknown 10497c478bd9Sstevel@tonic-gate os=-sim 10507c478bd9Sstevel@tonic-gate ;; 10517c478bd9Sstevel@tonic-gate none) 10527c478bd9Sstevel@tonic-gate basic_machine=none-none 10537c478bd9Sstevel@tonic-gate os=-none 10547c478bd9Sstevel@tonic-gate ;; 10557c478bd9Sstevel@tonic-gate 10567c478bd9Sstevel@tonic-gate# Here we handle the default manufacturer of certain CPU types. It is in 10577c478bd9Sstevel@tonic-gate# some cases the only manufacturer, in others, it is the most popular. 10587c478bd9Sstevel@tonic-gate w89k) 10597c478bd9Sstevel@tonic-gate basic_machine=hppa1.1-winbond 10607c478bd9Sstevel@tonic-gate ;; 10617c478bd9Sstevel@tonic-gate op50n) 10627c478bd9Sstevel@tonic-gate basic_machine=hppa1.1-oki 10637c478bd9Sstevel@tonic-gate ;; 10647c478bd9Sstevel@tonic-gate op60c) 10657c478bd9Sstevel@tonic-gate basic_machine=hppa1.1-oki 10667c478bd9Sstevel@tonic-gate ;; 10677c478bd9Sstevel@tonic-gate romp) 10687c478bd9Sstevel@tonic-gate basic_machine=romp-ibm 10697c478bd9Sstevel@tonic-gate ;; 1070*1b8adde7SWilliam Kucharski mmix) 1071*1b8adde7SWilliam Kucharski basic_machine=mmix-knuth 1072*1b8adde7SWilliam Kucharski ;; 10737c478bd9Sstevel@tonic-gate rs6000) 10747c478bd9Sstevel@tonic-gate basic_machine=rs6000-ibm 10757c478bd9Sstevel@tonic-gate ;; 10767c478bd9Sstevel@tonic-gate vax) 10777c478bd9Sstevel@tonic-gate basic_machine=vax-dec 10787c478bd9Sstevel@tonic-gate ;; 10797c478bd9Sstevel@tonic-gate pdp10) 10807c478bd9Sstevel@tonic-gate # there are many clones, so DEC is not a safe bet 10817c478bd9Sstevel@tonic-gate basic_machine=pdp10-unknown 10827c478bd9Sstevel@tonic-gate ;; 10837c478bd9Sstevel@tonic-gate pdp11) 10847c478bd9Sstevel@tonic-gate basic_machine=pdp11-dec 10857c478bd9Sstevel@tonic-gate ;; 10867c478bd9Sstevel@tonic-gate we32k) 10877c478bd9Sstevel@tonic-gate basic_machine=we32k-att 10887c478bd9Sstevel@tonic-gate ;; 10897c478bd9Sstevel@tonic-gate sh3 | sh4 | sh[34]eb | sh[1234]le | sh[23]ele) 10907c478bd9Sstevel@tonic-gate basic_machine=sh-unknown 10917c478bd9Sstevel@tonic-gate ;; 10927c478bd9Sstevel@tonic-gate sh64) 10937c478bd9Sstevel@tonic-gate basic_machine=sh64-unknown 10947c478bd9Sstevel@tonic-gate ;; 1095*1b8adde7SWilliam Kucharski sparc | sparcv8 | sparcv9 | sparcv9b) 10967c478bd9Sstevel@tonic-gate basic_machine=sparc-sun 10977c478bd9Sstevel@tonic-gate ;; 10987c478bd9Sstevel@tonic-gate cydra) 10997c478bd9Sstevel@tonic-gate basic_machine=cydra-cydrome 11007c478bd9Sstevel@tonic-gate ;; 11017c478bd9Sstevel@tonic-gate orion) 11027c478bd9Sstevel@tonic-gate basic_machine=orion-highlevel 11037c478bd9Sstevel@tonic-gate ;; 11047c478bd9Sstevel@tonic-gate orion105) 11057c478bd9Sstevel@tonic-gate basic_machine=clipper-highlevel 11067c478bd9Sstevel@tonic-gate ;; 11077c478bd9Sstevel@tonic-gate mac | mpw | mac-mpw) 11087c478bd9Sstevel@tonic-gate basic_machine=m68k-apple 11097c478bd9Sstevel@tonic-gate ;; 11107c478bd9Sstevel@tonic-gate pmac | pmac-mpw) 11117c478bd9Sstevel@tonic-gate basic_machine=powerpc-apple 11127c478bd9Sstevel@tonic-gate ;; 11137c478bd9Sstevel@tonic-gate *-unknown) 11147c478bd9Sstevel@tonic-gate # Make sure to match an already-canonicalized machine name. 11157c478bd9Sstevel@tonic-gate ;; 11167c478bd9Sstevel@tonic-gate *) 11177c478bd9Sstevel@tonic-gate echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 11187c478bd9Sstevel@tonic-gate exit 1 11197c478bd9Sstevel@tonic-gate ;; 11207c478bd9Sstevel@tonic-gateesac 11217c478bd9Sstevel@tonic-gate 11227c478bd9Sstevel@tonic-gate# Here we canonicalize certain aliases for manufacturers. 11237c478bd9Sstevel@tonic-gatecase $basic_machine in 11247c478bd9Sstevel@tonic-gate *-digital*) 11257c478bd9Sstevel@tonic-gate basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'` 11267c478bd9Sstevel@tonic-gate ;; 11277c478bd9Sstevel@tonic-gate *-commodore*) 11287c478bd9Sstevel@tonic-gate basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'` 11297c478bd9Sstevel@tonic-gate ;; 11307c478bd9Sstevel@tonic-gate *) 11317c478bd9Sstevel@tonic-gate ;; 11327c478bd9Sstevel@tonic-gateesac 11337c478bd9Sstevel@tonic-gate 11347c478bd9Sstevel@tonic-gate# Decode manufacturer-specific aliases for certain operating systems. 11357c478bd9Sstevel@tonic-gate 11367c478bd9Sstevel@tonic-gateif [ x"$os" != x"" ] 11377c478bd9Sstevel@tonic-gatethen 11387c478bd9Sstevel@tonic-gatecase $os in 11397c478bd9Sstevel@tonic-gate # First match some system type aliases 11407c478bd9Sstevel@tonic-gate # that might get confused with valid system types. 11417c478bd9Sstevel@tonic-gate # -solaris* is a basic system type, with this one exception. 11427c478bd9Sstevel@tonic-gate -solaris1 | -solaris1.*) 11437c478bd9Sstevel@tonic-gate os=`echo $os | sed -e 's|solaris1|sunos4|'` 11447c478bd9Sstevel@tonic-gate ;; 11457c478bd9Sstevel@tonic-gate -solaris) 11467c478bd9Sstevel@tonic-gate os=-solaris2 11477c478bd9Sstevel@tonic-gate ;; 11487c478bd9Sstevel@tonic-gate -svr4*) 11497c478bd9Sstevel@tonic-gate os=-sysv4 11507c478bd9Sstevel@tonic-gate ;; 11517c478bd9Sstevel@tonic-gate -unixware*) 11527c478bd9Sstevel@tonic-gate os=-sysv4.2uw 11537c478bd9Sstevel@tonic-gate ;; 11547c478bd9Sstevel@tonic-gate -gnu/linux*) 11557c478bd9Sstevel@tonic-gate os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'` 11567c478bd9Sstevel@tonic-gate ;; 11577c478bd9Sstevel@tonic-gate # First accept the basic system types. 11587c478bd9Sstevel@tonic-gate # The portable systems comes first. 11597c478bd9Sstevel@tonic-gate # Each alternative MUST END IN A *, to match a version number. 11607c478bd9Sstevel@tonic-gate # -sysv* is not here because it comes later, after sysvr4. 11617c478bd9Sstevel@tonic-gate -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ 11627c478bd9Sstevel@tonic-gate | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\ 11637c478bd9Sstevel@tonic-gate | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \ 11647c478bd9Sstevel@tonic-gate | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ 11657c478bd9Sstevel@tonic-gate | -aos* \ 11667c478bd9Sstevel@tonic-gate | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ 11677c478bd9Sstevel@tonic-gate | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ 1168*1b8adde7SWilliam Kucharski | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* | -openbsd* \ 1169*1b8adde7SWilliam Kucharski | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ 1170*1b8adde7SWilliam Kucharski | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ 11717c478bd9Sstevel@tonic-gate | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ 11727c478bd9Sstevel@tonic-gate | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ 11737c478bd9Sstevel@tonic-gate | -chorusos* | -chorusrdb* \ 11747c478bd9Sstevel@tonic-gate | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ 11757c478bd9Sstevel@tonic-gate | -mingw32* | -linux-gnu* | -linux-uclibc* | -uxpv* | -beos* | -mpeix* | -udk* \ 11767c478bd9Sstevel@tonic-gate | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ 11777c478bd9Sstevel@tonic-gate | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ 11787c478bd9Sstevel@tonic-gate | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ 11797c478bd9Sstevel@tonic-gate | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ 11807c478bd9Sstevel@tonic-gate | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ 11817c478bd9Sstevel@tonic-gate | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly*) 11827c478bd9Sstevel@tonic-gate # Remember, each alternative MUST END IN *, to match a version number. 11837c478bd9Sstevel@tonic-gate ;; 11847c478bd9Sstevel@tonic-gate -qnx*) 11857c478bd9Sstevel@tonic-gate case $basic_machine in 11867c478bd9Sstevel@tonic-gate x86-* | i*86-*) 11877c478bd9Sstevel@tonic-gate ;; 11887c478bd9Sstevel@tonic-gate *) 11897c478bd9Sstevel@tonic-gate os=-nto$os 11907c478bd9Sstevel@tonic-gate ;; 11917c478bd9Sstevel@tonic-gate esac 11927c478bd9Sstevel@tonic-gate ;; 11937c478bd9Sstevel@tonic-gate -nto-qnx*) 11947c478bd9Sstevel@tonic-gate ;; 11957c478bd9Sstevel@tonic-gate -nto*) 11967c478bd9Sstevel@tonic-gate os=`echo $os | sed -e 's|nto|nto-qnx|'` 11977c478bd9Sstevel@tonic-gate ;; 11987c478bd9Sstevel@tonic-gate -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ 11997c478bd9Sstevel@tonic-gate | -windows* | -osx | -abug | -netware* | -os9* | -beos* \ 12007c478bd9Sstevel@tonic-gate | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) 12017c478bd9Sstevel@tonic-gate ;; 12027c478bd9Sstevel@tonic-gate -mac*) 12037c478bd9Sstevel@tonic-gate os=`echo $os | sed -e 's|mac|macos|'` 12047c478bd9Sstevel@tonic-gate ;; 12057c478bd9Sstevel@tonic-gate -linux-dietlibc) 12067c478bd9Sstevel@tonic-gate os=-linux-dietlibc 12077c478bd9Sstevel@tonic-gate ;; 12087c478bd9Sstevel@tonic-gate -linux*) 12097c478bd9Sstevel@tonic-gate os=`echo $os | sed -e 's|linux|linux-gnu|'` 12107c478bd9Sstevel@tonic-gate ;; 12117c478bd9Sstevel@tonic-gate -sunos5*) 12127c478bd9Sstevel@tonic-gate os=`echo $os | sed -e 's|sunos5|solaris2|'` 12137c478bd9Sstevel@tonic-gate ;; 12147c478bd9Sstevel@tonic-gate -sunos6*) 12157c478bd9Sstevel@tonic-gate os=`echo $os | sed -e 's|sunos6|solaris3|'` 12167c478bd9Sstevel@tonic-gate ;; 12177c478bd9Sstevel@tonic-gate -opened*) 12187c478bd9Sstevel@tonic-gate os=-openedition 12197c478bd9Sstevel@tonic-gate ;; 12207c478bd9Sstevel@tonic-gate -os400*) 12217c478bd9Sstevel@tonic-gate os=-os400 12227c478bd9Sstevel@tonic-gate ;; 12237c478bd9Sstevel@tonic-gate -wince*) 12247c478bd9Sstevel@tonic-gate os=-wince 12257c478bd9Sstevel@tonic-gate ;; 12267c478bd9Sstevel@tonic-gate -osfrose*) 12277c478bd9Sstevel@tonic-gate os=-osfrose 12287c478bd9Sstevel@tonic-gate ;; 12297c478bd9Sstevel@tonic-gate -osf*) 12307c478bd9Sstevel@tonic-gate os=-osf 12317c478bd9Sstevel@tonic-gate ;; 12327c478bd9Sstevel@tonic-gate -utek*) 12337c478bd9Sstevel@tonic-gate os=-bsd 12347c478bd9Sstevel@tonic-gate ;; 12357c478bd9Sstevel@tonic-gate -dynix*) 12367c478bd9Sstevel@tonic-gate os=-bsd 12377c478bd9Sstevel@tonic-gate ;; 12387c478bd9Sstevel@tonic-gate -acis*) 12397c478bd9Sstevel@tonic-gate os=-aos 12407c478bd9Sstevel@tonic-gate ;; 12417c478bd9Sstevel@tonic-gate -atheos*) 12427c478bd9Sstevel@tonic-gate os=-atheos 12437c478bd9Sstevel@tonic-gate ;; 12447c478bd9Sstevel@tonic-gate -syllable*) 12457c478bd9Sstevel@tonic-gate os=-syllable 12467c478bd9Sstevel@tonic-gate ;; 12477c478bd9Sstevel@tonic-gate -386bsd) 12487c478bd9Sstevel@tonic-gate os=-bsd 12497c478bd9Sstevel@tonic-gate ;; 12507c478bd9Sstevel@tonic-gate -ctix* | -uts*) 12517c478bd9Sstevel@tonic-gate os=-sysv 12527c478bd9Sstevel@tonic-gate ;; 12537c478bd9Sstevel@tonic-gate -nova*) 12547c478bd9Sstevel@tonic-gate os=-rtmk-nova 12557c478bd9Sstevel@tonic-gate ;; 12567c478bd9Sstevel@tonic-gate -ns2 ) 12577c478bd9Sstevel@tonic-gate os=-nextstep2 12587c478bd9Sstevel@tonic-gate ;; 12597c478bd9Sstevel@tonic-gate -nsk*) 12607c478bd9Sstevel@tonic-gate os=-nsk 12617c478bd9Sstevel@tonic-gate ;; 12627c478bd9Sstevel@tonic-gate # Preserve the version number of sinix5. 12637c478bd9Sstevel@tonic-gate -sinix5.*) 12647c478bd9Sstevel@tonic-gate os=`echo $os | sed -e 's|sinix|sysv|'` 12657c478bd9Sstevel@tonic-gate ;; 12667c478bd9Sstevel@tonic-gate -sinix*) 12677c478bd9Sstevel@tonic-gate os=-sysv4 12687c478bd9Sstevel@tonic-gate ;; 12697c478bd9Sstevel@tonic-gate -tpf*) 12707c478bd9Sstevel@tonic-gate os=-tpf 12717c478bd9Sstevel@tonic-gate ;; 12727c478bd9Sstevel@tonic-gate -triton*) 12737c478bd9Sstevel@tonic-gate os=-sysv3 12747c478bd9Sstevel@tonic-gate ;; 12757c478bd9Sstevel@tonic-gate -oss*) 12767c478bd9Sstevel@tonic-gate os=-sysv3 12777c478bd9Sstevel@tonic-gate ;; 12787c478bd9Sstevel@tonic-gate -svr4) 12797c478bd9Sstevel@tonic-gate os=-sysv4 12807c478bd9Sstevel@tonic-gate ;; 12817c478bd9Sstevel@tonic-gate -svr3) 12827c478bd9Sstevel@tonic-gate os=-sysv3 12837c478bd9Sstevel@tonic-gate ;; 12847c478bd9Sstevel@tonic-gate -sysvr4) 12857c478bd9Sstevel@tonic-gate os=-sysv4 12867c478bd9Sstevel@tonic-gate ;; 12877c478bd9Sstevel@tonic-gate # This must come after -sysvr4. 12887c478bd9Sstevel@tonic-gate -sysv*) 12897c478bd9Sstevel@tonic-gate ;; 12907c478bd9Sstevel@tonic-gate -ose*) 12917c478bd9Sstevel@tonic-gate os=-ose 12927c478bd9Sstevel@tonic-gate ;; 12937c478bd9Sstevel@tonic-gate -es1800*) 12947c478bd9Sstevel@tonic-gate os=-ose 12957c478bd9Sstevel@tonic-gate ;; 12967c478bd9Sstevel@tonic-gate -xenix) 12977c478bd9Sstevel@tonic-gate os=-xenix 12987c478bd9Sstevel@tonic-gate ;; 12997c478bd9Sstevel@tonic-gate -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) 13007c478bd9Sstevel@tonic-gate os=-mint 13017c478bd9Sstevel@tonic-gate ;; 13027c478bd9Sstevel@tonic-gate -aros*) 13037c478bd9Sstevel@tonic-gate os=-aros 13047c478bd9Sstevel@tonic-gate ;; 13057c478bd9Sstevel@tonic-gate -kaos*) 13067c478bd9Sstevel@tonic-gate os=-kaos 13077c478bd9Sstevel@tonic-gate ;; 1308*1b8adde7SWilliam Kucharski -zvmoe) 1309*1b8adde7SWilliam Kucharski os=-zvmoe 1310*1b8adde7SWilliam Kucharski ;; 13117c478bd9Sstevel@tonic-gate -none) 13127c478bd9Sstevel@tonic-gate ;; 13137c478bd9Sstevel@tonic-gate *) 13147c478bd9Sstevel@tonic-gate # Get rid of the `-' at the beginning of $os. 13157c478bd9Sstevel@tonic-gate os=`echo $os | sed 's/[^-]*-//'` 13167c478bd9Sstevel@tonic-gate echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2 13177c478bd9Sstevel@tonic-gate exit 1 13187c478bd9Sstevel@tonic-gate ;; 13197c478bd9Sstevel@tonic-gateesac 13207c478bd9Sstevel@tonic-gateelse 13217c478bd9Sstevel@tonic-gate 13227c478bd9Sstevel@tonic-gate# Here we handle the default operating systems that come with various machines. 13237c478bd9Sstevel@tonic-gate# The value should be what the vendor currently ships out the door with their 13247c478bd9Sstevel@tonic-gate# machine or put another way, the most popular os provided with the machine. 13257c478bd9Sstevel@tonic-gate 13267c478bd9Sstevel@tonic-gate# Note that if you're going to try to match "-MANUFACTURER" here (say, 13277c478bd9Sstevel@tonic-gate# "-sun"), then you have to tell the case statement up towards the top 13287c478bd9Sstevel@tonic-gate# that MANUFACTURER isn't an operating system. Otherwise, code above 13297c478bd9Sstevel@tonic-gate# will signal an error saying that MANUFACTURER isn't an operating 13307c478bd9Sstevel@tonic-gate# system, and we'll never get to this point. 13317c478bd9Sstevel@tonic-gate 13327c478bd9Sstevel@tonic-gatecase $basic_machine in 13337c478bd9Sstevel@tonic-gate *-acorn) 13347c478bd9Sstevel@tonic-gate os=-riscix1.2 13357c478bd9Sstevel@tonic-gate ;; 13367c478bd9Sstevel@tonic-gate arm*-rebel) 13377c478bd9Sstevel@tonic-gate os=-linux 13387c478bd9Sstevel@tonic-gate ;; 13397c478bd9Sstevel@tonic-gate arm*-semi) 13407c478bd9Sstevel@tonic-gate os=-aout 13417c478bd9Sstevel@tonic-gate ;; 13427c478bd9Sstevel@tonic-gate c4x-* | tic4x-*) 13437c478bd9Sstevel@tonic-gate os=-coff 13447c478bd9Sstevel@tonic-gate ;; 13457c478bd9Sstevel@tonic-gate # This must come before the *-dec entry. 13467c478bd9Sstevel@tonic-gate pdp10-*) 13477c478bd9Sstevel@tonic-gate os=-tops20 13487c478bd9Sstevel@tonic-gate ;; 13497c478bd9Sstevel@tonic-gate pdp11-*) 13507c478bd9Sstevel@tonic-gate os=-none 13517c478bd9Sstevel@tonic-gate ;; 13527c478bd9Sstevel@tonic-gate *-dec | vax-*) 13537c478bd9Sstevel@tonic-gate os=-ultrix4.2 13547c478bd9Sstevel@tonic-gate ;; 13557c478bd9Sstevel@tonic-gate m68*-apollo) 13567c478bd9Sstevel@tonic-gate os=-domain 13577c478bd9Sstevel@tonic-gate ;; 13587c478bd9Sstevel@tonic-gate i386-sun) 13597c478bd9Sstevel@tonic-gate os=-sunos4.0.2 13607c478bd9Sstevel@tonic-gate ;; 13617c478bd9Sstevel@tonic-gate m68000-sun) 13627c478bd9Sstevel@tonic-gate os=-sunos3 13637c478bd9Sstevel@tonic-gate # This also exists in the configure program, but was not the 13647c478bd9Sstevel@tonic-gate # default. 13657c478bd9Sstevel@tonic-gate # os=-sunos4 13667c478bd9Sstevel@tonic-gate ;; 13677c478bd9Sstevel@tonic-gate m68*-cisco) 13687c478bd9Sstevel@tonic-gate os=-aout 13697c478bd9Sstevel@tonic-gate ;; 13707c478bd9Sstevel@tonic-gate mips*-cisco) 13717c478bd9Sstevel@tonic-gate os=-elf 13727c478bd9Sstevel@tonic-gate ;; 13737c478bd9Sstevel@tonic-gate mips*-*) 13747c478bd9Sstevel@tonic-gate os=-elf 13757c478bd9Sstevel@tonic-gate ;; 13767c478bd9Sstevel@tonic-gate or32-*) 13777c478bd9Sstevel@tonic-gate os=-coff 13787c478bd9Sstevel@tonic-gate ;; 13797c478bd9Sstevel@tonic-gate *-tti) # must be before sparc entry or we get the wrong os. 13807c478bd9Sstevel@tonic-gate os=-sysv3 13817c478bd9Sstevel@tonic-gate ;; 13827c478bd9Sstevel@tonic-gate sparc-* | *-sun) 13837c478bd9Sstevel@tonic-gate os=-sunos4.1.1 13847c478bd9Sstevel@tonic-gate ;; 13857c478bd9Sstevel@tonic-gate *-be) 13867c478bd9Sstevel@tonic-gate os=-beos 13877c478bd9Sstevel@tonic-gate ;; 13887c478bd9Sstevel@tonic-gate *-ibm) 13897c478bd9Sstevel@tonic-gate os=-aix 13907c478bd9Sstevel@tonic-gate ;; 1391*1b8adde7SWilliam Kucharski *-knuth) 1392*1b8adde7SWilliam Kucharski os=-mmixware 1393*1b8adde7SWilliam Kucharski ;; 13947c478bd9Sstevel@tonic-gate *-wec) 13957c478bd9Sstevel@tonic-gate os=-proelf 13967c478bd9Sstevel@tonic-gate ;; 13977c478bd9Sstevel@tonic-gate *-winbond) 13987c478bd9Sstevel@tonic-gate os=-proelf 13997c478bd9Sstevel@tonic-gate ;; 14007c478bd9Sstevel@tonic-gate *-oki) 14017c478bd9Sstevel@tonic-gate os=-proelf 14027c478bd9Sstevel@tonic-gate ;; 14037c478bd9Sstevel@tonic-gate *-hp) 14047c478bd9Sstevel@tonic-gate os=-hpux 14057c478bd9Sstevel@tonic-gate ;; 14067c478bd9Sstevel@tonic-gate *-hitachi) 14077c478bd9Sstevel@tonic-gate os=-hiux 14087c478bd9Sstevel@tonic-gate ;; 14097c478bd9Sstevel@tonic-gate i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent) 14107c478bd9Sstevel@tonic-gate os=-sysv 14117c478bd9Sstevel@tonic-gate ;; 14127c478bd9Sstevel@tonic-gate *-cbm) 14137c478bd9Sstevel@tonic-gate os=-amigaos 14147c478bd9Sstevel@tonic-gate ;; 14157c478bd9Sstevel@tonic-gate *-dg) 14167c478bd9Sstevel@tonic-gate os=-dgux 14177c478bd9Sstevel@tonic-gate ;; 14187c478bd9Sstevel@tonic-gate *-dolphin) 14197c478bd9Sstevel@tonic-gate os=-sysv3 14207c478bd9Sstevel@tonic-gate ;; 14217c478bd9Sstevel@tonic-gate m68k-ccur) 14227c478bd9Sstevel@tonic-gate os=-rtu 14237c478bd9Sstevel@tonic-gate ;; 14247c478bd9Sstevel@tonic-gate m88k-omron*) 14257c478bd9Sstevel@tonic-gate os=-luna 14267c478bd9Sstevel@tonic-gate ;; 14277c478bd9Sstevel@tonic-gate *-next ) 14287c478bd9Sstevel@tonic-gate os=-nextstep 14297c478bd9Sstevel@tonic-gate ;; 14307c478bd9Sstevel@tonic-gate *-sequent) 14317c478bd9Sstevel@tonic-gate os=-ptx 14327c478bd9Sstevel@tonic-gate ;; 14337c478bd9Sstevel@tonic-gate *-crds) 14347c478bd9Sstevel@tonic-gate os=-unos 14357c478bd9Sstevel@tonic-gate ;; 14367c478bd9Sstevel@tonic-gate *-ns) 14377c478bd9Sstevel@tonic-gate os=-genix 14387c478bd9Sstevel@tonic-gate ;; 14397c478bd9Sstevel@tonic-gate i370-*) 14407c478bd9Sstevel@tonic-gate os=-mvs 14417c478bd9Sstevel@tonic-gate ;; 14427c478bd9Sstevel@tonic-gate *-next) 14437c478bd9Sstevel@tonic-gate os=-nextstep3 14447c478bd9Sstevel@tonic-gate ;; 14457c478bd9Sstevel@tonic-gate *-gould) 14467c478bd9Sstevel@tonic-gate os=-sysv 14477c478bd9Sstevel@tonic-gate ;; 14487c478bd9Sstevel@tonic-gate *-highlevel) 14497c478bd9Sstevel@tonic-gate os=-bsd 14507c478bd9Sstevel@tonic-gate ;; 14517c478bd9Sstevel@tonic-gate *-encore) 14527c478bd9Sstevel@tonic-gate os=-bsd 14537c478bd9Sstevel@tonic-gate ;; 14547c478bd9Sstevel@tonic-gate *-sgi) 14557c478bd9Sstevel@tonic-gate os=-irix 14567c478bd9Sstevel@tonic-gate ;; 14577c478bd9Sstevel@tonic-gate *-siemens) 14587c478bd9Sstevel@tonic-gate os=-sysv4 14597c478bd9Sstevel@tonic-gate ;; 14607c478bd9Sstevel@tonic-gate *-masscomp) 14617c478bd9Sstevel@tonic-gate os=-rtu 14627c478bd9Sstevel@tonic-gate ;; 14637c478bd9Sstevel@tonic-gate f30[01]-fujitsu | f700-fujitsu) 14647c478bd9Sstevel@tonic-gate os=-uxpv 14657c478bd9Sstevel@tonic-gate ;; 14667c478bd9Sstevel@tonic-gate *-rom68k) 14677c478bd9Sstevel@tonic-gate os=-coff 14687c478bd9Sstevel@tonic-gate ;; 14697c478bd9Sstevel@tonic-gate *-*bug) 14707c478bd9Sstevel@tonic-gate os=-coff 14717c478bd9Sstevel@tonic-gate ;; 14727c478bd9Sstevel@tonic-gate *-apple) 14737c478bd9Sstevel@tonic-gate os=-macos 14747c478bd9Sstevel@tonic-gate ;; 14757c478bd9Sstevel@tonic-gate *-atari*) 14767c478bd9Sstevel@tonic-gate os=-mint 14777c478bd9Sstevel@tonic-gate ;; 14787c478bd9Sstevel@tonic-gate *) 14797c478bd9Sstevel@tonic-gate os=-none 14807c478bd9Sstevel@tonic-gate ;; 14817c478bd9Sstevel@tonic-gateesac 14827c478bd9Sstevel@tonic-gatefi 14837c478bd9Sstevel@tonic-gate 14847c478bd9Sstevel@tonic-gate# Here we handle the case where we know the os, and the CPU type, but not the 14857c478bd9Sstevel@tonic-gate# manufacturer. We pick the logical manufacturer. 14867c478bd9Sstevel@tonic-gatevendor=unknown 14877c478bd9Sstevel@tonic-gatecase $basic_machine in 14887c478bd9Sstevel@tonic-gate *-unknown) 14897c478bd9Sstevel@tonic-gate case $os in 14907c478bd9Sstevel@tonic-gate -riscix*) 14917c478bd9Sstevel@tonic-gate vendor=acorn 14927c478bd9Sstevel@tonic-gate ;; 14937c478bd9Sstevel@tonic-gate -sunos*) 14947c478bd9Sstevel@tonic-gate vendor=sun 14957c478bd9Sstevel@tonic-gate ;; 14967c478bd9Sstevel@tonic-gate -aix*) 14977c478bd9Sstevel@tonic-gate vendor=ibm 14987c478bd9Sstevel@tonic-gate ;; 14997c478bd9Sstevel@tonic-gate -beos*) 15007c478bd9Sstevel@tonic-gate vendor=be 15017c478bd9Sstevel@tonic-gate ;; 15027c478bd9Sstevel@tonic-gate -hpux*) 15037c478bd9Sstevel@tonic-gate vendor=hp 15047c478bd9Sstevel@tonic-gate ;; 15057c478bd9Sstevel@tonic-gate -mpeix*) 15067c478bd9Sstevel@tonic-gate vendor=hp 15077c478bd9Sstevel@tonic-gate ;; 15087c478bd9Sstevel@tonic-gate -hiux*) 15097c478bd9Sstevel@tonic-gate vendor=hitachi 15107c478bd9Sstevel@tonic-gate ;; 15117c478bd9Sstevel@tonic-gate -unos*) 15127c478bd9Sstevel@tonic-gate vendor=crds 15137c478bd9Sstevel@tonic-gate ;; 15147c478bd9Sstevel@tonic-gate -dgux*) 15157c478bd9Sstevel@tonic-gate vendor=dg 15167c478bd9Sstevel@tonic-gate ;; 15177c478bd9Sstevel@tonic-gate -luna*) 15187c478bd9Sstevel@tonic-gate vendor=omron 15197c478bd9Sstevel@tonic-gate ;; 15207c478bd9Sstevel@tonic-gate -genix*) 15217c478bd9Sstevel@tonic-gate vendor=ns 15227c478bd9Sstevel@tonic-gate ;; 15237c478bd9Sstevel@tonic-gate -mvs* | -opened*) 15247c478bd9Sstevel@tonic-gate vendor=ibm 15257c478bd9Sstevel@tonic-gate ;; 15267c478bd9Sstevel@tonic-gate -os400*) 15277c478bd9Sstevel@tonic-gate vendor=ibm 15287c478bd9Sstevel@tonic-gate ;; 15297c478bd9Sstevel@tonic-gate -ptx*) 15307c478bd9Sstevel@tonic-gate vendor=sequent 15317c478bd9Sstevel@tonic-gate ;; 15327c478bd9Sstevel@tonic-gate -tpf*) 15337c478bd9Sstevel@tonic-gate vendor=ibm 15347c478bd9Sstevel@tonic-gate ;; 15357c478bd9Sstevel@tonic-gate -vxsim* | -vxworks* | -windiss*) 15367c478bd9Sstevel@tonic-gate vendor=wrs 15377c478bd9Sstevel@tonic-gate ;; 15387c478bd9Sstevel@tonic-gate -aux*) 15397c478bd9Sstevel@tonic-gate vendor=apple 15407c478bd9Sstevel@tonic-gate ;; 15417c478bd9Sstevel@tonic-gate -hms*) 15427c478bd9Sstevel@tonic-gate vendor=hitachi 15437c478bd9Sstevel@tonic-gate ;; 15447c478bd9Sstevel@tonic-gate -mpw* | -macos*) 15457c478bd9Sstevel@tonic-gate vendor=apple 15467c478bd9Sstevel@tonic-gate ;; 15477c478bd9Sstevel@tonic-gate -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) 15487c478bd9Sstevel@tonic-gate vendor=atari 15497c478bd9Sstevel@tonic-gate ;; 15507c478bd9Sstevel@tonic-gate -vos*) 15517c478bd9Sstevel@tonic-gate vendor=stratus 15527c478bd9Sstevel@tonic-gate ;; 15537c478bd9Sstevel@tonic-gate esac 15547c478bd9Sstevel@tonic-gate basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` 15557c478bd9Sstevel@tonic-gate ;; 15567c478bd9Sstevel@tonic-gateesac 15577c478bd9Sstevel@tonic-gate 15587c478bd9Sstevel@tonic-gateecho $basic_machine$os 15597c478bd9Sstevel@tonic-gateexit 0 15607c478bd9Sstevel@tonic-gate 15617c478bd9Sstevel@tonic-gate# Local variables: 15627c478bd9Sstevel@tonic-gate# eval: (add-hook 'write-file-hooks 'time-stamp) 15637c478bd9Sstevel@tonic-gate# time-stamp-start: "timestamp='" 15647c478bd9Sstevel@tonic-gate# time-stamp-format: "%:y-%02m-%02d" 15657c478bd9Sstevel@tonic-gate# time-stamp-end: "'" 15667c478bd9Sstevel@tonic-gate# End: 1567