Blame config.sub

Packit Service 102f81
#! /bin/sh
Packit Service 102f81
# Configuration validation subroutine script.
Packit Service 102f81
#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
Packit Service 102f81
#   2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
Packit Service 102f81
Packit Service 102f81
timestamp='2005-07-08'
Packit Service 102f81
Packit Service 102f81
# This file is (in principle) common to ALL GNU software.
Packit Service 102f81
# The presence of a machine in this file suggests that SOME GNU software
Packit Service 102f81
# can handle that machine.  It does not imply ALL GNU software can.
Packit Service 102f81
#
Packit Service 102f81
# This file is free software; you can redistribute it and/or modify
Packit Service 102f81
# it under the terms of the GNU General Public License as published by
Packit Service 102f81
# the Free Software Foundation; either version 2 of the License, or
Packit Service 102f81
# (at your option) any later version.
Packit Service 102f81
#
Packit Service 102f81
# This program is distributed in the hope that it will be useful,
Packit Service 102f81
# but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit Service 102f81
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
Packit Service 102f81
# GNU General Public License for more details.
Packit Service 102f81
#
Packit Service 102f81
# You should have received a copy of the GNU General Public License
Packit Service 102f81
# along with this program; if not, write to the Free Software
Packit Service 102f81
# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
Packit Service 102f81
# 02110-1301, USA.
Packit Service 102f81
#
Packit Service 102f81
# As a special exception to the GNU General Public License, if you
Packit Service 102f81
# distribute this file as part of a program that contains a
Packit Service 102f81
# configuration script generated by Autoconf, you may include it under
Packit Service 102f81
# the same distribution terms that you use for the rest of that program.
Packit Service 102f81
Packit Service 102f81
Packit Service 102f81
# Please send patches to <config-patches@gnu.org>.  Submit a context
Packit Service 102f81
# diff and a properly formatted ChangeLog entry.
Packit Service 102f81
#
Packit Service 102f81
# Configuration subroutine to validate and canonicalize a configuration type.
Packit Service 102f81
# Supply the specified configuration type as an argument.
Packit Service 102f81
# If it is invalid, we print an error message on stderr and exit with code 1.
Packit Service 102f81
# Otherwise, we print the canonical config type on stdout and succeed.
Packit Service 102f81
Packit Service 102f81
# This file is supposed to be the same for all GNU packages
Packit Service 102f81
# and recognize all the CPU types, system types and aliases
Packit Service 102f81
# that are meaningful with *any* GNU software.
Packit Service 102f81
# Each package is responsible for reporting which valid configurations
Packit Service 102f81
# it does not support.  The user should be able to distinguish
Packit Service 102f81
# a failure to support a valid configuration from a meaningless
Packit Service 102f81
# configuration.
Packit Service 102f81
Packit Service 102f81
# The goal of this file is to map all the various variations of a given
Packit Service 102f81
# machine specification into a single specification in the form:
Packit Service 102f81
#	CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
Packit Service 102f81
# or in some cases, the newer four-part form:
Packit Service 102f81
#	CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
Packit Service 102f81
# It is wrong to echo any other type of specification.
Packit Service 102f81
Packit Service 102f81
me=`echo "$0" | sed -e 's,.*/,,'`
Packit Service 102f81
Packit Service 102f81
usage="\
Packit Service 102f81
Usage: $0 [OPTION] CPU-MFR-OPSYS
Packit Service 102f81
       $0 [OPTION] ALIAS
Packit Service 102f81
Packit Service 102f81
Canonicalize a configuration name.
Packit Service 102f81
Packit Service 102f81
Operation modes:
Packit Service 102f81
  -h, --help         print this help, then exit
Packit Service 102f81
  -t, --time-stamp   print date of last modification, then exit
Packit Service 102f81
  -v, --version      print version number, then exit
Packit Service 102f81
Packit Service 102f81
Report bugs and patches to <config-patches@gnu.org>."
Packit Service 102f81
Packit Service 102f81
version="\
Packit Service 102f81
GNU config.sub ($timestamp)
Packit Service 102f81
Packit Service 102f81
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
Packit Service 102f81
Free Software Foundation, Inc.
Packit Service 102f81
Packit Service 102f81
This is free software; see the source for copying conditions.  There is NO
Packit Service 102f81
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
Packit Service 102f81
Packit Service 102f81
help="
Packit Service 102f81
Try \`$me --help' for more information."
Packit Service 102f81
Packit Service 102f81
# Parse command line
Packit Service 102f81
while test $# -gt 0 ; do
Packit Service 102f81
  case $1 in
Packit Service 102f81
    --time-stamp | --time* | -t )
Packit Service 102f81
       echo "$timestamp" ; exit ;;
Packit Service 102f81
    --version | -v )
Packit Service 102f81
       echo "$version" ; exit ;;
Packit Service 102f81
    --help | --h* | -h )
Packit Service 102f81
       echo "$usage"; exit ;;
Packit Service 102f81
    -- )     # Stop option processing
Packit Service 102f81
       shift; break ;;
Packit Service 102f81
    - )	# Use stdin as input.
Packit Service 102f81
       break ;;
Packit Service 102f81
    -* )
Packit Service 102f81
       echo "$me: invalid option $1$help"
Packit Service 102f81
       exit 1 ;;
Packit Service 102f81
Packit Service 102f81
    *local*)
Packit Service 102f81
       # First pass through any local machine types.
Packit Service 102f81
       echo $1
Packit Service 102f81
       exit ;;
Packit Service 102f81
Packit Service 102f81
    * )
Packit Service 102f81
       break ;;
Packit Service 102f81
  esac
Packit Service 102f81
done
Packit Service 102f81
Packit Service 102f81
case $# in
Packit Service 102f81
 0) echo "$me: missing argument$help" >&2
Packit Service 102f81
    exit 1;;
Packit Service 102f81
 1) ;;
Packit Service 102f81
 *) echo "$me: too many arguments$help" >&2
Packit Service 102f81
    exit 1;;
Packit Service 102f81
esac
Packit Service 102f81
Packit Service 102f81
# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
Packit Service 102f81
# Here we must recognize all the valid KERNEL-OS combinations.
Packit Service 102f81
maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
Packit Service 102f81
case $maybe_os in
Packit Service 102f81
  nto-qnx* | linux-gnu* | linux-dietlibc | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | \
Packit Service 102f81
  kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*)
Packit Service 102f81
    os=-$maybe_os
Packit Service 102f81
    basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
Packit Service 102f81
    ;;
Packit Service 102f81
  *)
Packit Service 102f81
    basic_machine=`echo $1 | sed 's/-[^-]*$//'`
Packit Service 102f81
    if [ $basic_machine != $1 ]
Packit Service 102f81
    then os=`echo $1 | sed 's/.*-/-/'`
Packit Service 102f81
    else os=; fi
Packit Service 102f81
    ;;
Packit Service 102f81
esac
Packit Service 102f81
Packit Service 102f81
### Let's recognize common machines as not being operating systems so
Packit Service 102f81
### that things like config.sub decstation-3100 work.  We also
Packit Service 102f81
### recognize some manufacturers as not being operating systems, so we
Packit Service 102f81
### can provide default operating systems below.
Packit Service 102f81
case $os in
Packit Service 102f81
	-sun*os*)
Packit Service 102f81
		# Prevent following clause from handling this invalid input.
Packit Service 102f81
		;;
Packit Service 102f81
	-dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \
Packit Service 102f81
	-att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
Packit Service 102f81
	-unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
Packit Service 102f81
	-convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
Packit Service 102f81
	-c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
Packit Service 102f81
	-harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
Packit Service 102f81
	-apple | -axis | -knuth | -cray)
Packit Service 102f81
		os=
Packit Service 102f81
		basic_machine=$1
Packit Service 102f81
		;;
Packit Service 102f81
	-sim | -cisco | -oki | -wec | -winbond)
Packit Service 102f81
		os=
Packit Service 102f81
		basic_machine=$1
Packit Service 102f81
		;;
Packit Service 102f81
	-scout)
Packit Service 102f81
		;;
Packit Service 102f81
	-wrs)
Packit Service 102f81
		os=-vxworks
Packit Service 102f81
		basic_machine=$1
Packit Service 102f81
		;;
Packit Service 102f81
	-chorusos*)
Packit Service 102f81
		os=-chorusos
Packit Service 102f81
		basic_machine=$1
Packit Service 102f81
		;;
Packit Service 102f81
 	-chorusrdb)
Packit Service 102f81
 		os=-chorusrdb
Packit Service 102f81
		basic_machine=$1
Packit Service 102f81
 		;;
Packit Service 102f81
	-hiux*)
Packit Service 102f81
		os=-hiuxwe2
Packit Service 102f81
		;;
Packit Service 102f81
	-sco5)
Packit Service 102f81
		os=-sco3.2v5
Packit Service 102f81
		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
Packit Service 102f81
		;;
Packit Service 102f81
	-sco4)
Packit Service 102f81
		os=-sco3.2v4
Packit Service 102f81
		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
Packit Service 102f81
		;;
Packit Service 102f81
	-sco3.2.[4-9]*)
Packit Service 102f81
		os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
Packit Service 102f81
		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
Packit Service 102f81
		;;
Packit Service 102f81
	-sco3.2v[4-9]*)
Packit Service 102f81
		# Don't forget version if it is 3.2v4 or newer.
Packit Service 102f81
		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
Packit Service 102f81
		;;
Packit Service 102f81
	-sco*)
Packit Service 102f81
		os=-sco3.2v2
Packit Service 102f81
		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
Packit Service 102f81
		;;
Packit Service 102f81
	-udk*)
Packit Service 102f81
		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
Packit Service 102f81
		;;
Packit Service 102f81
	-isc)
Packit Service 102f81
		os=-isc2.2
Packit Service 102f81
		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
Packit Service 102f81
		;;
Packit Service 102f81
	-clix*)
Packit Service 102f81
		basic_machine=clipper-intergraph
Packit Service 102f81
		;;
Packit Service 102f81
	-isc*)
Packit Service 102f81
		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
Packit Service 102f81
		;;
Packit Service 102f81
	-lynx*)
Packit Service 102f81
		os=-lynxos
Packit Service 102f81
		;;
Packit Service 102f81
	-ptx*)
Packit Service 102f81
		basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'`
Packit Service 102f81
		;;
Packit Service 102f81
	-windowsnt*)
Packit Service 102f81
		os=`echo $os | sed -e 's/windowsnt/winnt/'`
Packit Service 102f81
		;;
Packit Service 102f81
	-psos*)
Packit Service 102f81
		os=-psos
Packit Service 102f81
		;;
Packit Service 102f81
	-mint | -mint[0-9]*)
Packit Service 102f81
		basic_machine=m68k-atari
Packit Service 102f81
		os=-mint
Packit Service 102f81
		;;
Packit Service 102f81
esac
Packit Service 102f81
Packit Service 102f81
# Decode aliases for certain CPU-COMPANY combinations.
Packit Service 102f81
case $basic_machine in
Packit Service 102f81
	# Recognize the basic CPU types without company name.
Packit Service 102f81
	# Some are omitted here because they have special meanings below.
Packit Service 102f81
	1750a | 580 \
Packit Service 102f81
	| a29k \
Packit Service 102f81
	| alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
Packit Service 102f81
	| alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
Packit Service 102f81
	| am33_2.0 \
Packit Service 102f81
	| arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
Packit Service 102f81
	| bfin \
Packit Service 102f81
	| c4x | clipper \
Packit Service 102f81
	| d10v | d30v | dlx | dsp16xx \
Packit Service 102f81
	| fr30 | frv \
Packit Service 102f81
	| h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
Packit Service 102f81
	| i370 | i860 | i960 | ia64 \
Packit Service 102f81
	| ip2k | iq2000 \
Packit Service 102f81
	| m32r | m32rle | m68000 | m68k | m88k | maxq | mcore \
Packit Service 102f81
	| mips | mipsbe | mipseb | mipsel | mipsle \
Packit Service 102f81
	| mips16 \
Packit Service 102f81
	| mips64 | mips64el \
Packit Service 102f81
	| mips64vr | mips64vrel \
Packit Service 102f81
	| mips64orion | mips64orionel \
Packit Service 102f81
	| mips64vr4100 | mips64vr4100el \
Packit Service 102f81
	| mips64vr4300 | mips64vr4300el \
Packit Service 102f81
	| mips64vr5000 | mips64vr5000el \
Packit Service 102f81
	| mips64vr5900 | mips64vr5900el \
Packit Service 102f81
	| mipsisa32 | mipsisa32el \
Packit Service 102f81
	| mipsisa32r2 | mipsisa32r2el \
Packit Service 102f81
	| mipsisa64 | mipsisa64el \
Packit Service 102f81
	| mipsisa64r2 | mipsisa64r2el \
Packit Service 102f81
	| mipsisa64sb1 | mipsisa64sb1el \
Packit Service 102f81
	| mipsisa64sr71k | mipsisa64sr71kel \
Packit Service 102f81
	| mipstx39 | mipstx39el \
Packit Service 102f81
	| mn10200 | mn10300 \
Packit Service 102f81
	| ms1 \
Packit Service 102f81
	| msp430 \
Packit Service 102f81
	| ns16k | ns32k \
Packit Service 102f81
	| or32 \
Packit Service 102f81
	| pdp10 | pdp11 | pj | pjl \
Packit Service 102f81
	| powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
Packit Service 102f81
	| pyramid \
Packit Service 102f81
	| sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \
Packit Service 102f81
	| sh64 | sh64le \
Packit Service 102f81
	| sparc | sparc64 | sparc64b | sparc86x | sparclet | sparclite \
Packit Service 102f81
	| sparcv8 | sparcv9 | sparcv9b \
Packit Service 102f81
	| strongarm \
Packit Service 102f81
	| tahoe | thumb | tic4x | tic80 | tron \
Packit Service 102f81
	| v850 | v850e \
Packit Service 102f81
	| we32k \
Packit Service 102f81
	| x86 | xscale | xscalee[bl] | xstormy16 | xtensa \
Packit Service 102f81
	| z8k)
Packit Service 102f81
		basic_machine=$basic_machine-unknown
Packit Service 102f81
		;;
Packit Service 102f81
	m32c)
Packit Service 102f81
		basic_machine=$basic_machine-unknown
Packit Service 102f81
		;;
Packit Service 102f81
	m6811 | m68hc11 | m6812 | m68hc12)
Packit Service 102f81
		# Motorola 68HC11/12.
Packit Service 102f81
		basic_machine=$basic_machine-unknown
Packit Service 102f81
		os=-none
Packit Service 102f81
		;;
Packit Service 102f81
	m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
Packit Service 102f81
		;;
Packit Service 102f81
Packit Service 102f81
	# We use `pc' rather than `unknown'
Packit Service 102f81
	# because (1) that's what they normally are, and
Packit Service 102f81
	# (2) the word "unknown" tends to confuse beginning users.
Packit Service 102f81
	i*86 | x86_64)
Packit Service 102f81
	  basic_machine=$basic_machine-pc
Packit Service 102f81
	  ;;
Packit Service 102f81
	# Object if more than one company name word.
Packit Service 102f81
	*-*-*)
Packit Service 102f81
		echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
Packit Service 102f81
		exit 1
Packit Service 102f81
		;;
Packit Service 102f81
	# Recognize the basic CPU types with company name.
Packit Service 102f81
	580-* \
Packit Service 102f81
	| a29k-* \
Packit Service 102f81
	| alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
Packit Service 102f81
	| alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
Packit Service 102f81
	| alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
Packit Service 102f81
	| arm-*  | armbe-* | armle-* | armeb-* | armv*-* \
Packit Service 102f81
	| avr-* \
Packit Service 102f81
	| bfin-* | bs2000-* \
Packit Service 102f81
	| c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
Packit Service 102f81
	| clipper-* | craynv-* | cydra-* \
Packit Service 102f81
	| d10v-* | d30v-* | dlx-* \
Packit Service 102f81
	| elxsi-* \
Packit Service 102f81
	| f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \
Packit Service 102f81
	| h8300-* | h8500-* \
Packit Service 102f81
	| hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
Packit Service 102f81
	| i*86-* | i860-* | i960-* | ia64-* \
Packit Service 102f81
	| ip2k-* | iq2000-* \
Packit Service 102f81
	| m32r-* | m32rle-* \
Packit Service 102f81
	| m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
Packit Service 102f81
	| m88110-* | m88k-* | maxq-* | mcore-* \
Packit Service 102f81
	| mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
Packit Service 102f81
	| mips16-* \
Packit Service 102f81
	| mips64-* | mips64el-* \
Packit Service 102f81
	| mips64vr-* | mips64vrel-* \
Packit Service 102f81
	| mips64orion-* | mips64orionel-* \
Packit Service 102f81
	| mips64vr4100-* | mips64vr4100el-* \
Packit Service 102f81
	| mips64vr4300-* | mips64vr4300el-* \
Packit Service 102f81
	| mips64vr5000-* | mips64vr5000el-* \
Packit Service 102f81
	| mips64vr5900-* | mips64vr5900el-* \
Packit Service 102f81
	| mipsisa32-* | mipsisa32el-* \
Packit Service 102f81
	| mipsisa32r2-* | mipsisa32r2el-* \
Packit Service 102f81
	| mipsisa64-* | mipsisa64el-* \
Packit Service 102f81
	| mipsisa64r2-* | mipsisa64r2el-* \
Packit Service 102f81
	| mipsisa64sb1-* | mipsisa64sb1el-* \
Packit Service 102f81
	| mipsisa64sr71k-* | mipsisa64sr71kel-* \
Packit Service 102f81
	| mipstx39-* | mipstx39el-* \
Packit Service 102f81
	| mmix-* \
Packit Service 102f81
	| ms1-* \
Packit Service 102f81
	| msp430-* \
Packit Service 102f81
	| none-* | np1-* | ns16k-* | ns32k-* \
Packit Service 102f81
	| orion-* \
Packit Service 102f81
	| pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
Packit Service 102f81
	| powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
Packit Service 102f81
	| pyramid-* \
Packit Service 102f81
	| romp-* | rs6000-* \
Packit Service 102f81
	| sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | shbe-* \
Packit Service 102f81
	| shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
Packit Service 102f81
	| sparc-* | sparc64-* | sparc64b-* | sparc86x-* | sparclet-* \
Packit Service 102f81
	| sparclite-* \
Packit Service 102f81
	| sparcv8-* | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \
Packit Service 102f81
	| tahoe-* | thumb-* \
Packit Service 102f81
	| tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
Packit Service 102f81
	| tron-* \
Packit Service 102f81
	| v850-* | v850e-* | vax-* \
Packit Service 102f81
	| we32k-* \
Packit Service 102f81
	| x86-* | x86_64-* | xps100-* | xscale-* | xscalee[bl]-* \
Packit Service 102f81
	| xstormy16-* | xtensa-* \
Packit Service 102f81
	| ymp-* \
Packit Service 102f81
	| z8k-*)
Packit Service 102f81
		;;
Packit Service 102f81
	m32c-*)
Packit Service 102f81
		;;
Packit Service 102f81
	# Recognize the various machine names and aliases which stand
Packit Service 102f81
	# for a CPU type and a company and sometimes even an OS.
Packit Service 102f81
	386bsd)
Packit Service 102f81
		basic_machine=i386-unknown
Packit Service 102f81
		os=-bsd
Packit Service 102f81
		;;
Packit Service 102f81
	3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
Packit Service 102f81
		basic_machine=m68000-att
Packit Service 102f81
		;;
Packit Service 102f81
	3b*)
Packit Service 102f81
		basic_machine=we32k-att
Packit Service 102f81
		;;
Packit Service 102f81
	a29khif)
Packit Service 102f81
		basic_machine=a29k-amd
Packit Service 102f81
		os=-udi
Packit Service 102f81
		;;
Packit Service 102f81
    	abacus)
Packit Service 102f81
		basic_machine=abacus-unknown
Packit Service 102f81
		;;
Packit Service 102f81
	adobe68k)
Packit Service 102f81
		basic_machine=m68010-adobe
Packit Service 102f81
		os=-scout
Packit Service 102f81
		;;
Packit Service 102f81
	alliant | fx80)
Packit Service 102f81
		basic_machine=fx80-alliant
Packit Service 102f81
		;;
Packit Service 102f81
	altos | altos3068)
Packit Service 102f81
		basic_machine=m68k-altos
Packit Service 102f81
		;;
Packit Service 102f81
	am29k)
Packit Service 102f81
		basic_machine=a29k-none
Packit Service 102f81
		os=-bsd
Packit Service 102f81
		;;
Packit Service 102f81
	amd64)
Packit Service 102f81
		basic_machine=x86_64-pc
Packit Service 102f81
		;;
Packit Service 102f81
	amd64-*)
Packit Service 102f81
		basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
Packit Service 102f81
		;;
Packit Service 102f81
	amdahl)
Packit Service 102f81
		basic_machine=580-amdahl
Packit Service 102f81
		os=-sysv
Packit Service 102f81
		;;
Packit Service 102f81
	amiga | amiga-*)
Packit Service 102f81
		basic_machine=m68k-unknown
Packit Service 102f81
		;;
Packit Service 102f81
	amigaos | amigados)
Packit Service 102f81
		basic_machine=m68k-unknown
Packit Service 102f81
		os=-amigaos
Packit Service 102f81
		;;
Packit Service 102f81
	amigaunix | amix)
Packit Service 102f81
		basic_machine=m68k-unknown
Packit Service 102f81
		os=-sysv4
Packit Service 102f81
		;;
Packit Service 102f81
	apollo68)
Packit Service 102f81
		basic_machine=m68k-apollo
Packit Service 102f81
		os=-sysv
Packit Service 102f81
		;;
Packit Service 102f81
	apollo68bsd)
Packit Service 102f81
		basic_machine=m68k-apollo
Packit Service 102f81
		os=-bsd
Packit Service 102f81
		;;
Packit Service 102f81
	aux)
Packit Service 102f81
		basic_machine=m68k-apple
Packit Service 102f81
		os=-aux
Packit Service 102f81
		;;
Packit Service 102f81
	balance)
Packit Service 102f81
		basic_machine=ns32k-sequent
Packit Service 102f81
		os=-dynix
Packit Service 102f81
		;;
Packit Service 102f81
	c90)
Packit Service 102f81
		basic_machine=c90-cray
Packit Service 102f81
		os=-unicos
Packit Service 102f81
		;;
Packit Service 102f81
	convex-c1)
Packit Service 102f81
		basic_machine=c1-convex
Packit Service 102f81
		os=-bsd
Packit Service 102f81
		;;
Packit Service 102f81
	convex-c2)
Packit Service 102f81
		basic_machine=c2-convex
Packit Service 102f81
		os=-bsd
Packit Service 102f81
		;;
Packit Service 102f81
	convex-c32)
Packit Service 102f81
		basic_machine=c32-convex
Packit Service 102f81
		os=-bsd
Packit Service 102f81
		;;
Packit Service 102f81
	convex-c34)
Packit Service 102f81
		basic_machine=c34-convex
Packit Service 102f81
		os=-bsd
Packit Service 102f81
		;;
Packit Service 102f81
	convex-c38)
Packit Service 102f81
		basic_machine=c38-convex
Packit Service 102f81
		os=-bsd
Packit Service 102f81
		;;
Packit Service 102f81
	cray | j90)
Packit Service 102f81
		basic_machine=j90-cray
Packit Service 102f81
		os=-unicos
Packit Service 102f81
		;;
Packit Service 102f81
	craynv)
Packit Service 102f81
		basic_machine=craynv-cray
Packit Service 102f81
		os=-unicosmp
Packit Service 102f81
		;;
Packit Service 102f81
	cr16c)
Packit Service 102f81
		basic_machine=cr16c-unknown
Packit Service 102f81
		os=-elf
Packit Service 102f81
		;;
Packit Service 102f81
	crds | unos)
Packit Service 102f81
		basic_machine=m68k-crds
Packit Service 102f81
		;;
Packit Service 102f81
	crisv32 | crisv32-* | etraxfs*)
Packit Service 102f81
		basic_machine=crisv32-axis
Packit Service 102f81
		;;
Packit Service 102f81
	cris | cris-* | etrax*)
Packit Service 102f81
		basic_machine=cris-axis
Packit Service 102f81
		;;
Packit Service 102f81
	crx)
Packit Service 102f81
		basic_machine=crx-unknown
Packit Service 102f81
		os=-elf
Packit Service 102f81
		;;
Packit Service 102f81
	da30 | da30-*)
Packit Service 102f81
		basic_machine=m68k-da30
Packit Service 102f81
		;;
Packit Service 102f81
	decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
Packit Service 102f81
		basic_machine=mips-dec
Packit Service 102f81
		;;
Packit Service 102f81
	decsystem10* | dec10*)
Packit Service 102f81
		basic_machine=pdp10-dec
Packit Service 102f81
		os=-tops10
Packit Service 102f81
		;;
Packit Service 102f81
	decsystem20* | dec20*)
Packit Service 102f81
		basic_machine=pdp10-dec
Packit Service 102f81
		os=-tops20
Packit Service 102f81
		;;
Packit Service 102f81
	delta | 3300 | motorola-3300 | motorola-delta \
Packit Service 102f81
	      | 3300-motorola | delta-motorola)
Packit Service 102f81
		basic_machine=m68k-motorola
Packit Service 102f81
		;;
Packit Service 102f81
	delta88)
Packit Service 102f81
		basic_machine=m88k-motorola
Packit Service 102f81
		os=-sysv3
Packit Service 102f81
		;;
Packit Service 102f81
	djgpp)
Packit Service 102f81
		basic_machine=i586-pc
Packit Service 102f81
		os=-msdosdjgpp
Packit Service 102f81
		;;
Packit Service 102f81
	dpx20 | dpx20-*)
Packit Service 102f81
		basic_machine=rs6000-bull
Packit Service 102f81
		os=-bosx
Packit Service 102f81
		;;
Packit Service 102f81
	dpx2* | dpx2*-bull)
Packit Service 102f81
		basic_machine=m68k-bull
Packit Service 102f81
		os=-sysv3
Packit Service 102f81
		;;
Packit Service 102f81
	ebmon29k)
Packit Service 102f81
		basic_machine=a29k-amd
Packit Service 102f81
		os=-ebmon
Packit Service 102f81
		;;
Packit Service 102f81
	elxsi)
Packit Service 102f81
		basic_machine=elxsi-elxsi
Packit Service 102f81
		os=-bsd
Packit Service 102f81
		;;
Packit Service 102f81
	encore | umax | mmax)
Packit Service 102f81
		basic_machine=ns32k-encore
Packit Service 102f81
		;;
Packit Service 102f81
	es1800 | OSE68k | ose68k | ose | OSE)
Packit Service 102f81
		basic_machine=m68k-ericsson
Packit Service 102f81
		os=-ose
Packit Service 102f81
		;;
Packit Service 102f81
	fx2800)
Packit Service 102f81
		basic_machine=i860-alliant
Packit Service 102f81
		;;
Packit Service 102f81
	genix)
Packit Service 102f81
		basic_machine=ns32k-ns
Packit Service 102f81
		;;
Packit Service 102f81
	gmicro)
Packit Service 102f81
		basic_machine=tron-gmicro
Packit Service 102f81
		os=-sysv
Packit Service 102f81
		;;
Packit Service 102f81
	go32)
Packit Service 102f81
		basic_machine=i386-pc
Packit Service 102f81
		os=-go32
Packit Service 102f81
		;;
Packit Service 102f81
	h3050r* | hiux*)
Packit Service 102f81
		basic_machine=hppa1.1-hitachi
Packit Service 102f81
		os=-hiuxwe2
Packit Service 102f81
		;;
Packit Service 102f81
	h8300hms)
Packit Service 102f81
		basic_machine=h8300-hitachi
Packit Service 102f81
		os=-hms
Packit Service 102f81
		;;
Packit Service 102f81
	h8300xray)
Packit Service 102f81
		basic_machine=h8300-hitachi
Packit Service 102f81
		os=-xray
Packit Service 102f81
		;;
Packit Service 102f81
	h8500hms)
Packit Service 102f81
		basic_machine=h8500-hitachi
Packit Service 102f81
		os=-hms
Packit Service 102f81
		;;
Packit Service 102f81
	harris)
Packit Service 102f81
		basic_machine=m88k-harris
Packit Service 102f81
		os=-sysv3
Packit Service 102f81
		;;
Packit Service 102f81
	hp300-*)
Packit Service 102f81
		basic_machine=m68k-hp
Packit Service 102f81
		;;
Packit Service 102f81
	hp300bsd)
Packit Service 102f81
		basic_machine=m68k-hp
Packit Service 102f81
		os=-bsd
Packit Service 102f81
		;;
Packit Service 102f81
	hp300hpux)
Packit Service 102f81
		basic_machine=m68k-hp
Packit Service 102f81
		os=-hpux
Packit Service 102f81
		;;
Packit Service 102f81
	hp3k9[0-9][0-9] | hp9[0-9][0-9])
Packit Service 102f81
		basic_machine=hppa1.0-hp
Packit Service 102f81
		;;
Packit Service 102f81
	hp9k2[0-9][0-9] | hp9k31[0-9])
Packit Service 102f81
		basic_machine=m68000-hp
Packit Service 102f81
		;;
Packit Service 102f81
	hp9k3[2-9][0-9])
Packit Service 102f81
		basic_machine=m68k-hp
Packit Service 102f81
		;;
Packit Service 102f81
	hp9k6[0-9][0-9] | hp6[0-9][0-9])
Packit Service 102f81
		basic_machine=hppa1.0-hp
Packit Service 102f81
		;;
Packit Service 102f81
	hp9k7[0-79][0-9] | hp7[0-79][0-9])
Packit Service 102f81
		basic_machine=hppa1.1-hp
Packit Service 102f81
		;;
Packit Service 102f81
	hp9k78[0-9] | hp78[0-9])
Packit Service 102f81
		# FIXME: really hppa2.0-hp
Packit Service 102f81
		basic_machine=hppa1.1-hp
Packit Service 102f81
		;;
Packit Service 102f81
	hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
Packit Service 102f81
		# FIXME: really hppa2.0-hp
Packit Service 102f81
		basic_machine=hppa1.1-hp
Packit Service 102f81
		;;
Packit Service 102f81
	hp9k8[0-9][13679] | hp8[0-9][13679])
Packit Service 102f81
		basic_machine=hppa1.1-hp
Packit Service 102f81
		;;
Packit Service 102f81
	hp9k8[0-9][0-9] | hp8[0-9][0-9])
Packit Service 102f81
		basic_machine=hppa1.0-hp
Packit Service 102f81
		;;
Packit Service 102f81
	hppa-next)
Packit Service 102f81
		os=-nextstep3
Packit Service 102f81
		;;
Packit Service 102f81
	hppaosf)
Packit Service 102f81
		basic_machine=hppa1.1-hp
Packit Service 102f81
		os=-osf
Packit Service 102f81
		;;
Packit Service 102f81
	hppro)
Packit Service 102f81
		basic_machine=hppa1.1-hp
Packit Service 102f81
		os=-proelf
Packit Service 102f81
		;;
Packit Service 102f81
	i370-ibm* | ibm*)
Packit Service 102f81
		basic_machine=i370-ibm
Packit Service 102f81
		;;
Packit Service 102f81
# I'm not sure what "Sysv32" means.  Should this be sysv3.2?
Packit Service 102f81
	i*86v32)
Packit Service 102f81
		basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
Packit Service 102f81
		os=-sysv32
Packit Service 102f81
		;;
Packit Service 102f81
	i*86v4*)
Packit Service 102f81
		basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
Packit Service 102f81
		os=-sysv4
Packit Service 102f81
		;;
Packit Service 102f81
	i*86v)
Packit Service 102f81
		basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
Packit Service 102f81
		os=-sysv
Packit Service 102f81
		;;
Packit Service 102f81
	i*86sol2)
Packit Service 102f81
		basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
Packit Service 102f81
		os=-solaris2
Packit Service 102f81
		;;
Packit Service 102f81
	i386mach)
Packit Service 102f81
		basic_machine=i386-mach
Packit Service 102f81
		os=-mach
Packit Service 102f81
		;;
Packit Service 102f81
	i386-vsta | vsta)
Packit Service 102f81
		basic_machine=i386-unknown
Packit Service 102f81
		os=-vsta
Packit Service 102f81
		;;
Packit Service 102f81
	iris | iris4d)
Packit Service 102f81
		basic_machine=mips-sgi
Packit Service 102f81
		case $os in
Packit Service 102f81
		    -irix*)
Packit Service 102f81
			;;
Packit Service 102f81
		    *)
Packit Service 102f81
			os=-irix4
Packit Service 102f81
			;;
Packit Service 102f81
		esac
Packit Service 102f81
		;;
Packit Service 102f81
	isi68 | isi)
Packit Service 102f81
		basic_machine=m68k-isi
Packit Service 102f81
		os=-sysv
Packit Service 102f81
		;;
Packit Service 102f81
	m88k-omron*)
Packit Service 102f81
		basic_machine=m88k-omron
Packit Service 102f81
		;;
Packit Service 102f81
	magnum | m3230)
Packit Service 102f81
		basic_machine=mips-mips
Packit Service 102f81
		os=-sysv
Packit Service 102f81
		;;
Packit Service 102f81
	merlin)
Packit Service 102f81
		basic_machine=ns32k-utek
Packit Service 102f81
		os=-sysv
Packit Service 102f81
		;;
Packit Service 102f81
	mingw32)
Packit Service 102f81
		basic_machine=i386-pc
Packit Service 102f81
		os=-mingw32
Packit Service 102f81
		;;
Packit Service 102f81
	miniframe)
Packit Service 102f81
		basic_machine=m68000-convergent
Packit Service 102f81
		;;
Packit Service 102f81
	*mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)
Packit Service 102f81
		basic_machine=m68k-atari
Packit Service 102f81
		os=-mint
Packit Service 102f81
		;;
Packit Service 102f81
	mips3*-*)
Packit Service 102f81
		basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
Packit Service 102f81
		;;
Packit Service 102f81
	mips3*)
Packit Service 102f81
		basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
Packit Service 102f81
		;;
Packit Service 102f81
	monitor)
Packit Service 102f81
		basic_machine=m68k-rom68k
Packit Service 102f81
		os=-coff
Packit Service 102f81
		;;
Packit Service 102f81
	morphos)
Packit Service 102f81
		basic_machine=powerpc-unknown
Packit Service 102f81
		os=-morphos
Packit Service 102f81
		;;
Packit Service 102f81
	msdos)
Packit Service 102f81
		basic_machine=i386-pc
Packit Service 102f81
		os=-msdos
Packit Service 102f81
		;;
Packit Service 102f81
	mvs)
Packit Service 102f81
		basic_machine=i370-ibm
Packit Service 102f81
		os=-mvs
Packit Service 102f81
		;;
Packit Service 102f81
	ncr3000)
Packit Service 102f81
		basic_machine=i486-ncr
Packit Service 102f81
		os=-sysv4
Packit Service 102f81
		;;
Packit Service 102f81
	netbsd386)
Packit Service 102f81
		basic_machine=i386-unknown
Packit Service 102f81
		os=-netbsd
Packit Service 102f81
		;;
Packit Service 102f81
	netwinder)
Packit Service 102f81
		basic_machine=armv4l-rebel
Packit Service 102f81
		os=-linux
Packit Service 102f81
		;;
Packit Service 102f81
	news | news700 | news800 | news900)
Packit Service 102f81
		basic_machine=m68k-sony
Packit Service 102f81
		os=-newsos
Packit Service 102f81
		;;
Packit Service 102f81
	news1000)
Packit Service 102f81
		basic_machine=m68030-sony
Packit Service 102f81
		os=-newsos
Packit Service 102f81
		;;
Packit Service 102f81
	news-3600 | risc-news)
Packit Service 102f81
		basic_machine=mips-sony
Packit Service 102f81
		os=-newsos
Packit Service 102f81
		;;
Packit Service 102f81
	necv70)
Packit Service 102f81
		basic_machine=v70-nec
Packit Service 102f81
		os=-sysv
Packit Service 102f81
		;;
Packit Service 102f81
	next | m*-next )
Packit Service 102f81
		basic_machine=m68k-next
Packit Service 102f81
		case $os in
Packit Service 102f81
		    -nextstep* )
Packit Service 102f81
			;;
Packit Service 102f81
		    -ns2*)
Packit Service 102f81
		      os=-nextstep2
Packit Service 102f81
			;;
Packit Service 102f81
		    *)
Packit Service 102f81
		      os=-nextstep3
Packit Service 102f81
			;;
Packit Service 102f81
		esac
Packit Service 102f81
		;;
Packit Service 102f81
	nh3000)
Packit Service 102f81
		basic_machine=m68k-harris
Packit Service 102f81
		os=-cxux
Packit Service 102f81
		;;
Packit Service 102f81
	nh[45]000)
Packit Service 102f81
		basic_machine=m88k-harris
Packit Service 102f81
		os=-cxux
Packit Service 102f81
		;;
Packit Service 102f81
	nindy960)
Packit Service 102f81
		basic_machine=i960-intel
Packit Service 102f81
		os=-nindy
Packit Service 102f81
		;;
Packit Service 102f81
	mon960)
Packit Service 102f81
		basic_machine=i960-intel
Packit Service 102f81
		os=-mon960
Packit Service 102f81
		;;
Packit Service 102f81
	nonstopux)
Packit Service 102f81
		basic_machine=mips-compaq
Packit Service 102f81
		os=-nonstopux
Packit Service 102f81
		;;
Packit Service 102f81
	np1)
Packit Service 102f81
		basic_machine=np1-gould
Packit Service 102f81
		;;
Packit Service 102f81
	nsr-tandem)
Packit Service 102f81
		basic_machine=nsr-tandem
Packit Service 102f81
		;;
Packit Service 102f81
	op50n-* | op60c-*)
Packit Service 102f81
		basic_machine=hppa1.1-oki
Packit Service 102f81
		os=-proelf
Packit Service 102f81
		;;
Packit Service 102f81
	openrisc | openrisc-*)
Packit Service 102f81
		basic_machine=or32-unknown
Packit Service 102f81
		;;
Packit Service 102f81
	os400)
Packit Service 102f81
		basic_machine=powerpc-ibm
Packit Service 102f81
		os=-os400
Packit Service 102f81
		;;
Packit Service 102f81
	OSE68000 | ose68000)
Packit Service 102f81
		basic_machine=m68000-ericsson
Packit Service 102f81
		os=-ose
Packit Service 102f81
		;;
Packit Service 102f81
	os68k)
Packit Service 102f81
		basic_machine=m68k-none
Packit Service 102f81
		os=-os68k
Packit Service 102f81
		;;
Packit Service 102f81
	pa-hitachi)
Packit Service 102f81
		basic_machine=hppa1.1-hitachi
Packit Service 102f81
		os=-hiuxwe2
Packit Service 102f81
		;;
Packit Service 102f81
	paragon)
Packit Service 102f81
		basic_machine=i860-intel
Packit Service 102f81
		os=-osf
Packit Service 102f81
		;;
Packit Service 102f81
	pbd)
Packit Service 102f81
		basic_machine=sparc-tti
Packit Service 102f81
		;;
Packit Service 102f81
	pbb)
Packit Service 102f81
		basic_machine=m68k-tti
Packit Service 102f81
		;;
Packit Service 102f81
	pc532 | pc532-*)
Packit Service 102f81
		basic_machine=ns32k-pc532
Packit Service 102f81
		;;
Packit Service 102f81
	pentium | p5 | k5 | k6 | nexgen | viac3)
Packit Service 102f81
		basic_machine=i586-pc
Packit Service 102f81
		;;
Packit Service 102f81
	pentiumpro | p6 | 6x86 | athlon | athlon_*)
Packit Service 102f81
		basic_machine=i686-pc
Packit Service 102f81
		;;
Packit Service 102f81
	pentiumii | pentium2 | pentiumiii | pentium3)
Packit Service 102f81
		basic_machine=i686-pc
Packit Service 102f81
		;;
Packit Service 102f81
	pentium4)
Packit Service 102f81
		basic_machine=i786-pc
Packit Service 102f81
		;;
Packit Service 102f81
	pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
Packit Service 102f81
		basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
Packit Service 102f81
		;;
Packit Service 102f81
	pentiumpro-* | p6-* | 6x86-* | athlon-*)
Packit Service 102f81
		basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
Packit Service 102f81
		;;
Packit Service 102f81
	pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
Packit Service 102f81
		basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
Packit Service 102f81
		;;
Packit Service 102f81
	pentium4-*)
Packit Service 102f81
		basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
Packit Service 102f81
		;;
Packit Service 102f81
	pn)
Packit Service 102f81
		basic_machine=pn-gould
Packit Service 102f81
		;;
Packit Service 102f81
	power)	basic_machine=power-ibm
Packit Service 102f81
		;;
Packit Service 102f81
	ppc)	basic_machine=powerpc-unknown
Packit Service 102f81
		;;
Packit Service 102f81
	ppc-*)	basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
Packit Service 102f81
		;;
Packit Service 102f81
	ppcle | powerpclittle | ppc-le | powerpc-little)
Packit Service 102f81
		basic_machine=powerpcle-unknown
Packit Service 102f81
		;;
Packit Service 102f81
	ppcle-* | powerpclittle-*)
Packit Service 102f81
		basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
Packit Service 102f81
		;;
Packit Service 102f81
	ppc64)	basic_machine=powerpc64-unknown
Packit Service 102f81
		;;
Packit Service 102f81
	ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
Packit Service 102f81
		;;
Packit Service 102f81
	ppc64le | powerpc64little | ppc64-le | powerpc64-little)
Packit Service 102f81
		basic_machine=powerpc64le-unknown
Packit Service 102f81
		;;
Packit Service 102f81
	ppc64le-* | powerpc64little-*)
Packit Service 102f81
		basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
Packit Service 102f81
		;;
Packit Service 102f81
	ps2)
Packit Service 102f81
		basic_machine=i386-ibm
Packit Service 102f81
		;;
Packit Service 102f81
	pw32)
Packit Service 102f81
		basic_machine=i586-unknown
Packit Service 102f81
		os=-pw32
Packit Service 102f81
		;;
Packit Service 102f81
	rom68k)
Packit Service 102f81
		basic_machine=m68k-rom68k
Packit Service 102f81
		os=-coff
Packit Service 102f81
		;;
Packit Service 102f81
	rm[46]00)
Packit Service 102f81
		basic_machine=mips-siemens
Packit Service 102f81
		;;
Packit Service 102f81
	rtpc | rtpc-*)
Packit Service 102f81
		basic_machine=romp-ibm
Packit Service 102f81
		;;
Packit Service 102f81
	s390 | s390-*)
Packit Service 102f81
		basic_machine=s390-ibm
Packit Service 102f81
		;;
Packit Service 102f81
	s390x | s390x-*)
Packit Service 102f81
		basic_machine=s390x-ibm
Packit Service 102f81
		;;
Packit Service 102f81
	sa29200)
Packit Service 102f81
		basic_machine=a29k-amd
Packit Service 102f81
		os=-udi
Packit Service 102f81
		;;
Packit Service 102f81
	sb1)
Packit Service 102f81
		basic_machine=mipsisa64sb1-unknown
Packit Service 102f81
		;;
Packit Service 102f81
	sb1el)
Packit Service 102f81
		basic_machine=mipsisa64sb1el-unknown
Packit Service 102f81
		;;
Packit Service 102f81
	sei)
Packit Service 102f81
		basic_machine=mips-sei
Packit Service 102f81
		os=-seiux
Packit Service 102f81
		;;
Packit Service 102f81
	sequent)
Packit Service 102f81
		basic_machine=i386-sequent
Packit Service 102f81
		;;
Packit Service 102f81
	sh)
Packit Service 102f81
		basic_machine=sh-hitachi
Packit Service 102f81
		os=-hms
Packit Service 102f81
		;;
Packit Service 102f81
	sh64)
Packit Service 102f81
		basic_machine=sh64-unknown
Packit Service 102f81
		;;
Packit Service 102f81
	sparclite-wrs | simso-wrs)
Packit Service 102f81
		basic_machine=sparclite-wrs
Packit Service 102f81
		os=-vxworks
Packit Service 102f81
		;;
Packit Service 102f81
	sps7)
Packit Service 102f81
		basic_machine=m68k-bull
Packit Service 102f81
		os=-sysv2
Packit Service 102f81
		;;
Packit Service 102f81
	spur)
Packit Service 102f81
		basic_machine=spur-unknown
Packit Service 102f81
		;;
Packit Service 102f81
	st2000)
Packit Service 102f81
		basic_machine=m68k-tandem
Packit Service 102f81
		;;
Packit Service 102f81
	stratus)
Packit Service 102f81
		basic_machine=i860-stratus
Packit Service 102f81
		os=-sysv4
Packit Service 102f81
		;;
Packit Service 102f81
	sun2)
Packit Service 102f81
		basic_machine=m68000-sun
Packit Service 102f81
		;;
Packit Service 102f81
	sun2os3)
Packit Service 102f81
		basic_machine=m68000-sun
Packit Service 102f81
		os=-sunos3
Packit Service 102f81
		;;
Packit Service 102f81
	sun2os4)
Packit Service 102f81
		basic_machine=m68000-sun
Packit Service 102f81
		os=-sunos4
Packit Service 102f81
		;;
Packit Service 102f81
	sun3os3)
Packit Service 102f81
		basic_machine=m68k-sun
Packit Service 102f81
		os=-sunos3
Packit Service 102f81
		;;
Packit Service 102f81
	sun3os4)
Packit Service 102f81
		basic_machine=m68k-sun
Packit Service 102f81
		os=-sunos4
Packit Service 102f81
		;;
Packit Service 102f81
	sun4os3)
Packit Service 102f81
		basic_machine=sparc-sun
Packit Service 102f81
		os=-sunos3
Packit Service 102f81
		;;
Packit Service 102f81
	sun4os4)
Packit Service 102f81
		basic_machine=sparc-sun
Packit Service 102f81
		os=-sunos4
Packit Service 102f81
		;;
Packit Service 102f81
	sun4sol2)
Packit Service 102f81
		basic_machine=sparc-sun
Packit Service 102f81
		os=-solaris2
Packit Service 102f81
		;;
Packit Service 102f81
	sun3 | sun3-*)
Packit Service 102f81
		basic_machine=m68k-sun
Packit Service 102f81
		;;
Packit Service 102f81
	sun4)
Packit Service 102f81
		basic_machine=sparc-sun
Packit Service 102f81
		;;
Packit Service 102f81
	sun386 | sun386i | roadrunner)
Packit Service 102f81
		basic_machine=i386-sun
Packit Service 102f81
		;;
Packit Service 102f81
	sv1)
Packit Service 102f81
		basic_machine=sv1-cray
Packit Service 102f81
		os=-unicos
Packit Service 102f81
		;;
Packit Service 102f81
	symmetry)
Packit Service 102f81
		basic_machine=i386-sequent
Packit Service 102f81
		os=-dynix
Packit Service 102f81
		;;
Packit Service 102f81
	t3e)
Packit Service 102f81
		basic_machine=alphaev5-cray
Packit Service 102f81
		os=-unicos
Packit Service 102f81
		;;
Packit Service 102f81
	t90)
Packit Service 102f81
		basic_machine=t90-cray
Packit Service 102f81
		os=-unicos
Packit Service 102f81
		;;
Packit Service 102f81
	tic54x | c54x*)
Packit Service 102f81
		basic_machine=tic54x-unknown
Packit Service 102f81
		os=-coff
Packit Service 102f81
		;;
Packit Service 102f81
	tic55x | c55x*)
Packit Service 102f81
		basic_machine=tic55x-unknown
Packit Service 102f81
		os=-coff
Packit Service 102f81
		;;
Packit Service 102f81
	tic6x | c6x*)
Packit Service 102f81
		basic_machine=tic6x-unknown
Packit Service 102f81
		os=-coff
Packit Service 102f81
		;;
Packit Service 102f81
	tx39)
Packit Service 102f81
		basic_machine=mipstx39-unknown
Packit Service 102f81
		;;
Packit Service 102f81
	tx39el)
Packit Service 102f81
		basic_machine=mipstx39el-unknown
Packit Service 102f81
		;;
Packit Service 102f81
	toad1)
Packit Service 102f81
		basic_machine=pdp10-xkl
Packit Service 102f81
		os=-tops20
Packit Service 102f81
		;;
Packit Service 102f81
	tower | tower-32)
Packit Service 102f81
		basic_machine=m68k-ncr
Packit Service 102f81
		;;
Packit Service 102f81
	tpf)
Packit Service 102f81
		basic_machine=s390x-ibm
Packit Service 102f81
		os=-tpf
Packit Service 102f81
		;;
Packit Service 102f81
	udi29k)
Packit Service 102f81
		basic_machine=a29k-amd
Packit Service 102f81
		os=-udi
Packit Service 102f81
		;;
Packit Service 102f81
	ultra3)
Packit Service 102f81
		basic_machine=a29k-nyu
Packit Service 102f81
		os=-sym1
Packit Service 102f81
		;;
Packit Service 102f81
	v810 | necv810)
Packit Service 102f81
		basic_machine=v810-nec
Packit Service 102f81
		os=-none
Packit Service 102f81
		;;
Packit Service 102f81
	vaxv)
Packit Service 102f81
		basic_machine=vax-dec
Packit Service 102f81
		os=-sysv
Packit Service 102f81
		;;
Packit Service 102f81
	vms)
Packit Service 102f81
		basic_machine=vax-dec
Packit Service 102f81
		os=-vms
Packit Service 102f81
		;;
Packit Service 102f81
	vpp*|vx|vx-*)
Packit Service 102f81
		basic_machine=f301-fujitsu
Packit Service 102f81
		;;
Packit Service 102f81
	vxworks960)
Packit Service 102f81
		basic_machine=i960-wrs
Packit Service 102f81
		os=-vxworks
Packit Service 102f81
		;;
Packit Service 102f81
	vxworks68)
Packit Service 102f81
		basic_machine=m68k-wrs
Packit Service 102f81
		os=-vxworks
Packit Service 102f81
		;;
Packit Service 102f81
	vxworks29k)
Packit Service 102f81
		basic_machine=a29k-wrs
Packit Service 102f81
		os=-vxworks
Packit Service 102f81
		;;
Packit Service 102f81
	w65*)
Packit Service 102f81
		basic_machine=w65-wdc
Packit Service 102f81
		os=-none
Packit Service 102f81
		;;
Packit Service 102f81
	w89k-*)
Packit Service 102f81
		basic_machine=hppa1.1-winbond
Packit Service 102f81
		os=-proelf
Packit Service 102f81
		;;
Packit Service 102f81
	xbox)
Packit Service 102f81
		basic_machine=i686-pc
Packit Service 102f81
		os=-mingw32
Packit Service 102f81
		;;
Packit Service 102f81
	xps | xps100)
Packit Service 102f81
		basic_machine=xps100-honeywell
Packit Service 102f81
		;;
Packit Service 102f81
	ymp)
Packit Service 102f81
		basic_machine=ymp-cray
Packit Service 102f81
		os=-unicos
Packit Service 102f81
		;;
Packit Service 102f81
	z8k-*-coff)
Packit Service 102f81
		basic_machine=z8k-unknown
Packit Service 102f81
		os=-sim
Packit Service 102f81
		;;
Packit Service 102f81
	none)
Packit Service 102f81
		basic_machine=none-none
Packit Service 102f81
		os=-none
Packit Service 102f81
		;;
Packit Service 102f81
Packit Service 102f81
# Here we handle the default manufacturer of certain CPU types.  It is in
Packit Service 102f81
# some cases the only manufacturer, in others, it is the most popular.
Packit Service 102f81
	w89k)
Packit Service 102f81
		basic_machine=hppa1.1-winbond
Packit Service 102f81
		;;
Packit Service 102f81
	op50n)
Packit Service 102f81
		basic_machine=hppa1.1-oki
Packit Service 102f81
		;;
Packit Service 102f81
	op60c)
Packit Service 102f81
		basic_machine=hppa1.1-oki
Packit Service 102f81
		;;
Packit Service 102f81
	romp)
Packit Service 102f81
		basic_machine=romp-ibm
Packit Service 102f81
		;;
Packit Service 102f81
	mmix)
Packit Service 102f81
		basic_machine=mmix-knuth
Packit Service 102f81
		;;
Packit Service 102f81
	rs6000)
Packit Service 102f81
		basic_machine=rs6000-ibm
Packit Service 102f81
		;;
Packit Service 102f81
	vax)
Packit Service 102f81
		basic_machine=vax-dec
Packit Service 102f81
		;;
Packit Service 102f81
	pdp10)
Packit Service 102f81
		# there are many clones, so DEC is not a safe bet
Packit Service 102f81
		basic_machine=pdp10-unknown
Packit Service 102f81
		;;
Packit Service 102f81
	pdp11)
Packit Service 102f81
		basic_machine=pdp11-dec
Packit Service 102f81
		;;
Packit Service 102f81
	we32k)
Packit Service 102f81
		basic_machine=we32k-att
Packit Service 102f81
		;;
Packit Service 102f81
	sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele)
Packit Service 102f81
		basic_machine=sh-unknown
Packit Service 102f81
		;;
Packit Service 102f81
	sparc | sparcv8 | sparcv9 | sparcv9b)
Packit Service 102f81
		basic_machine=sparc-sun
Packit Service 102f81
		;;
Packit Service 102f81
	cydra)
Packit Service 102f81
		basic_machine=cydra-cydrome
Packit Service 102f81
		;;
Packit Service 102f81
	orion)
Packit Service 102f81
		basic_machine=orion-highlevel
Packit Service 102f81
		;;
Packit Service 102f81
	orion105)
Packit Service 102f81
		basic_machine=clipper-highlevel
Packit Service 102f81
		;;
Packit Service 102f81
	mac | mpw | mac-mpw)
Packit Service 102f81
		basic_machine=m68k-apple
Packit Service 102f81
		;;
Packit Service 102f81
	pmac | pmac-mpw)
Packit Service 102f81
		basic_machine=powerpc-apple
Packit Service 102f81
		;;
Packit Service 102f81
	*-unknown)
Packit Service 102f81
		# Make sure to match an already-canonicalized machine name.
Packit Service 102f81
		;;
Packit Service 102f81
	*)
Packit Service 102f81
		echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
Packit Service 102f81
		exit 1
Packit Service 102f81
		;;
Packit Service 102f81
esac
Packit Service 102f81
Packit Service 102f81
# Here we canonicalize certain aliases for manufacturers.
Packit Service 102f81
case $basic_machine in
Packit Service 102f81
	*-digital*)
Packit Service 102f81
		basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'`
Packit Service 102f81
		;;
Packit Service 102f81
	*-commodore*)
Packit Service 102f81
		basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'`
Packit Service 102f81
		;;
Packit Service 102f81
	*)
Packit Service 102f81
		;;
Packit Service 102f81
esac
Packit Service 102f81
Packit Service 102f81
# Decode manufacturer-specific aliases for certain operating systems.
Packit Service 102f81
Packit Service 102f81
if [ x"$os" != x"" ]
Packit Service 102f81
then
Packit Service 102f81
case $os in
Packit Service 102f81
        # First match some system type aliases
Packit Service 102f81
        # that might get confused with valid system types.
Packit Service 102f81
	# -solaris* is a basic system type, with this one exception.
Packit Service 102f81
	-solaris1 | -solaris1.*)
Packit Service 102f81
		os=`echo $os | sed -e 's|solaris1|sunos4|'`
Packit Service 102f81
		;;
Packit Service 102f81
	-solaris)
Packit Service 102f81
		os=-solaris2
Packit Service 102f81
		;;
Packit Service 102f81
	-svr4*)
Packit Service 102f81
		os=-sysv4
Packit Service 102f81
		;;
Packit Service 102f81
	-unixware*)
Packit Service 102f81
		os=-sysv4.2uw
Packit Service 102f81
		;;
Packit Service 102f81
	-gnu/linux*)
Packit Service 102f81
		os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
Packit Service 102f81
		;;
Packit Service 102f81
	# First accept the basic system types.
Packit Service 102f81
	# The portable systems comes first.
Packit Service 102f81
	# Each alternative MUST END IN A *, to match a version number.
Packit Service 102f81
	# -sysv* is not here because it comes later, after sysvr4.
Packit Service 102f81
	-gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
Packit Service 102f81
	      | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
Packit Service 102f81
	      | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
Packit Service 102f81
	      | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
Packit Service 102f81
	      | -aos* \
Packit Service 102f81
	      | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
Packit Service 102f81
	      | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
Packit Service 102f81
	      | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* | -openbsd* \
Packit Service 102f81
	      | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
Packit Service 102f81
	      | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
Packit Service 102f81
	      | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
Packit Service 102f81
	      | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
Packit Service 102f81
	      | -chorusos* | -chorusrdb* \
Packit Service 102f81
	      | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
Packit Service 102f81
	      | -mingw32* | -linux-gnu* | -linux-uclibc* | -uxpv* | -beos* | -mpeix* | -udk* \
Packit Service 102f81
	      | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
Packit Service 102f81
	      | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
Packit Service 102f81
	      | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
Packit Service 102f81
	      | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
Packit Service 102f81
	      | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
Packit Service 102f81
	      | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
Packit Service 102f81
	      | -skyos* | -haiku*)
Packit Service 102f81
	# Remember, each alternative MUST END IN *, to match a version number.
Packit Service 102f81
		;;
Packit Service 102f81
	-qnx*)
Packit Service 102f81
		case $basic_machine in
Packit Service 102f81
		    x86-* | i*86-*)
Packit Service 102f81
			;;
Packit Service 102f81
		    *)
Packit Service 102f81
			os=-nto$os
Packit Service 102f81
			;;
Packit Service 102f81
		esac
Packit Service 102f81
		;;
Packit Service 102f81
	-nto-qnx*)
Packit Service 102f81
		;;
Packit Service 102f81
	-nto*)
Packit Service 102f81
		os=`echo $os | sed -e 's|nto|nto-qnx|'`
Packit Service 102f81
		;;
Packit Service 102f81
	-sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
Packit Service 102f81
	      | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
Packit Service 102f81
	      | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
Packit Service 102f81
		;;
Packit Service 102f81
	-mac*)
Packit Service 102f81
		os=`echo $os | sed -e 's|mac|macos|'`
Packit Service 102f81
		;;
Packit Service 102f81
	-linux-dietlibc)
Packit Service 102f81
		os=-linux-dietlibc
Packit Service 102f81
		;;
Packit Service 102f81
	-linux*)
Packit Service 102f81
		os=`echo $os | sed -e 's|linux|linux-gnu|'`
Packit Service 102f81
		;;
Packit Service 102f81
	-sunos5*)
Packit Service 102f81
		os=`echo $os | sed -e 's|sunos5|solaris2|'`
Packit Service 102f81
		;;
Packit Service 102f81
	-sunos6*)
Packit Service 102f81
		os=`echo $os | sed -e 's|sunos6|solaris3|'`
Packit Service 102f81
		;;
Packit Service 102f81
	-opened*)
Packit Service 102f81
		os=-openedition
Packit Service 102f81
		;;
Packit Service 102f81
        -os400*)
Packit Service 102f81
		os=-os400
Packit Service 102f81
		;;
Packit Service 102f81
	-wince*)
Packit Service 102f81
		os=-wince
Packit Service 102f81
		;;
Packit Service 102f81
	-osfrose*)
Packit Service 102f81
		os=-osfrose
Packit Service 102f81
		;;
Packit Service 102f81
	-osf*)
Packit Service 102f81
		os=-osf
Packit Service 102f81
		;;
Packit Service 102f81
	-utek*)
Packit Service 102f81
		os=-bsd
Packit Service 102f81
		;;
Packit Service 102f81
	-dynix*)
Packit Service 102f81
		os=-bsd
Packit Service 102f81
		;;
Packit Service 102f81
	-acis*)
Packit Service 102f81
		os=-aos
Packit Service 102f81
		;;
Packit Service 102f81
	-atheos*)
Packit Service 102f81
		os=-atheos
Packit Service 102f81
		;;
Packit Service 102f81
	-syllable*)
Packit Service 102f81
		os=-syllable
Packit Service 102f81
		;;
Packit Service 102f81
	-386bsd)
Packit Service 102f81
		os=-bsd
Packit Service 102f81
		;;
Packit Service 102f81
	-ctix* | -uts*)
Packit Service 102f81
		os=-sysv
Packit Service 102f81
		;;
Packit Service 102f81
	-nova*)
Packit Service 102f81
		os=-rtmk-nova
Packit Service 102f81
		;;
Packit Service 102f81
	-ns2 )
Packit Service 102f81
		os=-nextstep2
Packit Service 102f81
		;;
Packit Service 102f81
	-nsk*)
Packit Service 102f81
		os=-nsk
Packit Service 102f81
		;;
Packit Service 102f81
	# Preserve the version number of sinix5.
Packit Service 102f81
	-sinix5.*)
Packit Service 102f81
		os=`echo $os | sed -e 's|sinix|sysv|'`
Packit Service 102f81
		;;
Packit Service 102f81
	-sinix*)
Packit Service 102f81
		os=-sysv4
Packit Service 102f81
		;;
Packit Service 102f81
        -tpf*)
Packit Service 102f81
		os=-tpf
Packit Service 102f81
		;;
Packit Service 102f81
	-triton*)
Packit Service 102f81
		os=-sysv3
Packit Service 102f81
		;;
Packit Service 102f81
	-oss*)
Packit Service 102f81
		os=-sysv3
Packit Service 102f81
		;;
Packit Service 102f81
	-svr4)
Packit Service 102f81
		os=-sysv4
Packit Service 102f81
		;;
Packit Service 102f81
	-svr3)
Packit Service 102f81
		os=-sysv3
Packit Service 102f81
		;;
Packit Service 102f81
	-sysvr4)
Packit Service 102f81
		os=-sysv4
Packit Service 102f81
		;;
Packit Service 102f81
	# This must come after -sysvr4.
Packit Service 102f81
	-sysv*)
Packit Service 102f81
		;;
Packit Service 102f81
	-ose*)
Packit Service 102f81
		os=-ose
Packit Service 102f81
		;;
Packit Service 102f81
	-es1800*)
Packit Service 102f81
		os=-ose
Packit Service 102f81
		;;
Packit Service 102f81
	-xenix)
Packit Service 102f81
		os=-xenix
Packit Service 102f81
		;;
Packit Service 102f81
	-*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
Packit Service 102f81
		os=-mint
Packit Service 102f81
		;;
Packit Service 102f81
	-aros*)
Packit Service 102f81
		os=-aros
Packit Service 102f81
		;;
Packit Service 102f81
	-kaos*)
Packit Service 102f81
		os=-kaos
Packit Service 102f81
		;;
Packit Service 102f81
	-zvmoe)
Packit Service 102f81
		os=-zvmoe
Packit Service 102f81
		;;
Packit Service 102f81
	-none)
Packit Service 102f81
		;;
Packit Service 102f81
	*)
Packit Service 102f81
		# Get rid of the `-' at the beginning of $os.
Packit Service 102f81
		os=`echo $os | sed 's/[^-]*-//'`
Packit Service 102f81
		echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2
Packit Service 102f81
		exit 1
Packit Service 102f81
		;;
Packit Service 102f81
esac
Packit Service 102f81
else
Packit Service 102f81
Packit Service 102f81
# Here we handle the default operating systems that come with various machines.
Packit Service 102f81
# The value should be what the vendor currently ships out the door with their
Packit Service 102f81
# machine or put another way, the most popular os provided with the machine.
Packit Service 102f81
Packit Service 102f81
# Note that if you're going to try to match "-MANUFACTURER" here (say,
Packit Service 102f81
# "-sun"), then you have to tell the case statement up towards the top
Packit Service 102f81
# that MANUFACTURER isn't an operating system.  Otherwise, code above
Packit Service 102f81
# will signal an error saying that MANUFACTURER isn't an operating
Packit Service 102f81
# system, and we'll never get to this point.
Packit Service 102f81
Packit Service 102f81
case $basic_machine in
Packit Service 102f81
	*-acorn)
Packit Service 102f81
		os=-riscix1.2
Packit Service 102f81
		;;
Packit Service 102f81
	arm*-rebel)
Packit Service 102f81
		os=-linux
Packit Service 102f81
		;;
Packit Service 102f81
	arm*-semi)
Packit Service 102f81
		os=-aout
Packit Service 102f81
		;;
Packit Service 102f81
    c4x-* | tic4x-*)
Packit Service 102f81
        os=-coff
Packit Service 102f81
        ;;
Packit Service 102f81
	# This must come before the *-dec entry.
Packit Service 102f81
	pdp10-*)
Packit Service 102f81
		os=-tops20
Packit Service 102f81
		;;
Packit Service 102f81
	pdp11-*)
Packit Service 102f81
		os=-none
Packit Service 102f81
		;;
Packit Service 102f81
	*-dec | vax-*)
Packit Service 102f81
		os=-ultrix4.2
Packit Service 102f81
		;;
Packit Service 102f81
	m68*-apollo)
Packit Service 102f81
		os=-domain
Packit Service 102f81
		;;
Packit Service 102f81
	i386-sun)
Packit Service 102f81
		os=-sunos4.0.2
Packit Service 102f81
		;;
Packit Service 102f81
	m68000-sun)
Packit Service 102f81
		os=-sunos3
Packit Service 102f81
		# This also exists in the configure program, but was not the
Packit Service 102f81
		# default.
Packit Service 102f81
		# os=-sunos4
Packit Service 102f81
		;;
Packit Service 102f81
	m68*-cisco)
Packit Service 102f81
		os=-aout
Packit Service 102f81
		;;
Packit Service 102f81
	mips*-cisco)
Packit Service 102f81
		os=-elf
Packit Service 102f81
		;;
Packit Service 102f81
	mips*-*)
Packit Service 102f81
		os=-elf
Packit Service 102f81
		;;
Packit Service 102f81
	or32-*)
Packit Service 102f81
		os=-coff
Packit Service 102f81
		;;
Packit Service 102f81
	*-tti)	# must be before sparc entry or we get the wrong os.
Packit Service 102f81
		os=-sysv3
Packit Service 102f81
		;;
Packit Service 102f81
	sparc-* | *-sun)
Packit Service 102f81
		os=-sunos4.1.1
Packit Service 102f81
		;;
Packit Service 102f81
	*-be)
Packit Service 102f81
		os=-beos
Packit Service 102f81
		;;
Packit Service 102f81
	*-haiku)
Packit Service 102f81
		os=-haiku
Packit Service 102f81
		;;
Packit Service 102f81
	*-ibm)
Packit Service 102f81
		os=-aix
Packit Service 102f81
		;;
Packit Service 102f81
    	*-knuth)
Packit Service 102f81
		os=-mmixware
Packit Service 102f81
		;;
Packit Service 102f81
	*-wec)
Packit Service 102f81
		os=-proelf
Packit Service 102f81
		;;
Packit Service 102f81
	*-winbond)
Packit Service 102f81
		os=-proelf
Packit Service 102f81
		;;
Packit Service 102f81
	*-oki)
Packit Service 102f81
		os=-proelf
Packit Service 102f81
		;;
Packit Service 102f81
	*-hp)
Packit Service 102f81
		os=-hpux
Packit Service 102f81
		;;
Packit Service 102f81
	*-hitachi)
Packit Service 102f81
		os=-hiux
Packit Service 102f81
		;;
Packit Service 102f81
	i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent)
Packit Service 102f81
		os=-sysv
Packit Service 102f81
		;;
Packit Service 102f81
	*-cbm)
Packit Service 102f81
		os=-amigaos
Packit Service 102f81
		;;
Packit Service 102f81
	*-dg)
Packit Service 102f81
		os=-dgux
Packit Service 102f81
		;;
Packit Service 102f81
	*-dolphin)
Packit Service 102f81
		os=-sysv3
Packit Service 102f81
		;;
Packit Service 102f81
	m68k-ccur)
Packit Service 102f81
		os=-rtu
Packit Service 102f81
		;;
Packit Service 102f81
	m88k-omron*)
Packit Service 102f81
		os=-luna
Packit Service 102f81
		;;
Packit Service 102f81
	*-next )
Packit Service 102f81
		os=-nextstep
Packit Service 102f81
		;;
Packit Service 102f81
	*-sequent)
Packit Service 102f81
		os=-ptx
Packit Service 102f81
		;;
Packit Service 102f81
	*-crds)
Packit Service 102f81
		os=-unos
Packit Service 102f81
		;;
Packit Service 102f81
	*-ns)
Packit Service 102f81
		os=-genix
Packit Service 102f81
		;;
Packit Service 102f81
	i370-*)
Packit Service 102f81
		os=-mvs
Packit Service 102f81
		;;
Packit Service 102f81
	*-next)
Packit Service 102f81
		os=-nextstep3
Packit Service 102f81
		;;
Packit Service 102f81
	*-gould)
Packit Service 102f81
		os=-sysv
Packit Service 102f81
		;;
Packit Service 102f81
	*-highlevel)
Packit Service 102f81
		os=-bsd
Packit Service 102f81
		;;
Packit Service 102f81
	*-encore)
Packit Service 102f81
		os=-bsd
Packit Service 102f81
		;;
Packit Service 102f81
	*-sgi)
Packit Service 102f81
		os=-irix
Packit Service 102f81
		;;
Packit Service 102f81
	*-siemens)
Packit Service 102f81
		os=-sysv4
Packit Service 102f81
		;;
Packit Service 102f81
	*-masscomp)
Packit Service 102f81
		os=-rtu
Packit Service 102f81
		;;
Packit Service 102f81
	f30[01]-fujitsu | f700-fujitsu)
Packit Service 102f81
		os=-uxpv
Packit Service 102f81
		;;
Packit Service 102f81
	*-rom68k)
Packit Service 102f81
		os=-coff
Packit Service 102f81
		;;
Packit Service 102f81
	*-*bug)
Packit Service 102f81
		os=-coff
Packit Service 102f81
		;;
Packit Service 102f81
	*-apple)
Packit Service 102f81
		os=-macos
Packit Service 102f81
		;;
Packit Service 102f81
	*-atari*)
Packit Service 102f81
		os=-mint
Packit Service 102f81
		;;
Packit Service 102f81
	*)
Packit Service 102f81
		os=-none
Packit Service 102f81
		;;
Packit Service 102f81
esac
Packit Service 102f81
fi
Packit Service 102f81
Packit Service 102f81
# Here we handle the case where we know the os, and the CPU type, but not the
Packit Service 102f81
# manufacturer.  We pick the logical manufacturer.
Packit Service 102f81
vendor=unknown
Packit Service 102f81
case $basic_machine in
Packit Service 102f81
	*-unknown)
Packit Service 102f81
		case $os in
Packit Service 102f81
			-riscix*)
Packit Service 102f81
				vendor=acorn
Packit Service 102f81
				;;
Packit Service 102f81
			-sunos*)
Packit Service 102f81
				vendor=sun
Packit Service 102f81
				;;
Packit Service 102f81
			-aix*)
Packit Service 102f81
				vendor=ibm
Packit Service 102f81
				;;
Packit Service 102f81
			-beos*)
Packit Service 102f81
				vendor=be
Packit Service 102f81
				;;
Packit Service 102f81
			-hpux*)
Packit Service 102f81
				vendor=hp
Packit Service 102f81
				;;
Packit Service 102f81
			-mpeix*)
Packit Service 102f81
				vendor=hp
Packit Service 102f81
				;;
Packit Service 102f81
			-hiux*)
Packit Service 102f81
				vendor=hitachi
Packit Service 102f81
				;;
Packit Service 102f81
			-unos*)
Packit Service 102f81
				vendor=crds
Packit Service 102f81
				;;
Packit Service 102f81
			-dgux*)
Packit Service 102f81
				vendor=dg
Packit Service 102f81
				;;
Packit Service 102f81
			-luna*)
Packit Service 102f81
				vendor=omron
Packit Service 102f81
				;;
Packit Service 102f81
			-genix*)
Packit Service 102f81
				vendor=ns
Packit Service 102f81
				;;
Packit Service 102f81
			-mvs* | -opened*)
Packit Service 102f81
				vendor=ibm
Packit Service 102f81
				;;
Packit Service 102f81
			-os400*)
Packit Service 102f81
				vendor=ibm
Packit Service 102f81
				;;
Packit Service 102f81
			-ptx*)
Packit Service 102f81
				vendor=sequent
Packit Service 102f81
				;;
Packit Service 102f81
			-tpf*)
Packit Service 102f81
				vendor=ibm
Packit Service 102f81
				;;
Packit Service 102f81
			-vxsim* | -vxworks* | -windiss*)
Packit Service 102f81
				vendor=wrs
Packit Service 102f81
				;;
Packit Service 102f81
			-aux*)
Packit Service 102f81
				vendor=apple
Packit Service 102f81
				;;
Packit Service 102f81
			-hms*)
Packit Service 102f81
				vendor=hitachi
Packit Service 102f81
				;;
Packit Service 102f81
			-mpw* | -macos*)
Packit Service 102f81
				vendor=apple
Packit Service 102f81
				;;
Packit Service 102f81
			-*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
Packit Service 102f81
				vendor=atari
Packit Service 102f81
				;;
Packit Service 102f81
			-vos*)
Packit Service 102f81
				vendor=stratus
Packit Service 102f81
				;;
Packit Service 102f81
		esac
Packit Service 102f81
		basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
Packit Service 102f81
		;;
Packit Service 102f81
esac
Packit Service 102f81
Packit Service 102f81
echo $basic_machine$os
Packit Service 102f81
exit
Packit Service 102f81
Packit Service 102f81
# Local variables:
Packit Service 102f81
# eval: (add-hook 'write-file-hooks 'time-stamp)
Packit Service 102f81
# time-stamp-start: "timestamp='"
Packit Service 102f81
# time-stamp-format: "%:y-%02m-%02d"
Packit Service 102f81
# time-stamp-end: "'"
Packit Service 102f81
# End: