config.sub revision 83098
169408Sache#! /bin/sh
269408Sache# Configuration validation subroutine script, version 1.1.
383098Smp#   Copyright (C) 1991, 92-97, 1998, 1999 Free Software Foundation, Inc.
469408Sache# This file is (in principle) common to ALL GNU software.
569408Sache# The presence of a machine in this file suggests that SOME GNU software
669408Sache# can handle that machine.  It does not imply ALL GNU software can.
769408Sache#
869408Sache# This file is free software; you can redistribute it and/or modify
969408Sache# it under the terms of the GNU General Public License as published by
1069408Sache# the Free Software Foundation; either version 2 of the License, or
1169408Sache# (at your option) any later version.
1269408Sache#
1369408Sache# This program is distributed in the hope that it will be useful,
1469408Sache# but WITHOUT ANY WARRANTY; without even the implied warranty of
1569408Sache# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
1669408Sache# GNU General Public License for more details.
1769408Sache#
1869408Sache# You should have received a copy of the GNU General Public License
1969408Sache# along with this program; if not, write to the Free Software
2069408Sache# Foundation, Inc., 59 Temple Place - Suite 330,
2169408Sache# Boston, MA 02111-1307, USA.
2269408Sache
2369408Sache# As a special exception to the GNU General Public License, if you
2469408Sache# distribute this file as part of a program that contains a
2569408Sache# configuration script generated by Autoconf, you may include it under
2669408Sache# the same distribution terms that you use for the rest of that program.
2769408Sache
2869408Sache# Configuration subroutine to validate and canonicalize a configuration type.
2969408Sache# Supply the specified configuration type as an argument.
3069408Sache# If it is invalid, we print an error message on stderr and exit with code 1.
3169408Sache# Otherwise, we print the canonical config type on stdout and succeed.
3269408Sache
3369408Sache# This file is supposed to be the same for all GNU packages
3469408Sache# and recognize all the CPU types, system types and aliases
3569408Sache# that are meaningful with *any* GNU software.
3669408Sache# Each package is responsible for reporting which valid configurations
3769408Sache# it does not support.  The user should be able to distinguish
3869408Sache# a failure to support a valid configuration from a meaningless
3969408Sache# configuration.
4069408Sache
4169408Sache# The goal of this file is to map all the various variations of a given
4269408Sache# machine specification into a single specification in the form:
4369408Sache#	CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
4469408Sache# or in some cases, the newer four-part form:
4569408Sache#	CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
4669408Sache# It is wrong to echo any other type of specification.
4769408Sache
4869408Sacheif [ x$1 = x ]
4969408Sachethen
5069408Sache	echo Configuration name missing. 1>&2
5169408Sache	echo "Usage: $0 CPU-MFR-OPSYS" 1>&2
5269408Sache	echo "or     $0 ALIAS" 1>&2
5369408Sache	echo where ALIAS is a recognized configuration type. 1>&2
5469408Sache	exit 1
5569408Sachefi
5669408Sache
5769408Sache# First pass through any local machine types.
5869408Sachecase $1 in
5969408Sache	*local*)
6069408Sache		echo $1
6169408Sache		exit 0
6269408Sache		;;
6369408Sache	*)
6469408Sache	;;
6569408Sacheesac
6669408Sache
6769408Sache# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
6869408Sache# Here we must recognize all the valid KERNEL-OS combinations.
6969408Sachemaybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
7069408Sachecase $maybe_os in
7169408Sache  linux-gnu*)
7269408Sache    os=-$maybe_os
7369408Sache    basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
7469408Sache    ;;
7569408Sache  *)
7669408Sache    basic_machine=`echo $1 | sed 's/-[^-]*$//'`
7769408Sache    if [ $basic_machine != $1 ]
7869408Sache    then os=`echo $1 | sed 's/.*-/-/'`
7969408Sache    else os=; fi
8069408Sache    ;;
8169408Sacheesac
8269408Sache
8369408Sache### Let's recognize common machines as not being operating systems so
8469408Sache### that things like config.sub decstation-3100 work.  We also
8569408Sache### recognize some manufacturers as not being operating systems, so we
8669408Sache### can provide default operating systems below.
8769408Sachecase $os in
8869408Sache	-sun*os*)
8969408Sache		# Prevent following clause from handling this invalid input.
9069408Sache		;;
9169408Sache	-dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \
9269408Sache	-att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
9369408Sache	-unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
9469408Sache	-convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
9569408Sache	-c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
9669408Sache	-harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
9769408Sache	-apple)
9869408Sache		os=
9969408Sache		basic_machine=$1
10069408Sache		;;
10183098Smp	-sim | -cisco | -oki | -wec | -winbond)
10283098Smp		os=
10383098Smp		basic_machine=$1
10483098Smp		;;
10583098Smp	-scout)
10683098Smp		;;
10783098Smp	-wrs)
10883098Smp		os=-vxworks
10983098Smp		basic_machine=$1
11083098Smp		;;
11169408Sache	-hiux*)
11269408Sache		os=-hiuxwe2
11369408Sache		;;
11469408Sache	-sco5)
11583098Smp		os=-sco3.2v5
11669408Sache		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
11769408Sache		;;
11869408Sache	-sco4)
11969408Sache		os=-sco3.2v4
12069408Sache		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
12169408Sache		;;
12269408Sache	-sco3.2.[4-9]*)
12369408Sache		os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
12469408Sache		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
12569408Sache		;;
12669408Sache	-sco3.2v[4-9]*)
12769408Sache		# Don't forget version if it is 3.2v4 or newer.
12869408Sache		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
12969408Sache		;;
13069408Sache	-sco*)
13169408Sache		os=-sco3.2v2
13269408Sache		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
13369408Sache		;;
13483098Smp	-udk*)
13583098Smp		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
13683098Smp		;;
13769408Sache	-isc)
13869408Sache		os=-isc2.2
13969408Sache		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
14069408Sache		;;
14169408Sache	-clix*)
14269408Sache		basic_machine=clipper-intergraph
14369408Sache		;;
14469408Sache	-isc*)
14569408Sache		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
14669408Sache		;;
14769408Sache	-lynx*)
14869408Sache		os=-lynxos
14969408Sache		;;
15069408Sache	-ptx*)
15169408Sache		basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'`
15269408Sache		;;
15369408Sache	-windowsnt*)
15469408Sache		os=`echo $os | sed -e 's/windowsnt/winnt/'`
15569408Sache		;;
15669408Sache	-psos*)
15769408Sache		os=-psos
15869408Sache		;;
15983098Smp	-mint | -mint[0-9]*)
16083098Smp		basic_machine=m68k-atari
16183098Smp		os=-mint
16283098Smp		;;
16369408Sacheesac
16469408Sache
16569408Sache# Decode aliases for certain CPU-COMPANY combinations.
16669408Sachecase $basic_machine in
16769408Sache	# Recognize the basic CPU types without company name.
16869408Sache	# Some are omitted here because they have special meanings below.
16983098Smp	tahoe | i860 | ia64 | m32r | m68k | m68000 | m88k | ns32k | arc | arm \
17069408Sache		| arme[lb] | pyramid | mn10200 | mn10300 | tron | a29k \
17183098Smp		| 580 | i960 | h8300 \
17283098Smp		| hppa | hppa1.0 | hppa1.1 | hppa2.0 | hppa2.0w | hppa2.0n \
17383098Smp		| alpha | alphaev[4-7] | alphaev56 | alphapca5[67] \
17483098Smp		| we32k | ns16k | clipper | i370 | sh | powerpc | powerpcle \
17583098Smp		| 1750a | dsp16xx | pdp11 | mips16 | mips64 | mipsel | mips64el \
17683098Smp		| mips64orion | mips64orionel | mipstx39 | mipstx39el \
17783098Smp		| mips64vr4300 | mips64vr4300el | mips64vr4100 | mips64vr4100el \
17883098Smp		| mips64vr5000 | miprs64vr5000el | mcore \
17983098Smp		| sparc | sparclet | sparclite | sparc64 | sparcv9 | v850 | c4x \
18083098Smp		| thumb | d10v | fr30)
18169408Sache		basic_machine=$basic_machine-unknown
18269408Sache		;;
18383098Smp	m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | z8k | v70 | h8500 | w65 | pj | pjl)
18483098Smp		;;
18583098Smp
18669408Sache	# We use `pc' rather than `unknown'
18769408Sache	# because (1) that's what they normally are, and
18869408Sache	# (2) the word "unknown" tends to confuse beginning users.
18969408Sache	i[34567]86)
19069408Sache	  basic_machine=$basic_machine-pc
19169408Sache	  ;;
19269408Sache	# Object if more than one company name word.
19369408Sache	*-*-*)
19469408Sache		echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
19569408Sache		exit 1
19669408Sache		;;
19769408Sache	# Recognize the basic CPU types with company name.
19883098Smp	# FIXME: clean up the formatting here.
19983098Smp	vax-* | tahoe-* | i[34567]86-* | i860-* | ia64-* | m32r-* | m68k-* | m68000-* \
20069408Sache	      | m88k-* | sparc-* | ns32k-* | fx80-* | arc-* | arm-* | c[123]* \
20169408Sache	      | mips-* | pyramid-* | tron-* | a29k-* | romp-* | rs6000-* \
20283098Smp	      | power-* | none-* | 580-* | cray2-* | h8300-* | h8500-* | i960-* \
20383098Smp	      | xmp-* | ymp-* \
20483098Smp	      | hppa-* | hppa1.0-* | hppa1.1-* | hppa2.0-* | hppa2.0w-* | hppa2.0n-* \
20583098Smp	      | alpha-* | alphaev[4-7]-* | alphaev56-* | alphapca5[67]-* \
20683098Smp	      | we32k-* | cydra-* | ns16k-* | pn-* | np1-* | xps100-* \
20783098Smp	      | clipper-* | orion-* \
20869408Sache	      | sparclite-* | pdp11-* | sh-* | powerpc-* | powerpcle-* \
20983098Smp	      | sparc64-* | sparcv9-* | sparc86x-* | mips16-* | mips64-* | mipsel-* \
21083098Smp	      | mips64el-* | mips64orion-* | mips64orionel-* \
21183098Smp	      | mips64vr4100-* | mips64vr4100el-* | mips64vr4300-* | mips64vr4300el-* \
21283098Smp	      | mipstx39-* | mipstx39el-* | mcore-* \
21383098Smp	      | f301-* | armv*-* | t3e-* \
21483098Smp	      | m88110-* | m680[01234]0-* | m683?2-* | m68360-* | z8k-* | d10v-* \
21583098Smp	      | thumb-* | v850-* | d30v-* | tic30-* | c30-* | fr30-* )
21669408Sache		;;
21769408Sache	# Recognize the various machine names and aliases which stand
21869408Sache	# for a CPU type and a company and sometimes even an OS.
21983098Smp	386bsd)
22083098Smp		basic_machine=i386-unknown
22183098Smp		os=-bsd
22283098Smp		;;
22369408Sache	3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
22469408Sache		basic_machine=m68000-att
22569408Sache		;;
22669408Sache	3b*)
22769408Sache		basic_machine=we32k-att
22869408Sache		;;
22983098Smp	a29khif)
23083098Smp		basic_machine=a29k-amd
23183098Smp		os=-udi
23283098Smp		;;
23383098Smp	adobe68k)
23483098Smp		basic_machine=m68010-adobe
23583098Smp		os=-scout
23683098Smp		;;
23769408Sache	alliant | fx80)
23869408Sache		basic_machine=fx80-alliant
23969408Sache		;;
24069408Sache	altos | altos3068)
24169408Sache		basic_machine=m68k-altos
24269408Sache		;;
24369408Sache	am29k)
24469408Sache		basic_machine=a29k-none
24569408Sache		os=-bsd
24669408Sache		;;
24769408Sache	amdahl)
24869408Sache		basic_machine=580-amdahl
24969408Sache		os=-sysv
25069408Sache		;;
25169408Sache	amiga | amiga-*)
25269408Sache		basic_machine=m68k-cbm
25369408Sache		;;
25469408Sache	amigaos | amigados)
25569408Sache		basic_machine=m68k-cbm
25669408Sache		os=-amigaos
25769408Sache		;;
25869408Sache	amigaunix | amix)
25969408Sache		basic_machine=m68k-cbm
26069408Sache		os=-sysv4
26169408Sache		;;
26269408Sache	apollo68)
26369408Sache		basic_machine=m68k-apollo
26469408Sache		os=-sysv
26569408Sache		;;
26683098Smp	apollo68bsd)
26783098Smp		basic_machine=m68k-apollo
26883098Smp		os=-bsd
26983098Smp		;;
27069408Sache	aux)
27169408Sache		basic_machine=m68k-apple
27269408Sache		os=-aux
27369408Sache		;;
27469408Sache	balance)
27569408Sache		basic_machine=ns32k-sequent
27669408Sache		os=-dynix
27769408Sache		;;
27869408Sache	convex-c1)
27969408Sache		basic_machine=c1-convex
28069408Sache		os=-bsd
28169408Sache		;;
28269408Sache	convex-c2)
28369408Sache		basic_machine=c2-convex
28469408Sache		os=-bsd
28569408Sache		;;
28669408Sache	convex-c32)
28769408Sache		basic_machine=c32-convex
28869408Sache		os=-bsd
28969408Sache		;;
29069408Sache	convex-c34)
29169408Sache		basic_machine=c34-convex
29269408Sache		os=-bsd
29369408Sache		;;
29469408Sache	convex-c38)
29569408Sache		basic_machine=c38-convex
29669408Sache		os=-bsd
29769408Sache		;;
29869408Sache	cray | ymp)
29969408Sache		basic_machine=ymp-cray
30069408Sache		os=-unicos
30169408Sache		;;
30269408Sache	cray2)
30369408Sache		basic_machine=cray2-cray
30469408Sache		os=-unicos
30569408Sache		;;
30669408Sache	[ctj]90-cray)
30769408Sache		basic_machine=c90-cray
30869408Sache		os=-unicos
30969408Sache		;;
31069408Sache	crds | unos)
31169408Sache		basic_machine=m68k-crds
31269408Sache		;;
31369408Sache	da30 | da30-*)
31469408Sache		basic_machine=m68k-da30
31569408Sache		;;
31669408Sache	decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
31769408Sache		basic_machine=mips-dec
31869408Sache		;;
31969408Sache	delta | 3300 | motorola-3300 | motorola-delta \
32069408Sache	      | 3300-motorola | delta-motorola)
32169408Sache		basic_machine=m68k-motorola
32269408Sache		;;
32369408Sache	delta88)
32469408Sache		basic_machine=m88k-motorola
32569408Sache		os=-sysv3
32669408Sache		;;
32769408Sache	dpx20 | dpx20-*)
32869408Sache		basic_machine=rs6000-bull
32969408Sache		os=-bosx
33069408Sache		;;
33169408Sache	dpx2* | dpx2*-bull)
33269408Sache		basic_machine=m68k-bull
33369408Sache		os=-sysv3
33469408Sache		;;
33569408Sache	ebmon29k)
33669408Sache		basic_machine=a29k-amd
33769408Sache		os=-ebmon
33869408Sache		;;
33969408Sache	elxsi)
34069408Sache		basic_machine=elxsi-elxsi
34169408Sache		os=-bsd
34269408Sache		;;
34369408Sache	encore | umax | mmax)
34469408Sache		basic_machine=ns32k-encore
34569408Sache		;;
34683098Smp	es1800 | OSE68k | ose68k | ose | OSE)
34783098Smp		basic_machine=m68k-ericsson
34883098Smp		os=-ose
34983098Smp		;;
35069408Sache	fx2800)
35169408Sache		basic_machine=i860-alliant
35269408Sache		;;
35369408Sache	genix)
35469408Sache		basic_machine=ns32k-ns
35569408Sache		;;
35669408Sache	gmicro)
35769408Sache		basic_machine=tron-gmicro
35869408Sache		os=-sysv
35969408Sache		;;
36069408Sache	h3050r* | hiux*)
36169408Sache		basic_machine=hppa1.1-hitachi
36269408Sache		os=-hiuxwe2
36369408Sache		;;
36469408Sache	h8300hms)
36569408Sache		basic_machine=h8300-hitachi
36669408Sache		os=-hms
36769408Sache		;;
36883098Smp	h8300xray)
36983098Smp		basic_machine=h8300-hitachi
37083098Smp		os=-xray
37183098Smp		;;
37283098Smp	h8500hms)
37383098Smp		basic_machine=h8500-hitachi
37483098Smp		os=-hms
37583098Smp		;;
37669408Sache	harris)
37769408Sache		basic_machine=m88k-harris
37869408Sache		os=-sysv3
37969408Sache		;;
38069408Sache	hp300-*)
38169408Sache		basic_machine=m68k-hp
38269408Sache		;;
38369408Sache	hp300bsd)
38469408Sache		basic_machine=m68k-hp
38569408Sache		os=-bsd
38669408Sache		;;
38769408Sache	hp300hpux)
38869408Sache		basic_machine=m68k-hp
38969408Sache		os=-hpux
39069408Sache		;;
39183098Smp	hp3k9[0-9][0-9] | hp9[0-9][0-9])
39283098Smp		basic_machine=hppa1.0-hp
39383098Smp		;;
39469408Sache	hp9k2[0-9][0-9] | hp9k31[0-9])
39569408Sache		basic_machine=m68000-hp
39669408Sache		;;
39769408Sache	hp9k3[2-9][0-9])
39869408Sache		basic_machine=m68k-hp
39969408Sache		;;
40083098Smp	hp9k6[0-9][0-9] | hp6[0-9][0-9])
40183098Smp		basic_machine=hppa1.0-hp
40283098Smp		;;
40383098Smp	hp9k7[0-79][0-9] | hp7[0-79][0-9])
40469408Sache		basic_machine=hppa1.1-hp
40569408Sache		;;
40683098Smp	hp9k78[0-9] | hp78[0-9])
40783098Smp		# FIXME: really hppa2.0-hp
40883098Smp		basic_machine=hppa1.1-hp
40983098Smp		;;
41083098Smp	hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
41183098Smp		# FIXME: really hppa2.0-hp
41283098Smp		basic_machine=hppa1.1-hp
41383098Smp		;;
41483098Smp	hp9k8[0-9][13679] | hp8[0-9][13679])
41583098Smp		basic_machine=hppa1.1-hp
41683098Smp		;;
41769408Sache	hp9k8[0-9][0-9] | hp8[0-9][0-9])
41869408Sache		basic_machine=hppa1.0-hp
41969408Sache		;;
42069408Sache	hppa-next)
42169408Sache		os=-nextstep3
42269408Sache		;;
42383098Smp	hppaosf)
42483098Smp		basic_machine=hppa1.1-hp
42583098Smp		os=-osf
42683098Smp		;;
42783098Smp	hppro)
42883098Smp		basic_machine=hppa1.1-hp
42983098Smp		os=-proelf
43083098Smp		;;
43169408Sache	i370-ibm* | ibm*)
43269408Sache		basic_machine=i370-ibm
43369408Sache		;;
43469408Sache# I'm not sure what "Sysv32" means.  Should this be sysv3.2?
43569408Sache	i[34567]86v32)
43669408Sache		basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
43769408Sache		os=-sysv32
43869408Sache		;;
43969408Sache	i[34567]86v4*)
44069408Sache		basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
44169408Sache		os=-sysv4
44269408Sache		;;
44369408Sache	i[34567]86v)
44469408Sache		basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
44569408Sache		os=-sysv
44669408Sache		;;
44769408Sache	i[34567]86sol2)
44869408Sache		basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
44969408Sache		os=-solaris2
45069408Sache		;;
45183098Smp	i386mach)
45283098Smp		basic_machine=i386-mach
45383098Smp		os=-mach
45483098Smp		;;
45583098Smp	i386-vsta | vsta)
45683098Smp		basic_machine=i386-unknown
45783098Smp		os=-vsta
45883098Smp		;;
45983098Smp	i386-go32 | go32)
46083098Smp		basic_machine=i386-unknown
46183098Smp		os=-go32
46283098Smp		;;
46383098Smp	i386-mingw32 | mingw32)
46483098Smp		basic_machine=i386-unknown
46583098Smp		os=-mingw32
46683098Smp		;;
46783098Smp	i386-qnx | qnx)
46883098Smp		basic_machine=i386-qnx
46983098Smp		;;
47069408Sache	iris | iris4d)
47169408Sache		basic_machine=mips-sgi
47269408Sache		case $os in
47369408Sache		    -irix*)
47469408Sache			;;
47569408Sache		    *)
47669408Sache			os=-irix4
47769408Sache			;;
47869408Sache		esac
47969408Sache		;;
48069408Sache	isi68 | isi)
48169408Sache		basic_machine=m68k-isi
48269408Sache		os=-sysv
48369408Sache		;;
48469408Sache	m88k-omron*)
48569408Sache		basic_machine=m88k-omron
48669408Sache		;;
48769408Sache	magnum | m3230)
48869408Sache		basic_machine=mips-mips
48969408Sache		os=-sysv
49069408Sache		;;
49169408Sache	merlin)
49269408Sache		basic_machine=ns32k-utek
49369408Sache		os=-sysv
49469408Sache		;;
49569408Sache	miniframe)
49669408Sache		basic_machine=m68000-convergent
49769408Sache		;;
49883098Smp	*mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)
49983098Smp		basic_machine=m68k-atari
50083098Smp		os=-mint
50183098Smp		;;
50269408Sache	mipsel*-linux*)
50369408Sache		basic_machine=mipsel-unknown
50469408Sache		os=-linux-gnu
50569408Sache		;;
50669408Sache	mips*-linux*)
50769408Sache		basic_machine=mips-unknown
50869408Sache		os=-linux-gnu
50969408Sache		;;
51069408Sache	mips3*-*)
51169408Sache		basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
51269408Sache		;;
51369408Sache	mips3*)
51469408Sache		basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
51569408Sache		;;
51683098Smp	monitor)
51783098Smp		basic_machine=m68k-rom68k
51883098Smp		os=-coff
51983098Smp		;;
52083098Smp	msdos)
52183098Smp		basic_machine=i386-unknown
52283098Smp		os=-msdos
52383098Smp		;;
52483098Smp	mvs)
52583098Smp		basic_machine=i370-ibm
52683098Smp		os=-mvs
52783098Smp		;;
52869408Sache	ncr3000)
52969408Sache		basic_machine=i486-ncr
53069408Sache		os=-sysv4
53169408Sache		;;
53283098Smp	netbsd386)
53383098Smp		basic_machine=i386-unknown
53483098Smp		os=-netbsd
53583098Smp		;;
53683098Smp	netwinder)
53783098Smp		basic_machine=armv4l-rebel
53883098Smp		os=-linux
53983098Smp		;;
54069408Sache	news | news700 | news800 | news900)
54169408Sache		basic_machine=m68k-sony
54269408Sache		os=-newsos
54369408Sache		;;
54469408Sache	news1000)
54569408Sache		basic_machine=m68030-sony
54669408Sache		os=-newsos
54769408Sache		;;
54869408Sache	news-3600 | risc-news)
54969408Sache		basic_machine=mips-sony
55069408Sache		os=-newsos
55169408Sache		;;
55283098Smp	necv70)
55383098Smp		basic_machine=v70-nec
55483098Smp		os=-sysv
55583098Smp		;;
55669408Sache	next | m*-next )
55769408Sache		basic_machine=m68k-next
55869408Sache		case $os in
55969408Sache		    -nextstep* )
56069408Sache			;;
56169408Sache		    -ns2*)
56269408Sache		      os=-nextstep2
56369408Sache			;;
56469408Sache		    *)
56569408Sache		      os=-nextstep3
56669408Sache			;;
56769408Sache		esac
56869408Sache		;;
56969408Sache	nh3000)
57069408Sache		basic_machine=m68k-harris
57169408Sache		os=-cxux
57269408Sache		;;
57369408Sache	nh[45]000)
57469408Sache		basic_machine=m88k-harris
57569408Sache		os=-cxux
57669408Sache		;;
57769408Sache	nindy960)
57869408Sache		basic_machine=i960-intel
57969408Sache		os=-nindy
58069408Sache		;;
58183098Smp	mon960)
58283098Smp		basic_machine=i960-intel
58383098Smp		os=-mon960
58483098Smp		;;
58569408Sache	np1)
58669408Sache		basic_machine=np1-gould
58769408Sache		;;
58883098Smp	op50n-* | op60c-*)
58983098Smp		basic_machine=hppa1.1-oki
59083098Smp		os=-proelf
59183098Smp		;;
59283098Smp	OSE68000 | ose68000)
59383098Smp		basic_machine=m68000-ericsson
59483098Smp		os=-ose
59583098Smp		;;
59683098Smp	os68k)
59783098Smp		basic_machine=m68k-none
59883098Smp		os=-os68k
59983098Smp		;;
60069408Sache	pa-hitachi)
60169408Sache		basic_machine=hppa1.1-hitachi
60269408Sache		os=-hiuxwe2
60369408Sache		;;
60469408Sache	paragon)
60569408Sache		basic_machine=i860-intel
60669408Sache		os=-osf
60769408Sache		;;
60869408Sache	pbd)
60969408Sache		basic_machine=sparc-tti
61069408Sache		;;
61169408Sache	pbb)
61269408Sache		basic_machine=m68k-tti
61369408Sache		;;
61469408Sache        pc532 | pc532-*)
61569408Sache		basic_machine=ns32k-pc532
61669408Sache		;;
61783098Smp	pentium | p5 | k5 | k6 | nexen)
61869408Sache		basic_machine=i586-pc
61969408Sache		;;
62083098Smp	pentiumpro | p6 | 6x86)
62169408Sache		basic_machine=i686-pc
62269408Sache		;;
62369408Sache	pentiumii | pentium2)
62469408Sache		basic_machine=i786-pc
62569408Sache		;;
62683098Smp	pentium-* | p5-* | k5-* | k6-* | nexen-*)
62769408Sache		basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
62869408Sache		;;
62983098Smp	pentiumpro-* | p6-* | 6x86-*)
63069408Sache		basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
63169408Sache		;;
63269408Sache	pentiumii-* | pentium2-*)
63369408Sache		basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
63469408Sache		;;
63569408Sache	pn)
63669408Sache		basic_machine=pn-gould
63769408Sache		;;
63869408Sache	power)	basic_machine=rs6000-ibm
63969408Sache		;;
64069408Sache	ppc)	basic_machine=powerpc-unknown
64169408Sache	        ;;
64269408Sache	ppc-*)	basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
64369408Sache		;;
64469408Sache	ppcle | powerpclittle | ppc-le | powerpc-little)
64569408Sache		basic_machine=powerpcle-unknown
64669408Sache	        ;;
64769408Sache	ppcle-* | powerpclittle-*)
64869408Sache		basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
64969408Sache		;;
65069408Sache	ps2)
65169408Sache		basic_machine=i386-ibm
65269408Sache		;;
65383098Smp	rom68k)
65483098Smp		basic_machine=m68k-rom68k
65583098Smp		os=-coff
65683098Smp		;;
65769408Sache	rm[46]00)
65869408Sache		basic_machine=mips-siemens
65969408Sache		;;
66069408Sache	rtpc | rtpc-*)
66169408Sache		basic_machine=romp-ibm
66269408Sache		;;
66383098Smp	sa29200)
66483098Smp		basic_machine=a29k-amd
66583098Smp		os=-udi
66683098Smp		;;
66769408Sache	sequent)
66869408Sache		basic_machine=i386-sequent
66969408Sache		;;
67069408Sache	sh)
67169408Sache		basic_machine=sh-hitachi
67269408Sache		os=-hms
67369408Sache		;;
67483098Smp	sparclite-wrs)
67583098Smp		basic_machine=sparclite-wrs
67683098Smp		os=-vxworks
67783098Smp		;;
67869408Sache	sps7)
67969408Sache		basic_machine=m68k-bull
68069408Sache		os=-sysv2
68169408Sache		;;
68269408Sache	spur)
68369408Sache		basic_machine=spur-unknown
68469408Sache		;;
68583098Smp	st2000)
68683098Smp		basic_machine=m68k-tandem
68783098Smp		;;
68883098Smp	stratus)
68983098Smp		basic_machine=i860-stratus
69083098Smp		os=-sysv4
69183098Smp		;;
69269408Sache	sun2)
69369408Sache		basic_machine=m68000-sun
69469408Sache		;;
69569408Sache	sun2os3)
69669408Sache		basic_machine=m68000-sun
69769408Sache		os=-sunos3
69869408Sache		;;
69969408Sache	sun2os4)
70069408Sache		basic_machine=m68000-sun
70169408Sache		os=-sunos4
70269408Sache		;;
70369408Sache	sun3os3)
70469408Sache		basic_machine=m68k-sun
70569408Sache		os=-sunos3
70669408Sache		;;
70769408Sache	sun3os4)
70869408Sache		basic_machine=m68k-sun
70969408Sache		os=-sunos4
71069408Sache		;;
71169408Sache	sun4os3)
71269408Sache		basic_machine=sparc-sun
71369408Sache		os=-sunos3
71469408Sache		;;
71569408Sache	sun4os4)
71669408Sache		basic_machine=sparc-sun
71769408Sache		os=-sunos4
71869408Sache		;;
71969408Sache	sun4sol2)
72069408Sache		basic_machine=sparc-sun
72169408Sache		os=-solaris2
72269408Sache		;;
72369408Sache	sun3 | sun3-*)
72469408Sache		basic_machine=m68k-sun
72569408Sache		;;
72669408Sache	sun4)
72769408Sache		basic_machine=sparc-sun
72869408Sache		;;
72969408Sache	sun386 | sun386i | roadrunner)
73069408Sache		basic_machine=i386-sun
73169408Sache		;;
73269408Sache	symmetry)
73369408Sache		basic_machine=i386-sequent
73469408Sache		os=-dynix
73569408Sache		;;
73683098Smp	t3e)
73783098Smp		basic_machine=t3e-cray
73883098Smp		os=-unicos
73983098Smp		;;
74069408Sache	tx39)
74169408Sache		basic_machine=mipstx39-unknown
74269408Sache		;;
74369408Sache	tx39el)
74469408Sache		basic_machine=mipstx39el-unknown
74569408Sache		;;
74669408Sache	tower | tower-32)
74769408Sache		basic_machine=m68k-ncr
74869408Sache		;;
74969408Sache	udi29k)
75069408Sache		basic_machine=a29k-amd
75169408Sache		os=-udi
75269408Sache		;;
75369408Sache	ultra3)
75469408Sache		basic_machine=a29k-nyu
75569408Sache		os=-sym1
75669408Sache		;;
75783098Smp	v810 | necv810)
75883098Smp		basic_machine=v810-nec
75983098Smp		os=-none
76083098Smp		;;
76169408Sache	vaxv)
76269408Sache		basic_machine=vax-dec
76369408Sache		os=-sysv
76469408Sache		;;
76569408Sache	vms)
76669408Sache		basic_machine=vax-dec
76769408Sache		os=-vms
76869408Sache		;;
76969408Sache	vpp*|vx|vx-*)
77069408Sache               basic_machine=f301-fujitsu
77169408Sache               ;;
77269408Sache	vxworks960)
77369408Sache		basic_machine=i960-wrs
77469408Sache		os=-vxworks
77569408Sache		;;
77669408Sache	vxworks68)
77769408Sache		basic_machine=m68k-wrs
77869408Sache		os=-vxworks
77969408Sache		;;
78069408Sache	vxworks29k)
78169408Sache		basic_machine=a29k-wrs
78269408Sache		os=-vxworks
78369408Sache		;;
78483098Smp	w65*)
78583098Smp		basic_machine=w65-wdc
78683098Smp		os=-none
78783098Smp		;;
78883098Smp	w89k-*)
78983098Smp		basic_machine=hppa1.1-winbond
79083098Smp		os=-proelf
79183098Smp		;;
79269408Sache	xmp)
79369408Sache		basic_machine=xmp-cray
79469408Sache		os=-unicos
79569408Sache		;;
79669408Sache        xps | xps100)
79769408Sache		basic_machine=xps100-honeywell
79869408Sache		;;
79983098Smp	z8k-*-coff)
80083098Smp		basic_machine=z8k-unknown
80183098Smp		os=-sim
80283098Smp		;;
80369408Sache	none)
80469408Sache		basic_machine=none-none
80569408Sache		os=-none
80669408Sache		;;
80769408Sache
80869408Sache# Here we handle the default manufacturer of certain CPU types.  It is in
80969408Sache# some cases the only manufacturer, in others, it is the most popular.
81083098Smp	w89k)
81183098Smp		basic_machine=hppa1.1-winbond
81283098Smp		;;
81383098Smp	op50n)
81483098Smp		basic_machine=hppa1.1-oki
81583098Smp		;;
81683098Smp	op60c)
81783098Smp		basic_machine=hppa1.1-oki
81883098Smp		;;
81969408Sache	mips)
82069408Sache		if [ x$os = x-linux-gnu ]; then
82169408Sache			basic_machine=mips-unknown
82269408Sache		else
82369408Sache			basic_machine=mips-mips
82469408Sache		fi
82569408Sache		;;
82669408Sache	romp)
82769408Sache		basic_machine=romp-ibm
82869408Sache		;;
82969408Sache	rs6000)
83069408Sache		basic_machine=rs6000-ibm
83169408Sache		;;
83269408Sache	vax)
83369408Sache		basic_machine=vax-dec
83469408Sache		;;
83569408Sache	pdp11)
83669408Sache		basic_machine=pdp11-dec
83769408Sache		;;
83869408Sache	we32k)
83969408Sache		basic_machine=we32k-att
84069408Sache		;;
84183098Smp	sparc | sparcv9)
84269408Sache		basic_machine=sparc-sun
84369408Sache		;;
84469408Sache        cydra)
84569408Sache		basic_machine=cydra-cydrome
84669408Sache		;;
84769408Sache	orion)
84869408Sache		basic_machine=orion-highlevel
84969408Sache		;;
85069408Sache	orion105)
85169408Sache		basic_machine=clipper-highlevel
85269408Sache		;;
85383098Smp	mac | mpw | mac-mpw)
85483098Smp		basic_machine=m68k-apple
85583098Smp		;;
85683098Smp	pmac | pmac-mpw)
85783098Smp		basic_machine=powerpc-apple
85883098Smp		;;
85983098Smp	c4x*)
86083098Smp		basic_machine=c4x-none
86183098Smp		os=-coff
86283098Smp		;;
86369408Sache	*)
86469408Sache		echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
86569408Sache		exit 1
86669408Sache		;;
86769408Sacheesac
86869408Sache
86969408Sache# Here we canonicalize certain aliases for manufacturers.
87069408Sachecase $basic_machine in
87169408Sache	*-digital*)
87269408Sache		basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'`
87369408Sache		;;
87469408Sache	*-commodore*)
87569408Sache		basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'`
87669408Sache		;;
87769408Sache	*)
87869408Sache		;;
87969408Sacheesac
88069408Sache
88169408Sache# Decode manufacturer-specific aliases for certain operating systems.
88269408Sache
88369408Sacheif [ x"$os" != x"" ]
88469408Sachethen
88569408Sachecase $os in
88669408Sache        # First match some system type aliases
88769408Sache        # that might get confused with valid system types.
88869408Sache	# -solaris* is a basic system type, with this one exception.
88969408Sache	-solaris1 | -solaris1.*)
89069408Sache		os=`echo $os | sed -e 's|solaris1|sunos4|'`
89169408Sache		;;
89269408Sache	-solaris)
89369408Sache		os=-solaris2
89469408Sache		;;
89569408Sache	-svr4*)
89669408Sache		os=-sysv4
89769408Sache		;;
89869408Sache	-unixware*)
89969408Sache		os=-sysv4.2uw
90069408Sache		;;
90169408Sache	-gnu/linux*)
90269408Sache		os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
90369408Sache		;;
90469408Sache	# First accept the basic system types.
90569408Sache	# The portable systems comes first.
90669408Sache	# Each alternative MUST END IN A *, to match a version number.
90769408Sache	# -sysv* is not here because it comes later, after sysvr4.
90869408Sache	-gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
90969408Sache	      | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
91069408Sache	      | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
91169408Sache	      | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
91269408Sache	      | -aos* \
91369408Sache	      | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
91469408Sache	      | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
91569408Sache	      | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \
91683098Smp	      | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
91769408Sache	      | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
91869408Sache	      | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
91969408Sache	      | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
92083098Smp	      | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \
92183098Smp	      | -interix* | -uwin* | -rhapsody* | -opened* | -openstep* | -oskit*)
92269408Sache	# Remember, each alternative MUST END IN *, to match a version number.
92369408Sache		;;
92483098Smp	-sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
92583098Smp	      | -windows* | -osx | -abug | -netware* | -os9* | -beos* \
92683098Smp	      | -macos* | -mpw* | -magic* | -mon960* | -lnews*)
92783098Smp		;;
92883098Smp	-mac*)
92983098Smp		os=`echo $os | sed -e 's|mac|macos|'`
93083098Smp		;;
93169408Sache	-linux*)
93269408Sache		os=`echo $os | sed -e 's|linux|linux-gnu|'`
93369408Sache		;;
93469408Sache	-sunos5*)
93569408Sache		os=`echo $os | sed -e 's|sunos5|solaris2|'`
93669408Sache		;;
93769408Sache	-sunos6*)
93869408Sache		os=`echo $os | sed -e 's|sunos6|solaris3|'`
93969408Sache		;;
94083098Smp	-opened*)
94183098Smp		os=-openedition
94283098Smp		;;
94369408Sache	-osfrose*)
94469408Sache		os=-osfrose
94569408Sache		;;
94669408Sache	-osf*)
94769408Sache		os=-osf
94869408Sache		;;
94969408Sache	-utek*)
95069408Sache		os=-bsd
95169408Sache		;;
95269408Sache	-dynix*)
95369408Sache		os=-bsd
95469408Sache		;;
95569408Sache	-acis*)
95669408Sache		os=-aos
95769408Sache		;;
95883098Smp	-386bsd)
95983098Smp		os=-bsd
96083098Smp		;;
96169408Sache	-ctix* | -uts*)
96269408Sache		os=-sysv
96369408Sache		;;
96469408Sache	-ns2 )
96569408Sache	        os=-nextstep2
96669408Sache		;;
96769408Sache	# Preserve the version number of sinix5.
96869408Sache	-sinix5.*)
96969408Sache		os=`echo $os | sed -e 's|sinix|sysv|'`
97069408Sache		;;
97169408Sache	-sinix*)
97269408Sache		os=-sysv4
97369408Sache		;;
97469408Sache	-triton*)
97569408Sache		os=-sysv3
97669408Sache		;;
97769408Sache	-oss*)
97869408Sache		os=-sysv3
97969408Sache		;;
98083098Smp        -qnx)
98183098Smp		os=-qnx4
98283098Smp		;;
98369408Sache	-svr4)
98469408Sache		os=-sysv4
98569408Sache		;;
98669408Sache	-svr3)
98769408Sache		os=-sysv3
98869408Sache		;;
98969408Sache	-sysvr4)
99069408Sache		os=-sysv4
99169408Sache		;;
99269408Sache	# This must come after -sysvr4.
99369408Sache	-sysv*)
99469408Sache		;;
99583098Smp	-ose*)
99683098Smp		os=-ose
99783098Smp		;;
99883098Smp	-es1800*)
99983098Smp		os=-ose
100083098Smp		;;
100169408Sache	-xenix)
100269408Sache		os=-xenix
100369408Sache		;;
100483098Smp        -*mint | -*MiNT)
100583098Smp	        os=-mint
100669408Sache		;;
100769408Sache	-none)
100869408Sache		;;
100969408Sache	*)
101069408Sache		# Get rid of the `-' at the beginning of $os.
101169408Sache		os=`echo $os | sed 's/[^-]*-//'`
101269408Sache		echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2
101369408Sache		exit 1
101469408Sache		;;
101569408Sacheesac
101669408Sacheelse
101769408Sache
101869408Sache# Here we handle the default operating systems that come with various machines.
101969408Sache# The value should be what the vendor currently ships out the door with their
102069408Sache# machine or put another way, the most popular os provided with the machine.
102169408Sache
102269408Sache# Note that if you're going to try to match "-MANUFACTURER" here (say,
102369408Sache# "-sun"), then you have to tell the case statement up towards the top
102469408Sache# that MANUFACTURER isn't an operating system.  Otherwise, code above
102569408Sache# will signal an error saying that MANUFACTURER isn't an operating
102669408Sache# system, and we'll never get to this point.
102769408Sache
102869408Sachecase $basic_machine in
102969408Sache	*-acorn)
103069408Sache		os=-riscix1.2
103169408Sache		;;
103283098Smp	arm*-rebel)
103383098Smp		os=-linux
103483098Smp		;;
103569408Sache	arm*-semi)
103669408Sache		os=-aout
103769408Sache		;;
103869408Sache        pdp11-*)
103969408Sache		os=-none
104069408Sache		;;
104169408Sache	*-dec | vax-*)
104269408Sache		os=-ultrix4.2
104369408Sache		;;
104469408Sache	m68*-apollo)
104569408Sache		os=-domain
104669408Sache		;;
104769408Sache	i386-sun)
104869408Sache		os=-sunos4.0.2
104969408Sache		;;
105069408Sache	m68000-sun)
105169408Sache		os=-sunos3
105269408Sache		# This also exists in the configure program, but was not the
105369408Sache		# default.
105469408Sache		# os=-sunos4
105569408Sache		;;
105683098Smp	m68*-cisco)
105783098Smp		os=-aout
105883098Smp		;;
105983098Smp	mips*-cisco)
106083098Smp		os=-elf
106183098Smp		;;
106283098Smp	mips*-*)
106383098Smp		os=-elf
106483098Smp		;;
106569408Sache	*-tti)	# must be before sparc entry or we get the wrong os.
106669408Sache		os=-sysv3
106769408Sache		;;
106869408Sache	sparc-* | *-sun)
106969408Sache		os=-sunos4.1.1
107069408Sache		;;
107169408Sache	*-be)
107269408Sache		os=-beos
107369408Sache		;;
107469408Sache	*-ibm)
107569408Sache		os=-aix
107669408Sache		;;
107783098Smp	*-wec)
107883098Smp		os=-proelf
107983098Smp		;;
108083098Smp	*-winbond)
108183098Smp		os=-proelf
108283098Smp		;;
108383098Smp	*-oki)
108483098Smp		os=-proelf
108583098Smp		;;
108669408Sache	*-hp)
108769408Sache		os=-hpux
108869408Sache		;;
108969408Sache	*-hitachi)
109069408Sache		os=-hiux
109169408Sache		;;
109269408Sache	i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent)
109369408Sache		os=-sysv
109469408Sache		;;
109569408Sache	*-cbm)
109669408Sache		os=-amigaos
109769408Sache		;;
109869408Sache	*-dg)
109969408Sache		os=-dgux
110069408Sache		;;
110169408Sache	*-dolphin)
110269408Sache		os=-sysv3
110369408Sache		;;
110469408Sache	m68k-ccur)
110569408Sache		os=-rtu
110669408Sache		;;
110769408Sache	m88k-omron*)
110869408Sache		os=-luna
110969408Sache		;;
111069408Sache	*-next )
111169408Sache		os=-nextstep
111269408Sache		;;
111369408Sache	*-sequent)
111469408Sache		os=-ptx
111569408Sache		;;
111669408Sache	*-crds)
111769408Sache		os=-unos
111869408Sache		;;
111969408Sache	*-ns)
112069408Sache		os=-genix
112169408Sache		;;
112269408Sache	i370-*)
112369408Sache		os=-mvs
112469408Sache		;;
112569408Sache	*-next)
112669408Sache		os=-nextstep3
112769408Sache		;;
112869408Sache        *-gould)
112969408Sache		os=-sysv
113069408Sache		;;
113169408Sache        *-highlevel)
113269408Sache		os=-bsd
113369408Sache		;;
113469408Sache	*-encore)
113569408Sache		os=-bsd
113669408Sache		;;
113769408Sache        *-sgi)
113869408Sache		os=-irix
113969408Sache		;;
114069408Sache        *-siemens)
114169408Sache		os=-sysv4
114269408Sache		;;
114369408Sache	*-masscomp)
114469408Sache		os=-rtu
114569408Sache		;;
114669408Sache	f301-fujitsu)
114769408Sache		os=-uxpv
114869408Sache		;;
114983098Smp	*-rom68k)
115083098Smp		os=-coff
115183098Smp		;;
115283098Smp	*-*bug)
115383098Smp		os=-coff
115483098Smp		;;
115583098Smp	*-apple)
115683098Smp		os=-macos
115783098Smp		;;
115883098Smp	*-atari*)
115983098Smp		os=-mint
116083098Smp		;;
116169408Sache	*)
116269408Sache		os=-none
116369408Sache		;;
116469408Sacheesac
116569408Sachefi
116669408Sache
116769408Sache# Here we handle the case where we know the os, and the CPU type, but not the
116869408Sache# manufacturer.  We pick the logical manufacturer.
116969408Sachevendor=unknown
117069408Sachecase $basic_machine in
117169408Sache	*-unknown)
117269408Sache		case $os in
117369408Sache			-riscix*)
117469408Sache				vendor=acorn
117569408Sache				;;
117669408Sache			-sunos*)
117769408Sache				vendor=sun
117869408Sache				;;
117969408Sache			-aix*)
118069408Sache				vendor=ibm
118169408Sache				;;
118283098Smp			-beos*)
118383098Smp				vendor=be
118483098Smp				;;
118569408Sache			-hpux*)
118669408Sache				vendor=hp
118769408Sache				;;
118883098Smp			-mpeix*)
118983098Smp				vendor=hp
119083098Smp				;;
119169408Sache			-hiux*)
119269408Sache				vendor=hitachi
119369408Sache				;;
119469408Sache			-unos*)
119569408Sache				vendor=crds
119669408Sache				;;
119769408Sache			-dgux*)
119869408Sache				vendor=dg
119969408Sache				;;
120069408Sache			-luna*)
120169408Sache				vendor=omron
120269408Sache				;;
120369408Sache			-genix*)
120469408Sache				vendor=ns
120569408Sache				;;
120683098Smp			-mvs* | -opened*)
120769408Sache				vendor=ibm
120869408Sache				;;
120969408Sache			-ptx*)
121069408Sache				vendor=sequent
121169408Sache				;;
121269408Sache			-vxsim* | -vxworks*)
121369408Sache				vendor=wrs
121469408Sache				;;
121569408Sache			-aux*)
121669408Sache				vendor=apple
121769408Sache				;;
121883098Smp			-hms*)
121983098Smp				vendor=hitachi
122083098Smp				;;
122183098Smp			-mpw* | -macos*)
122283098Smp				vendor=apple
122383098Smp				;;
122483098Smp			-*mint | -*MiNT)
122583098Smp				vendor=atari
122683098Smp				;;
122769408Sache		esac
122869408Sache		basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
122969408Sache		;;
123069408Sacheesac
123169408Sache
123269408Sacheecho $basic_machine$os
1233