config.sub
changeset 0 74212992fb08
child 28 6e53ad1f461e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/config.sub	Thu Apr 26 16:45:43 2001 +0000
     1.3 @@ -0,0 +1,1357 @@
     1.4 +#! /bin/sh
     1.5 +# Configuration validation subroutine script.
     1.6 +#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
     1.7 +#   Free Software Foundation, Inc.
     1.8 +
     1.9 +timestamp='2001-03-19'
    1.10 +
    1.11 +# This file is (in principle) common to ALL GNU software.
    1.12 +# The presence of a machine in this file suggests that SOME GNU software
    1.13 +# can handle that machine.  It does not imply ALL GNU software can.
    1.14 +#
    1.15 +# This file is free software; you can redistribute it and/or modify
    1.16 +# it under the terms of the GNU General Public License as published by
    1.17 +# the Free Software Foundation; either version 2 of the License, or
    1.18 +# (at your option) any later version.
    1.19 +#
    1.20 +# This program is distributed in the hope that it will be useful,
    1.21 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
    1.22 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    1.23 +# GNU General Public License for more details.
    1.24 +#
    1.25 +# You should have received a copy of the GNU General Public License
    1.26 +# along with this program; if not, write to the Free Software
    1.27 +# Foundation, Inc., 59 Temple Place - Suite 330,
    1.28 +# Boston, MA 02111-1307, USA.
    1.29 +
    1.30 +# As a special exception to the GNU General Public License, if you
    1.31 +# distribute this file as part of a program that contains a
    1.32 +# configuration script generated by Autoconf, you may include it under
    1.33 +# the same distribution terms that you use for the rest of that program.
    1.34 +
    1.35 +# Please send patches to <config-patches@gnu.org>.
    1.36 +#
    1.37 +# Configuration subroutine to validate and canonicalize a configuration type.
    1.38 +# Supply the specified configuration type as an argument.
    1.39 +# If it is invalid, we print an error message on stderr and exit with code 1.
    1.40 +# Otherwise, we print the canonical config type on stdout and succeed.
    1.41 +
    1.42 +# This file is supposed to be the same for all GNU packages
    1.43 +# and recognize all the CPU types, system types and aliases
    1.44 +# that are meaningful with *any* GNU software.
    1.45 +# Each package is responsible for reporting which valid configurations
    1.46 +# it does not support.  The user should be able to distinguish
    1.47 +# a failure to support a valid configuration from a meaningless
    1.48 +# configuration.
    1.49 +
    1.50 +# The goal of this file is to map all the various variations of a given
    1.51 +# machine specification into a single specification in the form:
    1.52 +#	CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
    1.53 +# or in some cases, the newer four-part form:
    1.54 +#	CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
    1.55 +# It is wrong to echo any other type of specification.
    1.56 +
    1.57 +me=`echo "$0" | sed -e 's,.*/,,'`
    1.58 +
    1.59 +usage="\
    1.60 +Usage: $0 [OPTION] CPU-MFR-OPSYS
    1.61 +       $0 [OPTION] ALIAS
    1.62 +
    1.63 +Canonicalize a configuration name.
    1.64 +
    1.65 +Operation modes:
    1.66 +  -h, --help         print this help, then exit
    1.67 +  -t, --time-stamp   print date of last modification, then exit
    1.68 +  -v, --version      print version number, then exit
    1.69 +
    1.70 +Report bugs and patches to <config-patches@gnu.org>."
    1.71 +
    1.72 +version="\
    1.73 +GNU config.sub ($timestamp)
    1.74 +
    1.75 +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
    1.76 +Free Software Foundation, Inc.
    1.77 +
    1.78 +This is free software; see the source for copying conditions.  There is NO
    1.79 +warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
    1.80 +
    1.81 +help="
    1.82 +Try \`$me --help' for more information."
    1.83 +
    1.84 +# Parse command line
    1.85 +while test $# -gt 0 ; do
    1.86 +  case $1 in
    1.87 +    --time-stamp | --time* | -t )
    1.88 +       echo "$timestamp" ; exit 0 ;;
    1.89 +    --version | -v )
    1.90 +       echo "$version" ; exit 0 ;;
    1.91 +    --help | --h* | -h )
    1.92 +       echo "$usage"; exit 0 ;;
    1.93 +    -- )     # Stop option processing
    1.94 +       shift; break ;;
    1.95 +    - )	# Use stdin as input.
    1.96 +       break ;;
    1.97 +    -* )
    1.98 +       echo "$me: invalid option $1$help"
    1.99 +       exit 1 ;;
   1.100 +
   1.101 +    *local*)
   1.102 +       # First pass through any local machine types.
   1.103 +       echo $1
   1.104 +       exit 0;;
   1.105 +
   1.106 +    * )
   1.107 +       break ;;
   1.108 +  esac
   1.109 +done
   1.110 +
   1.111 +case $# in
   1.112 + 0) echo "$me: missing argument$help" >&2
   1.113 +    exit 1;;
   1.114 + 1) ;;
   1.115 + *) echo "$me: too many arguments$help" >&2
   1.116 +    exit 1;;
   1.117 +esac
   1.118 +
   1.119 +# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
   1.120 +# Here we must recognize all the valid KERNEL-OS combinations.
   1.121 +maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
   1.122 +case $maybe_os in
   1.123 +  nto-qnx* | linux-gnu* | storm-chaos* | os2-emx*)
   1.124 +    os=-$maybe_os
   1.125 +    basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
   1.126 +    ;;
   1.127 +  *)
   1.128 +    basic_machine=`echo $1 | sed 's/-[^-]*$//'`
   1.129 +    if [ $basic_machine != $1 ]
   1.130 +    then os=`echo $1 | sed 's/.*-/-/'`
   1.131 +    else os=; fi
   1.132 +    ;;
   1.133 +esac
   1.134 +
   1.135 +### Let's recognize common machines as not being operating systems so
   1.136 +### that things like config.sub decstation-3100 work.  We also
   1.137 +### recognize some manufacturers as not being operating systems, so we
   1.138 +### can provide default operating systems below.
   1.139 +case $os in
   1.140 +	-sun*os*)
   1.141 +		# Prevent following clause from handling this invalid input.
   1.142 +		;;
   1.143 +	-dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \
   1.144 +	-att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
   1.145 +	-unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
   1.146 +	-convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
   1.147 +	-c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
   1.148 +	-harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
   1.149 +	-apple | -axis)
   1.150 +		os=
   1.151 +		basic_machine=$1
   1.152 +		;;
   1.153 +	-sim | -cisco | -oki | -wec | -winbond)
   1.154 +		os=
   1.155 +		basic_machine=$1
   1.156 +		;;
   1.157 +	-scout)
   1.158 +		;;
   1.159 +	-wrs)
   1.160 +		os=-vxworks
   1.161 +		basic_machine=$1
   1.162 +		;;
   1.163 +	-hiux*)
   1.164 +		os=-hiuxwe2
   1.165 +		;;
   1.166 +	-sco5)
   1.167 +		os=-sco3.2v5
   1.168 +		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
   1.169 +		;;
   1.170 +	-sco4)
   1.171 +		os=-sco3.2v4
   1.172 +		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
   1.173 +		;;
   1.174 +	-sco3.2.[4-9]*)
   1.175 +		os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
   1.176 +		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
   1.177 +		;;
   1.178 +	-sco3.2v[4-9]*)
   1.179 +		# Don't forget version if it is 3.2v4 or newer.
   1.180 +		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
   1.181 +		;;
   1.182 +	-sco*)
   1.183 +		os=-sco3.2v2
   1.184 +		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
   1.185 +		;;
   1.186 +	-udk*)
   1.187 +		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
   1.188 +		;;
   1.189 +	-isc)
   1.190 +		os=-isc2.2
   1.191 +		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
   1.192 +		;;
   1.193 +	-clix*)
   1.194 +		basic_machine=clipper-intergraph
   1.195 +		;;
   1.196 +	-isc*)
   1.197 +		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
   1.198 +		;;
   1.199 +	-lynx*)
   1.200 +		os=-lynxos
   1.201 +		;;
   1.202 +	-ptx*)
   1.203 +		basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'`
   1.204 +		;;
   1.205 +	-windowsnt*)
   1.206 +		os=`echo $os | sed -e 's/windowsnt/winnt/'`
   1.207 +		;;
   1.208 +	-psos*)
   1.209 +		os=-psos
   1.210 +		;;
   1.211 +	-mint | -mint[0-9]*)
   1.212 +		basic_machine=m68k-atari
   1.213 +		os=-mint
   1.214 +		;;
   1.215 +esac
   1.216 +
   1.217 +# Decode aliases for certain CPU-COMPANY combinations.
   1.218 +case $basic_machine in
   1.219 +	# Recognize the basic CPU types without company name.
   1.220 +	# Some are omitted here because they have special meanings below.
   1.221 +	tahoe | i860 | ia64 | m32r | m68k | m68000 | m88k | ns32k | arc \
   1.222 +	        | arm | arme[lb] | arm[bl]e | armv[2345] | armv[345][lb] | strongarm | xscale \
   1.223 +		| pyramid | mn10200 | mn10300 | tron | a29k \
   1.224 +		| 580 | i960 | h8300 \
   1.225 +		| x86 | ppcbe | mipsbe | mipsle | shbe | shle \
   1.226 +		| hppa | hppa1.0 | hppa1.1 | hppa2.0 | hppa2.0w | hppa2.0n \
   1.227 +		| hppa64 \
   1.228 +		| alpha | alphaev[4-8] | alphaev56 | alphapca5[67] \
   1.229 +		| alphaev6[78] \
   1.230 +		| we32k | ns16k | clipper | i370 | sh | sh[34] \
   1.231 +		| powerpc | powerpcle \
   1.232 +		| 1750a | dsp16xx | pdp10 | pdp11 \
   1.233 +		| mips16 | mips64 | mipsel | mips64el \
   1.234 +		| mips64orion | mips64orionel | mipstx39 | mipstx39el \
   1.235 +		| mips64vr4300 | mips64vr4300el | mips64vr4100 | mips64vr4100el \
   1.236 +		| mips64vr5000 | miprs64vr5000el | mcore | s390 | s390x \
   1.237 +		| sparc | sparclet | sparclite | sparc64 | sparcv9 | v850 | c4x \
   1.238 +		| thumb | d10v | d30v | fr30 | avr | openrisc | tic80 \
   1.239 +		| pj | pjl | h8500)
   1.240 +		basic_machine=$basic_machine-unknown
   1.241 +		;;
   1.242 +	m6811 | m68hc11 | m6812 | m68hc12)
   1.243 +		# Motorola 68HC11/12.
   1.244 +		basic_machine=$basic_machine-unknown
   1.245 +		os=-none
   1.246 +		;;
   1.247 +	m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | z8k | v70 | w65)
   1.248 +		;;
   1.249 +
   1.250 +	# We use `pc' rather than `unknown'
   1.251 +	# because (1) that's what they normally are, and
   1.252 +	# (2) the word "unknown" tends to confuse beginning users.
   1.253 +	i[234567]86 | x86_64)
   1.254 +	  basic_machine=$basic_machine-pc
   1.255 +	  ;;
   1.256 +	# Object if more than one company name word.
   1.257 +	*-*-*)
   1.258 +		echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
   1.259 +		exit 1
   1.260 +		;;
   1.261 +	# Recognize the basic CPU types with company name.
   1.262 +	# FIXME: clean up the formatting here.
   1.263 +	vax-* | tahoe-* | i[234567]86-* | i860-* | ia64-* | m32r-* | m68k-* | m68000-* \
   1.264 +	      | m88k-* | sparc-* | ns32k-* | fx80-* | arc-* | c[123]* \
   1.265 +	      | arm-*  | armbe-* | armle-* | armv*-* | strongarm-* | xscale-* \
   1.266 +	      | mips-* | pyramid-* | tron-* | a29k-* | romp-* | rs6000-* \
   1.267 +	      | power-* | none-* | 580-* | cray2-* | h8300-* | h8500-* | i960-* \
   1.268 +	      | xmp-* | ymp-* \
   1.269 +	      | x86-* | ppcbe-* | mipsbe-* | mipsle-* | shbe-* | shle-* \
   1.270 +	      | hppa-* | hppa1.0-* | hppa1.1-* | hppa2.0-* | hppa2.0w-* \
   1.271 +	      | hppa2.0n-* | hppa64-* \
   1.272 +	      | alpha-* | alphaev[4-8]-* | alphaev56-* | alphapca5[67]-* \
   1.273 +	      | alphaev6[78]-* \
   1.274 +	      | we32k-* | cydra-* | ns16k-* | pn-* | np1-* | xps100-* \
   1.275 +	      | clipper-* | orion-* \
   1.276 +	      | sparclite-* | pdp10-* | pdp11-* | sh-* | powerpc-* | powerpcle-* \
   1.277 +	      | sparc64-* | sparcv9-* | sparc86x-* | mips16-* | mips64-* | mipsel-* \
   1.278 +	      | mips64el-* | mips64orion-* | mips64orionel-* \
   1.279 +	      | mips64vr4100-* | mips64vr4100el-* | mips64vr4300-* | mips64vr4300el-* \
   1.280 +	      | mipstx39-* | mipstx39el-* | mcore-* \
   1.281 +	      | f30[01]-* | f700-* | s390-* | s390x-* | sv1-* | t3e-* \
   1.282 +	      | [cjt]90-* \
   1.283 +	      | m88110-* | m680[01234]0-* | m683?2-* | m68360-* | z8k-* | d10v-* \
   1.284 +	      | thumb-* | v850-* | d30v-* | tic30-* | tic80-* | c30-* | fr30-* \
   1.285 +	      | bs2000-* | tic54x-* | c54x-* | x86_64-* | pj-* | pjl-*)
   1.286 +		;;
   1.287 +	# Recognize the various machine names and aliases which stand
   1.288 +	# for a CPU type and a company and sometimes even an OS.
   1.289 +	386bsd)
   1.290 +		basic_machine=i386-unknown
   1.291 +		os=-bsd
   1.292 +		;;
   1.293 +	3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
   1.294 +		basic_machine=m68000-att
   1.295 +		;;
   1.296 +	3b*)
   1.297 +		basic_machine=we32k-att
   1.298 +		;;
   1.299 +	a29khif)
   1.300 +		basic_machine=a29k-amd
   1.301 +		os=-udi
   1.302 +		;;
   1.303 +	adobe68k)
   1.304 +		basic_machine=m68010-adobe
   1.305 +		os=-scout
   1.306 +		;;
   1.307 +	alliant | fx80)
   1.308 +		basic_machine=fx80-alliant
   1.309 +		;;
   1.310 +	altos | altos3068)
   1.311 +		basic_machine=m68k-altos
   1.312 +		;;
   1.313 +	am29k)
   1.314 +		basic_machine=a29k-none
   1.315 +		os=-bsd
   1.316 +		;;
   1.317 +	amdahl)
   1.318 +		basic_machine=580-amdahl
   1.319 +		os=-sysv
   1.320 +		;;
   1.321 +	amiga | amiga-*)
   1.322 +		basic_machine=m68k-unknown
   1.323 +		;;
   1.324 +	amigaos | amigados)
   1.325 +		basic_machine=m68k-unknown
   1.326 +		os=-amigaos
   1.327 +		;;
   1.328 +	amigaunix | amix)
   1.329 +		basic_machine=m68k-unknown
   1.330 +		os=-sysv4
   1.331 +		;;
   1.332 +	apollo68)
   1.333 +		basic_machine=m68k-apollo
   1.334 +		os=-sysv
   1.335 +		;;
   1.336 +	apollo68bsd)
   1.337 +		basic_machine=m68k-apollo
   1.338 +		os=-bsd
   1.339 +		;;
   1.340 +	aux)
   1.341 +		basic_machine=m68k-apple
   1.342 +		os=-aux
   1.343 +		;;
   1.344 +	balance)
   1.345 +		basic_machine=ns32k-sequent
   1.346 +		os=-dynix
   1.347 +		;;
   1.348 +	convex-c1)
   1.349 +		basic_machine=c1-convex
   1.350 +		os=-bsd
   1.351 +		;;
   1.352 +	convex-c2)
   1.353 +		basic_machine=c2-convex
   1.354 +		os=-bsd
   1.355 +		;;
   1.356 +	convex-c32)
   1.357 +		basic_machine=c32-convex
   1.358 +		os=-bsd
   1.359 +		;;
   1.360 +	convex-c34)
   1.361 +		basic_machine=c34-convex
   1.362 +		os=-bsd
   1.363 +		;;
   1.364 +	convex-c38)
   1.365 +		basic_machine=c38-convex
   1.366 +		os=-bsd
   1.367 +		;;
   1.368 +	cray | ymp)
   1.369 +		basic_machine=ymp-cray
   1.370 +		os=-unicos
   1.371 +		;;
   1.372 +	cray2)
   1.373 +		basic_machine=cray2-cray
   1.374 +		os=-unicos
   1.375 +		;;
   1.376 +	[cjt]90)
   1.377 +		basic_machine=${basic_machine}-cray
   1.378 +		os=-unicos
   1.379 +		;;
   1.380 +	crds | unos)
   1.381 +		basic_machine=m68k-crds
   1.382 +		;;
   1.383 +	cris | cris-* | etrax*)
   1.384 +		basic_machine=cris-axis
   1.385 +		;;
   1.386 +	da30 | da30-*)
   1.387 +		basic_machine=m68k-da30
   1.388 +		;;
   1.389 +	decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
   1.390 +		basic_machine=mips-dec
   1.391 +		;;
   1.392 +	delta | 3300 | motorola-3300 | motorola-delta \
   1.393 +	      | 3300-motorola | delta-motorola)
   1.394 +		basic_machine=m68k-motorola
   1.395 +		;;
   1.396 +	delta88)
   1.397 +		basic_machine=m88k-motorola
   1.398 +		os=-sysv3
   1.399 +		;;
   1.400 +	dpx20 | dpx20-*)
   1.401 +		basic_machine=rs6000-bull
   1.402 +		os=-bosx
   1.403 +		;;
   1.404 +	dpx2* | dpx2*-bull)
   1.405 +		basic_machine=m68k-bull
   1.406 +		os=-sysv3
   1.407 +		;;
   1.408 +	ebmon29k)
   1.409 +		basic_machine=a29k-amd
   1.410 +		os=-ebmon
   1.411 +		;;
   1.412 +	elxsi)
   1.413 +		basic_machine=elxsi-elxsi
   1.414 +		os=-bsd
   1.415 +		;;
   1.416 +	encore | umax | mmax)
   1.417 +		basic_machine=ns32k-encore
   1.418 +		;;
   1.419 +	es1800 | OSE68k | ose68k | ose | OSE)
   1.420 +		basic_machine=m68k-ericsson
   1.421 +		os=-ose
   1.422 +		;;
   1.423 +	fx2800)
   1.424 +		basic_machine=i860-alliant
   1.425 +		;;
   1.426 +	genix)
   1.427 +		basic_machine=ns32k-ns
   1.428 +		;;
   1.429 +	gmicro)
   1.430 +		basic_machine=tron-gmicro
   1.431 +		os=-sysv
   1.432 +		;;
   1.433 +	go32)
   1.434 +		basic_machine=i386-pc
   1.435 +		os=-go32
   1.436 +		;;
   1.437 +	h3050r* | hiux*)
   1.438 +		basic_machine=hppa1.1-hitachi
   1.439 +		os=-hiuxwe2
   1.440 +		;;
   1.441 +	h8300hms)
   1.442 +		basic_machine=h8300-hitachi
   1.443 +		os=-hms
   1.444 +		;;
   1.445 +	h8300xray)
   1.446 +		basic_machine=h8300-hitachi
   1.447 +		os=-xray
   1.448 +		;;
   1.449 +	h8500hms)
   1.450 +		basic_machine=h8500-hitachi
   1.451 +		os=-hms
   1.452 +		;;
   1.453 +	harris)
   1.454 +		basic_machine=m88k-harris
   1.455 +		os=-sysv3
   1.456 +		;;
   1.457 +	hp300-*)
   1.458 +		basic_machine=m68k-hp
   1.459 +		;;
   1.460 +	hp300bsd)
   1.461 +		basic_machine=m68k-hp
   1.462 +		os=-bsd
   1.463 +		;;
   1.464 +	hp300hpux)
   1.465 +		basic_machine=m68k-hp
   1.466 +		os=-hpux
   1.467 +		;;
   1.468 +	hp3k9[0-9][0-9] | hp9[0-9][0-9])
   1.469 +		basic_machine=hppa1.0-hp
   1.470 +		;;
   1.471 +	hp9k2[0-9][0-9] | hp9k31[0-9])
   1.472 +		basic_machine=m68000-hp
   1.473 +		;;
   1.474 +	hp9k3[2-9][0-9])
   1.475 +		basic_machine=m68k-hp
   1.476 +		;;
   1.477 +	hp9k6[0-9][0-9] | hp6[0-9][0-9])
   1.478 +		basic_machine=hppa1.0-hp
   1.479 +		;;
   1.480 +	hp9k7[0-79][0-9] | hp7[0-79][0-9])
   1.481 +		basic_machine=hppa1.1-hp
   1.482 +		;;
   1.483 +	hp9k78[0-9] | hp78[0-9])
   1.484 +		# FIXME: really hppa2.0-hp
   1.485 +		basic_machine=hppa1.1-hp
   1.486 +		;;
   1.487 +	hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
   1.488 +		# FIXME: really hppa2.0-hp
   1.489 +		basic_machine=hppa1.1-hp
   1.490 +		;;
   1.491 +	hp9k8[0-9][13679] | hp8[0-9][13679])
   1.492 +		basic_machine=hppa1.1-hp
   1.493 +		;;
   1.494 +	hp9k8[0-9][0-9] | hp8[0-9][0-9])
   1.495 +		basic_machine=hppa1.0-hp
   1.496 +		;;
   1.497 +	hppa-next)
   1.498 +		os=-nextstep3
   1.499 +		;;
   1.500 +	hppaosf)
   1.501 +		basic_machine=hppa1.1-hp
   1.502 +		os=-osf
   1.503 +		;;
   1.504 +	hppro)
   1.505 +		basic_machine=hppa1.1-hp
   1.506 +		os=-proelf
   1.507 +		;;
   1.508 +	i370-ibm* | ibm*)
   1.509 +		basic_machine=i370-ibm
   1.510 +		;;
   1.511 +# I'm not sure what "Sysv32" means.  Should this be sysv3.2?
   1.512 +	i[34567]86v32)
   1.513 +		basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
   1.514 +		os=-sysv32
   1.515 +		;;
   1.516 +	i[34567]86v4*)
   1.517 +		basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
   1.518 +		os=-sysv4
   1.519 +		;;
   1.520 +	i[34567]86v)
   1.521 +		basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
   1.522 +		os=-sysv
   1.523 +		;;
   1.524 +	i[34567]86sol2)
   1.525 +		basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
   1.526 +		os=-solaris2
   1.527 +		;;
   1.528 +	i386mach)
   1.529 +		basic_machine=i386-mach
   1.530 +		os=-mach
   1.531 +		;;
   1.532 +	i386-vsta | vsta)
   1.533 +		basic_machine=i386-unknown
   1.534 +		os=-vsta
   1.535 +		;;
   1.536 +	iris | iris4d)
   1.537 +		basic_machine=mips-sgi
   1.538 +		case $os in
   1.539 +		    -irix*)
   1.540 +			;;
   1.541 +		    *)
   1.542 +			os=-irix4
   1.543 +			;;
   1.544 +		esac
   1.545 +		;;
   1.546 +	isi68 | isi)
   1.547 +		basic_machine=m68k-isi
   1.548 +		os=-sysv
   1.549 +		;;
   1.550 +	m88k-omron*)
   1.551 +		basic_machine=m88k-omron
   1.552 +		;;
   1.553 +	magnum | m3230)
   1.554 +		basic_machine=mips-mips
   1.555 +		os=-sysv
   1.556 +		;;
   1.557 +	merlin)
   1.558 +		basic_machine=ns32k-utek
   1.559 +		os=-sysv
   1.560 +		;;
   1.561 +	mingw32)
   1.562 +		basic_machine=i386-pc
   1.563 +		os=-mingw32
   1.564 +		;;
   1.565 +	miniframe)
   1.566 +		basic_machine=m68000-convergent
   1.567 +		;;
   1.568 +	*mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)
   1.569 +		basic_machine=m68k-atari
   1.570 +		os=-mint
   1.571 +		;;
   1.572 +	mipsel*-linux*)
   1.573 +		basic_machine=mipsel-unknown
   1.574 +		os=-linux-gnu
   1.575 +		;;
   1.576 +	mips*-linux*)
   1.577 +		basic_machine=mips-unknown
   1.578 +		os=-linux-gnu
   1.579 +		;;
   1.580 +	mips3*-*)
   1.581 +		basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
   1.582 +		;;
   1.583 +	mips3*)
   1.584 +		basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
   1.585 +		;;
   1.586 +	mmix*)
   1.587 +		basic_machine=mmix-knuth
   1.588 +		os=-mmixware
   1.589 +		;;
   1.590 +	monitor)
   1.591 +		basic_machine=m68k-rom68k
   1.592 +		os=-coff
   1.593 +		;;
   1.594 +	msdos)
   1.595 +		basic_machine=i386-pc
   1.596 +		os=-msdos
   1.597 +		;;
   1.598 +	mvs)
   1.599 +		basic_machine=i370-ibm
   1.600 +		os=-mvs
   1.601 +		;;
   1.602 +	ncr3000)
   1.603 +		basic_machine=i486-ncr
   1.604 +		os=-sysv4
   1.605 +		;;
   1.606 +	netbsd386)
   1.607 +		basic_machine=i386-unknown
   1.608 +		os=-netbsd
   1.609 +		;;
   1.610 +	netwinder)
   1.611 +		basic_machine=armv4l-rebel
   1.612 +		os=-linux
   1.613 +		;;
   1.614 +	news | news700 | news800 | news900)
   1.615 +		basic_machine=m68k-sony
   1.616 +		os=-newsos
   1.617 +		;;
   1.618 +	news1000)
   1.619 +		basic_machine=m68030-sony
   1.620 +		os=-newsos
   1.621 +		;;
   1.622 +	news-3600 | risc-news)
   1.623 +		basic_machine=mips-sony
   1.624 +		os=-newsos
   1.625 +		;;
   1.626 +	necv70)
   1.627 +		basic_machine=v70-nec
   1.628 +		os=-sysv
   1.629 +		;;
   1.630 +	next | m*-next )
   1.631 +		basic_machine=m68k-next
   1.632 +		case $os in
   1.633 +		    -nextstep* )
   1.634 +			;;
   1.635 +		    -ns2*)
   1.636 +		      os=-nextstep2
   1.637 +			;;
   1.638 +		    *)
   1.639 +		      os=-nextstep3
   1.640 +			;;
   1.641 +		esac
   1.642 +		;;
   1.643 +	nh3000)
   1.644 +		basic_machine=m68k-harris
   1.645 +		os=-cxux
   1.646 +		;;
   1.647 +	nh[45]000)
   1.648 +		basic_machine=m88k-harris
   1.649 +		os=-cxux
   1.650 +		;;
   1.651 +	nindy960)
   1.652 +		basic_machine=i960-intel
   1.653 +		os=-nindy
   1.654 +		;;
   1.655 +	mon960)
   1.656 +		basic_machine=i960-intel
   1.657 +		os=-mon960
   1.658 +		;;
   1.659 +	nonstopux)
   1.660 +		basic_machine=mips-compaq
   1.661 +		os=-nonstopux
   1.662 +		;;
   1.663 +	np1)
   1.664 +		basic_machine=np1-gould
   1.665 +		;;
   1.666 +	nsr-tandem)
   1.667 +		basic_machine=nsr-tandem
   1.668 +		;;
   1.669 +	op50n-* | op60c-*)
   1.670 +		basic_machine=hppa1.1-oki
   1.671 +		os=-proelf
   1.672 +		;;
   1.673 +	OSE68000 | ose68000)
   1.674 +		basic_machine=m68000-ericsson
   1.675 +		os=-ose
   1.676 +		;;
   1.677 +	os68k)
   1.678 +		basic_machine=m68k-none
   1.679 +		os=-os68k
   1.680 +		;;
   1.681 +	pa-hitachi)
   1.682 +		basic_machine=hppa1.1-hitachi
   1.683 +		os=-hiuxwe2
   1.684 +		;;
   1.685 +	paragon)
   1.686 +		basic_machine=i860-intel
   1.687 +		os=-osf
   1.688 +		;;
   1.689 +	pbd)
   1.690 +		basic_machine=sparc-tti
   1.691 +		;;
   1.692 +	pbb)
   1.693 +		basic_machine=m68k-tti
   1.694 +		;;
   1.695 +        pc532 | pc532-*)
   1.696 +		basic_machine=ns32k-pc532
   1.697 +		;;
   1.698 +	pentium | p5 | k5 | k6 | nexgen)
   1.699 +		basic_machine=i586-pc
   1.700 +		;;
   1.701 +	pentiumpro | p6 | 6x86 | athlon)
   1.702 +		basic_machine=i686-pc
   1.703 +		;;
   1.704 +	pentiumii | pentium2)
   1.705 +		basic_machine=i686-pc
   1.706 +		;;
   1.707 +	pentium-* | p5-* | k5-* | k6-* | nexgen-*)
   1.708 +		basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
   1.709 +		;;
   1.710 +	pentiumpro-* | p6-* | 6x86-* | athlon-*)
   1.711 +		basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
   1.712 +		;;
   1.713 +	pentiumii-* | pentium2-*)
   1.714 +		basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
   1.715 +		;;
   1.716 +	pn)
   1.717 +		basic_machine=pn-gould
   1.718 +		;;
   1.719 +	power)	basic_machine=power-ibm
   1.720 +		;;
   1.721 +	ppc)	basic_machine=powerpc-unknown
   1.722 +	        ;;
   1.723 +	ppc-*)	basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
   1.724 +		;;
   1.725 +	ppcle | powerpclittle | ppc-le | powerpc-little)
   1.726 +		basic_machine=powerpcle-unknown
   1.727 +	        ;;
   1.728 +	ppcle-* | powerpclittle-*)
   1.729 +		basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
   1.730 +		;;
   1.731 +	ps2)
   1.732 +		basic_machine=i386-ibm
   1.733 +		;;
   1.734 +	pw32)
   1.735 +		basic_machine=i586-unknown
   1.736 +		os=-pw32
   1.737 +		;;
   1.738 +	rom68k)
   1.739 +		basic_machine=m68k-rom68k
   1.740 +		os=-coff
   1.741 +		;;
   1.742 +	rm[46]00)
   1.743 +		basic_machine=mips-siemens
   1.744 +		;;
   1.745 +	rtpc | rtpc-*)
   1.746 +		basic_machine=romp-ibm
   1.747 +		;;
   1.748 +	sa29200)
   1.749 +		basic_machine=a29k-amd
   1.750 +		os=-udi
   1.751 +		;;
   1.752 +	sequent)
   1.753 +		basic_machine=i386-sequent
   1.754 +		;;
   1.755 +	sh)
   1.756 +		basic_machine=sh-hitachi
   1.757 +		os=-hms
   1.758 +		;;
   1.759 +	sparclite-wrs)
   1.760 +		basic_machine=sparclite-wrs
   1.761 +		os=-vxworks
   1.762 +		;;
   1.763 +	sps7)
   1.764 +		basic_machine=m68k-bull
   1.765 +		os=-sysv2
   1.766 +		;;
   1.767 +	spur)
   1.768 +		basic_machine=spur-unknown
   1.769 +		;;
   1.770 +	st2000)
   1.771 +		basic_machine=m68k-tandem
   1.772 +		;;
   1.773 +	stratus)
   1.774 +		basic_machine=i860-stratus
   1.775 +		os=-sysv4
   1.776 +		;;
   1.777 +	sun2)
   1.778 +		basic_machine=m68000-sun
   1.779 +		;;
   1.780 +	sun2os3)
   1.781 +		basic_machine=m68000-sun
   1.782 +		os=-sunos3
   1.783 +		;;
   1.784 +	sun2os4)
   1.785 +		basic_machine=m68000-sun
   1.786 +		os=-sunos4
   1.787 +		;;
   1.788 +	sun3os3)
   1.789 +		basic_machine=m68k-sun
   1.790 +		os=-sunos3
   1.791 +		;;
   1.792 +	sun3os4)
   1.793 +		basic_machine=m68k-sun
   1.794 +		os=-sunos4
   1.795 +		;;
   1.796 +	sun4os3)
   1.797 +		basic_machine=sparc-sun
   1.798 +		os=-sunos3
   1.799 +		;;
   1.800 +	sun4os4)
   1.801 +		basic_machine=sparc-sun
   1.802 +		os=-sunos4
   1.803 +		;;
   1.804 +	sun4sol2)
   1.805 +		basic_machine=sparc-sun
   1.806 +		os=-solaris2
   1.807 +		;;
   1.808 +	sun3 | sun3-*)
   1.809 +		basic_machine=m68k-sun
   1.810 +		;;
   1.811 +	sun4)
   1.812 +		basic_machine=sparc-sun
   1.813 +		;;
   1.814 +	sun386 | sun386i | roadrunner)
   1.815 +		basic_machine=i386-sun
   1.816 +		;;
   1.817 +	sv1)
   1.818 +		basic_machine=sv1-cray
   1.819 +		os=-unicos
   1.820 +		;;
   1.821 +	symmetry)
   1.822 +		basic_machine=i386-sequent
   1.823 +		os=-dynix
   1.824 +		;;
   1.825 +	t3e)
   1.826 +		basic_machine=t3e-cray
   1.827 +		os=-unicos
   1.828 +		;;
   1.829 +	tic54x | c54x*)
   1.830 +		basic_machine=tic54x-unknown
   1.831 +		os=-coff
   1.832 +		;;
   1.833 +	tx39)
   1.834 +		basic_machine=mipstx39-unknown
   1.835 +		;;
   1.836 +	tx39el)
   1.837 +		basic_machine=mipstx39el-unknown
   1.838 +		;;
   1.839 +	tower | tower-32)
   1.840 +		basic_machine=m68k-ncr
   1.841 +		;;
   1.842 +	udi29k)
   1.843 +		basic_machine=a29k-amd
   1.844 +		os=-udi
   1.845 +		;;
   1.846 +	ultra3)
   1.847 +		basic_machine=a29k-nyu
   1.848 +		os=-sym1
   1.849 +		;;
   1.850 +	v810 | necv810)
   1.851 +		basic_machine=v810-nec
   1.852 +		os=-none
   1.853 +		;;
   1.854 +	vaxv)
   1.855 +		basic_machine=vax-dec
   1.856 +		os=-sysv
   1.857 +		;;
   1.858 +	vms)
   1.859 +		basic_machine=vax-dec
   1.860 +		os=-vms
   1.861 +		;;
   1.862 +	vpp*|vx|vx-*)
   1.863 +               basic_machine=f301-fujitsu
   1.864 +               ;;
   1.865 +	vxworks960)
   1.866 +		basic_machine=i960-wrs
   1.867 +		os=-vxworks
   1.868 +		;;
   1.869 +	vxworks68)
   1.870 +		basic_machine=m68k-wrs
   1.871 +		os=-vxworks
   1.872 +		;;
   1.873 +	vxworks29k)
   1.874 +		basic_machine=a29k-wrs
   1.875 +		os=-vxworks
   1.876 +		;;
   1.877 +	w65*)
   1.878 +		basic_machine=w65-wdc
   1.879 +		os=-none
   1.880 +		;;
   1.881 +	w89k-*)
   1.882 +		basic_machine=hppa1.1-winbond
   1.883 +		os=-proelf
   1.884 +		;;
   1.885 +	xmp)
   1.886 +		basic_machine=xmp-cray
   1.887 +		os=-unicos
   1.888 +		;;
   1.889 +        xps | xps100)
   1.890 +		basic_machine=xps100-honeywell
   1.891 +		;;
   1.892 +	z8k-*-coff)
   1.893 +		basic_machine=z8k-unknown
   1.894 +		os=-sim
   1.895 +		;;
   1.896 +	none)
   1.897 +		basic_machine=none-none
   1.898 +		os=-none
   1.899 +		;;
   1.900 +
   1.901 +# Here we handle the default manufacturer of certain CPU types.  It is in
   1.902 +# some cases the only manufacturer, in others, it is the most popular.
   1.903 +	w89k)
   1.904 +		basic_machine=hppa1.1-winbond
   1.905 +		;;
   1.906 +	op50n)
   1.907 +		basic_machine=hppa1.1-oki
   1.908 +		;;
   1.909 +	op60c)
   1.910 +		basic_machine=hppa1.1-oki
   1.911 +		;;
   1.912 +	mips)
   1.913 +		if [ x$os = x-linux-gnu ]; then
   1.914 +			basic_machine=mips-unknown
   1.915 +		else
   1.916 +			basic_machine=mips-mips
   1.917 +		fi
   1.918 +		;;
   1.919 +	romp)
   1.920 +		basic_machine=romp-ibm
   1.921 +		;;
   1.922 +	rs6000)
   1.923 +		basic_machine=rs6000-ibm
   1.924 +		;;
   1.925 +	vax)
   1.926 +		basic_machine=vax-dec
   1.927 +		;;
   1.928 +	pdp10)
   1.929 +		# there are many clones, so DEC is not a safe bet
   1.930 +		basic_machine=pdp10-unknown
   1.931 +		;;
   1.932 +	pdp11)
   1.933 +		basic_machine=pdp11-dec
   1.934 +		;;
   1.935 +	we32k)
   1.936 +		basic_machine=we32k-att
   1.937 +		;;
   1.938 +	sh3 | sh4)
   1.939 +		basic_machine=sh-unknown
   1.940 +		;;
   1.941 +	sparc | sparcv9)
   1.942 +		basic_machine=sparc-sun
   1.943 +		;;
   1.944 +        cydra)
   1.945 +		basic_machine=cydra-cydrome
   1.946 +		;;
   1.947 +	orion)
   1.948 +		basic_machine=orion-highlevel
   1.949 +		;;
   1.950 +	orion105)
   1.951 +		basic_machine=clipper-highlevel
   1.952 +		;;
   1.953 +	mac | mpw | mac-mpw)
   1.954 +		basic_machine=m68k-apple
   1.955 +		;;
   1.956 +	pmac | pmac-mpw)
   1.957 +		basic_machine=powerpc-apple
   1.958 +		;;
   1.959 +	c4x*)
   1.960 +		basic_machine=c4x-none
   1.961 +		os=-coff
   1.962 +		;;
   1.963 +	*)
   1.964 +		echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
   1.965 +		exit 1
   1.966 +		;;
   1.967 +esac
   1.968 +
   1.969 +# Here we canonicalize certain aliases for manufacturers.
   1.970 +case $basic_machine in
   1.971 +	*-digital*)
   1.972 +		basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'`
   1.973 +		;;
   1.974 +	*-commodore*)
   1.975 +		basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'`
   1.976 +		;;
   1.977 +	*)
   1.978 +		;;
   1.979 +esac
   1.980 +
   1.981 +# Decode manufacturer-specific aliases for certain operating systems.
   1.982 +
   1.983 +if [ x"$os" != x"" ]
   1.984 +then
   1.985 +case $os in
   1.986 +        # First match some system type aliases
   1.987 +        # that might get confused with valid system types.
   1.988 +	# -solaris* is a basic system type, with this one exception.
   1.989 +	-solaris1 | -solaris1.*)
   1.990 +		os=`echo $os | sed -e 's|solaris1|sunos4|'`
   1.991 +		;;
   1.992 +	-solaris)
   1.993 +		os=-solaris2
   1.994 +		;;
   1.995 +	-svr4*)
   1.996 +		os=-sysv4
   1.997 +		;;
   1.998 +	-unixware*)
   1.999 +		os=-sysv4.2uw
  1.1000 +		;;
  1.1001 +	-gnu/linux*)
  1.1002 +		os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
  1.1003 +		;;
  1.1004 +	# First accept the basic system types.
  1.1005 +	# The portable systems comes first.
  1.1006 +	# Each alternative MUST END IN A *, to match a version number.
  1.1007 +	# -sysv* is not here because it comes later, after sysvr4.
  1.1008 +	-gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
  1.1009 +	      | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
  1.1010 +	      | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
  1.1011 +	      | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
  1.1012 +	      | -aos* \
  1.1013 +	      | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
  1.1014 +	      | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
  1.1015 +	      | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \
  1.1016 +	      | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
  1.1017 +	      | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
  1.1018 +	      | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
  1.1019 +	      | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
  1.1020 +	      | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \
  1.1021 +	      | -interix* | -uwin* | -rhapsody* | -darwin* | -opened* \
  1.1022 +	      | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
  1.1023 +	      | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* | -os2*)
  1.1024 +	# Remember, each alternative MUST END IN *, to match a version number.
  1.1025 +		;;
  1.1026 +	-qnx*)
  1.1027 +		case $basic_machine in
  1.1028 +		    x86-* | i[34567]86-*)
  1.1029 +			;;
  1.1030 +		    *)
  1.1031 +			os=-nto$os
  1.1032 +			;;
  1.1033 +		esac
  1.1034 +		;;
  1.1035 +	-nto*)
  1.1036 +		os=-nto-qnx
  1.1037 +		;;
  1.1038 +	-sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
  1.1039 +	      | -windows* | -osx | -abug | -netware* | -os9* | -beos* \
  1.1040 +	      | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
  1.1041 +		;;
  1.1042 +	-mac*)
  1.1043 +		os=`echo $os | sed -e 's|mac|macos|'`
  1.1044 +		;;
  1.1045 +	-linux*)
  1.1046 +		os=`echo $os | sed -e 's|linux|linux-gnu|'`
  1.1047 +		;;
  1.1048 +	-sunos5*)
  1.1049 +		os=`echo $os | sed -e 's|sunos5|solaris2|'`
  1.1050 +		;;
  1.1051 +	-sunos6*)
  1.1052 +		os=`echo $os | sed -e 's|sunos6|solaris3|'`
  1.1053 +		;;
  1.1054 +	-opened*)
  1.1055 +		os=-openedition
  1.1056 +		;;
  1.1057 +	-wince*)
  1.1058 +		os=-wince
  1.1059 +		;;
  1.1060 +	-osfrose*)
  1.1061 +		os=-osfrose
  1.1062 +		;;
  1.1063 +	-osf*)
  1.1064 +		os=-osf
  1.1065 +		;;
  1.1066 +	-utek*)
  1.1067 +		os=-bsd
  1.1068 +		;;
  1.1069 +	-dynix*)
  1.1070 +		os=-bsd
  1.1071 +		;;
  1.1072 +	-acis*)
  1.1073 +		os=-aos
  1.1074 +		;;
  1.1075 +	-386bsd)
  1.1076 +		os=-bsd
  1.1077 +		;;
  1.1078 +	-ctix* | -uts*)
  1.1079 +		os=-sysv
  1.1080 +		;;
  1.1081 +	-ns2 )
  1.1082 +	        os=-nextstep2
  1.1083 +		;;
  1.1084 +	-nsk*)
  1.1085 +		os=-nsk
  1.1086 +		;;
  1.1087 +	# Preserve the version number of sinix5.
  1.1088 +	-sinix5.*)
  1.1089 +		os=`echo $os | sed -e 's|sinix|sysv|'`
  1.1090 +		;;
  1.1091 +	-sinix*)
  1.1092 +		os=-sysv4
  1.1093 +		;;
  1.1094 +	-triton*)
  1.1095 +		os=-sysv3
  1.1096 +		;;
  1.1097 +	-oss*)
  1.1098 +		os=-sysv3
  1.1099 +		;;
  1.1100 +	-svr4)
  1.1101 +		os=-sysv4
  1.1102 +		;;
  1.1103 +	-svr3)
  1.1104 +		os=-sysv3
  1.1105 +		;;
  1.1106 +	-sysvr4)
  1.1107 +		os=-sysv4
  1.1108 +		;;
  1.1109 +	# This must come after -sysvr4.
  1.1110 +	-sysv*)
  1.1111 +		;;
  1.1112 +	-ose*)
  1.1113 +		os=-ose
  1.1114 +		;;
  1.1115 +	-es1800*)
  1.1116 +		os=-ose
  1.1117 +		;;
  1.1118 +	-xenix)
  1.1119 +		os=-xenix
  1.1120 +		;;
  1.1121 +        -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
  1.1122 +	        os=-mint
  1.1123 +		;;
  1.1124 +	-none)
  1.1125 +		;;
  1.1126 +	*)
  1.1127 +		# Get rid of the `-' at the beginning of $os.
  1.1128 +		os=`echo $os | sed 's/[^-]*-//'`
  1.1129 +		echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2
  1.1130 +		exit 1
  1.1131 +		;;
  1.1132 +esac
  1.1133 +else
  1.1134 +
  1.1135 +# Here we handle the default operating systems that come with various machines.
  1.1136 +# The value should be what the vendor currently ships out the door with their
  1.1137 +# machine or put another way, the most popular os provided with the machine.
  1.1138 +
  1.1139 +# Note that if you're going to try to match "-MANUFACTURER" here (say,
  1.1140 +# "-sun"), then you have to tell the case statement up towards the top
  1.1141 +# that MANUFACTURER isn't an operating system.  Otherwise, code above
  1.1142 +# will signal an error saying that MANUFACTURER isn't an operating
  1.1143 +# system, and we'll never get to this point.
  1.1144 +
  1.1145 +case $basic_machine in
  1.1146 +	*-acorn)
  1.1147 +		os=-riscix1.2
  1.1148 +		;;
  1.1149 +	arm*-rebel)
  1.1150 +		os=-linux
  1.1151 +		;;
  1.1152 +	arm*-semi)
  1.1153 +		os=-aout
  1.1154 +		;;
  1.1155 +	pdp10-*)
  1.1156 +		os=-tops20
  1.1157 +		;;
  1.1158 +        pdp11-*)
  1.1159 +		os=-none
  1.1160 +		;;
  1.1161 +	*-dec | vax-*)
  1.1162 +		os=-ultrix4.2
  1.1163 +		;;
  1.1164 +	m68*-apollo)
  1.1165 +		os=-domain
  1.1166 +		;;
  1.1167 +	i386-sun)
  1.1168 +		os=-sunos4.0.2
  1.1169 +		;;
  1.1170 +	m68000-sun)
  1.1171 +		os=-sunos3
  1.1172 +		# This also exists in the configure program, but was not the
  1.1173 +		# default.
  1.1174 +		# os=-sunos4
  1.1175 +		;;
  1.1176 +	m68*-cisco)
  1.1177 +		os=-aout
  1.1178 +		;;
  1.1179 +	mips*-cisco)
  1.1180 +		os=-elf
  1.1181 +		;;
  1.1182 +	mips*-*)
  1.1183 +		os=-elf
  1.1184 +		;;
  1.1185 +	*-tti)	# must be before sparc entry or we get the wrong os.
  1.1186 +		os=-sysv3
  1.1187 +		;;
  1.1188 +	sparc-* | *-sun)
  1.1189 +		os=-sunos4.1.1
  1.1190 +		;;
  1.1191 +	*-be)
  1.1192 +		os=-beos
  1.1193 +		;;
  1.1194 +	*-ibm)
  1.1195 +		os=-aix
  1.1196 +		;;
  1.1197 +	*-wec)
  1.1198 +		os=-proelf
  1.1199 +		;;
  1.1200 +	*-winbond)
  1.1201 +		os=-proelf
  1.1202 +		;;
  1.1203 +	*-oki)
  1.1204 +		os=-proelf
  1.1205 +		;;
  1.1206 +	*-hp)
  1.1207 +		os=-hpux
  1.1208 +		;;
  1.1209 +	*-hitachi)
  1.1210 +		os=-hiux
  1.1211 +		;;
  1.1212 +	i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent)
  1.1213 +		os=-sysv
  1.1214 +		;;
  1.1215 +	*-cbm)
  1.1216 +		os=-amigaos
  1.1217 +		;;
  1.1218 +	*-dg)
  1.1219 +		os=-dgux
  1.1220 +		;;
  1.1221 +	*-dolphin)
  1.1222 +		os=-sysv3
  1.1223 +		;;
  1.1224 +	m68k-ccur)
  1.1225 +		os=-rtu
  1.1226 +		;;
  1.1227 +	m88k-omron*)
  1.1228 +		os=-luna
  1.1229 +		;;
  1.1230 +	*-next )
  1.1231 +		os=-nextstep
  1.1232 +		;;
  1.1233 +	*-sequent)
  1.1234 +		os=-ptx
  1.1235 +		;;
  1.1236 +	*-crds)
  1.1237 +		os=-unos
  1.1238 +		;;
  1.1239 +	*-ns)
  1.1240 +		os=-genix
  1.1241 +		;;
  1.1242 +	i370-*)
  1.1243 +		os=-mvs
  1.1244 +		;;
  1.1245 +	*-next)
  1.1246 +		os=-nextstep3
  1.1247 +		;;
  1.1248 +        *-gould)
  1.1249 +		os=-sysv
  1.1250 +		;;
  1.1251 +        *-highlevel)
  1.1252 +		os=-bsd
  1.1253 +		;;
  1.1254 +	*-encore)
  1.1255 +		os=-bsd
  1.1256 +		;;
  1.1257 +        *-sgi)
  1.1258 +		os=-irix
  1.1259 +		;;
  1.1260 +        *-siemens)
  1.1261 +		os=-sysv4
  1.1262 +		;;
  1.1263 +	*-masscomp)
  1.1264 +		os=-rtu
  1.1265 +		;;
  1.1266 +	f30[01]-fujitsu | f700-fujitsu)
  1.1267 +		os=-uxpv
  1.1268 +		;;
  1.1269 +	*-rom68k)
  1.1270 +		os=-coff
  1.1271 +		;;
  1.1272 +	*-*bug)
  1.1273 +		os=-coff
  1.1274 +		;;
  1.1275 +	*-apple)
  1.1276 +		os=-macos
  1.1277 +		;;
  1.1278 +	*-atari*)
  1.1279 +		os=-mint
  1.1280 +		;;
  1.1281 +	*)
  1.1282 +		os=-none
  1.1283 +		;;
  1.1284 +esac
  1.1285 +fi
  1.1286 +
  1.1287 +# Here we handle the case where we know the os, and the CPU type, but not the
  1.1288 +# manufacturer.  We pick the logical manufacturer.
  1.1289 +vendor=unknown
  1.1290 +case $basic_machine in
  1.1291 +	*-unknown)
  1.1292 +		case $os in
  1.1293 +			-riscix*)
  1.1294 +				vendor=acorn
  1.1295 +				;;
  1.1296 +			-sunos*)
  1.1297 +				vendor=sun
  1.1298 +				;;
  1.1299 +			-aix*)
  1.1300 +				vendor=ibm
  1.1301 +				;;
  1.1302 +			-beos*)
  1.1303 +				vendor=be
  1.1304 +				;;
  1.1305 +			-hpux*)
  1.1306 +				vendor=hp
  1.1307 +				;;
  1.1308 +			-mpeix*)
  1.1309 +				vendor=hp
  1.1310 +				;;
  1.1311 +			-hiux*)
  1.1312 +				vendor=hitachi
  1.1313 +				;;
  1.1314 +			-unos*)
  1.1315 +				vendor=crds
  1.1316 +				;;
  1.1317 +			-dgux*)
  1.1318 +				vendor=dg
  1.1319 +				;;
  1.1320 +			-luna*)
  1.1321 +				vendor=omron
  1.1322 +				;;
  1.1323 +			-genix*)
  1.1324 +				vendor=ns
  1.1325 +				;;
  1.1326 +			-mvs* | -opened*)
  1.1327 +				vendor=ibm
  1.1328 +				;;
  1.1329 +			-ptx*)
  1.1330 +				vendor=sequent
  1.1331 +				;;
  1.1332 +			-vxsim* | -vxworks*)
  1.1333 +				vendor=wrs
  1.1334 +				;;
  1.1335 +			-aux*)
  1.1336 +				vendor=apple
  1.1337 +				;;
  1.1338 +			-hms*)
  1.1339 +				vendor=hitachi
  1.1340 +				;;
  1.1341 +			-mpw* | -macos*)
  1.1342 +				vendor=apple
  1.1343 +				;;
  1.1344 +			-*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
  1.1345 +				vendor=atari
  1.1346 +				;;
  1.1347 +		esac
  1.1348 +		basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
  1.1349 +		;;
  1.1350 +esac
  1.1351 +
  1.1352 +echo $basic_machine$os
  1.1353 +exit 0
  1.1354 +
  1.1355 +# Local variables:
  1.1356 +# eval: (add-hook 'write-file-hooks 'time-stamp)
  1.1357 +# time-stamp-start: "timestamp='"
  1.1358 +# time-stamp-format: "%:y-%02m-%02d"
  1.1359 +# time-stamp-end: "'"
  1.1360 +# End: