Blame config.sub

rpm-build c487f7
#! /bin/sh
rpm-build c487f7
# Configuration validation subroutine script.
rpm-build c487f7
#   Copyright 1992-2018 Free Software Foundation, Inc.
rpm-build c487f7
rpm-build c487f7
timestamp='2018-08-29'
rpm-build c487f7
rpm-build c487f7
# This file is free software; you can redistribute it and/or modify it
rpm-build c487f7
# under the terms of the GNU General Public License as published by
rpm-build c487f7
# the Free Software Foundation; either version 3 of the License, or
rpm-build c487f7
# (at your option) any later version.
rpm-build c487f7
#
rpm-build c487f7
# This program is distributed in the hope that it will be useful, but
rpm-build c487f7
# WITHOUT ANY WARRANTY; without even the implied warranty of
rpm-build c487f7
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
rpm-build c487f7
# General Public License for more details.
rpm-build c487f7
#
rpm-build c487f7
# You should have received a copy of the GNU General Public License
rpm-build c487f7
# along with this program; if not, see <https://www.gnu.org/licenses/>.
rpm-build c487f7
#
rpm-build c487f7
# As a special exception to the GNU General Public License, if you
rpm-build c487f7
# distribute this file as part of a program that contains a
rpm-build c487f7
# configuration script generated by Autoconf, you may include it under
rpm-build c487f7
# the same distribution terms that you use for the rest of that
rpm-build c487f7
# program.  This Exception is an additional permission under section 7
rpm-build c487f7
# of the GNU General Public License, version 3 ("GPLv3").
rpm-build c487f7
rpm-build c487f7
rpm-build c487f7
# Please send patches to <config-patches@gnu.org>.
rpm-build c487f7
#
rpm-build c487f7
# Configuration subroutine to validate and canonicalize a configuration type.
rpm-build c487f7
# Supply the specified configuration type as an argument.
rpm-build c487f7
# If it is invalid, we print an error message on stderr and exit with code 1.
rpm-build c487f7
# Otherwise, we print the canonical config type on stdout and succeed.
rpm-build c487f7
rpm-build c487f7
# You can get the latest version of this script from:
rpm-build c487f7
# https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub
rpm-build c487f7
rpm-build c487f7
# This file is supposed to be the same for all GNU packages
rpm-build c487f7
# and recognize all the CPU types, system types and aliases
rpm-build c487f7
# that are meaningful with *any* GNU software.
rpm-build c487f7
# Each package is responsible for reporting which valid configurations
rpm-build c487f7
# it does not support.  The user should be able to distinguish
rpm-build c487f7
# a failure to support a valid configuration from a meaningless
rpm-build c487f7
# configuration.
rpm-build c487f7
rpm-build c487f7
# The goal of this file is to map all the various variations of a given
rpm-build c487f7
# machine specification into a single specification in the form:
rpm-build c487f7
#	CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
rpm-build c487f7
# or in some cases, the newer four-part form:
rpm-build c487f7
#	CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
rpm-build c487f7
# It is wrong to echo any other type of specification.
rpm-build c487f7
rpm-build c487f7
me=`echo "$0" | sed -e 's,.*/,,'`
rpm-build c487f7
rpm-build c487f7
usage="\
rpm-build c487f7
Usage: $0 [OPTION] CPU-MFR-OPSYS or ALIAS
rpm-build c487f7
rpm-build c487f7
Canonicalize a configuration name.
rpm-build c487f7
rpm-build c487f7
Options:
rpm-build c487f7
  -h, --help         print this help, then exit
rpm-build c487f7
  -t, --time-stamp   print date of last modification, then exit
rpm-build c487f7
  -v, --version      print version number, then exit
rpm-build c487f7
rpm-build c487f7
Report bugs and patches to <config-patches@gnu.org>."
rpm-build c487f7
rpm-build c487f7
version="\
rpm-build c487f7
GNU config.sub ($timestamp)
rpm-build c487f7
rpm-build c487f7
Copyright 1992-2018 Free Software Foundation, Inc.
rpm-build c487f7
rpm-build c487f7
This is free software; see the source for copying conditions.  There is NO
rpm-build c487f7
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
rpm-build c487f7
rpm-build c487f7
help="
rpm-build c487f7
Try \`$me --help' for more information."
rpm-build c487f7
rpm-build c487f7
# Parse command line
rpm-build c487f7
while test $# -gt 0 ; do
rpm-build c487f7
  case $1 in
rpm-build c487f7
    --time-stamp | --time* | -t )
rpm-build c487f7
       echo "$timestamp" ; exit ;;
rpm-build c487f7
    --version | -v )
rpm-build c487f7
       echo "$version" ; exit ;;
rpm-build c487f7
    --help | --h* | -h )
rpm-build c487f7
       echo "$usage"; exit ;;
rpm-build c487f7
    -- )     # Stop option processing
rpm-build c487f7
       shift; break ;;
rpm-build c487f7
    - )	# Use stdin as input.
rpm-build c487f7
       break ;;
rpm-build c487f7
    -* )
rpm-build c487f7
       echo "$me: invalid option $1$help"
rpm-build c487f7
       exit 1 ;;
rpm-build c487f7
rpm-build c487f7
    *local*)
rpm-build c487f7
       # First pass through any local machine types.
rpm-build c487f7
       echo "$1"
rpm-build c487f7
       exit ;;
rpm-build c487f7
rpm-build c487f7
    * )
rpm-build c487f7
       break ;;
rpm-build c487f7
  esac
rpm-build c487f7
done
rpm-build c487f7
rpm-build c487f7
case $# in
rpm-build c487f7
 0) echo "$me: missing argument$help" >&2
rpm-build c487f7
    exit 1;;
rpm-build c487f7
 1) ;;
rpm-build c487f7
 *) echo "$me: too many arguments$help" >&2
rpm-build c487f7
    exit 1;;
rpm-build c487f7
esac
rpm-build c487f7
rpm-build c487f7
# Split fields of configuration type
rpm-build c487f7
IFS="-" read -r field1 field2 field3 field4 <
rpm-build c487f7
$1
rpm-build c487f7
EOF
rpm-build c487f7
rpm-build c487f7
# Separate into logical components for further validation
rpm-build c487f7
case $1 in
rpm-build c487f7
	*-*-*-*-*)
rpm-build c487f7
		echo Invalid configuration \`"$1"\': more than four components >&2
rpm-build c487f7
		exit 1
rpm-build c487f7
		;;
rpm-build c487f7
	*-*-*-*)
rpm-build c487f7
		basic_machine=$field1-$field2
rpm-build c487f7
		os=$field3-$field4
rpm-build c487f7
		;;
rpm-build c487f7
	*-*-*)
rpm-build c487f7
		# Ambiguous whether COMPANY is present, or skipped and KERNEL-OS is two
rpm-build c487f7
		# parts
rpm-build c487f7
		maybe_os=$field2-$field3
rpm-build c487f7
		case $maybe_os in
rpm-build c487f7
			nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc \
rpm-build c487f7
			| linux-newlib* | linux-musl* | linux-uclibc* | uclinux-uclibc* \
rpm-build c487f7
			| uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* \
rpm-build c487f7
			| netbsd*-eabi* | kopensolaris*-gnu* | cloudabi*-eabi* \
rpm-build c487f7
			| storm-chaos* | os2-emx* | rtmk-nova*)
rpm-build c487f7
				basic_machine=$field1
rpm-build c487f7
				os=$maybe_os
rpm-build c487f7
				;;
rpm-build c487f7
			android-linux)
rpm-build c487f7
				basic_machine=$field1-unknown
rpm-build c487f7
				os=linux-android
rpm-build c487f7
				;;
rpm-build c487f7
			*)
rpm-build c487f7
				basic_machine=$field1-$field2
rpm-build c487f7
				os=$field3
rpm-build c487f7
				;;
rpm-build c487f7
		esac
rpm-build c487f7
		;;
rpm-build c487f7
	*-*)
rpm-build c487f7
		# A lone config we happen to match not fitting any patern
rpm-build c487f7
		case $field1-$field2 in
rpm-build c487f7
			decstation-3100)
rpm-build c487f7
				basic_machine=mips-dec
rpm-build c487f7
				os=
rpm-build c487f7
				;;
rpm-build c487f7
			*-*)
rpm-build c487f7
				# Second component is usually, but not always the OS
rpm-build c487f7
				case $field2 in
rpm-build c487f7
					# Prevent following clause from handling this valid os
rpm-build c487f7
					sun*os*)
rpm-build c487f7
						basic_machine=$field1
rpm-build c487f7
						os=$field2
rpm-build c487f7
						;;
rpm-build c487f7
					# Manufacturers
rpm-build c487f7
					dec* | mips* | sequent* | encore* | pc533* | sgi* | sony* \
rpm-build c487f7
					| att* | 7300* | 3300* | delta* | motorola* | sun[234]* \
rpm-build c487f7
					| unicom* | ibm* | next | hp | isi* | apollo | altos* \
rpm-build c487f7
					| convergent* | ncr* | news | 32* | 3600* | 3100* \
rpm-build c487f7
					| hitachi* | c[123]* | convex* | sun | crds | omron* | dg \
rpm-build c487f7
					| ultra | tti* | harris | dolphin | highlevel | gould \
rpm-build c487f7
					| cbm | ns | masscomp | apple | axis | knuth | cray \
rpm-build c487f7
					| microblaze* | sim | cisco \
rpm-build c487f7
					| oki | wec | wrs | winbond)
rpm-build c487f7
						basic_machine=$field1-$field2
rpm-build c487f7
						os=
rpm-build c487f7
						;;
rpm-build c487f7
					*)
rpm-build c487f7
						basic_machine=$field1
rpm-build c487f7
						os=$field2
rpm-build c487f7
						;;
rpm-build c487f7
				esac
rpm-build c487f7
			;;
rpm-build c487f7
		esac
rpm-build c487f7
		;;
rpm-build c487f7
	*)
rpm-build c487f7
		# Convert single-component short-hands not valid as part of
rpm-build c487f7
		# multi-component configurations.
rpm-build c487f7
		case $field1 in
rpm-build c487f7
			386bsd)
rpm-build c487f7
				basic_machine=i386-pc
rpm-build c487f7
				os=bsd
rpm-build c487f7
				;;
rpm-build c487f7
			a29khif)
rpm-build c487f7
				basic_machine=a29k-amd
rpm-build c487f7
				os=udi
rpm-build c487f7
				;;
rpm-build c487f7
			adobe68k)
rpm-build c487f7
				basic_machine=m68010-adobe
rpm-build c487f7
				os=scout
rpm-build c487f7
				;;
rpm-build c487f7
			alliant)
rpm-build c487f7
				basic_machine=fx80-alliant
rpm-build c487f7
				os=
rpm-build c487f7
				;;
rpm-build c487f7
			altos | altos3068)
rpm-build c487f7
				basic_machine=m68k-altos
rpm-build c487f7
				os=
rpm-build c487f7
				;;
rpm-build c487f7
			am29k)
rpm-build c487f7
				basic_machine=a29k-none
rpm-build c487f7
				os=bsd
rpm-build c487f7
				;;
rpm-build c487f7
			amdahl)
rpm-build c487f7
				basic_machine=580-amdahl
rpm-build c487f7
				os=sysv
rpm-build c487f7
				;;
rpm-build c487f7
			amiga)
rpm-build c487f7
				basic_machine=m68k-unknown
rpm-build c487f7
				os=
rpm-build c487f7
				;;
rpm-build c487f7
			amigaos | amigados)
rpm-build c487f7
				basic_machine=m68k-unknown
rpm-build c487f7
				os=amigaos
rpm-build c487f7
				;;
rpm-build c487f7
			amigaunix | amix)
rpm-build c487f7
				basic_machine=m68k-unknown
rpm-build c487f7
				os=sysv4
rpm-build c487f7
				;;
rpm-build c487f7
			apollo68)
rpm-build c487f7
				basic_machine=m68k-apollo
rpm-build c487f7
				os=sysv
rpm-build c487f7
				;;
rpm-build c487f7
			apollo68bsd)
rpm-build c487f7
				basic_machine=m68k-apollo
rpm-build c487f7
				os=bsd
rpm-build c487f7
				;;
rpm-build c487f7
			aros)
rpm-build c487f7
				basic_machine=i386-pc
rpm-build c487f7
				os=aros
rpm-build c487f7
				;;
rpm-build c487f7
			aux)
rpm-build c487f7
				basic_machine=m68k-apple
rpm-build c487f7
				os=aux
rpm-build c487f7
				;;
rpm-build c487f7
			balance)
rpm-build c487f7
				basic_machine=ns32k-sequent
rpm-build c487f7
				os=dynix
rpm-build c487f7
				;;
rpm-build c487f7
			blackfin)
rpm-build c487f7
				basic_machine=bfin-unknown
rpm-build c487f7
				os=linux
rpm-build c487f7
				;;
rpm-build c487f7
			cegcc)
rpm-build c487f7
				basic_machine=arm-unknown
rpm-build c487f7
				os=cegcc
rpm-build c487f7
				;;
rpm-build c487f7
			convex-c1)
rpm-build c487f7
				basic_machine=c1-convex
rpm-build c487f7
				os=bsd
rpm-build c487f7
				;;
rpm-build c487f7
			convex-c2)
rpm-build c487f7
				basic_machine=c2-convex
rpm-build c487f7
				os=bsd
rpm-build c487f7
				;;
rpm-build c487f7
			convex-c32)
rpm-build c487f7
				basic_machine=c32-convex
rpm-build c487f7
				os=bsd
rpm-build c487f7
				;;
rpm-build c487f7
			convex-c34)
rpm-build c487f7
				basic_machine=c34-convex
rpm-build c487f7
				os=bsd
rpm-build c487f7
				;;
rpm-build c487f7
			convex-c38)
rpm-build c487f7
				basic_machine=c38-convex
rpm-build c487f7
				os=bsd
rpm-build c487f7
				;;
rpm-build c487f7
			cray)
rpm-build c487f7
				basic_machine=j90-cray
rpm-build c487f7
				os=unicos
rpm-build c487f7
				;;
rpm-build c487f7
			crds | unos)
rpm-build c487f7
				basic_machine=m68k-crds
rpm-build c487f7
				os=
rpm-build c487f7
				;;
rpm-build c487f7
			da30)
rpm-build c487f7
				basic_machine=m68k-da30
rpm-build c487f7
				os=
rpm-build c487f7
				;;
rpm-build c487f7
			decstation | pmax | pmin | dec3100 | decstatn)
rpm-build c487f7
				basic_machine=mips-dec
rpm-build c487f7
				os=
rpm-build c487f7
				;;
rpm-build c487f7
			delta88)
rpm-build c487f7
				basic_machine=m88k-motorola
rpm-build c487f7
				os=sysv3
rpm-build c487f7
				;;
rpm-build c487f7
			dicos)
rpm-build c487f7
				basic_machine=i686-pc
rpm-build c487f7
				os=dicos
rpm-build c487f7
				;;
rpm-build c487f7
			djgpp)
rpm-build c487f7
				basic_machine=i586-pc
rpm-build c487f7
				os=msdosdjgpp
rpm-build c487f7
				;;
rpm-build c487f7
			ebmon29k)
rpm-build c487f7
				basic_machine=a29k-amd
rpm-build c487f7
				os=ebmon
rpm-build c487f7
				;;
rpm-build c487f7
			es1800 | OSE68k | ose68k | ose | OSE)
rpm-build c487f7
				basic_machine=m68k-ericsson
rpm-build c487f7
				os=ose
rpm-build c487f7
				;;
rpm-build c487f7
			gmicro)
rpm-build c487f7
				basic_machine=tron-gmicro
rpm-build c487f7
				os=sysv
rpm-build c487f7
				;;
rpm-build c487f7
			go32)
rpm-build c487f7
				basic_machine=i386-pc
rpm-build c487f7
				os=go32
rpm-build c487f7
				;;
rpm-build c487f7
			h8300hms)
rpm-build c487f7
				basic_machine=h8300-hitachi
rpm-build c487f7
				os=hms
rpm-build c487f7
				;;
rpm-build c487f7
			h8300xray)
rpm-build c487f7
				basic_machine=h8300-hitachi
rpm-build c487f7
				os=xray
rpm-build c487f7
				;;
rpm-build c487f7
			h8500hms)
rpm-build c487f7
				basic_machine=h8500-hitachi
rpm-build c487f7
				os=hms
rpm-build c487f7
				;;
rpm-build c487f7
			harris)
rpm-build c487f7
				basic_machine=m88k-harris
rpm-build c487f7
				os=sysv3
rpm-build c487f7
				;;
rpm-build c487f7
			hp300)
rpm-build c487f7
				basic_machine=m68k-hp
rpm-build c487f7
				;;
rpm-build c487f7
			hp300bsd)
rpm-build c487f7
				basic_machine=m68k-hp
rpm-build c487f7
				os=bsd
rpm-build c487f7
				;;
rpm-build c487f7
			hp300hpux)
rpm-build c487f7
				basic_machine=m68k-hp
rpm-build c487f7
				os=hpux
rpm-build c487f7
				;;
rpm-build c487f7
			hppaosf)
rpm-build c487f7
				basic_machine=hppa1.1-hp
rpm-build c487f7
				os=osf
rpm-build c487f7
				;;
rpm-build c487f7
			hppro)
rpm-build c487f7
				basic_machine=hppa1.1-hp
rpm-build c487f7
				os=proelf
rpm-build c487f7
				;;
rpm-build c487f7
			i386mach)
rpm-build c487f7
				basic_machine=i386-mach
rpm-build c487f7
				os=mach
rpm-build c487f7
				;;
rpm-build c487f7
			vsta)
rpm-build c487f7
				basic_machine=i386-pc
rpm-build c487f7
				os=vsta
rpm-build c487f7
				;;
rpm-build c487f7
			isi68 | isi)
rpm-build c487f7
				basic_machine=m68k-isi
rpm-build c487f7
				os=sysv
rpm-build c487f7
				;;
rpm-build c487f7
			m68knommu)
rpm-build c487f7
				basic_machine=m68k-unknown
rpm-build c487f7
				os=linux
rpm-build c487f7
				;;
rpm-build c487f7
			magnum | m3230)
rpm-build c487f7
				basic_machine=mips-mips
rpm-build c487f7
				os=sysv
rpm-build c487f7
				;;
rpm-build c487f7
			merlin)
rpm-build c487f7
				basic_machine=ns32k-utek
rpm-build c487f7
				os=sysv
rpm-build c487f7
				;;
rpm-build c487f7
			mingw64)
rpm-build c487f7
				basic_machine=x86_64-pc
rpm-build c487f7
				os=mingw64
rpm-build c487f7
				;;
rpm-build c487f7
			mingw32)
rpm-build c487f7
				basic_machine=i686-pc
rpm-build c487f7
				os=mingw32
rpm-build c487f7
				;;
rpm-build c487f7
			mingw32ce)
rpm-build c487f7
				basic_machine=arm-unknown
rpm-build c487f7
				os=mingw32ce
rpm-build c487f7
				;;
rpm-build c487f7
			monitor)
rpm-build c487f7
				basic_machine=m68k-rom68k
rpm-build c487f7
				os=coff
rpm-build c487f7
				;;
rpm-build c487f7
			morphos)
rpm-build c487f7
				basic_machine=powerpc-unknown
rpm-build c487f7
				os=morphos
rpm-build c487f7
				;;
rpm-build c487f7
			moxiebox)
rpm-build c487f7
				basic_machine=moxie-unknown
rpm-build c487f7
				os=moxiebox
rpm-build c487f7
				;;
rpm-build c487f7
			msdos)
rpm-build c487f7
				basic_machine=i386-pc
rpm-build c487f7
				os=msdos
rpm-build c487f7
				;;
rpm-build c487f7
			msys)
rpm-build c487f7
				basic_machine=i686-pc
rpm-build c487f7
				os=msys
rpm-build c487f7
				;;
rpm-build c487f7
			mvs)
rpm-build c487f7
				basic_machine=i370-ibm
rpm-build c487f7
				os=mvs
rpm-build c487f7
				;;
rpm-build c487f7
			nacl)
rpm-build c487f7
				basic_machine=le32-unknown
rpm-build c487f7
				os=nacl
rpm-build c487f7
				;;
rpm-build c487f7
			ncr3000)
rpm-build c487f7
				basic_machine=i486-ncr
rpm-build c487f7
				os=sysv4
rpm-build c487f7
				;;
rpm-build c487f7
			netbsd386)
rpm-build c487f7
				basic_machine=i386-pc
rpm-build c487f7
				os=netbsd
rpm-build c487f7
				;;
rpm-build c487f7
			netwinder)
rpm-build c487f7
				basic_machine=armv4l-rebel
rpm-build c487f7
				os=linux
rpm-build c487f7
				;;
rpm-build c487f7
			news | news700 | news800 | news900)
rpm-build c487f7
				basic_machine=m68k-sony
rpm-build c487f7
				os=newsos
rpm-build c487f7
				;;
rpm-build c487f7
			news1000)
rpm-build c487f7
				basic_machine=m68030-sony
rpm-build c487f7
				os=newsos
rpm-build c487f7
				;;
rpm-build c487f7
			necv70)
rpm-build c487f7
				basic_machine=v70-nec
rpm-build c487f7
				os=sysv
rpm-build c487f7
				;;
rpm-build c487f7
			nh3000)
rpm-build c487f7
				basic_machine=m68k-harris
rpm-build c487f7
				os=cxux
rpm-build c487f7
				;;
rpm-build c487f7
			nh[45]000)
rpm-build c487f7
				basic_machine=m88k-harris
rpm-build c487f7
				os=cxux
rpm-build c487f7
				;;
rpm-build c487f7
			nindy960)
rpm-build c487f7
				basic_machine=i960-intel
rpm-build c487f7
				os=nindy
rpm-build c487f7
				;;
rpm-build c487f7
			mon960)
rpm-build c487f7
				basic_machine=i960-intel
rpm-build c487f7
				os=mon960
rpm-build c487f7
				;;
rpm-build c487f7
			nonstopux)
rpm-build c487f7
				basic_machine=mips-compaq
rpm-build c487f7
				os=nonstopux
rpm-build c487f7
				;;
rpm-build c487f7
			os400)
rpm-build c487f7
				basic_machine=powerpc-ibm
rpm-build c487f7
				os=os400
rpm-build c487f7
				;;
rpm-build c487f7
			OSE68000 | ose68000)
rpm-build c487f7
				basic_machine=m68000-ericsson
rpm-build c487f7
				os=ose
rpm-build c487f7
				;;
rpm-build c487f7
			os68k)
rpm-build c487f7
				basic_machine=m68k-none
rpm-build c487f7
				os=os68k
rpm-build c487f7
				;;
rpm-build c487f7
			paragon)
rpm-build c487f7
				basic_machine=i860-intel
rpm-build c487f7
				os=osf
rpm-build c487f7
				;;
rpm-build c487f7
			parisc)
rpm-build c487f7
				basic_machine=hppa-unknown
rpm-build c487f7
				os=linux
rpm-build c487f7
				;;
rpm-build c487f7
			pw32)
rpm-build c487f7
				basic_machine=i586-unknown
rpm-build c487f7
				os=pw32
rpm-build c487f7
				;;
rpm-build c487f7
			rdos | rdos64)
rpm-build c487f7
				basic_machine=x86_64-pc
rpm-build c487f7
				os=rdos
rpm-build c487f7
				;;
rpm-build c487f7
			rdos32)
rpm-build c487f7
				basic_machine=i386-pc
rpm-build c487f7
				os=rdos
rpm-build c487f7
				;;
rpm-build c487f7
			rom68k)
rpm-build c487f7
				basic_machine=m68k-rom68k
rpm-build c487f7
				os=coff
rpm-build c487f7
				;;
rpm-build c487f7
			sa29200)
rpm-build c487f7
				basic_machine=a29k-amd
rpm-build c487f7
				os=udi
rpm-build c487f7
				;;
rpm-build c487f7
			sei)
rpm-build c487f7
				basic_machine=mips-sei
rpm-build c487f7
				os=seiux
rpm-build c487f7
				;;
rpm-build c487f7
			sequent)
rpm-build c487f7
				basic_machine=i386-sequent
rpm-build c487f7
				os=
rpm-build c487f7
				;;
rpm-build c487f7
			sps7)
rpm-build c487f7
				basic_machine=m68k-bull
rpm-build c487f7
				os=sysv2
rpm-build c487f7
				;;
rpm-build c487f7
			st2000)
rpm-build c487f7
				basic_machine=m68k-tandem
rpm-build c487f7
				os=
rpm-build c487f7
				;;
rpm-build c487f7
			stratus)
rpm-build c487f7
				basic_machine=i860-stratus
rpm-build c487f7
				os=sysv4
rpm-build c487f7
				;;
rpm-build c487f7
			sun2)
rpm-build c487f7
				basic_machine=m68000-sun
rpm-build c487f7
				os=
rpm-build c487f7
				;;
rpm-build c487f7
			sun2os3)
rpm-build c487f7
				basic_machine=m68000-sun
rpm-build c487f7
				os=sunos3
rpm-build c487f7
				;;
rpm-build c487f7
			sun2os4)
rpm-build c487f7
				basic_machine=m68000-sun
rpm-build c487f7
				os=sunos4
rpm-build c487f7
				;;
rpm-build c487f7
			sun3)
rpm-build c487f7
				basic_machine=m68k-sun
rpm-build c487f7
				os=
rpm-build c487f7
				;;
rpm-build c487f7
			sun3os3)
rpm-build c487f7
				basic_machine=m68k-sun
rpm-build c487f7
				os=sunos3
rpm-build c487f7
				;;
rpm-build c487f7
			sun3os4)
rpm-build c487f7
				basic_machine=m68k-sun
rpm-build c487f7
				os=sunos4
rpm-build c487f7
				;;
rpm-build c487f7
			sun4)
rpm-build c487f7
				basic_machine=sparc-sun
rpm-build c487f7
				os=
rpm-build c487f7
				;;
rpm-build c487f7
			sun4os3)
rpm-build c487f7
				basic_machine=sparc-sun
rpm-build c487f7
				os=sunos3
rpm-build c487f7
				;;
rpm-build c487f7
			sun4os4)
rpm-build c487f7
				basic_machine=sparc-sun
rpm-build c487f7
				os=sunos4
rpm-build c487f7
				;;
rpm-build c487f7
			sun4sol2)
rpm-build c487f7
				basic_machine=sparc-sun
rpm-build c487f7
				os=solaris2
rpm-build c487f7
				;;
rpm-build c487f7
			sun386 | sun386i | roadrunner)
rpm-build c487f7
				basic_machine=i386-sun
rpm-build c487f7
				os=
rpm-build c487f7
				;;
rpm-build c487f7
			sv1)
rpm-build c487f7
				basic_machine=sv1-cray
rpm-build c487f7
				os=unicos
rpm-build c487f7
				;;
rpm-build c487f7
			symmetry)
rpm-build c487f7
				basic_machine=i386-sequent
rpm-build c487f7
				os=dynix
rpm-build c487f7
				;;
rpm-build c487f7
			t3e)
rpm-build c487f7
				basic_machine=alphaev5-cray
rpm-build c487f7
				os=unicos
rpm-build c487f7
				;;
rpm-build c487f7
			t90)
rpm-build c487f7
				basic_machine=t90-cray
rpm-build c487f7
				os=unicos
rpm-build c487f7
				;;
rpm-build c487f7
			toad1)
rpm-build c487f7
				basic_machine=pdp10-xkl
rpm-build c487f7
				os=tops20
rpm-build c487f7
				;;
rpm-build c487f7
			tpf)
rpm-build c487f7
				basic_machine=s390x-ibm
rpm-build c487f7
				os=tpf
rpm-build c487f7
				;;
rpm-build c487f7
			udi29k)
rpm-build c487f7
				basic_machine=a29k-amd
rpm-build c487f7
				os=udi
rpm-build c487f7
				;;
rpm-build c487f7
			ultra3)
rpm-build c487f7
				basic_machine=a29k-nyu
rpm-build c487f7
				os=sym1
rpm-build c487f7
				;;
rpm-build c487f7
			v810 | necv810)
rpm-build c487f7
				basic_machine=v810-nec
rpm-build c487f7
				os=none
rpm-build c487f7
				;;
rpm-build c487f7
			vaxv)
rpm-build c487f7
				basic_machine=vax-dec
rpm-build c487f7
				os=sysv
rpm-build c487f7
				;;
rpm-build c487f7
			vms)
rpm-build c487f7
				basic_machine=vax-dec
rpm-build c487f7
				os=vms
rpm-build c487f7
				;;
rpm-build c487f7
			vxworks960)
rpm-build c487f7
				basic_machine=i960-wrs
rpm-build c487f7
				os=vxworks
rpm-build c487f7
				;;
rpm-build c487f7
			vxworks68)
rpm-build c487f7
				basic_machine=m68k-wrs
rpm-build c487f7
				os=vxworks
rpm-build c487f7
				;;
rpm-build c487f7
			vxworks29k)
rpm-build c487f7
				basic_machine=a29k-wrs
rpm-build c487f7
				os=vxworks
rpm-build c487f7
				;;
rpm-build c487f7
			xbox)
rpm-build c487f7
				basic_machine=i686-pc
rpm-build c487f7
				os=mingw32
rpm-build c487f7
				;;
rpm-build c487f7
			ymp)
rpm-build c487f7
				basic_machine=ymp-cray
rpm-build c487f7
				os=unicos
rpm-build c487f7
				;;
rpm-build c487f7
			*)
rpm-build c487f7
				basic_machine=$1
rpm-build c487f7
				os=
rpm-build c487f7
				;;
rpm-build c487f7
		esac
rpm-build c487f7
		;;
rpm-build c487f7
esac
rpm-build c487f7
rpm-build c487f7
# Decode 1-component or ad-hoc basic machines
rpm-build c487f7
case $basic_machine in
rpm-build c487f7
	# Here we handle the default manufacturer of certain CPU types.  It is in
rpm-build c487f7
	# some cases the only manufacturer, in others, it is the most popular.
rpm-build c487f7
	w89k)
rpm-build c487f7
		cpu=hppa1.1
rpm-build c487f7
		vendor=winbond
rpm-build c487f7
		;;
rpm-build c487f7
	op50n)
rpm-build c487f7
		cpu=hppa1.1
rpm-build c487f7
		vendor=oki
rpm-build c487f7
		;;
rpm-build c487f7
	op60c)
rpm-build c487f7
		cpu=hppa1.1
rpm-build c487f7
		vendor=oki
rpm-build c487f7
		;;
rpm-build c487f7
	ibm*)
rpm-build c487f7
		cpu=i370
rpm-build c487f7
		vendor=ibm
rpm-build c487f7
		;;
rpm-build c487f7
	orion105)
rpm-build c487f7
		cpu=clipper
rpm-build c487f7
		vendor=highlevel
rpm-build c487f7
		;;
rpm-build c487f7
	mac | mpw | mac-mpw)
rpm-build c487f7
		cpu=m68k
rpm-build c487f7
		vendor=apple
rpm-build c487f7
		;;
rpm-build c487f7
	pmac | pmac-mpw)
rpm-build c487f7
		cpu=powerpc
rpm-build c487f7
		vendor=apple
rpm-build c487f7
		;;
rpm-build c487f7
rpm-build c487f7
	# Recognize the various machine names and aliases which stand
rpm-build c487f7
	# for a CPU type and a company and sometimes even an OS.
rpm-build c487f7
	3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
rpm-build c487f7
		cpu=m68000
rpm-build c487f7
		vendor=att
rpm-build c487f7
		;;
rpm-build c487f7
	3b*)
rpm-build c487f7
		cpu=we32k
rpm-build c487f7
		vendor=att
rpm-build c487f7
		;;
rpm-build c487f7
	bluegene*)
rpm-build c487f7
		cpu=powerpc
rpm-build c487f7
		vendor=ibm
rpm-build c487f7
		os=cnk
rpm-build c487f7
		;;
rpm-build c487f7
	decsystem10* | dec10*)
rpm-build c487f7
		cpu=pdp10
rpm-build c487f7
		vendor=dec
rpm-build c487f7
		os=tops10
rpm-build c487f7
		;;
rpm-build c487f7
	decsystem20* | dec20*)
rpm-build c487f7
		cpu=pdp10
rpm-build c487f7
		vendor=dec
rpm-build c487f7
		os=tops20
rpm-build c487f7
		;;
rpm-build c487f7
	delta | 3300 | motorola-3300 | motorola-delta \
rpm-build c487f7
	      | 3300-motorola | delta-motorola)
rpm-build c487f7
		cpu=m68k
rpm-build c487f7
		vendor=motorola
rpm-build c487f7
		;;
rpm-build c487f7
	dpx2*)
rpm-build c487f7
		cpu=m68k
rpm-build c487f7
		vendor=bull
rpm-build c487f7
		os=sysv3
rpm-build c487f7
		;;
rpm-build c487f7
	encore | umax | mmax)
rpm-build c487f7
		cpu=ns32k
rpm-build c487f7
		vendor=encore
rpm-build c487f7
		;;
rpm-build c487f7
	elxsi)
rpm-build c487f7
		cpu=elxsi
rpm-build c487f7
		vendor=elxsi
rpm-build c487f7
		os=${os:-bsd}
rpm-build c487f7
		;;
rpm-build c487f7
	fx2800)
rpm-build c487f7
		cpu=i860
rpm-build c487f7
		vendor=alliant
rpm-build c487f7
		;;
rpm-build c487f7
	genix)
rpm-build c487f7
		cpu=ns32k
rpm-build c487f7
		vendor=ns
rpm-build c487f7
		;;
rpm-build c487f7
	h3050r* | hiux*)
rpm-build c487f7
		cpu=hppa1.1
rpm-build c487f7
		vendor=hitachi
rpm-build c487f7
		os=hiuxwe2
rpm-build c487f7
		;;
rpm-build c487f7
	hp3k9[0-9][0-9] | hp9[0-9][0-9])
rpm-build c487f7
		cpu=hppa1.0
rpm-build c487f7
		vendor=hp
rpm-build c487f7
		;;
rpm-build c487f7
	hp9k2[0-9][0-9] | hp9k31[0-9])
rpm-build c487f7
		cpu=m68000
rpm-build c487f7
		vendor=hp
rpm-build c487f7
		;;
rpm-build c487f7
	hp9k3[2-9][0-9])
rpm-build c487f7
		cpu=m68k
rpm-build c487f7
		vendor=hp
rpm-build c487f7
		;;
rpm-build c487f7
	hp9k6[0-9][0-9] | hp6[0-9][0-9])
rpm-build c487f7
		cpu=hppa1.0
rpm-build c487f7
		vendor=hp
rpm-build c487f7
		;;
rpm-build c487f7
	hp9k7[0-79][0-9] | hp7[0-79][0-9])
rpm-build c487f7
		cpu=hppa1.1
rpm-build c487f7
		vendor=hp
rpm-build c487f7
		;;
rpm-build c487f7
	hp9k78[0-9] | hp78[0-9])
rpm-build c487f7
		# FIXME: really hppa2.0-hp
rpm-build c487f7
		cpu=hppa1.1
rpm-build c487f7
		vendor=hp
rpm-build c487f7
		;;
rpm-build c487f7
	hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
rpm-build c487f7
		# FIXME: really hppa2.0-hp
rpm-build c487f7
		cpu=hppa1.1
rpm-build c487f7
		vendor=hp
rpm-build c487f7
		;;
rpm-build c487f7
	hp9k8[0-9][13679] | hp8[0-9][13679])
rpm-build c487f7
		cpu=hppa1.1
rpm-build c487f7
		vendor=hp
rpm-build c487f7
		;;
rpm-build c487f7
	hp9k8[0-9][0-9] | hp8[0-9][0-9])
rpm-build c487f7
		cpu=hppa1.0
rpm-build c487f7
		vendor=hp
rpm-build c487f7
		;;
rpm-build c487f7
	i*86v32)
rpm-build c487f7
		cpu=`echo "$1" | sed -e 's/86.*/86/'`
rpm-build c487f7
		vendor=pc
rpm-build c487f7
		os=sysv32
rpm-build c487f7
		;;
rpm-build c487f7
	i*86v4*)
rpm-build c487f7
		cpu=`echo "$1" | sed -e 's/86.*/86/'`
rpm-build c487f7
		vendor=pc
rpm-build c487f7
		os=sysv4
rpm-build c487f7
		;;
rpm-build c487f7
	i*86v)
rpm-build c487f7
		cpu=`echo "$1" | sed -e 's/86.*/86/'`
rpm-build c487f7
		vendor=pc
rpm-build c487f7
		os=sysv
rpm-build c487f7
		;;
rpm-build c487f7
	i*86sol2)
rpm-build c487f7
		cpu=`echo "$1" | sed -e 's/86.*/86/'`
rpm-build c487f7
		vendor=pc
rpm-build c487f7
		os=solaris2
rpm-build c487f7
		;;
rpm-build c487f7
	j90 | j90-cray)
rpm-build c487f7
		cpu=j90
rpm-build c487f7
		vendor=cray
rpm-build c487f7
		os=${os:-unicos}
rpm-build c487f7
		;;
rpm-build c487f7
	iris | iris4d)
rpm-build c487f7
		cpu=mips
rpm-build c487f7
		vendor=sgi
rpm-build c487f7
		case $os in
rpm-build c487f7
		    irix*)
rpm-build c487f7
			;;
rpm-build c487f7
		    *)
rpm-build c487f7
			os=irix4
rpm-build c487f7
			;;
rpm-build c487f7
		esac
rpm-build c487f7
		;;
rpm-build c487f7
	miniframe)
rpm-build c487f7
		cpu=m68000
rpm-build c487f7
		vendor=convergent
rpm-build c487f7
		;;
rpm-build c487f7
	*mint | mint[0-9]* | *MiNT | *MiNT[0-9]*)
rpm-build c487f7
		cpu=m68k
rpm-build c487f7
		vendor=atari
rpm-build c487f7
		os=mint
rpm-build c487f7
		;;
rpm-build c487f7
	news-3600 | risc-news)
rpm-build c487f7
		cpu=mips
rpm-build c487f7
		vendor=sony
rpm-build c487f7
		os=newsos
rpm-build c487f7
		;;
rpm-build c487f7
	next | m*-next)
rpm-build c487f7
		cpu=m68k
rpm-build c487f7
		vendor=next
rpm-build c487f7
		case $os in
rpm-build c487f7
		    nextstep* )
rpm-build c487f7
			;;
rpm-build c487f7
		    ns2*)
rpm-build c487f7
		      os=nextstep2
rpm-build c487f7
			;;
rpm-build c487f7
		    *)
rpm-build c487f7
		      os=nextstep3
rpm-build c487f7
			;;
rpm-build c487f7
		esac
rpm-build c487f7
		;;
rpm-build c487f7
	np1)
rpm-build c487f7
		cpu=np1
rpm-build c487f7
		vendor=gould
rpm-build c487f7
		;;
rpm-build c487f7
	op50n-* | op60c-*)
rpm-build c487f7
		cpu=hppa1.1
rpm-build c487f7
		vendor=oki
rpm-build c487f7
		os=proelf
rpm-build c487f7
		;;
rpm-build c487f7
	pa-hitachi)
rpm-build c487f7
		cpu=hppa1.1
rpm-build c487f7
		vendor=hitachi
rpm-build c487f7
		os=hiuxwe2
rpm-build c487f7
		;;
rpm-build c487f7
	pbd)
rpm-build c487f7
		cpu=sparc
rpm-build c487f7
		vendor=tti
rpm-build c487f7
		;;
rpm-build c487f7
	pbb)
rpm-build c487f7
		cpu=m68k
rpm-build c487f7
		vendor=tti
rpm-build c487f7
		;;
rpm-build c487f7
	pc532)
rpm-build c487f7
		cpu=ns32k
rpm-build c487f7
		vendor=pc532
rpm-build c487f7
		;;
rpm-build c487f7
	pn)
rpm-build c487f7
		cpu=pn
rpm-build c487f7
		vendor=gould
rpm-build c487f7
		;;
rpm-build c487f7
	power)
rpm-build c487f7
		cpu=power
rpm-build c487f7
		vendor=ibm
rpm-build c487f7
		;;
rpm-build c487f7
	ps2)
rpm-build c487f7
		cpu=i386
rpm-build c487f7
		vendor=ibm
rpm-build c487f7
		;;
rpm-build c487f7
	rm[46]00)
rpm-build c487f7
		cpu=mips
rpm-build c487f7
		vendor=siemens
rpm-build c487f7
		;;
rpm-build c487f7
	rtpc | rtpc-*)
rpm-build c487f7
		cpu=romp
rpm-build c487f7
		vendor=ibm
rpm-build c487f7
		;;
rpm-build c487f7
	sde)
rpm-build c487f7
		cpu=mipsisa32
rpm-build c487f7
		vendor=sde
rpm-build c487f7
		os=${os:-elf}
rpm-build c487f7
		;;
rpm-build c487f7
	simso-wrs)
rpm-build c487f7
		cpu=sparclite
rpm-build c487f7
		vendor=wrs
rpm-build c487f7
		os=vxworks
rpm-build c487f7
		;;
rpm-build c487f7
	tower | tower-32)
rpm-build c487f7
		cpu=m68k
rpm-build c487f7
		vendor=ncr
rpm-build c487f7
		;;
rpm-build c487f7
	vpp*|vx|vx-*)
rpm-build c487f7
		cpu=f301
rpm-build c487f7
		vendor=fujitsu
rpm-build c487f7
		;;
rpm-build c487f7
	w65)
rpm-build c487f7
		cpu=w65
rpm-build c487f7
		vendor=wdc
rpm-build c487f7
		;;
rpm-build c487f7
	w89k-*)
rpm-build c487f7
		cpu=hppa1.1
rpm-build c487f7
		vendor=winbond
rpm-build c487f7
		os=proelf
rpm-build c487f7
		;;
rpm-build c487f7
	none)
rpm-build c487f7
		cpu=none
rpm-build c487f7
		vendor=none
rpm-build c487f7
		;;
rpm-build c487f7
	leon|leon[3-9])
rpm-build c487f7
		cpu=sparc
rpm-build c487f7
		vendor=$basic_machine
rpm-build c487f7
		;;
rpm-build c487f7
	leon-*|leon[3-9]-*)
rpm-build c487f7
		cpu=sparc
rpm-build c487f7
		vendor=`echo "$basic_machine" | sed 's/-.*//'`
rpm-build c487f7
		;;
rpm-build c487f7
rpm-build c487f7
	*-*)
rpm-build c487f7
		IFS="-" read -r cpu vendor <
rpm-build c487f7
$basic_machine
rpm-build c487f7
EOF
rpm-build c487f7
		;;
rpm-build c487f7
	# We use `pc' rather than `unknown'
rpm-build c487f7
	# because (1) that's what they normally are, and
rpm-build c487f7
	# (2) the word "unknown" tends to confuse beginning users.
rpm-build c487f7
	i*86 | x86_64)
rpm-build c487f7
		cpu=$basic_machine
rpm-build c487f7
		vendor=pc
rpm-build c487f7
		;;
rpm-build c487f7
	# These rules are duplicated from below for sake of the special case above;
rpm-build c487f7
	# i.e. things that normalized to x86 arches should also default to "pc"
rpm-build c487f7
	pc98)
rpm-build c487f7
		cpu=i386
rpm-build c487f7
		vendor=pc
rpm-build c487f7
		;;
rpm-build c487f7
	x64 | amd64)
rpm-build c487f7
		cpu=x86_64
rpm-build c487f7
		vendor=pc
rpm-build c487f7
		;;
rpm-build c487f7
	# Recognize the basic CPU types without company name.
rpm-build c487f7
	*)
rpm-build c487f7
		cpu=$basic_machine
rpm-build c487f7
		vendor=unknown
rpm-build c487f7
		;;
rpm-build c487f7
esac
rpm-build c487f7
rpm-build c487f7
unset -v basic_machine
rpm-build c487f7
rpm-build c487f7
# Decode basic machines in the full and proper CPU-Company form.
rpm-build c487f7
case $cpu-$vendor in
rpm-build c487f7
	# Here we handle the default manufacturer of certain CPU types in cannonical form. It is in
rpm-build c487f7
	# some cases the only manufacturer, in others, it is the most popular.
rpm-build c487f7
	craynv-unknown)
rpm-build c487f7
		vendor=cray
rpm-build c487f7
		os=${os:-unicosmp}
rpm-build c487f7
		;;
rpm-build c487f7
	c90-unknown | c90-cray)
rpm-build c487f7
		vendor=cray
rpm-build c487f7
		os=${os:-unicos}
rpm-build c487f7
		;;
rpm-build c487f7
	fx80-unknown)
rpm-build c487f7
		vendor=alliant
rpm-build c487f7
		;;
rpm-build c487f7
	romp-unknown)
rpm-build c487f7
		vendor=ibm
rpm-build c487f7
		;;
rpm-build c487f7
	mmix-unknown)
rpm-build c487f7
		vendor=knuth
rpm-build c487f7
		;;
rpm-build c487f7
	microblaze-unknown | microblazeel-unknown)
rpm-build c487f7
		vendor=xilinx
rpm-build c487f7
		;;
rpm-build c487f7
	rs6000-unknown)
rpm-build c487f7
		vendor=ibm
rpm-build c487f7
		;;
rpm-build c487f7
	vax-unknown)
rpm-build c487f7
		vendor=dec
rpm-build c487f7
		;;
rpm-build c487f7
	pdp11-unknown)
rpm-build c487f7
		vendor=dec
rpm-build c487f7
		;;
rpm-build c487f7
	we32k-unknown)
rpm-build c487f7
		vendor=att
rpm-build c487f7
		;;
rpm-build c487f7
	cydra-unknown)
rpm-build c487f7
		vendor=cydrome
rpm-build c487f7
		;;
rpm-build c487f7
	i370-ibm*)
rpm-build c487f7
		vendor=ibm
rpm-build c487f7
		;;
rpm-build c487f7
	orion-unknown)
rpm-build c487f7
		vendor=highlevel
rpm-build c487f7
		;;
rpm-build c487f7
	xps-unknown | xps100-unknown)
rpm-build c487f7
		cpu=xps100
rpm-build c487f7
		vendor=honeywell
rpm-build c487f7
		;;
rpm-build c487f7
rpm-build c487f7
	# Here we normalize CPU types with a missing or matching vendor
rpm-build c487f7
	dpx20-unknown | dpx20-bull)
rpm-build c487f7
		cpu=rs6000
rpm-build c487f7
		vendor=bull
rpm-build c487f7
		os=${os:-bosx}
rpm-build c487f7
		;;
rpm-build c487f7
rpm-build c487f7
	# Here we normalize CPU types irrespective of the vendor
rpm-build c487f7
	amd64-*)
rpm-build c487f7
		cpu=x86_64
rpm-build c487f7
		;;
rpm-build c487f7
	blackfin-*)
rpm-build c487f7
		cpu=bfin
rpm-build c487f7
		os=linux
rpm-build c487f7
		;;
rpm-build c487f7
	c54x-*)
rpm-build c487f7
		cpu=tic54x
rpm-build c487f7
		;;
rpm-build c487f7
	c55x-*)
rpm-build c487f7
		cpu=tic55x
rpm-build c487f7
		;;
rpm-build c487f7
	c6x-*)
rpm-build c487f7
		cpu=tic6x
rpm-build c487f7
		;;
rpm-build c487f7
	e500v[12]-*)
rpm-build c487f7
		cpu=powerpc
rpm-build c487f7
		os=$os"spe"
rpm-build c487f7
		;;
rpm-build c487f7
	mips3*-*)
rpm-build c487f7
		cpu=mips64
rpm-build c487f7
		;;
rpm-build c487f7
	ms1-*)
rpm-build c487f7
		cpu=mt
rpm-build c487f7
		;;
rpm-build c487f7
	m68knommu-*)
rpm-build c487f7
		cpu=m68k
rpm-build c487f7
		os=linux
rpm-build c487f7
		;;
rpm-build c487f7
	m9s12z-* | m68hcs12z-* | hcs12z-* | s12z-*)
rpm-build c487f7
		cpu=s12z
rpm-build c487f7
		;;
rpm-build c487f7
	openrisc-*)
rpm-build c487f7
		cpu=or32
rpm-build c487f7
		;;
rpm-build c487f7
	parisc-*)
rpm-build c487f7
		cpu=hppa
rpm-build c487f7
		os=linux
rpm-build c487f7
		;;
rpm-build c487f7
	pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
rpm-build c487f7
		cpu=i586
rpm-build c487f7
		;;
rpm-build c487f7
	pentiumpro-* | p6-* | 6x86-* | athlon-* | athalon_*-*)
rpm-build c487f7
		cpu=i686
rpm-build c487f7
		;;
rpm-build c487f7
	pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
rpm-build c487f7
		cpu=i686
rpm-build c487f7
		;;
rpm-build c487f7
	pentium4-*)
rpm-build c487f7
		cpu=i786
rpm-build c487f7
		;;
rpm-build c487f7
	pc98-*)
rpm-build c487f7
		cpu=i386
rpm-build c487f7
		;;
rpm-build c487f7
	ppc-* | ppcbe-*)
rpm-build c487f7
		cpu=powerpc
rpm-build c487f7
		;;
rpm-build c487f7
	ppcle-* | powerpclittle-*)
rpm-build c487f7
		cpu=powerpcle
rpm-build c487f7
		;;
rpm-build c487f7
	ppc64-*)
rpm-build c487f7
		cpu=powerpc64
rpm-build c487f7
		;;
rpm-build c487f7
	ppc64le-* | powerpc64little-*)
rpm-build c487f7
		cpu=powerpc64le
rpm-build c487f7
		;;
rpm-build c487f7
	sb1-*)
rpm-build c487f7
		cpu=mipsisa64sb1
rpm-build c487f7
		;;
rpm-build c487f7
	sb1el-*)
rpm-build c487f7
		cpu=mipsisa64sb1el
rpm-build c487f7
		;;
rpm-build c487f7
	sh5e[lb]-*)
rpm-build c487f7
		cpu=`echo "$cpu" | sed 's/^\(sh.\)e\(.\)$/\1\2e/'`
rpm-build c487f7
		;;
rpm-build c487f7
	spur-*)
rpm-build c487f7
		cpu=spur
rpm-build c487f7
		;;
rpm-build c487f7
	strongarm-* | thumb-*)
rpm-build c487f7
		cpu=arm
rpm-build c487f7
		;;
rpm-build c487f7
	tx39-*)
rpm-build c487f7
		cpu=mipstx39
rpm-build c487f7
		;;
rpm-build c487f7
	tx39el-*)
rpm-build c487f7
		cpu=mipstx39el
rpm-build c487f7
		;;
rpm-build c487f7
	x64-*)
rpm-build c487f7
		cpu=x86_64
rpm-build c487f7
		;;
rpm-build c487f7
	xscale-* | xscalee[bl]-*)
rpm-build c487f7
		cpu=`echo "$cpu" | sed 's/^xscale/arm/'`
rpm-build c487f7
		;;
rpm-build c487f7
rpm-build c487f7
	# Recognize the cannonical CPU Types that limit and/or modify the
rpm-build c487f7
	# company names they are paired with.
rpm-build c487f7
	cr16-*)
rpm-build c487f7
		os=${os:-elf}
rpm-build c487f7
		;;
rpm-build c487f7
	crisv32-* | etraxfs*-*)
rpm-build c487f7
		cpu=crisv32
rpm-build c487f7
		vendor=axis
rpm-build c487f7
		;;
rpm-build c487f7
	cris-* | etrax*-*)
rpm-build c487f7
		cpu=cris
rpm-build c487f7
		vendor=axis
rpm-build c487f7
		;;
rpm-build c487f7
	crx-*)
rpm-build c487f7
		os=${os:-elf}
rpm-build c487f7
		;;
rpm-build c487f7
	neo-tandem)
rpm-build c487f7
		cpu=neo
rpm-build c487f7
		vendor=tandem
rpm-build c487f7
		;;
rpm-build c487f7
	nse-tandem)
rpm-build c487f7
		cpu=nse
rpm-build c487f7
		vendor=tandem
rpm-build c487f7
		;;
rpm-build c487f7
	nsr-tandem)
rpm-build c487f7
		cpu=nsr
rpm-build c487f7
		vendor=tandem
rpm-build c487f7
		;;
rpm-build c487f7
	nsv-tandem)
rpm-build c487f7
		cpu=nsv
rpm-build c487f7
		vendor=tandem
rpm-build c487f7
		;;
rpm-build c487f7
	nsx-tandem)
rpm-build c487f7
		cpu=nsx
rpm-build c487f7
		vendor=tandem
rpm-build c487f7
		;;
rpm-build c487f7
	s390-*)
rpm-build c487f7
		cpu=s390
rpm-build c487f7
		vendor=ibm
rpm-build c487f7
		;;
rpm-build c487f7
	s390x-*)
rpm-build c487f7
		cpu=s390x
rpm-build c487f7
		vendor=ibm
rpm-build c487f7
		;;
rpm-build c487f7
	tile*-*)
rpm-build c487f7
		os=${os:-linux-gnu}
rpm-build c487f7
		;;
rpm-build c487f7
rpm-build c487f7
	*)
rpm-build c487f7
		# Recognize the cannonical CPU types that are allowed with any
rpm-build c487f7
		# company name.
rpm-build c487f7
		case $cpu in
rpm-build c487f7
			1750a | 580 \
rpm-build c487f7
			| a29k \
rpm-build c487f7
			| aarch64 | aarch64_be \
rpm-build c487f7
			| abacus \
rpm-build c487f7
			| alpha | alphaev[4-8] | alphaev56 | alphaev6[78] \
rpm-build c487f7
			| alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] \
rpm-build c487f7
			| alphapca5[67] | alpha64pca5[67] \
rpm-build c487f7
			| am33_2.0 \
rpm-build c487f7
			| arc | arceb \
rpm-build c487f7
			| arm  | arm[lb]e | arme[lb] | armv* \
rpm-build c487f7
			| avr | avr32 \
rpm-build c487f7
			| asmjs \
rpm-build c487f7
			| ba \
rpm-build c487f7
			| be32 | be64 \
rpm-build c487f7
			| bfin | bs2000 \
rpm-build c487f7
			| c[123]* | c30 | [cjt]90 | c4x \
rpm-build c487f7
			| c8051 | clipper | craynv | csky | cydra \
rpm-build c487f7
			| d10v | d30v | dlx | dsp16xx \
rpm-build c487f7
			| e2k | elxsi | epiphany \
rpm-build c487f7
			| f30[01] | f700 | fido | fr30 | frv | ft32 | fx80 \
rpm-build c487f7
			| h8300 | h8500 \
rpm-build c487f7
			| hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
rpm-build c487f7
			| hexagon \
rpm-build c487f7
			| i370 | i*86 | i860 | i960 | ia16 | ia64 \
rpm-build c487f7
			| ip2k | iq2000 \
rpm-build c487f7
			| k1om \
rpm-build c487f7
			| le32 | le64 \
rpm-build c487f7
			| lm32 \
rpm-build c487f7
			| m32c | m32r | m32rle \
rpm-build c487f7
			| m5200 | m68000 | m680[012346]0 | m68360 | m683?2 | m68k | v70 | w65 \
rpm-build c487f7
			| m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | nvptx | picochip \
rpm-build c487f7
			| m88110 | m88k | maxq | mb | mcore | mep | metag \
rpm-build c487f7
			| microblaze | microblazeel \
rpm-build c487f7
			| mips | mipsbe | mipseb | mipsel | mipsle \
rpm-build c487f7
			| mips16 \
rpm-build c487f7
			| mips64 | mips64el \
rpm-build c487f7
			| mips64octeon | mips64octeonel \
rpm-build c487f7
			| mips64orion | mips64orionel \
rpm-build c487f7
			| mips64r5900 | mips64r5900el \
rpm-build c487f7
			| mips64vr | mips64vrel \
rpm-build c487f7
			| mips64vr4100 | mips64vr4100el \
rpm-build c487f7
			| mips64vr4300 | mips64vr4300el \
rpm-build c487f7
			| mips64vr5000 | mips64vr5000el \
rpm-build c487f7
			| mips64vr5900 | mips64vr5900el \
rpm-build c487f7
			| mipsisa32 | mipsisa32el \
rpm-build c487f7
			| mipsisa32r2 | mipsisa32r2el \
rpm-build c487f7
			| mipsisa32r6 | mipsisa32r6el \
rpm-build c487f7
			| mipsisa64 | mipsisa64el \
rpm-build c487f7
			| mipsisa64r2 | mipsisa64r2el \
rpm-build c487f7
			| mipsisa64r6 | mipsisa64r6el \
rpm-build c487f7
			| mipsisa64sb1 | mipsisa64sb1el \
rpm-build c487f7
			| mipsisa64sr71k | mipsisa64sr71kel \
rpm-build c487f7
			| mipsr5900 | mipsr5900el \
rpm-build c487f7
			| mipstx39 | mipstx39el \
rpm-build c487f7
			| mmix \
rpm-build c487f7
			| mn10200 | mn10300 \
rpm-build c487f7
			| moxie \
rpm-build c487f7
			| mt \
rpm-build c487f7
			| msp430 \
rpm-build c487f7
			| nds32 | nds32le | nds32be \
rpm-build c487f7
			| nfp \
rpm-build c487f7
			| nios | nios2 | nios2eb | nios2el \
rpm-build c487f7
			| none | np1 | ns16k | ns32k \
rpm-build c487f7
			| open8 \
rpm-build c487f7
			| or1k* \
rpm-build c487f7
			| or32 \
rpm-build c487f7
			| orion \
rpm-build c487f7
			| pdp10 | pdp11 | pj | pjl | pn | power \
rpm-build c487f7
			| powerpc | powerpc64 | powerpc64le | powerpcle | powerpcspe \
rpm-build c487f7
			| pru \
rpm-build c487f7
			| pyramid \
rpm-build c487f7
			| riscv | riscv32 | riscv64 \
rpm-build c487f7
			| rl78 | romp | rs6000 | rx \
rpm-build c487f7
			| score \
rpm-build c487f7
			| sh | sh[1234] | sh[24]a | sh[24]ae[lb] | sh[23]e | she[lb] | sh[lb]e \
rpm-build c487f7
			| sh[1234]e[lb] |  sh[12345][lb]e | sh[23]ele | sh64 | sh64le \
rpm-build c487f7
			| sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet \
rpm-build c487f7
			| sparclite \
rpm-build c487f7
			| sparcv8 | sparcv9 | sparcv9b | sparcv9v | sv1 | sx* \
rpm-build c487f7
			| spu \
rpm-build c487f7
			| tahoe \
rpm-build c487f7
			| tic30 | tic4x | tic54x | tic55x | tic6x | tic80 \
rpm-build c487f7
			| tron \
rpm-build c487f7
			| ubicom32 \
rpm-build c487f7
			| v850 | v850e | v850e1 | v850es | v850e2 | v850e2v3 \
rpm-build c487f7
			| vax \
rpm-build c487f7
			| visium \
rpm-build c487f7
			| wasm32 \
rpm-build c487f7
			| we32k \
rpm-build c487f7
			| x86 | x86_64 | xc16x | xgate | xps100 \
rpm-build c487f7
			| xstormy16 | xtensa* \
rpm-build c487f7
			| ymp \
rpm-build c487f7
			| z8k | z80)
rpm-build c487f7
				;;
rpm-build c487f7
rpm-build c487f7
			*)
rpm-build c487f7
				echo Invalid configuration \`"$1"\': machine \`"$cpu-$vendor"\' not recognized 1>&2
rpm-build c487f7
				exit 1
rpm-build c487f7
				;;
rpm-build c487f7
		esac
rpm-build c487f7
		;;
rpm-build c487f7
esac
rpm-build c487f7
rpm-build c487f7
# Here we canonicalize certain aliases for manufacturers.
rpm-build c487f7
case $vendor in
rpm-build c487f7
	digital*)
rpm-build c487f7
		vendor=dec
rpm-build c487f7
		;;
rpm-build c487f7
	commodore*)
rpm-build c487f7
		vendor=cbm
rpm-build c487f7
		;;
rpm-build c487f7
	*)
rpm-build c487f7
		;;
rpm-build c487f7
esac
rpm-build c487f7
rpm-build c487f7
# Decode manufacturer-specific aliases for certain operating systems.
rpm-build c487f7
rpm-build c487f7
if [ x$os != x ]
rpm-build c487f7
then
rpm-build c487f7
case $os in
rpm-build c487f7
	# First match some system type aliases that might get confused
rpm-build c487f7
	# with valid system types.
rpm-build c487f7
	# solaris* is a basic system type, with this one exception.
rpm-build c487f7
	auroraux)
rpm-build c487f7
		os=auroraux
rpm-build c487f7
		;;
rpm-build c487f7
	bluegene*)
rpm-build c487f7
		os=cnk
rpm-build c487f7
		;;
rpm-build c487f7
	solaris1 | solaris1.*)
rpm-build c487f7
		os=`echo $os | sed -e 's|solaris1|sunos4|'`
rpm-build c487f7
		;;
rpm-build c487f7
	solaris)
rpm-build c487f7
		os=solaris2
rpm-build c487f7
		;;
rpm-build c487f7
	unixware*)
rpm-build c487f7
		os=sysv4.2uw
rpm-build c487f7
		;;
rpm-build c487f7
	gnu/linux*)
rpm-build c487f7
		os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
rpm-build c487f7
		;;
rpm-build c487f7
	# es1800 is here to avoid being matched by es* (a different OS)
rpm-build c487f7
	es1800*)
rpm-build c487f7
		os=ose
rpm-build c487f7
		;;
rpm-build c487f7
	# Some version numbers need modification
rpm-build c487f7
	chorusos*)
rpm-build c487f7
		os=chorusos
rpm-build c487f7
		;;
rpm-build c487f7
	isc)
rpm-build c487f7
		os=isc2.2
rpm-build c487f7
		;;
rpm-build c487f7
	sco6)
rpm-build c487f7
		os=sco5v6
rpm-build c487f7
		;;
rpm-build c487f7
	sco5)
rpm-build c487f7
		os=sco3.2v5
rpm-build c487f7
		;;
rpm-build c487f7
	sco4)
rpm-build c487f7
		os=sco3.2v4
rpm-build c487f7
		;;
rpm-build c487f7
	sco3.2.[4-9]*)
rpm-build c487f7
		os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
rpm-build c487f7
		;;
rpm-build c487f7
	sco3.2v[4-9]* | sco5v6*)
rpm-build c487f7
		# Don't forget version if it is 3.2v4 or newer.
rpm-build c487f7
		;;
rpm-build c487f7
	scout)
rpm-build c487f7
		# Don't match below
rpm-build c487f7
		;;
rpm-build c487f7
	sco*)
rpm-build c487f7
		os=sco3.2v2
rpm-build c487f7
		;;
rpm-build c487f7
	psos*)
rpm-build c487f7
		os=psos
rpm-build c487f7
		;;
rpm-build c487f7
	# Now accept the basic system types.
rpm-build c487f7
	# The portable systems comes first.
rpm-build c487f7
	# Each alternative MUST end in a * to match a version number.
rpm-build c487f7
	# sysv* is not here because it comes later, after sysvr4.
rpm-build c487f7
	gnu* | bsd* | mach* | minix* | genix* | ultrix* | irix* \
rpm-build c487f7
	     | *vms* | esix* | aix* | cnk* | sunos | sunos[34]*\
rpm-build c487f7
	     | hpux* | unos* | osf* | luna* | dgux* | auroraux* | solaris* \
rpm-build c487f7
	     | sym* | kopensolaris* | plan9* \
rpm-build c487f7
	     | amigaos* | amigados* | msdos* | newsos* | unicos* | aof* \
rpm-build c487f7
	     | aos* | aros* | cloudabi* | sortix* \
rpm-build c487f7
	     | nindy* | vxsim* | vxworks* | ebmon* | hms* | mvs* \
rpm-build c487f7
	     | clix* | riscos* | uniplus* | iris* | isc* | rtu* | xenix* \
rpm-build c487f7
	     | knetbsd* | mirbsd* | netbsd* \
rpm-build c487f7
	     | bitrig* | openbsd* | solidbsd* | libertybsd* \
rpm-build c487f7
	     | ekkobsd* | kfreebsd* | freebsd* | riscix* | lynxos* \
rpm-build c487f7
	     | bosx* | nextstep* | cxux* | aout* | elf* | oabi* \
rpm-build c487f7
	     | ptx* | coff* | ecoff* | winnt* | domain* | vsta* \
rpm-build c487f7
	     | udi* | eabi* | lites* | ieee* | go32* | aux* | hcos* \
rpm-build c487f7
	     | chorusrdb* | cegcc* | glidix* \
rpm-build c487f7
	     | cygwin* | msys* | pe* | moss* | proelf* | rtems* \
rpm-build c487f7
	     | midipix* | mingw32* | mingw64* | linux-gnu* | linux-android* \
rpm-build c487f7
	     | linux-newlib* | linux-musl* | linux-uclibc* \
rpm-build c487f7
	     | uxpv* | beos* | mpeix* | udk* | moxiebox* \
rpm-build c487f7
	     | interix* | uwin* | mks* | rhapsody* | darwin* \
rpm-build c487f7
	     | openstep* | oskit* | conix* | pw32* | nonstopux* \
rpm-build c487f7
	     | storm-chaos* | tops10* | tenex* | tops20* | its* \
rpm-build c487f7
	     | os2* | vos* | palmos* | uclinux* | nucleus* \
rpm-build c487f7
	     | morphos* | superux* | rtmk* | windiss* \
rpm-build c487f7
	     | powermax* | dnix* | nx6 | nx7 | sei* | dragonfly* \
rpm-build c487f7
	     | skyos* | haiku* | rdos* | toppers* | drops* | es* \
rpm-build c487f7
	     | onefs* | tirtos* | phoenix* | fuchsia* | redox* | bme* \
rpm-build c487f7
	     | midnightbsd*)
rpm-build c487f7
	# Remember, each alternative MUST END IN *, to match a version number.
rpm-build c487f7
		;;
rpm-build c487f7
	qnx*)
rpm-build c487f7
		case $cpu in
rpm-build c487f7
		    x86 | i*86)
rpm-build c487f7
			;;
rpm-build c487f7
		    *)
rpm-build c487f7
			os=nto-$os
rpm-build c487f7
			;;
rpm-build c487f7
		esac
rpm-build c487f7
		;;
rpm-build c487f7
	hiux*)
rpm-build c487f7
		os=hiuxwe2
rpm-build c487f7
		;;
rpm-build c487f7
	nto-qnx*)
rpm-build c487f7
		;;
rpm-build c487f7
	nto*)
rpm-build c487f7
		os=`echo $os | sed -e 's|nto|nto-qnx|'`
rpm-build c487f7
		;;
rpm-build c487f7
	sim | xray | os68k* | v88r* \
rpm-build c487f7
	    | windows* | osx | abug | netware* | os9* \
rpm-build c487f7
	    | macos* | mpw* | magic* | mmixware* | mon960* | lnews*)
rpm-build c487f7
		;;
rpm-build c487f7
	linux-dietlibc)
rpm-build c487f7
		os=linux-dietlibc
rpm-build c487f7
		;;
rpm-build c487f7
	linux*)
rpm-build c487f7
		os=`echo $os | sed -e 's|linux|linux-gnu|'`
rpm-build c487f7
		;;
rpm-build c487f7
	lynx*178)
rpm-build c487f7
		os=lynxos178
rpm-build c487f7
		;;
rpm-build c487f7
	lynx*5)
rpm-build c487f7
		os=lynxos5
rpm-build c487f7
		;;
rpm-build c487f7
	lynx*)
rpm-build c487f7
		os=lynxos
rpm-build c487f7
		;;
rpm-build c487f7
	mac*)
rpm-build c487f7
		os=`echo "$os" | sed -e 's|mac|macos|'`
rpm-build c487f7
		;;
rpm-build c487f7
	opened*)
rpm-build c487f7
		os=openedition
rpm-build c487f7
		;;
rpm-build c487f7
	os400*)
rpm-build c487f7
		os=os400
rpm-build c487f7
		;;
rpm-build c487f7
	sunos5*)
rpm-build c487f7
		os=`echo "$os" | sed -e 's|sunos5|solaris2|'`
rpm-build c487f7
		;;
rpm-build c487f7
	sunos6*)
rpm-build c487f7
		os=`echo "$os" | sed -e 's|sunos6|solaris3|'`
rpm-build c487f7
		;;
rpm-build c487f7
	wince*)
rpm-build c487f7
		os=wince
rpm-build c487f7
		;;
rpm-build c487f7
	utek*)
rpm-build c487f7
		os=bsd
rpm-build c487f7
		;;
rpm-build c487f7
	dynix*)
rpm-build c487f7
		os=bsd
rpm-build c487f7
		;;
rpm-build c487f7
	acis*)
rpm-build c487f7
		os=aos
rpm-build c487f7
		;;
rpm-build c487f7
	atheos*)
rpm-build c487f7
		os=atheos
rpm-build c487f7
		;;
rpm-build c487f7
	syllable*)
rpm-build c487f7
		os=syllable
rpm-build c487f7
		;;
rpm-build c487f7
	386bsd)
rpm-build c487f7
		os=bsd
rpm-build c487f7
		;;
rpm-build c487f7
	ctix* | uts*)
rpm-build c487f7
		os=sysv
rpm-build c487f7
		;;
rpm-build c487f7
	nova*)
rpm-build c487f7
		os=rtmk-nova
rpm-build c487f7
		;;
rpm-build c487f7
	ns2)
rpm-build c487f7
		os=nextstep2
rpm-build c487f7
		;;
rpm-build c487f7
	nsk*)
rpm-build c487f7
		os=nsk
rpm-build c487f7
		;;
rpm-build c487f7
	# Preserve the version number of sinix5.
rpm-build c487f7
	sinix5.*)
rpm-build c487f7
		os=`echo $os | sed -e 's|sinix|sysv|'`
rpm-build c487f7
		;;
rpm-build c487f7
	sinix*)
rpm-build c487f7
		os=sysv4
rpm-build c487f7
		;;
rpm-build c487f7
	tpf*)
rpm-build c487f7
		os=tpf
rpm-build c487f7
		;;
rpm-build c487f7
	triton*)
rpm-build c487f7
		os=sysv3
rpm-build c487f7
		;;
rpm-build c487f7
	oss*)
rpm-build c487f7
		os=sysv3
rpm-build c487f7
		;;
rpm-build c487f7
	svr4*)
rpm-build c487f7
		os=sysv4
rpm-build c487f7
		;;
rpm-build c487f7
	svr3)
rpm-build c487f7
		os=sysv3
rpm-build c487f7
		;;
rpm-build c487f7
	sysvr4)
rpm-build c487f7
		os=sysv4
rpm-build c487f7
		;;
rpm-build c487f7
	# This must come after sysvr4.
rpm-build c487f7
	sysv*)
rpm-build c487f7
		;;
rpm-build c487f7
	ose*)
rpm-build c487f7
		os=ose
rpm-build c487f7
		;;
rpm-build c487f7
	*mint | mint[0-9]* | *MiNT | MiNT[0-9]*)
rpm-build c487f7
		os=mint
rpm-build c487f7
		;;
rpm-build c487f7
	zvmoe)
rpm-build c487f7
		os=zvmoe
rpm-build c487f7
		;;
rpm-build c487f7
	dicos*)
rpm-build c487f7
		os=dicos
rpm-build c487f7
		;;
rpm-build c487f7
	pikeos*)
rpm-build c487f7
		# Until real need of OS specific support for
rpm-build c487f7
		# particular features comes up, bare metal
rpm-build c487f7
		# configurations are quite functional.
rpm-build c487f7
		case $cpu in
rpm-build c487f7
		    arm*)
rpm-build c487f7
			os=eabi
rpm-build c487f7
			;;
rpm-build c487f7
		    *)
rpm-build c487f7
			os=elf
rpm-build c487f7
			;;
rpm-build c487f7
		esac
rpm-build c487f7
		;;
rpm-build c487f7
	nacl*)
rpm-build c487f7
		;;
rpm-build c487f7
	ios)
rpm-build c487f7
		;;
rpm-build c487f7
	none)
rpm-build c487f7
		;;
rpm-build c487f7
	*-eabi)
rpm-build c487f7
		;;
rpm-build c487f7
	*)
rpm-build c487f7
		echo Invalid configuration \`"$1"\': system \`"$os"\' not recognized 1>&2
rpm-build c487f7
		exit 1
rpm-build c487f7
		;;
rpm-build c487f7
esac
rpm-build c487f7
else
rpm-build c487f7
rpm-build c487f7
# Here we handle the default operating systems that come with various machines.
rpm-build c487f7
# The value should be what the vendor currently ships out the door with their
rpm-build c487f7
# machine or put another way, the most popular os provided with the machine.
rpm-build c487f7
rpm-build c487f7
# Note that if you're going to try to match "-MANUFACTURER" here (say,
rpm-build c487f7
# "-sun"), then you have to tell the case statement up towards the top
rpm-build c487f7
# that MANUFACTURER isn't an operating system.  Otherwise, code above
rpm-build c487f7
# will signal an error saying that MANUFACTURER isn't an operating
rpm-build c487f7
# system, and we'll never get to this point.
rpm-build c487f7
rpm-build c487f7
case $cpu-$vendor in
rpm-build c487f7
	score-*)
rpm-build c487f7
		os=elf
rpm-build c487f7
		;;
rpm-build c487f7
	spu-*)
rpm-build c487f7
		os=elf
rpm-build c487f7
		;;
rpm-build c487f7
	*-acorn)
rpm-build c487f7
		os=riscix1.2
rpm-build c487f7
		;;
rpm-build c487f7
	arm*-rebel)
rpm-build c487f7
		os=linux
rpm-build c487f7
		;;
rpm-build c487f7
	arm*-semi)
rpm-build c487f7
		os=aout
rpm-build c487f7
		;;
rpm-build c487f7
	c4x-* | tic4x-*)
rpm-build c487f7
		os=coff
rpm-build c487f7
		;;
rpm-build c487f7
	c8051-*)
rpm-build c487f7
		os=elf
rpm-build c487f7
		;;
rpm-build c487f7
	clipper-intergraph)
rpm-build c487f7
		os=clix
rpm-build c487f7
		;;
rpm-build c487f7
	hexagon-*)
rpm-build c487f7
		os=elf
rpm-build c487f7
		;;
rpm-build c487f7
	tic54x-*)
rpm-build c487f7
		os=coff
rpm-build c487f7
		;;
rpm-build c487f7
	tic55x-*)
rpm-build c487f7
		os=coff
rpm-build c487f7
		;;
rpm-build c487f7
	tic6x-*)
rpm-build c487f7
		os=coff
rpm-build c487f7
		;;
rpm-build c487f7
	# This must come before the *-dec entry.
rpm-build c487f7
	pdp10-*)
rpm-build c487f7
		os=tops20
rpm-build c487f7
		;;
rpm-build c487f7
	pdp11-*)
rpm-build c487f7
		os=none
rpm-build c487f7
		;;
rpm-build c487f7
	*-dec | vax-*)
rpm-build c487f7
		os=ultrix4.2
rpm-build c487f7
		;;
rpm-build c487f7
	m68*-apollo)
rpm-build c487f7
		os=domain
rpm-build c487f7
		;;
rpm-build c487f7
	i386-sun)
rpm-build c487f7
		os=sunos4.0.2
rpm-build c487f7
		;;
rpm-build c487f7
	m68000-sun)
rpm-build c487f7
		os=sunos3
rpm-build c487f7
		;;
rpm-build c487f7
	m68*-cisco)
rpm-build c487f7
		os=aout
rpm-build c487f7
		;;
rpm-build c487f7
	mep-*)
rpm-build c487f7
		os=elf
rpm-build c487f7
		;;
rpm-build c487f7
	mips*-cisco)
rpm-build c487f7
		os=elf
rpm-build c487f7
		;;
rpm-build c487f7
	mips*-*)
rpm-build c487f7
		os=elf
rpm-build c487f7
		;;
rpm-build c487f7
	or32-*)
rpm-build c487f7
		os=coff
rpm-build c487f7
		;;
rpm-build c487f7
	*-tti)	# must be before sparc entry or we get the wrong os.
rpm-build c487f7
		os=sysv3
rpm-build c487f7
		;;
rpm-build c487f7
	sparc-* | *-sun)
rpm-build c487f7
		os=sunos4.1.1
rpm-build c487f7
		;;
rpm-build c487f7
	pru-*)
rpm-build c487f7
		os=elf
rpm-build c487f7
		;;
rpm-build c487f7
	*-be)
rpm-build c487f7
		os=beos
rpm-build c487f7
		;;
rpm-build c487f7
	*-ibm)
rpm-build c487f7
		os=aix
rpm-build c487f7
		;;
rpm-build c487f7
	*-knuth)
rpm-build c487f7
		os=mmixware
rpm-build c487f7
		;;
rpm-build c487f7
	*-wec)
rpm-build c487f7
		os=proelf
rpm-build c487f7
		;;
rpm-build c487f7
	*-winbond)
rpm-build c487f7
		os=proelf
rpm-build c487f7
		;;
rpm-build c487f7
	*-oki)
rpm-build c487f7
		os=proelf
rpm-build c487f7
		;;
rpm-build c487f7
	*-hp)
rpm-build c487f7
		os=hpux
rpm-build c487f7
		;;
rpm-build c487f7
	*-hitachi)
rpm-build c487f7
		os=hiux
rpm-build c487f7
		;;
rpm-build c487f7
	i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent)
rpm-build c487f7
		os=sysv
rpm-build c487f7
		;;
rpm-build c487f7
	*-cbm)
rpm-build c487f7
		os=amigaos
rpm-build c487f7
		;;
rpm-build c487f7
	*-dg)
rpm-build c487f7
		os=dgux
rpm-build c487f7
		;;
rpm-build c487f7
	*-dolphin)
rpm-build c487f7
		os=sysv3
rpm-build c487f7
		;;
rpm-build c487f7
	m68k-ccur)
rpm-build c487f7
		os=rtu
rpm-build c487f7
		;;
rpm-build c487f7
	m88k-omron*)
rpm-build c487f7
		os=luna
rpm-build c487f7
		;;
rpm-build c487f7
	*-next)
rpm-build c487f7
		os=nextstep
rpm-build c487f7
		;;
rpm-build c487f7
	*-sequent)
rpm-build c487f7
		os=ptx
rpm-build c487f7
		;;
rpm-build c487f7
	*-crds)
rpm-build c487f7
		os=unos
rpm-build c487f7
		;;
rpm-build c487f7
	*-ns)
rpm-build c487f7
		os=genix
rpm-build c487f7
		;;
rpm-build c487f7
	i370-*)
rpm-build c487f7
		os=mvs
rpm-build c487f7
		;;
rpm-build c487f7
	*-gould)
rpm-build c487f7
		os=sysv
rpm-build c487f7
		;;
rpm-build c487f7
	*-highlevel)
rpm-build c487f7
		os=bsd
rpm-build c487f7
		;;
rpm-build c487f7
	*-encore)
rpm-build c487f7
		os=bsd
rpm-build c487f7
		;;
rpm-build c487f7
	*-sgi)
rpm-build c487f7
		os=irix
rpm-build c487f7
		;;
rpm-build c487f7
	*-siemens)
rpm-build c487f7
		os=sysv4
rpm-build c487f7
		;;
rpm-build c487f7
	*-masscomp)
rpm-build c487f7
		os=rtu
rpm-build c487f7
		;;
rpm-build c487f7
	f30[01]-fujitsu | f700-fujitsu)
rpm-build c487f7
		os=uxpv
rpm-build c487f7
		;;
rpm-build c487f7
	*-rom68k)
rpm-build c487f7
		os=coff
rpm-build c487f7
		;;
rpm-build c487f7
	*-*bug)
rpm-build c487f7
		os=coff
rpm-build c487f7
		;;
rpm-build c487f7
	*-apple)
rpm-build c487f7
		os=macos
rpm-build c487f7
		;;
rpm-build c487f7
	*-atari*)
rpm-build c487f7
		os=mint
rpm-build c487f7
		;;
rpm-build c487f7
	*-wrs)
rpm-build c487f7
		os=vxworks
rpm-build c487f7
		;;
rpm-build c487f7
	*)
rpm-build c487f7
		os=none
rpm-build c487f7
		;;
rpm-build c487f7
esac
rpm-build c487f7
fi
rpm-build c487f7
rpm-build c487f7
# Here we handle the case where we know the os, and the CPU type, but not the
rpm-build c487f7
# manufacturer.  We pick the logical manufacturer.
rpm-build c487f7
case $vendor in
rpm-build c487f7
	unknown)
rpm-build c487f7
		case $os in
rpm-build c487f7
			riscix*)
rpm-build c487f7
				vendor=acorn
rpm-build c487f7
				;;
rpm-build c487f7
			sunos*)
rpm-build c487f7
				vendor=sun
rpm-build c487f7
				;;
rpm-build c487f7
			cnk*|-aix*)
rpm-build c487f7
				vendor=ibm
rpm-build c487f7
				;;
rpm-build c487f7
			beos*)
rpm-build c487f7
				vendor=be
rpm-build c487f7
				;;
rpm-build c487f7
			hpux*)
rpm-build c487f7
				vendor=hp
rpm-build c487f7
				;;
rpm-build c487f7
			mpeix*)
rpm-build c487f7
				vendor=hp
rpm-build c487f7
				;;
rpm-build c487f7
			hiux*)
rpm-build c487f7
				vendor=hitachi
rpm-build c487f7
				;;
rpm-build c487f7
			unos*)
rpm-build c487f7
				vendor=crds
rpm-build c487f7
				;;
rpm-build c487f7
			dgux*)
rpm-build c487f7
				vendor=dg
rpm-build c487f7
				;;
rpm-build c487f7
			luna*)
rpm-build c487f7
				vendor=omron
rpm-build c487f7
				;;
rpm-build c487f7
			genix*)
rpm-build c487f7
				vendor=ns
rpm-build c487f7
				;;
rpm-build c487f7
			clix*)
rpm-build c487f7
				vendor=intergraph
rpm-build c487f7
				;;
rpm-build c487f7
			mvs* | opened*)
rpm-build c487f7
				vendor=ibm
rpm-build c487f7
				;;
rpm-build c487f7
			os400*)
rpm-build c487f7
				vendor=ibm
rpm-build c487f7
				;;
rpm-build c487f7
			ptx*)
rpm-build c487f7
				vendor=sequent
rpm-build c487f7
				;;
rpm-build c487f7
			tpf*)
rpm-build c487f7
				vendor=ibm
rpm-build c487f7
				;;
rpm-build c487f7
			vxsim* | vxworks* | windiss*)
rpm-build c487f7
				vendor=wrs
rpm-build c487f7
				;;
rpm-build c487f7
			aux*)
rpm-build c487f7
				vendor=apple
rpm-build c487f7
				;;
rpm-build c487f7
			hms*)
rpm-build c487f7
				vendor=hitachi
rpm-build c487f7
				;;
rpm-build c487f7
			mpw* | macos*)
rpm-build c487f7
				vendor=apple
rpm-build c487f7
				;;
rpm-build c487f7
			*mint | mint[0-9]* | *MiNT | MiNT[0-9]*)
rpm-build c487f7
				vendor=atari
rpm-build c487f7
				;;
rpm-build c487f7
			vos*)
rpm-build c487f7
				vendor=stratus
rpm-build c487f7
				;;
rpm-build c487f7
		esac
rpm-build c487f7
		;;
rpm-build c487f7
esac
rpm-build c487f7
rpm-build c487f7
echo "$cpu-$vendor-$os"
rpm-build c487f7
exit
rpm-build c487f7
rpm-build c487f7
# Local variables:
rpm-build c487f7
# eval: (add-hook 'before-save-hook 'time-stamp)
rpm-build c487f7
# time-stamp-start: "timestamp='"
rpm-build c487f7
# time-stamp-format: "%:y-%02m-%02d"
rpm-build c487f7
# time-stamp-end: "'"
rpm-build c487f7
# End: