config.sub
author Ryan C. Gordon <icculus@icculus.org>
Mon, 12 Dec 2005 09:22:36 +0000
changeset 1200 8f418dce02b2
parent 886 05c551e5bc64
child 1270 b1425473be0f
permissions -rwxr-xr-x
Date: Sun, 11 Dec 2005 20:37:04 +0100
From: Olivier Boudeville <olivier.boudeville@online.fr>
To: "A list for developers using the SDL library. \(includes SDL-announce\)" <sdl@libsdl.org>
Subject: [SDL] NetBSD build patch


Hi everybody,

apparently the SDL-1.2.9 source archive could not compile "as is" on
NetBSD 2.0_STABLE due to a pthread detection issue in the configure script.

I attached a small patch that can be applied to configure.in so that SDL
can be directly (i.e. without the NetBSD package manager) configured and
built successfully on NetBSD (at least on the one I tried !).

Hope this helps,

Olivier.
slouken@0
     1
#! /bin/sh
slouken@53
     2
# Configuration validation subroutine script.
slouken@729
     3
#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
slouken@729
     4
#   2000, 2001, 2002, 2003 Free Software Foundation, Inc.
slouken@53
     5
slouken@729
     6
timestamp='2003-02-22'
slouken@53
     7
slouken@0
     8
# This file is (in principle) common to ALL GNU software.
slouken@0
     9
# The presence of a machine in this file suggests that SOME GNU software
slouken@0
    10
# can handle that machine.  It does not imply ALL GNU software can.
slouken@0
    11
#
slouken@0
    12
# This file is free software; you can redistribute it and/or modify
slouken@0
    13
# it under the terms of the GNU General Public License as published by
slouken@0
    14
# the Free Software Foundation; either version 2 of the License, or
slouken@0
    15
# (at your option) any later version.
slouken@0
    16
#
slouken@0
    17
# This program is distributed in the hope that it will be useful,
slouken@0
    18
# but WITHOUT ANY WARRANTY; without even the implied warranty of
slouken@0
    19
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
slouken@0
    20
# GNU General Public License for more details.
slouken@0
    21
#
slouken@0
    22
# You should have received a copy of the GNU General Public License
slouken@0
    23
# along with this program; if not, write to the Free Software
slouken@0
    24
# Foundation, Inc., 59 Temple Place - Suite 330,
slouken@0
    25
# Boston, MA 02111-1307, USA.
slouken@0
    26
slouken@0
    27
# As a special exception to the GNU General Public License, if you
slouken@0
    28
# distribute this file as part of a program that contains a
slouken@0
    29
# configuration script generated by Autoconf, you may include it under
slouken@0
    30
# the same distribution terms that you use for the rest of that program.
slouken@0
    31
slouken@729
    32
# Please send patches to <config-patches@gnu.org>.  Submit a context
slouken@729
    33
# diff and a properly formatted ChangeLog entry.
slouken@53
    34
#
slouken@0
    35
# Configuration subroutine to validate and canonicalize a configuration type.
slouken@0
    36
# Supply the specified configuration type as an argument.
slouken@0
    37
# If it is invalid, we print an error message on stderr and exit with code 1.
slouken@0
    38
# Otherwise, we print the canonical config type on stdout and succeed.
slouken@0
    39
slouken@0
    40
# This file is supposed to be the same for all GNU packages
slouken@0
    41
# and recognize all the CPU types, system types and aliases
slouken@0
    42
# that are meaningful with *any* GNU software.
slouken@0
    43
# Each package is responsible for reporting which valid configurations
slouken@0
    44
# it does not support.  The user should be able to distinguish
slouken@0
    45
# a failure to support a valid configuration from a meaningless
slouken@0
    46
# configuration.
slouken@0
    47
slouken@0
    48
# The goal of this file is to map all the various variations of a given
slouken@0
    49
# machine specification into a single specification in the form:
slouken@0
    50
#	CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
slouken@0
    51
# or in some cases, the newer four-part form:
slouken@0
    52
#	CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
slouken@0
    53
# It is wrong to echo any other type of specification.
slouken@0
    54
slouken@53
    55
me=`echo "$0" | sed -e 's,.*/,,'`
slouken@0
    56
slouken@53
    57
usage="\
slouken@53
    58
Usage: $0 [OPTION] CPU-MFR-OPSYS
slouken@53
    59
       $0 [OPTION] ALIAS
slouken@53
    60
slouken@53
    61
Canonicalize a configuration name.
slouken@53
    62
slouken@53
    63
Operation modes:
slouken@53
    64
  -h, --help         print this help, then exit
slouken@53
    65
  -t, --time-stamp   print date of last modification, then exit
slouken@53
    66
  -v, --version      print version number, then exit
slouken@53
    67
slouken@53
    68
Report bugs and patches to <config-patches@gnu.org>."
slouken@53
    69
slouken@53
    70
version="\
slouken@53
    71
GNU config.sub ($timestamp)
slouken@53
    72
slouken@53
    73
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
slouken@53
    74
Free Software Foundation, Inc.
slouken@53
    75
slouken@53
    76
This is free software; see the source for copying conditions.  There is NO
slouken@53
    77
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
slouken@53
    78
slouken@53
    79
help="
slouken@53
    80
Try \`$me --help' for more information."
slouken@53
    81
slouken@53
    82
# Parse command line
slouken@53
    83
while test $# -gt 0 ; do
slouken@53
    84
  case $1 in
slouken@53
    85
    --time-stamp | --time* | -t )
slouken@53
    86
       echo "$timestamp" ; exit 0 ;;
slouken@53
    87
    --version | -v )
slouken@53
    88
       echo "$version" ; exit 0 ;;
slouken@53
    89
    --help | --h* | -h )
slouken@53
    90
       echo "$usage"; exit 0 ;;
slouken@53
    91
    -- )     # Stop option processing
slouken@53
    92
       shift; break ;;
slouken@53
    93
    - )	# Use stdin as input.
slouken@53
    94
       break ;;
slouken@53
    95
    -* )
slouken@53
    96
       echo "$me: invalid option $1$help"
slouken@53
    97
       exit 1 ;;
slouken@53
    98
slouken@53
    99
    *local*)
slouken@53
   100
       # First pass through any local machine types.
slouken@53
   101
       echo $1
slouken@53
   102
       exit 0;;
slouken@53
   103
slouken@53
   104
    * )
slouken@53
   105
       break ;;
slouken@53
   106
  esac
slouken@53
   107
done
slouken@53
   108
slouken@53
   109
case $# in
slouken@53
   110
 0) echo "$me: missing argument$help" >&2
slouken@53
   111
    exit 1;;
slouken@53
   112
 1) ;;
slouken@53
   113
 *) echo "$me: too many arguments$help" >&2
slouken@53
   114
    exit 1;;
slouken@0
   115
esac
slouken@0
   116
slouken@0
   117
# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
slouken@0
   118
# Here we must recognize all the valid KERNEL-OS combinations.
slouken@0
   119
maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
slouken@0
   120
case $maybe_os in
slouken@729
   121
  nto-qnx* | linux-gnu* | freebsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*)
slouken@0
   122
    os=-$maybe_os
slouken@0
   123
    basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
slouken@0
   124
    ;;
slouken@0
   125
  *)
slouken@0
   126
    basic_machine=`echo $1 | sed 's/-[^-]*$//'`
slouken@0
   127
    if [ $basic_machine != $1 ]
slouken@0
   128
    then os=`echo $1 | sed 's/.*-/-/'`
slouken@0
   129
    else os=; fi
slouken@0
   130
    ;;
slouken@0
   131
esac
slouken@0
   132
slouken@0
   133
### Let's recognize common machines as not being operating systems so
slouken@0
   134
### that things like config.sub decstation-3100 work.  We also
slouken@0
   135
### recognize some manufacturers as not being operating systems, so we
slouken@0
   136
### can provide default operating systems below.
slouken@0
   137
case $os in
slouken@0
   138
	-sun*os*)
slouken@0
   139
		# Prevent following clause from handling this invalid input.
slouken@0
   140
		;;
slouken@0
   141
	-dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \
slouken@0
   142
	-att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
slouken@0
   143
	-unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
slouken@0
   144
	-convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
slouken@0
   145
	-c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
slouken@0
   146
	-harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
slouken@53
   147
	-apple | -axis)
slouken@0
   148
		os=
slouken@0
   149
		basic_machine=$1
slouken@0
   150
		;;
slouken@0
   151
	-sim | -cisco | -oki | -wec | -winbond)
slouken@0
   152
		os=
slouken@0
   153
		basic_machine=$1
slouken@0
   154
		;;
slouken@0
   155
	-scout)
slouken@0
   156
		;;
slouken@0
   157
	-wrs)
slouken@53
   158
		os=-vxworks
slouken@0
   159
		basic_machine=$1
slouken@0
   160
		;;
slouken@729
   161
	-chorusos*)
slouken@729
   162
		os=-chorusos
slouken@729
   163
		basic_machine=$1
slouken@729
   164
		;;
slouken@729
   165
 	-chorusrdb)
slouken@729
   166
 		os=-chorusrdb
slouken@729
   167
		basic_machine=$1
slouken@729
   168
 		;;
slouken@0
   169
	-hiux*)
slouken@0
   170
		os=-hiuxwe2
slouken@0
   171
		;;
slouken@0
   172
	-sco5)
slouken@0
   173
		os=-sco3.2v5
slouken@0
   174
		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
slouken@0
   175
		;;
slouken@0
   176
	-sco4)
slouken@0
   177
		os=-sco3.2v4
slouken@0
   178
		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
slouken@0
   179
		;;
slouken@0
   180
	-sco3.2.[4-9]*)
slouken@0
   181
		os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
slouken@0
   182
		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
slouken@0
   183
		;;
slouken@0
   184
	-sco3.2v[4-9]*)
slouken@0
   185
		# Don't forget version if it is 3.2v4 or newer.
slouken@0
   186
		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
slouken@0
   187
		;;
slouken@0
   188
	-sco*)
slouken@0
   189
		os=-sco3.2v2
slouken@0
   190
		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
slouken@0
   191
		;;
slouken@0
   192
	-udk*)
slouken@0
   193
		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
slouken@0
   194
		;;
slouken@0
   195
	-isc)
slouken@0
   196
		os=-isc2.2
slouken@0
   197
		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
slouken@0
   198
		;;
slouken@0
   199
	-clix*)
slouken@0
   200
		basic_machine=clipper-intergraph
slouken@0
   201
		;;
slouken@0
   202
	-isc*)
slouken@0
   203
		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
slouken@0
   204
		;;
slouken@0
   205
	-lynx*)
slouken@0
   206
		os=-lynxos
slouken@0
   207
		;;
slouken@0
   208
	-ptx*)
slouken@0
   209
		basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'`
slouken@0
   210
		;;
slouken@0
   211
	-windowsnt*)
slouken@0
   212
		os=`echo $os | sed -e 's/windowsnt/winnt/'`
slouken@0
   213
		;;
slouken@0
   214
	-psos*)
slouken@0
   215
		os=-psos
slouken@0
   216
		;;
slouken@53
   217
	-mint | -mint[0-9]*)
slouken@53
   218
		basic_machine=m68k-atari
slouken@53
   219
		os=-mint
slouken@53
   220
		;;
slouken@0
   221
esac
slouken@0
   222
slouken@0
   223
# Decode aliases for certain CPU-COMPANY combinations.
slouken@0
   224
case $basic_machine in
slouken@0
   225
	# Recognize the basic CPU types without company name.
slouken@0
   226
	# Some are omitted here because they have special meanings below.
slouken@729
   227
	1750a | 580 \
slouken@729
   228
	| a29k \
slouken@729
   229
	| alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
slouken@729
   230
	| alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
slouken@729
   231
	| arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
slouken@729
   232
	| clipper \
slouken@729
   233
	| d10v | d30v | dlx | dsp16xx \
slouken@729
   234
	| fr30 | frv \
slouken@729
   235
	| h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
slouken@729
   236
	| i370 | i860 | i960 | ia64 \
slouken@729
   237
	| ip2k \
slouken@729
   238
	| m32r | m68000 | m68k | m88k | mcore \
slouken@729
   239
	| mips | mipsbe | mipseb | mipsel | mipsle \
slouken@729
   240
	| mips16 \
slouken@729
   241
	| mips64 | mips64el \
slouken@729
   242
	| mips64vr | mips64vrel \
slouken@729
   243
	| mips64orion | mips64orionel \
slouken@729
   244
	| mips64vr4100 | mips64vr4100el \
slouken@729
   245
	| mips64vr4300 | mips64vr4300el \
slouken@729
   246
	| mips64vr5000 | mips64vr5000el \
slouken@729
   247
	| mipsisa32 | mipsisa32el \
slouken@729
   248
	| mipsisa32r2 | mipsisa32r2el \
slouken@729
   249
	| mipsisa64 | mipsisa64el \
slouken@729
   250
	| mipsisa64sb1 | mipsisa64sb1el \
slouken@729
   251
	| mipsisa64sr71k | mipsisa64sr71kel \
slouken@729
   252
	| mipstx39 | mipstx39el \
slouken@729
   253
	| mn10200 | mn10300 \
slouken@729
   254
	| msp430 \
slouken@729
   255
	| ns16k | ns32k \
slouken@729
   256
	| openrisc | or32 \
slouken@729
   257
	| pdp10 | pdp11 | pj | pjl \
slouken@729
   258
	| powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
slouken@729
   259
	| pyramid \
slouken@729
   260
	| sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \
slouken@729
   261
	| sh64 | sh64le \
slouken@729
   262
	| sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv9 | sparcv9b \
slouken@729
   263
	| strongarm \
slouken@729
   264
	| tahoe | thumb | tic80 | tron \
slouken@729
   265
	| v850 | v850e \
slouken@729
   266
	| we32k \
slouken@729
   267
	| x86 | xscale | xstormy16 | xtensa \
slouken@729
   268
	| z8k)
slouken@0
   269
		basic_machine=$basic_machine-unknown
slouken@0
   270
		;;
slouken@53
   271
	m6811 | m68hc11 | m6812 | m68hc12)
slouken@53
   272
		# Motorola 68HC11/12.
slouken@53
   273
		basic_machine=$basic_machine-unknown
slouken@53
   274
		os=-none
slouken@53
   275
		;;
slouken@729
   276
	m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
slouken@0
   277
		;;
slouken@0
   278
slouken@0
   279
	# We use `pc' rather than `unknown'
slouken@0
   280
	# because (1) that's what they normally are, and
slouken@0
   281
	# (2) the word "unknown" tends to confuse beginning users.
slouken@729
   282
	i*86 | x86_64)
slouken@0
   283
	  basic_machine=$basic_machine-pc
slouken@0
   284
	  ;;
slouken@0
   285
	# Object if more than one company name word.
slouken@0
   286
	*-*-*)
slouken@0
   287
		echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
slouken@0
   288
		exit 1
slouken@0
   289
		;;
slouken@0
   290
	# Recognize the basic CPU types with company name.
slouken@729
   291
	580-* \
slouken@729
   292
	| a29k-* \
slouken@729
   293
	| alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
slouken@729
   294
	| alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
slouken@729
   295
	| alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
slouken@729
   296
	| arm-*  | armbe-* | armle-* | armeb-* | armv*-* \
slouken@729
   297
	| avr-* \
slouken@729
   298
	| bs2000-* \
slouken@729
   299
	| c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
slouken@729
   300
	| clipper-* | cydra-* \
slouken@729
   301
	| d10v-* | d30v-* | dlx-* \
slouken@729
   302
	| elxsi-* \
slouken@729
   303
	| f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \
slouken@729
   304
	| h8300-* | h8500-* \
slouken@729
   305
	| hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
slouken@729
   306
	| i*86-* | i860-* | i960-* | ia64-* \
slouken@729
   307
	| ip2k-* \
slouken@729
   308
	| m32r-* \
slouken@729
   309
	| m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
slouken@729
   310
	| m88110-* | m88k-* | mcore-* \
slouken@729
   311
	| mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
slouken@729
   312
	| mips16-* \
slouken@729
   313
	| mips64-* | mips64el-* \
slouken@729
   314
	| mips64vr-* | mips64vrel-* \
slouken@729
   315
	| mips64orion-* | mips64orionel-* \
slouken@729
   316
	| mips64vr4100-* | mips64vr4100el-* \
slouken@729
   317
	| mips64vr4300-* | mips64vr4300el-* \
slouken@729
   318
	| mips64vr5000-* | mips64vr5000el-* \
slouken@729
   319
	| mipsisa32-* | mipsisa32el-* \
slouken@729
   320
	| mipsisa32r2-* | mipsisa32r2el-* \
slouken@729
   321
	| mipsisa64-* | mipsisa64el-* \
slouken@729
   322
	| mipsisa64sb1-* | mipsisa64sb1el-* \
slouken@729
   323
	| mipsisa64sr71k-* | mipsisa64sr71kel-* \
slouken@729
   324
	| mipstx39-* | mipstx39el-* \
slouken@729
   325
	| msp430-* \
slouken@729
   326
	| none-* | np1-* | nv1-* | ns16k-* | ns32k-* \
slouken@729
   327
	| orion-* \
slouken@729
   328
	| pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
slouken@729
   329
	| powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
slouken@729
   330
	| pyramid-* \
slouken@729
   331
	| romp-* | rs6000-* \
slouken@729
   332
	| sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \
slouken@729
   333
	| shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
slouken@729
   334
	| sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \
slouken@729
   335
	| sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \
slouken@729
   336
	| tahoe-* | thumb-* \
slouken@729
   337
	| tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
slouken@729
   338
	| tron-* \
slouken@729
   339
	| v850-* | v850e-* | vax-* \
slouken@729
   340
	| we32k-* \
slouken@729
   341
	| x86-* | x86_64-* | xps100-* | xscale-* | xstormy16-* \
slouken@729
   342
	| xtensa-* \
slouken@729
   343
	| ymp-* \
slouken@729
   344
	| z8k-*)
slouken@0
   345
		;;
slouken@0
   346
	# Recognize the various machine names and aliases which stand
slouken@0
   347
	# for a CPU type and a company and sometimes even an OS.
slouken@0
   348
	386bsd)
slouken@0
   349
		basic_machine=i386-unknown
slouken@0
   350
		os=-bsd
slouken@0
   351
		;;
slouken@0
   352
	3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
slouken@0
   353
		basic_machine=m68000-att
slouken@0
   354
		;;
slouken@0
   355
	3b*)
slouken@0
   356
		basic_machine=we32k-att
slouken@0
   357
		;;
slouken@0
   358
	a29khif)
slouken@0
   359
		basic_machine=a29k-amd
slouken@0
   360
		os=-udi
slouken@0
   361
		;;
slouken@0
   362
	adobe68k)
slouken@0
   363
		basic_machine=m68010-adobe
slouken@0
   364
		os=-scout
slouken@0
   365
		;;
slouken@0
   366
	alliant | fx80)
slouken@0
   367
		basic_machine=fx80-alliant
slouken@0
   368
		;;
slouken@0
   369
	altos | altos3068)
slouken@0
   370
		basic_machine=m68k-altos
slouken@0
   371
		;;
slouken@0
   372
	am29k)
slouken@0
   373
		basic_machine=a29k-none
slouken@0
   374
		os=-bsd
slouken@0
   375
		;;
slouken@0
   376
	amdahl)
slouken@0
   377
		basic_machine=580-amdahl
slouken@0
   378
		os=-sysv
slouken@0
   379
		;;
slouken@0
   380
	amiga | amiga-*)
slouken@53
   381
		basic_machine=m68k-unknown
slouken@0
   382
		;;
slouken@0
   383
	amigaos | amigados)
slouken@53
   384
		basic_machine=m68k-unknown
slouken@0
   385
		os=-amigaos
slouken@0
   386
		;;
slouken@0
   387
	amigaunix | amix)
slouken@53
   388
		basic_machine=m68k-unknown
slouken@0
   389
		os=-sysv4
slouken@0
   390
		;;
slouken@0
   391
	apollo68)
slouken@0
   392
		basic_machine=m68k-apollo
slouken@0
   393
		os=-sysv
slouken@0
   394
		;;
slouken@0
   395
	apollo68bsd)
slouken@0
   396
		basic_machine=m68k-apollo
slouken@0
   397
		os=-bsd
slouken@0
   398
		;;
slouken@0
   399
	aux)
slouken@0
   400
		basic_machine=m68k-apple
slouken@0
   401
		os=-aux
slouken@0
   402
		;;
slouken@0
   403
	balance)
slouken@0
   404
		basic_machine=ns32k-sequent
slouken@0
   405
		os=-dynix
slouken@0
   406
		;;
slouken@729
   407
	c90)
slouken@729
   408
		basic_machine=c90-cray
slouken@729
   409
		os=-unicos
slouken@729
   410
		;;
slouken@0
   411
	convex-c1)
slouken@0
   412
		basic_machine=c1-convex
slouken@0
   413
		os=-bsd
slouken@0
   414
		;;
slouken@0
   415
	convex-c2)
slouken@0
   416
		basic_machine=c2-convex
slouken@0
   417
		os=-bsd
slouken@0
   418
		;;
slouken@0
   419
	convex-c32)
slouken@0
   420
		basic_machine=c32-convex
slouken@0
   421
		os=-bsd
slouken@0
   422
		;;
slouken@0
   423
	convex-c34)
slouken@0
   424
		basic_machine=c34-convex
slouken@0
   425
		os=-bsd
slouken@0
   426
		;;
slouken@0
   427
	convex-c38)
slouken@0
   428
		basic_machine=c38-convex
slouken@0
   429
		os=-bsd
slouken@0
   430
		;;
slouken@729
   431
	cray | j90)
slouken@729
   432
		basic_machine=j90-cray
slouken@0
   433
		os=-unicos
slouken@0
   434
		;;
slouken@0
   435
	crds | unos)
slouken@0
   436
		basic_machine=m68k-crds
slouken@0
   437
		;;
slouken@53
   438
	cris | cris-* | etrax*)
slouken@53
   439
		basic_machine=cris-axis
slouken@53
   440
		;;
slouken@0
   441
	da30 | da30-*)
slouken@0
   442
		basic_machine=m68k-da30
slouken@0
   443
		;;
slouken@0
   444
	decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
slouken@0
   445
		basic_machine=mips-dec
slouken@0
   446
		;;
slouken@729
   447
	decsystem10* | dec10*)
slouken@729
   448
		basic_machine=pdp10-dec
slouken@729
   449
		os=-tops10
slouken@729
   450
		;;
slouken@729
   451
	decsystem20* | dec20*)
slouken@729
   452
		basic_machine=pdp10-dec
slouken@729
   453
		os=-tops20
slouken@729
   454
		;;
slouken@0
   455
	delta | 3300 | motorola-3300 | motorola-delta \
slouken@0
   456
	      | 3300-motorola | delta-motorola)
slouken@0
   457
		basic_machine=m68k-motorola
slouken@0
   458
		;;
slouken@0
   459
	delta88)
slouken@0
   460
		basic_machine=m88k-motorola
slouken@0
   461
		os=-sysv3
slouken@0
   462
		;;
slouken@0
   463
	dpx20 | dpx20-*)
slouken@0
   464
		basic_machine=rs6000-bull
slouken@0
   465
		os=-bosx
slouken@0
   466
		;;
slouken@0
   467
	dpx2* | dpx2*-bull)
slouken@0
   468
		basic_machine=m68k-bull
slouken@0
   469
		os=-sysv3
slouken@0
   470
		;;
slouken@0
   471
	ebmon29k)
slouken@0
   472
		basic_machine=a29k-amd
slouken@0
   473
		os=-ebmon
slouken@0
   474
		;;
slouken@0
   475
	elxsi)
slouken@0
   476
		basic_machine=elxsi-elxsi
slouken@0
   477
		os=-bsd
slouken@0
   478
		;;
slouken@0
   479
	encore | umax | mmax)
slouken@0
   480
		basic_machine=ns32k-encore
slouken@0
   481
		;;
slouken@0
   482
	es1800 | OSE68k | ose68k | ose | OSE)
slouken@0
   483
		basic_machine=m68k-ericsson
slouken@0
   484
		os=-ose
slouken@0
   485
		;;
slouken@0
   486
	fx2800)
slouken@0
   487
		basic_machine=i860-alliant
slouken@0
   488
		;;
slouken@0
   489
	genix)
slouken@0
   490
		basic_machine=ns32k-ns
slouken@0
   491
		;;
slouken@0
   492
	gmicro)
slouken@0
   493
		basic_machine=tron-gmicro
slouken@0
   494
		os=-sysv
slouken@0
   495
		;;
slouken@53
   496
	go32)
slouken@53
   497
		basic_machine=i386-pc
slouken@53
   498
		os=-go32
slouken@53
   499
		;;
slouken@0
   500
	h3050r* | hiux*)
slouken@0
   501
		basic_machine=hppa1.1-hitachi
slouken@0
   502
		os=-hiuxwe2
slouken@0
   503
		;;
slouken@0
   504
	h8300hms)
slouken@0
   505
		basic_machine=h8300-hitachi
slouken@0
   506
		os=-hms
slouken@0
   507
		;;
slouken@0
   508
	h8300xray)
slouken@0
   509
		basic_machine=h8300-hitachi
slouken@0
   510
		os=-xray
slouken@0
   511
		;;
slouken@0
   512
	h8500hms)
slouken@0
   513
		basic_machine=h8500-hitachi
slouken@0
   514
		os=-hms
slouken@0
   515
		;;
slouken@0
   516
	harris)
slouken@0
   517
		basic_machine=m88k-harris
slouken@0
   518
		os=-sysv3
slouken@0
   519
		;;
slouken@0
   520
	hp300-*)
slouken@0
   521
		basic_machine=m68k-hp
slouken@0
   522
		;;
slouken@0
   523
	hp300bsd)
slouken@0
   524
		basic_machine=m68k-hp
slouken@0
   525
		os=-bsd
slouken@0
   526
		;;
slouken@0
   527
	hp300hpux)
slouken@0
   528
		basic_machine=m68k-hp
slouken@0
   529
		os=-hpux
slouken@0
   530
		;;
slouken@0
   531
	hp3k9[0-9][0-9] | hp9[0-9][0-9])
slouken@0
   532
		basic_machine=hppa1.0-hp
slouken@0
   533
		;;
slouken@0
   534
	hp9k2[0-9][0-9] | hp9k31[0-9])
slouken@0
   535
		basic_machine=m68000-hp
slouken@0
   536
		;;
slouken@0
   537
	hp9k3[2-9][0-9])
slouken@0
   538
		basic_machine=m68k-hp
slouken@0
   539
		;;
slouken@0
   540
	hp9k6[0-9][0-9] | hp6[0-9][0-9])
slouken@0
   541
		basic_machine=hppa1.0-hp
slouken@0
   542
		;;
slouken@0
   543
	hp9k7[0-79][0-9] | hp7[0-79][0-9])
slouken@0
   544
		basic_machine=hppa1.1-hp
slouken@0
   545
		;;
slouken@0
   546
	hp9k78[0-9] | hp78[0-9])
slouken@0
   547
		# FIXME: really hppa2.0-hp
slouken@0
   548
		basic_machine=hppa1.1-hp
slouken@0
   549
		;;
slouken@0
   550
	hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
slouken@0
   551
		# FIXME: really hppa2.0-hp
slouken@0
   552
		basic_machine=hppa1.1-hp
slouken@0
   553
		;;
slouken@0
   554
	hp9k8[0-9][13679] | hp8[0-9][13679])
slouken@0
   555
		basic_machine=hppa1.1-hp
slouken@0
   556
		;;
slouken@0
   557
	hp9k8[0-9][0-9] | hp8[0-9][0-9])
slouken@0
   558
		basic_machine=hppa1.0-hp
slouken@0
   559
		;;
slouken@0
   560
	hppa-next)
slouken@0
   561
		os=-nextstep3
slouken@0
   562
		;;
slouken@0
   563
	hppaosf)
slouken@0
   564
		basic_machine=hppa1.1-hp
slouken@0
   565
		os=-osf
slouken@0
   566
		;;
slouken@0
   567
	hppro)
slouken@0
   568
		basic_machine=hppa1.1-hp
slouken@0
   569
		os=-proelf
slouken@0
   570
		;;
slouken@0
   571
	i370-ibm* | ibm*)
slouken@0
   572
		basic_machine=i370-ibm
slouken@0
   573
		;;
slouken@0
   574
# I'm not sure what "Sysv32" means.  Should this be sysv3.2?
slouken@729
   575
	i*86v32)
slouken@0
   576
		basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
slouken@0
   577
		os=-sysv32
slouken@0
   578
		;;
slouken@729
   579
	i*86v4*)
slouken@0
   580
		basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
slouken@0
   581
		os=-sysv4
slouken@0
   582
		;;
slouken@729
   583
	i*86v)
slouken@0
   584
		basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
slouken@0
   585
		os=-sysv
slouken@0
   586
		;;
slouken@729
   587
	i*86sol2)
slouken@0
   588
		basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
slouken@0
   589
		os=-solaris2
slouken@0
   590
		;;
slouken@0
   591
	i386mach)
slouken@0
   592
		basic_machine=i386-mach
slouken@0
   593
		os=-mach
slouken@0
   594
		;;
slouken@0
   595
	i386-vsta | vsta)
slouken@0
   596
		basic_machine=i386-unknown
slouken@0
   597
		os=-vsta
slouken@0
   598
		;;
slouken@0
   599
	iris | iris4d)
slouken@0
   600
		basic_machine=mips-sgi
slouken@0
   601
		case $os in
slouken@0
   602
		    -irix*)
slouken@0
   603
			;;
slouken@0
   604
		    *)
slouken@0
   605
			os=-irix4
slouken@0
   606
			;;
slouken@0
   607
		esac
slouken@0
   608
		;;
slouken@0
   609
	isi68 | isi)
slouken@0
   610
		basic_machine=m68k-isi
slouken@0
   611
		os=-sysv
slouken@0
   612
		;;
slouken@0
   613
	m88k-omron*)
slouken@0
   614
		basic_machine=m88k-omron
slouken@0
   615
		;;
slouken@0
   616
	magnum | m3230)
slouken@0
   617
		basic_machine=mips-mips
slouken@0
   618
		os=-sysv
slouken@0
   619
		;;
slouken@0
   620
	merlin)
slouken@0
   621
		basic_machine=ns32k-utek
slouken@0
   622
		os=-sysv
slouken@0
   623
		;;
slouken@53
   624
	mingw32)
slouken@53
   625
		basic_machine=i386-pc
slouken@53
   626
		os=-mingw32
slouken@53
   627
		;;
slouken@0
   628
	miniframe)
slouken@0
   629
		basic_machine=m68000-convergent
slouken@0
   630
		;;
slouken@53
   631
	*mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)
slouken@0
   632
		basic_machine=m68k-atari
slouken@0
   633
		os=-mint
slouken@0
   634
		;;
slouken@0
   635
	mips3*-*)
slouken@0
   636
		basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
slouken@0
   637
		;;
slouken@0
   638
	mips3*)
slouken@0
   639
		basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
slouken@0
   640
		;;
slouken@53
   641
	mmix*)
slouken@53
   642
		basic_machine=mmix-knuth
slouken@53
   643
		os=-mmixware
slouken@53
   644
		;;
slouken@0
   645
	monitor)
slouken@0
   646
		basic_machine=m68k-rom68k
slouken@0
   647
		os=-coff
slouken@0
   648
		;;
slouken@729
   649
	morphos)
slouken@729
   650
		basic_machine=powerpc-unknown
slouken@729
   651
		os=-morphos
slouken@729
   652
		;;
slouken@0
   653
	msdos)
slouken@53
   654
		basic_machine=i386-pc
slouken@0
   655
		os=-msdos
slouken@0
   656
		;;
slouken@53
   657
	mvs)
slouken@53
   658
		basic_machine=i370-ibm
slouken@53
   659
		os=-mvs
slouken@53
   660
		;;
slouken@0
   661
	ncr3000)
slouken@0
   662
		basic_machine=i486-ncr
slouken@0
   663
		os=-sysv4
slouken@0
   664
		;;
slouken@0
   665
	netbsd386)
slouken@0
   666
		basic_machine=i386-unknown
slouken@0
   667
		os=-netbsd
slouken@0
   668
		;;
slouken@0
   669
	netwinder)
slouken@53
   670
		basic_machine=armv4l-rebel
slouken@0
   671
		os=-linux
slouken@0
   672
		;;
slouken@0
   673
	news | news700 | news800 | news900)
slouken@0
   674
		basic_machine=m68k-sony
slouken@0
   675
		os=-newsos
slouken@0
   676
		;;
slouken@0
   677
	news1000)
slouken@0
   678
		basic_machine=m68030-sony
slouken@0
   679
		os=-newsos
slouken@0
   680
		;;
slouken@0
   681
	news-3600 | risc-news)
slouken@0
   682
		basic_machine=mips-sony
slouken@0
   683
		os=-newsos
slouken@0
   684
		;;
slouken@0
   685
	necv70)
slouken@0
   686
		basic_machine=v70-nec
slouken@0
   687
		os=-sysv
slouken@0
   688
		;;
slouken@0
   689
	next | m*-next )
slouken@0
   690
		basic_machine=m68k-next
slouken@0
   691
		case $os in
slouken@0
   692
		    -nextstep* )
slouken@0
   693
			;;
slouken@0
   694
		    -ns2*)
slouken@0
   695
		      os=-nextstep2
slouken@0
   696
			;;
slouken@0
   697
		    *)
slouken@0
   698
		      os=-nextstep3
slouken@0
   699
			;;
slouken@0
   700
		esac
slouken@0
   701
		;;
slouken@0
   702
	nh3000)
slouken@0
   703
		basic_machine=m68k-harris
slouken@0
   704
		os=-cxux
slouken@0
   705
		;;
slouken@0
   706
	nh[45]000)
slouken@0
   707
		basic_machine=m88k-harris
slouken@0
   708
		os=-cxux
slouken@0
   709
		;;
slouken@0
   710
	nindy960)
slouken@0
   711
		basic_machine=i960-intel
slouken@0
   712
		os=-nindy
slouken@0
   713
		;;
slouken@0
   714
	mon960)
slouken@0
   715
		basic_machine=i960-intel
slouken@0
   716
		os=-mon960
slouken@0
   717
		;;
slouken@53
   718
	nonstopux)
slouken@53
   719
		basic_machine=mips-compaq
slouken@53
   720
		os=-nonstopux
slouken@53
   721
		;;
slouken@0
   722
	np1)
slouken@0
   723
		basic_machine=np1-gould
slouken@0
   724
		;;
slouken@729
   725
	nv1)
slouken@729
   726
		basic_machine=nv1-cray
slouken@729
   727
		os=-unicosmp
slouken@729
   728
		;;
slouken@53
   729
	nsr-tandem)
slouken@53
   730
		basic_machine=nsr-tandem
slouken@53
   731
		;;
slouken@0
   732
	op50n-* | op60c-*)
slouken@0
   733
		basic_machine=hppa1.1-oki
slouken@0
   734
		os=-proelf
slouken@0
   735
		;;
slouken@729
   736
	or32 | or32-*)
slouken@729
   737
		basic_machine=or32-unknown
slouken@729
   738
		os=-coff
slouken@729
   739
		;;
slouken@0
   740
	OSE68000 | ose68000)
slouken@0
   741
		basic_machine=m68000-ericsson
slouken@0
   742
		os=-ose
slouken@0
   743
		;;
slouken@0
   744
	os68k)
slouken@0
   745
		basic_machine=m68k-none
slouken@0
   746
		os=-os68k
slouken@0
   747
		;;
slouken@0
   748
	pa-hitachi)
slouken@0
   749
		basic_machine=hppa1.1-hitachi
slouken@0
   750
		os=-hiuxwe2
slouken@0
   751
		;;
slouken@0
   752
	paragon)
slouken@0
   753
		basic_machine=i860-intel
slouken@0
   754
		os=-osf
slouken@0
   755
		;;
slouken@0
   756
	pbd)
slouken@0
   757
		basic_machine=sparc-tti
slouken@0
   758
		;;
slouken@0
   759
	pbb)
slouken@0
   760
		basic_machine=m68k-tti
slouken@0
   761
		;;
slouken@729
   762
	pc532 | pc532-*)
slouken@0
   763
		basic_machine=ns32k-pc532
slouken@0
   764
		;;
slouken@729
   765
	pentium | p5 | k5 | k6 | nexgen | viac3)
slouken@0
   766
		basic_machine=i586-pc
slouken@0
   767
		;;
slouken@729
   768
	pentiumpro | p6 | 6x86 | athlon | athlon_*)
slouken@0
   769
		basic_machine=i686-pc
slouken@0
   770
		;;
slouken@0
   771
	pentiumii | pentium2)
slouken@53
   772
		basic_machine=i686-pc
slouken@0
   773
		;;
slouken@729
   774
	pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
slouken@0
   775
		basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
slouken@0
   776
		;;
slouken@53
   777
	pentiumpro-* | p6-* | 6x86-* | athlon-*)
slouken@0
   778
		basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
slouken@0
   779
		;;
slouken@0
   780
	pentiumii-* | pentium2-*)
slouken@53
   781
		basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
slouken@0
   782
		;;
slouken@0
   783
	pn)
slouken@0
   784
		basic_machine=pn-gould
slouken@0
   785
		;;
slouken@53
   786
	power)	basic_machine=power-ibm
slouken@0
   787
		;;
slouken@0
   788
	ppc)	basic_machine=powerpc-unknown
slouken@729
   789
		;;
slouken@0
   790
	ppc-*)	basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
slouken@0
   791
		;;
slouken@0
   792
	ppcle | powerpclittle | ppc-le | powerpc-little)
slouken@0
   793
		basic_machine=powerpcle-unknown
slouken@729
   794
		;;
slouken@0
   795
	ppcle-* | powerpclittle-*)
slouken@0
   796
		basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
slouken@0
   797
		;;
slouken@729
   798
	ppc64)	basic_machine=powerpc64-unknown
slouken@729
   799
		;;
slouken@729
   800
	ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
slouken@729
   801
		;;
slouken@729
   802
	ppc64le | powerpc64little | ppc64-le | powerpc64-little)
slouken@729
   803
		basic_machine=powerpc64le-unknown
slouken@729
   804
		;;
slouken@729
   805
	ppc64le-* | powerpc64little-*)
slouken@729
   806
		basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
slouken@729
   807
		;;
slouken@0
   808
	ps2)
slouken@0
   809
		basic_machine=i386-ibm
slouken@0
   810
		;;
slouken@53
   811
	pw32)
slouken@53
   812
		basic_machine=i586-unknown
slouken@53
   813
		os=-pw32
slouken@53
   814
		;;
slouken@0
   815
	rom68k)
slouken@0
   816
		basic_machine=m68k-rom68k
slouken@0
   817
		os=-coff
slouken@0
   818
		;;
slouken@0
   819
	rm[46]00)
slouken@0
   820
		basic_machine=mips-siemens
slouken@0
   821
		;;
slouken@0
   822
	rtpc | rtpc-*)
slouken@0
   823
		basic_machine=romp-ibm
slouken@0
   824
		;;
slouken@729
   825
	s390 | s390-*)
slouken@729
   826
		basic_machine=s390-ibm
slouken@729
   827
		;;
slouken@729
   828
	s390x | s390x-*)
slouken@729
   829
		basic_machine=s390x-ibm
slouken@729
   830
		;;
slouken@0
   831
	sa29200)
slouken@0
   832
		basic_machine=a29k-amd
slouken@0
   833
		os=-udi
slouken@0
   834
		;;
slouken@729
   835
	sb1)
slouken@729
   836
		basic_machine=mipsisa64sb1-unknown
slouken@729
   837
		;;
slouken@729
   838
	sb1el)
slouken@729
   839
		basic_machine=mipsisa64sb1el-unknown
slouken@729
   840
		;;
slouken@0
   841
	sequent)
slouken@0
   842
		basic_machine=i386-sequent
slouken@0
   843
		;;
slouken@0
   844
	sh)
slouken@0
   845
		basic_machine=sh-hitachi
slouken@0
   846
		os=-hms
slouken@0
   847
		;;
slouken@729
   848
	sparclite-wrs | simso-wrs)
slouken@0
   849
		basic_machine=sparclite-wrs
slouken@0
   850
		os=-vxworks
slouken@0
   851
		;;
slouken@0
   852
	sps7)
slouken@0
   853
		basic_machine=m68k-bull
slouken@0
   854
		os=-sysv2
slouken@0
   855
		;;
slouken@0
   856
	spur)
slouken@0
   857
		basic_machine=spur-unknown
slouken@0
   858
		;;
slouken@0
   859
	st2000)
slouken@0
   860
		basic_machine=m68k-tandem
slouken@0
   861
		;;
slouken@0
   862
	stratus)
slouken@0
   863
		basic_machine=i860-stratus
slouken@0
   864
		os=-sysv4
slouken@0
   865
		;;
slouken@0
   866
	sun2)
slouken@0
   867
		basic_machine=m68000-sun
slouken@0
   868
		;;
slouken@0
   869
	sun2os3)
slouken@0
   870
		basic_machine=m68000-sun
slouken@0
   871
		os=-sunos3
slouken@0
   872
		;;
slouken@0
   873
	sun2os4)
slouken@0
   874
		basic_machine=m68000-sun
slouken@0
   875
		os=-sunos4
slouken@0
   876
		;;
slouken@0
   877
	sun3os3)
slouken@0
   878
		basic_machine=m68k-sun
slouken@0
   879
		os=-sunos3
slouken@0
   880
		;;
slouken@0
   881
	sun3os4)
slouken@0
   882
		basic_machine=m68k-sun
slouken@0
   883
		os=-sunos4
slouken@0
   884
		;;
slouken@0
   885
	sun4os3)
slouken@0
   886
		basic_machine=sparc-sun
slouken@0
   887
		os=-sunos3
slouken@0
   888
		;;
slouken@0
   889
	sun4os4)
slouken@0
   890
		basic_machine=sparc-sun
slouken@0
   891
		os=-sunos4
slouken@0
   892
		;;
slouken@0
   893
	sun4sol2)
slouken@0
   894
		basic_machine=sparc-sun
slouken@0
   895
		os=-solaris2
slouken@0
   896
		;;
slouken@0
   897
	sun3 | sun3-*)
slouken@0
   898
		basic_machine=m68k-sun
slouken@0
   899
		;;
slouken@0
   900
	sun4)
slouken@0
   901
		basic_machine=sparc-sun
slouken@0
   902
		;;
slouken@0
   903
	sun386 | sun386i | roadrunner)
slouken@0
   904
		basic_machine=i386-sun
slouken@0
   905
		;;
slouken@53
   906
	sv1)
slouken@53
   907
		basic_machine=sv1-cray
slouken@53
   908
		os=-unicos
slouken@53
   909
		;;
slouken@0
   910
	symmetry)
slouken@0
   911
		basic_machine=i386-sequent
slouken@0
   912
		os=-dynix
slouken@0
   913
		;;
slouken@0
   914
	t3e)
slouken@729
   915
		basic_machine=alphaev5-cray
slouken@0
   916
		os=-unicos
slouken@0
   917
		;;
slouken@729
   918
	t90)
slouken@729
   919
		basic_machine=t90-cray
slouken@729
   920
		os=-unicos
slouken@729
   921
		;;
slouken@729
   922
        tic4x | c4x*)
slouken@729
   923
		basic_machine=tic4x-unknown
slouken@729
   924
		os=-coff
slouken@729
   925
		;;
slouken@53
   926
	tic54x | c54x*)
slouken@53
   927
		basic_machine=tic54x-unknown
slouken@53
   928
		os=-coff
slouken@53
   929
		;;
slouken@729
   930
	tic55x | c55x*)
slouken@729
   931
		basic_machine=tic55x-unknown
slouken@729
   932
		os=-coff
slouken@729
   933
		;;
slouken@729
   934
	tic6x | c6x*)
slouken@729
   935
		basic_machine=tic6x-unknown
slouken@729
   936
		os=-coff
slouken@729
   937
		;;
slouken@0
   938
	tx39)
slouken@0
   939
		basic_machine=mipstx39-unknown
slouken@0
   940
		;;
slouken@0
   941
	tx39el)
slouken@0
   942
		basic_machine=mipstx39el-unknown
slouken@0
   943
		;;
slouken@729
   944
	toad1)
slouken@729
   945
		basic_machine=pdp10-xkl
slouken@729
   946
		os=-tops20
slouken@729
   947
		;;
slouken@0
   948
	tower | tower-32)
slouken@0
   949
		basic_machine=m68k-ncr
slouken@0
   950
		;;
slouken@0
   951
	udi29k)
slouken@0
   952
		basic_machine=a29k-amd
slouken@0
   953
		os=-udi
slouken@0
   954
		;;
slouken@0
   955
	ultra3)
slouken@0
   956
		basic_machine=a29k-nyu
slouken@0
   957
		os=-sym1
slouken@0
   958
		;;
slouken@0
   959
	v810 | necv810)
slouken@0
   960
		basic_machine=v810-nec
slouken@0
   961
		os=-none
slouken@0
   962
		;;
slouken@0
   963
	vaxv)
slouken@0
   964
		basic_machine=vax-dec
slouken@0
   965
		os=-sysv
slouken@0
   966
		;;
slouken@0
   967
	vms)
slouken@0
   968
		basic_machine=vax-dec
slouken@0
   969
		os=-vms
slouken@0
   970
		;;
slouken@0
   971
	vpp*|vx|vx-*)
slouken@729
   972
		basic_machine=f301-fujitsu
slouken@729
   973
		;;
slouken@0
   974
	vxworks960)
slouken@0
   975
		basic_machine=i960-wrs
slouken@0
   976
		os=-vxworks
slouken@0
   977
		;;
slouken@0
   978
	vxworks68)
slouken@0
   979
		basic_machine=m68k-wrs
slouken@0
   980
		os=-vxworks
slouken@0
   981
		;;
slouken@0
   982
	vxworks29k)
slouken@0
   983
		basic_machine=a29k-wrs
slouken@0
   984
		os=-vxworks
slouken@0
   985
		;;
slouken@0
   986
	w65*)
slouken@0
   987
		basic_machine=w65-wdc
slouken@0
   988
		os=-none
slouken@0
   989
		;;
slouken@0
   990
	w89k-*)
slouken@0
   991
		basic_machine=hppa1.1-winbond
slouken@0
   992
		os=-proelf
slouken@0
   993
		;;
slouken@729
   994
	xps | xps100)
slouken@729
   995
		basic_machine=xps100-honeywell
slouken@729
   996
		;;
slouken@729
   997
	ymp)
slouken@729
   998
		basic_machine=ymp-cray
slouken@0
   999
		os=-unicos
slouken@0
  1000
		;;
slouken@0
  1001
	z8k-*-coff)
slouken@0
  1002
		basic_machine=z8k-unknown
slouken@0
  1003
		os=-sim
slouken@0
  1004
		;;
slouken@0
  1005
	none)
slouken@0
  1006
		basic_machine=none-none
slouken@0
  1007
		os=-none
slouken@0
  1008
		;;
slouken@0
  1009
slouken@0
  1010
# Here we handle the default manufacturer of certain CPU types.  It is in
slouken@0
  1011
# some cases the only manufacturer, in others, it is the most popular.
slouken@0
  1012
	w89k)
slouken@0
  1013
		basic_machine=hppa1.1-winbond
slouken@0
  1014
		;;
slouken@0
  1015
	op50n)
slouken@0
  1016
		basic_machine=hppa1.1-oki
slouken@0
  1017
		;;
slouken@0
  1018
	op60c)
slouken@0
  1019
		basic_machine=hppa1.1-oki
slouken@0
  1020
		;;
slouken@0
  1021
	romp)
slouken@0
  1022
		basic_machine=romp-ibm
slouken@0
  1023
		;;
slouken@0
  1024
	rs6000)
slouken@0
  1025
		basic_machine=rs6000-ibm
slouken@0
  1026
		;;
slouken@0
  1027
	vax)
slouken@0
  1028
		basic_machine=vax-dec
slouken@0
  1029
		;;
slouken@53
  1030
	pdp10)
slouken@53
  1031
		# there are many clones, so DEC is not a safe bet
slouken@53
  1032
		basic_machine=pdp10-unknown
slouken@53
  1033
		;;
slouken@0
  1034
	pdp11)
slouken@0
  1035
		basic_machine=pdp11-dec
slouken@0
  1036
		;;
slouken@0
  1037
	we32k)
slouken@0
  1038
		basic_machine=we32k-att
slouken@0
  1039
		;;
slouken@729
  1040
	sh3 | sh4 | sh[34]eb | sh[1234]le | sh[23]ele)
slouken@53
  1041
		basic_machine=sh-unknown
slouken@53
  1042
		;;
slouken@729
  1043
	sh64)
slouken@729
  1044
		basic_machine=sh64-unknown
slouken@729
  1045
		;;
slouken@729
  1046
	sparc | sparcv9 | sparcv9b)
slouken@0
  1047
		basic_machine=sparc-sun
slouken@0
  1048
		;;
slouken@729
  1049
	cydra)
slouken@0
  1050
		basic_machine=cydra-cydrome
slouken@0
  1051
		;;
slouken@0
  1052
	orion)
slouken@0
  1053
		basic_machine=orion-highlevel
slouken@0
  1054
		;;
slouken@0
  1055
	orion105)
slouken@0
  1056
		basic_machine=clipper-highlevel
slouken@0
  1057
		;;
slouken@0
  1058
	mac | mpw | mac-mpw)
slouken@0
  1059
		basic_machine=m68k-apple
slouken@0
  1060
		;;
slouken@0
  1061
	pmac | pmac-mpw)
slouken@0
  1062
		basic_machine=powerpc-apple
slouken@0
  1063
		;;
slouken@729
  1064
	*-unknown)
slouken@729
  1065
		# Make sure to match an already-canonicalized machine name.
slouken@0
  1066
		;;
slouken@0
  1067
	*)
slouken@0
  1068
		echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
slouken@0
  1069
		exit 1
slouken@0
  1070
		;;
slouken@0
  1071
esac
slouken@0
  1072
slouken@0
  1073
# Here we canonicalize certain aliases for manufacturers.
slouken@0
  1074
case $basic_machine in
slouken@0
  1075
	*-digital*)
slouken@0
  1076
		basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'`
slouken@0
  1077
		;;
slouken@0
  1078
	*-commodore*)
slouken@0
  1079
		basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'`
slouken@0
  1080
		;;
slouken@0
  1081
	*)
slouken@0
  1082
		;;
slouken@0
  1083
esac
slouken@0
  1084
slouken@0
  1085
# Decode manufacturer-specific aliases for certain operating systems.
slouken@0
  1086
slouken@0
  1087
if [ x"$os" != x"" ]
slouken@0
  1088
then
slouken@0
  1089
case $os in
slouken@0
  1090
        # First match some system type aliases
slouken@0
  1091
        # that might get confused with valid system types.
slouken@0
  1092
	# -solaris* is a basic system type, with this one exception.
slouken@0
  1093
	-solaris1 | -solaris1.*)
slouken@0
  1094
		os=`echo $os | sed -e 's|solaris1|sunos4|'`
slouken@0
  1095
		;;
slouken@0
  1096
	-solaris)
slouken@0
  1097
		os=-solaris2
slouken@0
  1098
		;;
slouken@0
  1099
	-svr4*)
slouken@0
  1100
		os=-sysv4
slouken@0
  1101
		;;
slouken@0
  1102
	-unixware*)
slouken@0
  1103
		os=-sysv4.2uw
slouken@0
  1104
		;;
slouken@0
  1105
	-gnu/linux*)
slouken@0
  1106
		os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
slouken@0
  1107
		;;
slouken@0
  1108
	# First accept the basic system types.
slouken@0
  1109
	# The portable systems comes first.
slouken@0
  1110
	# Each alternative MUST END IN A *, to match a version number.
slouken@0
  1111
	# -sysv* is not here because it comes later, after sysvr4.
slouken@0
  1112
	-gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
slouken@0
  1113
	      | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
slouken@0
  1114
	      | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
slouken@0
  1115
	      | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
slouken@0
  1116
	      | -aos* \
slouken@0
  1117
	      | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
slouken@0
  1118
	      | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
slouken@0
  1119
	      | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \
slouken@0
  1120
	      | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
slouken@0
  1121
	      | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
slouken@0
  1122
	      | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
slouken@729
  1123
	      | -chorusos* | -chorusrdb* \
slouken@0
  1124
	      | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
slouken@0
  1125
	      | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \
slouken@729
  1126
	      | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
slouken@53
  1127
	      | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
slouken@729
  1128
	      | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
slouken@729
  1129
	      | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
slouken@729
  1130
	      | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
slouken@729
  1131
	      | -powermax* | -dnix*)
slouken@0
  1132
	# Remember, each alternative MUST END IN *, to match a version number.
slouken@0
  1133
		;;
slouken@53
  1134
	-qnx*)
slouken@53
  1135
		case $basic_machine in
slouken@729
  1136
		    x86-* | i*86-*)
slouken@53
  1137
			;;
slouken@53
  1138
		    *)
slouken@53
  1139
			os=-nto$os
slouken@53
  1140
			;;
slouken@53
  1141
		esac
slouken@53
  1142
		;;
slouken@53
  1143
	-nto*)
slouken@886
  1144
		os=-nto-qnx
slouken@53
  1145
		;;
slouken@0
  1146
	-sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
slouken@0
  1147
	      | -windows* | -osx | -abug | -netware* | -os9* | -beos* \
slouken@53
  1148
	      | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
slouken@0
  1149
		;;
slouken@0
  1150
	-mac*)
slouken@0
  1151
		os=`echo $os | sed -e 's|mac|macos|'`
slouken@0
  1152
		;;
slouken@0
  1153
	-linux*)
slouken@0
  1154
		os=`echo $os | sed -e 's|linux|linux-gnu|'`
slouken@0
  1155
		;;
slouken@0
  1156
	-sunos5*)
slouken@0
  1157
		os=`echo $os | sed -e 's|sunos5|solaris2|'`
slouken@0
  1158
		;;
slouken@0
  1159
	-sunos6*)
slouken@0
  1160
		os=`echo $os | sed -e 's|sunos6|solaris3|'`
slouken@0
  1161
		;;
slouken@53
  1162
	-opened*)
slouken@53
  1163
		os=-openedition
slouken@53
  1164
		;;
slouken@53
  1165
	-wince*)
slouken@53
  1166
		os=-wince
slouken@53
  1167
		;;
slouken@0
  1168
	-osfrose*)
slouken@0
  1169
		os=-osfrose
slouken@0
  1170
		;;
slouken@0
  1171
	-osf*)
slouken@0
  1172
		os=-osf
slouken@0
  1173
		;;
slouken@0
  1174
	-utek*)
slouken@0
  1175
		os=-bsd
slouken@0
  1176
		;;
slouken@0
  1177
	-dynix*)
slouken@0
  1178
		os=-bsd
slouken@0
  1179
		;;
slouken@0
  1180
	-acis*)
slouken@0
  1181
		os=-aos
slouken@0
  1182
		;;
slouken@729
  1183
	-atheos*)
slouken@729
  1184
		os=-atheos
slouken@729
  1185
		;;
slouken@0
  1186
	-386bsd)
slouken@0
  1187
		os=-bsd
slouken@0
  1188
		;;
slouken@0
  1189
	-ctix* | -uts*)
slouken@0
  1190
		os=-sysv
slouken@0
  1191
		;;
slouken@729
  1192
	-nova*)
slouken@729
  1193
		os=-rtmk-nova
slouken@729
  1194
		;;
slouken@0
  1195
	-ns2 )
slouken@729
  1196
		os=-nextstep2
slouken@0
  1197
		;;
slouken@53
  1198
	-nsk*)
slouken@53
  1199
		os=-nsk
slouken@53
  1200
		;;
slouken@0
  1201
	# Preserve the version number of sinix5.
slouken@0
  1202
	-sinix5.*)
slouken@0
  1203
		os=`echo $os | sed -e 's|sinix|sysv|'`
slouken@0
  1204
		;;
slouken@0
  1205
	-sinix*)
slouken@0
  1206
		os=-sysv4
slouken@0
  1207
		;;
slouken@0
  1208
	-triton*)
slouken@0
  1209
		os=-sysv3
slouken@0
  1210
		;;
slouken@0
  1211
	-oss*)
slouken@0
  1212
		os=-sysv3
slouken@0
  1213
		;;
slouken@0
  1214
	-svr4)
slouken@0
  1215
		os=-sysv4
slouken@0
  1216
		;;
slouken@0
  1217
	-svr3)
slouken@0
  1218
		os=-sysv3
slouken@0
  1219
		;;
slouken@0
  1220
	-sysvr4)
slouken@0
  1221
		os=-sysv4
slouken@0
  1222
		;;
slouken@0
  1223
	# This must come after -sysvr4.
slouken@0
  1224
	-sysv*)
slouken@0
  1225
		;;
slouken@0
  1226
	-ose*)
slouken@0
  1227
		os=-ose
slouken@0
  1228
		;;
slouken@0
  1229
	-es1800*)
slouken@0
  1230
		os=-ose
slouken@0
  1231
		;;
slouken@0
  1232
	-xenix)
slouken@0
  1233
		os=-xenix
slouken@0
  1234
		;;
slouken@729
  1235
	-*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
slouken@729
  1236
		os=-mint
slouken@729
  1237
		;;
slouken@729
  1238
	-aros*)
slouken@729
  1239
		os=-aros
slouken@729
  1240
		;;
slouken@729
  1241
	-kaos*)
slouken@729
  1242
		os=-kaos
slouken@0
  1243
		;;
slouken@0
  1244
	-none)
slouken@0
  1245
		;;
slouken@0
  1246
	*)
slouken@0
  1247
		# Get rid of the `-' at the beginning of $os.
slouken@0
  1248
		os=`echo $os | sed 's/[^-]*-//'`
slouken@0
  1249
		echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2
slouken@0
  1250
		exit 1
slouken@0
  1251
		;;
slouken@0
  1252
esac
slouken@0
  1253
else
slouken@0
  1254
slouken@0
  1255
# Here we handle the default operating systems that come with various machines.
slouken@0
  1256
# The value should be what the vendor currently ships out the door with their
slouken@0
  1257
# machine or put another way, the most popular os provided with the machine.
slouken@0
  1258
slouken@0
  1259
# Note that if you're going to try to match "-MANUFACTURER" here (say,
slouken@0
  1260
# "-sun"), then you have to tell the case statement up towards the top
slouken@0
  1261
# that MANUFACTURER isn't an operating system.  Otherwise, code above
slouken@0
  1262
# will signal an error saying that MANUFACTURER isn't an operating
slouken@0
  1263
# system, and we'll never get to this point.
slouken@0
  1264
slouken@0
  1265
case $basic_machine in
slouken@0
  1266
	*-acorn)
slouken@0
  1267
		os=-riscix1.2
slouken@0
  1268
		;;
slouken@53
  1269
	arm*-rebel)
slouken@0
  1270
		os=-linux
slouken@0
  1271
		;;
slouken@0
  1272
	arm*-semi)
slouken@0
  1273
		os=-aout
slouken@0
  1274
		;;
slouken@729
  1275
	# This must come before the *-dec entry.
slouken@53
  1276
	pdp10-*)
slouken@53
  1277
		os=-tops20
slouken@53
  1278
		;;
slouken@729
  1279
	pdp11-*)
slouken@0
  1280
		os=-none
slouken@0
  1281
		;;
slouken@0
  1282
	*-dec | vax-*)
slouken@0
  1283
		os=-ultrix4.2
slouken@0
  1284
		;;
slouken@0
  1285
	m68*-apollo)
slouken@0
  1286
		os=-domain
slouken@0
  1287
		;;
slouken@0
  1288
	i386-sun)
slouken@0
  1289
		os=-sunos4.0.2
slouken@0
  1290
		;;
slouken@0
  1291
	m68000-sun)
slouken@0
  1292
		os=-sunos3
slouken@0
  1293
		# This also exists in the configure program, but was not the
slouken@0
  1294
		# default.
slouken@0
  1295
		# os=-sunos4
slouken@0
  1296
		;;
slouken@0
  1297
	m68*-cisco)
slouken@0
  1298
		os=-aout
slouken@0
  1299
		;;
slouken@0
  1300
	mips*-cisco)
slouken@0
  1301
		os=-elf
slouken@0
  1302
		;;
slouken@0
  1303
	mips*-*)
slouken@0
  1304
		os=-elf
slouken@0
  1305
		;;
slouken@729
  1306
	or32-*)
slouken@729
  1307
		os=-coff
slouken@729
  1308
		;;
slouken@0
  1309
	*-tti)	# must be before sparc entry or we get the wrong os.
slouken@0
  1310
		os=-sysv3
slouken@0
  1311
		;;
slouken@0
  1312
	sparc-* | *-sun)
slouken@0
  1313
		os=-sunos4.1.1
slouken@0
  1314
		;;
slouken@0
  1315
	*-be)
slouken@0
  1316
		os=-beos
slouken@0
  1317
		;;
slouken@0
  1318
	*-ibm)
slouken@0
  1319
		os=-aix
slouken@0
  1320
		;;
slouken@0
  1321
	*-wec)
slouken@0
  1322
		os=-proelf
slouken@0
  1323
		;;
slouken@0
  1324
	*-winbond)
slouken@0
  1325
		os=-proelf
slouken@0
  1326
		;;
slouken@0
  1327
	*-oki)
slouken@0
  1328
		os=-proelf
slouken@0
  1329
		;;
slouken@0
  1330
	*-hp)
slouken@0
  1331
		os=-hpux
slouken@0
  1332
		;;
slouken@0
  1333
	*-hitachi)
slouken@0
  1334
		os=-hiux
slouken@0
  1335
		;;
slouken@0
  1336
	i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent)
slouken@0
  1337
		os=-sysv
slouken@0
  1338
		;;
slouken@0
  1339
	*-cbm)
slouken@0
  1340
		os=-amigaos
slouken@0
  1341
		;;
slouken@0
  1342
	*-dg)
slouken@0
  1343
		os=-dgux
slouken@0
  1344
		;;
slouken@0
  1345
	*-dolphin)
slouken@0
  1346
		os=-sysv3
slouken@0
  1347
		;;
slouken@0
  1348
	m68k-ccur)
slouken@0
  1349
		os=-rtu
slouken@0
  1350
		;;
slouken@0
  1351
	m88k-omron*)
slouken@0
  1352
		os=-luna
slouken@0
  1353
		;;
slouken@0
  1354
	*-next )
slouken@0
  1355
		os=-nextstep
slouken@0
  1356
		;;
slouken@0
  1357
	*-sequent)
slouken@0
  1358
		os=-ptx
slouken@0
  1359
		;;
slouken@0
  1360
	*-crds)
slouken@0
  1361
		os=-unos
slouken@0
  1362
		;;
slouken@0
  1363
	*-ns)
slouken@0
  1364
		os=-genix
slouken@0
  1365
		;;
slouken@0
  1366
	i370-*)
slouken@0
  1367
		os=-mvs
slouken@0
  1368
		;;
slouken@0
  1369
	*-next)
slouken@0
  1370
		os=-nextstep3
slouken@0
  1371
		;;
slouken@729
  1372
	*-gould)
slouken@0
  1373
		os=-sysv
slouken@0
  1374
		;;
slouken@729
  1375
	*-highlevel)
slouken@0
  1376
		os=-bsd
slouken@0
  1377
		;;
slouken@0
  1378
	*-encore)
slouken@0
  1379
		os=-bsd
slouken@0
  1380
		;;
slouken@729
  1381
	*-sgi)
slouken@0
  1382
		os=-irix
slouken@0
  1383
		;;
slouken@729
  1384
	*-siemens)
slouken@0
  1385
		os=-sysv4
slouken@0
  1386
		;;
slouken@0
  1387
	*-masscomp)
slouken@0
  1388
		os=-rtu
slouken@0
  1389
		;;
slouken@53
  1390
	f30[01]-fujitsu | f700-fujitsu)
slouken@0
  1391
		os=-uxpv
slouken@0
  1392
		;;
slouken@0
  1393
	*-rom68k)
slouken@0
  1394
		os=-coff
slouken@0
  1395
		;;
slouken@0
  1396
	*-*bug)
slouken@0
  1397
		os=-coff
slouken@0
  1398
		;;
slouken@0
  1399
	*-apple)
slouken@0
  1400
		os=-macos
slouken@0
  1401
		;;
slouken@0
  1402
	*-atari*)
slouken@0
  1403
		os=-mint
slouken@0
  1404
		;;
slouken@0
  1405
	*)
slouken@0
  1406
		os=-none
slouken@0
  1407
		;;
slouken@0
  1408
esac
slouken@0
  1409
fi
slouken@0
  1410
slouken@0
  1411
# Here we handle the case where we know the os, and the CPU type, but not the
slouken@0
  1412
# manufacturer.  We pick the logical manufacturer.
slouken@0
  1413
vendor=unknown
slouken@0
  1414
case $basic_machine in
slouken@0
  1415
	*-unknown)
slouken@0
  1416
		case $os in
slouken@0
  1417
			-riscix*)
slouken@0
  1418
				vendor=acorn
slouken@0
  1419
				;;
slouken@0
  1420
			-sunos*)
slouken@0
  1421
				vendor=sun
slouken@0
  1422
				;;
slouken@0
  1423
			-aix*)
slouken@0
  1424
				vendor=ibm
slouken@0
  1425
				;;
slouken@0
  1426
			-beos*)
slouken@0
  1427
				vendor=be
slouken@0
  1428
				;;
slouken@0
  1429
			-hpux*)
slouken@0
  1430
				vendor=hp
slouken@0
  1431
				;;
slouken@0
  1432
			-mpeix*)
slouken@0
  1433
				vendor=hp
slouken@0
  1434
				;;
slouken@0
  1435
			-hiux*)
slouken@0
  1436
				vendor=hitachi
slouken@0
  1437
				;;
slouken@0
  1438
			-unos*)
slouken@0
  1439
				vendor=crds
slouken@0
  1440
				;;
slouken@0
  1441
			-dgux*)
slouken@0
  1442
				vendor=dg
slouken@0
  1443
				;;
slouken@0
  1444
			-luna*)
slouken@0
  1445
				vendor=omron
slouken@0
  1446
				;;
slouken@0
  1447
			-genix*)
slouken@0
  1448
				vendor=ns
slouken@0
  1449
				;;
slouken@53
  1450
			-mvs* | -opened*)
slouken@0
  1451
				vendor=ibm
slouken@0
  1452
				;;
slouken@0
  1453
			-ptx*)
slouken@0
  1454
				vendor=sequent
slouken@0
  1455
				;;
slouken@729
  1456
			-vxsim* | -vxworks* | -windiss*)
slouken@0
  1457
				vendor=wrs
slouken@0
  1458
				;;
slouken@0
  1459
			-aux*)
slouken@0
  1460
				vendor=apple
slouken@0
  1461
				;;
slouken@0
  1462
			-hms*)
slouken@0
  1463
				vendor=hitachi
slouken@0
  1464
				;;
slouken@0
  1465
			-mpw* | -macos*)
slouken@0
  1466
				vendor=apple
slouken@0
  1467
				;;
slouken@53
  1468
			-*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
slouken@0
  1469
				vendor=atari
slouken@0
  1470
				;;
slouken@729
  1471
			-vos*)
slouken@729
  1472
				vendor=stratus
slouken@729
  1473
				;;
slouken@0
  1474
		esac
slouken@0
  1475
		basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
slouken@0
  1476
		;;
slouken@0
  1477
esac
slouken@0
  1478
slouken@0
  1479
echo $basic_machine$os
slouken@53
  1480
exit 0
slouken@53
  1481
slouken@53
  1482
# Local variables:
slouken@53
  1483
# eval: (add-hook 'write-file-hooks 'time-stamp)
slouken@53
  1484
# time-stamp-start: "timestamp='"
slouken@53
  1485
# time-stamp-format: "%:y-%02m-%02d"
slouken@53
  1486
# time-stamp-end: "'"
slouken@53
  1487
# End: