Blame
Date:
Fri Jan 1 19:03:58 2021 UTC
Message:
Update Platforms.txt - Add aarch64/apple/darwin (Apple CLang 12.0.0) - Add x86_64/unknown/openbsd6.7 (gcc 4.2.1) Thanks to Götz Hoffart
0001
2002-03-12
alex
#! /bin/sh
0002
2002-03-12
alex
# Configuration validation subroutine script.
0003
2020-05-10
alex
# Copyright 1992-2020 Free Software Foundation, Inc.
0004
2002-03-12
alex
0005
2020-05-10
alex
timestamp='2020-05-04'
0006
2002-03-12
alex
0007
2014-03-18
alex
# This file is free software; you can redistribute it and/or modify it
0008
2014-03-18
alex
# under the terms of the GNU General Public License as published by
0009
2014-03-18
alex
# the Free Software Foundation; either version 3 of the License, or
0010
2002-03-12
alex
# (at your option) any later version.
0011
2002-03-12
alex
#
0012
2014-03-18
alex
# This program is distributed in the hope that it will be useful, but
0013
2014-03-18
alex
# WITHOUT ANY WARRANTY; without even the implied warranty of
0014
2014-03-18
alex
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
0015
2014-03-18
alex
# General Public License for more details.
0016
2002-03-12
alex
#
0017
2002-03-12
alex
# You should have received a copy of the GNU General Public License
0018
2018-04-01
alex
# along with this program; if not, see <https://www.gnu.org/licenses/>.
0019
2005-10-15
alex
#
0020
2002-03-12
alex
# As a special exception to the GNU General Public License, if you
0021
2002-03-12
alex
# distribute this file as part of a program that contains a
0022
2002-03-12
alex
# configuration script generated by Autoconf, you may include it under
0023
2014-03-18
alex
# the same distribution terms that you use for the rest of that
0024
2014-03-18
alex
# program. This Exception is an additional permission under section 7
0025
2014-03-18
alex
# of the GNU General Public License, version 3 ("GPLv3").
0026
2002-03-12
alex
0027
2005-10-15
alex
0028
2016-11-05
alex
# Please send patches to <config-patches@gnu.org>.
0029
2002-03-12
alex
#
0030
2002-03-12
alex
# Configuration subroutine to validate and canonicalize a configuration type.
0031
2002-03-12
alex
# Supply the specified configuration type as an argument.
0032
2002-03-12
alex
# If it is invalid, we print an error message on stderr and exit with code 1.
0033
2002-03-12
alex
# Otherwise, we print the canonical config type on stdout and succeed.
0034
2002-03-12
alex
0035
2012-02-27
alex
# You can get the latest version of this script from:
0036
2018-04-01
alex
# https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub
0037
2012-02-27
alex
0038
2002-03-12
alex
# This file is supposed to be the same for all GNU packages
0039
2002-03-12
alex
# and recognize all the CPU types, system types and aliases
0040
2002-03-12
alex
# that are meaningful with *any* GNU software.
0041
2002-03-12
alex
# Each package is responsible for reporting which valid configurations
0042
2002-03-12
alex
# it does not support. The user should be able to distinguish
0043
2002-03-12
alex
# a failure to support a valid configuration from a meaningless
0044
2002-03-12
alex
# configuration.
0045
2002-03-12
alex
0046
2002-03-12
alex
# The goal of this file is to map all the various variations of a given
0047
2002-03-12
alex
# machine specification into a single specification in the form:
0048
2002-03-12
alex
# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
0049
2002-03-12
alex
# or in some cases, the newer four-part form:
0050
2002-03-12
alex
# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
0051
2002-03-12
alex
# It is wrong to echo any other type of specification.
0052
2002-03-12
alex
0053
2002-03-12
alex
me=`echo "$0" | sed -e 's,.*/,,'`
0054
2002-03-12
alex
0055
2002-03-12
alex
usage="\
0056
2016-11-05
alex
Usage: $0 [OPTION] CPU-MFR-OPSYS or ALIAS
0057
2002-03-12
alex
0058
2002-03-12
alex
Canonicalize a configuration name.
0059
2002-03-12
alex
0060
2018-04-01
alex
Options:
0061
2002-03-12
alex
-h, --help print this help, then exit
0062
2002-03-12
alex
-t, --time-stamp print date of last modification, then exit
0063
2002-03-12
alex
-v, --version print version number, then exit
0064
2002-03-12
alex
0065
2002-03-12
alex
Report bugs and patches to <config-patches@gnu.org>."
0066
2002-03-12
alex
0067
2002-03-12
alex
version="\
0068
2002-03-12
alex
GNU config.sub ($timestamp)
0069
2002-03-12
alex
0070
2020-05-10
alex
Copyright 1992-2020 Free Software Foundation, Inc.
0071
2002-03-12
alex
0072
2002-03-12
alex
This is free software; see the source for copying conditions. There is NO
0073
2002-03-12
alex
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
0074
2002-03-12
alex
0075
2002-03-12
alex
help="
0076
2002-03-12
alex
Try \`$me --help' for more information."
0077
2002-03-12
alex
0078
2002-03-12
alex
# Parse command line
0079
2002-03-12
alex
while test $# -gt 0 ; do
0080
2002-03-12
alex
case $1 in
0081
2002-03-12
alex
--time-stamp | --time* | -t )
0082
2005-10-15
alex
echo "$timestamp" ; exit ;;
0083
2002-03-12
alex
--version | -v )
0084
2005-10-15
alex
echo "$version" ; exit ;;
0085
2002-03-12
alex
--help | --h* | -h )
0086
2005-10-15
alex
echo "$usage"; exit ;;
0087
2002-03-12
alex
-- ) # Stop option processing
0088
2002-03-12
alex
shift; break ;;
0089
2002-03-12
alex
- ) # Use stdin as input.
0090
2002-03-12
alex
break ;;
0091
2002-03-12
alex
-* )
0092
2020-05-10
alex
echo "$me: invalid option $1$help" >&2
0093
2002-03-12
alex
exit 1 ;;
0094
2002-03-12
alex
0095
2002-03-12
alex
*local*)
0096
2002-03-12
alex
# First pass through any local machine types.
0097
2018-04-01
alex
echo "$1"
0098
2005-10-15
alex
exit ;;
0099
2002-03-12
alex
0100
2002-03-12
alex
* )
0101
2002-03-12
alex
break ;;
0102
2002-03-12
alex
esac
0103
2002-03-12
alex
done
0104
2002-03-12
alex
0105
2002-03-12
alex
case $# in
0106
2002-03-12
alex
0) echo "$me: missing argument$help" >&2
0107
2002-03-12
alex
exit 1;;
0108
2002-03-12
alex
1) ;;
0109
2002-03-12
alex
*) echo "$me: too many arguments$help" >&2
0110
2002-03-12
alex
exit 1;;
0111
2002-03-12
alex
esac
0112
2002-03-12
alex
0113
2020-05-10
alex
# Split fields of configuration type
0114
2020-05-10
alex
# shellcheck disable=SC2162
0115
2020-05-10
alex
IFS="-" read field1 field2 field3 field4 <<EOF
0116
2020-05-10
alex
$1
0117
2020-05-10
alex
EOF
0118
2002-03-12
alex
0119
2020-05-10
alex
# Separate into logical components for further validation
0120
2020-05-10
alex
case $1 in
0121
2020-05-10
alex
*-*-*-*-*)
0122
2020-05-10
alex
echo Invalid configuration \`"$1"\': more than four components >&2
0123
2020-05-10
alex
exit 1
0124
2002-03-12
alex
;;
0125
2020-05-10
alex
*-*-*-*)
0126
2020-05-10
alex
basic_machine=$field1-$field2
0127
2020-05-10
alex
os=$field3-$field4
0128
2002-03-12
alex
;;
0129
2002-03-12
alex
*-*-*)
0130
2020-05-10
alex
# Ambiguous whether COMPANY is present, or skipped and KERNEL-OS is two
0131
2020-05-10
alex
# parts
0132
2020-05-10
alex
maybe_os=$field2-$field3
0133
2020-05-10
alex
case $maybe_os in
0134
2020-05-10
alex
nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc \
0135
2020-05-10
alex
| linux-newlib* | linux-musl* | linux-uclibc* | uclinux-uclibc* \
0136
2020-05-10
alex
| uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* \
0137
2020-05-10
alex
| netbsd*-eabi* | kopensolaris*-gnu* | cloudabi*-eabi* \
0138
2020-05-10
alex
| storm-chaos* | os2-emx* | rtmk-nova*)
0139
2020-05-10
alex
basic_machine=$field1
0140
2020-05-10
alex
os=$maybe_os
0141
2020-05-10
alex
;;
0142
2020-05-10
alex
android-linux)
0143
2020-05-10
alex
basic_machine=$field1-unknown
0144
2020-05-10
alex
os=linux-android
0145
2020-05-10
alex
;;
0146
2020-05-10
alex
*)
0147
2020-05-10
alex
basic_machine=$field1-$field2
0148
2020-05-10
alex
os=$field3
0149
2020-05-10
alex
;;
0150
2020-05-10
alex
esac
0151
2002-03-12
alex
;;
0152
2020-05-10
alex
*-*)
0153
2020-05-10
alex
# A lone config we happen to match not fitting any pattern
0154
2020-05-10
alex
case $field1-$field2 in
0155
2020-05-10
alex
decstation-3100)
0156
2020-05-10
alex
basic_machine=mips-dec
0157
2020-05-10
alex
os=
0158
2020-05-10
alex
;;
0159
2020-05-10
alex
*-*)
0160
2020-05-10
alex
# Second component is usually, but not always the OS
0161
2020-05-10
alex
case $field2 in
0162
2020-05-10
alex
# Prevent following clause from handling this valid os
0163
2020-05-10
alex
sun*os*)
0164
2020-05-10
alex
basic_machine=$field1
0165
2020-05-10
alex
os=$field2
0166
2020-05-10
alex
;;
0167
2020-05-10
alex
# Manufacturers
0168
2020-05-10
alex
dec* | mips* | sequent* | encore* | pc533* | sgi* | sony* \
0169
2020-05-10
alex
| att* | 7300* | 3300* | delta* | motorola* | sun[234]* \
0170
2020-05-10
alex
| unicom* | ibm* | next | hp | isi* | apollo | altos* \
0171
2020-05-10
alex
| convergent* | ncr* | news | 32* | 3600* | 3100* \
0172
2020-05-10
alex
| hitachi* | c[123]* | convex* | sun | crds | omron* | dg \
0173
2020-05-10
alex
| ultra | tti* | harris | dolphin | highlevel | gould \
0174
2020-05-10
alex
| cbm | ns | masscomp | apple | axis | knuth | cray \
0175
2020-05-10
alex
| microblaze* | sim | cisco \
0176
2020-05-10
alex
| oki | wec | wrs | winbond)
0177
2020-05-10
alex
basic_machine=$field1-$field2
0178
2020-05-10
alex
os=
0179
2020-05-10
alex
;;
0180
2020-05-10
alex
*)
0181
2020-05-10
alex
basic_machine=$field1
0182
2020-05-10
alex
os=$field2
0183
2020-05-10
alex
;;
0184
2020-05-10
alex
esac
0185
2020-05-10
alex
;;
0186
2020-05-10
alex
esac
0187
2002-03-12
alex
;;
0188
2020-05-10
alex
*)
0189
2020-05-10
alex
# Convert single-component short-hands not valid as part of
0190
2020-05-10
alex
# multi-component configurations.
0191
2020-05-10
alex
case $field1 in
0192
2020-05-10
alex
386bsd)
0193
2020-05-10
alex
basic_machine=i386-pc
0194
2020-05-10
alex
os=bsd
0195
2020-05-10
alex
;;
0196
2020-05-10
alex
a29khif)
0197
2020-05-10
alex
basic_machine=a29k-amd
0198
2020-05-10
alex
os=udi
0199
2020-05-10
alex
;;
0200
2020-05-10
alex
adobe68k)
0201
2020-05-10
alex
basic_machine=m68010-adobe
0202
2020-05-10
alex
os=scout
0203
2020-05-10
alex
;;
0204
2020-05-10
alex
alliant)
0205
2020-05-10
alex
basic_machine=fx80-alliant
0206
2020-05-10
alex
os=
0207
2020-05-10
alex
;;
0208
2020-05-10
alex
altos | altos3068)
0209
2020-05-10
alex
basic_machine=m68k-altos
0210
2020-05-10
alex
os=
0211
2020-05-10
alex
;;
0212
2020-05-10
alex
am29k)
0213
2020-05-10
alex
basic_machine=a29k-none
0214
2020-05-10
alex
os=bsd
0215
2020-05-10
alex
;;
0216
2020-05-10
alex
amdahl)
0217
2020-05-10
alex
basic_machine=580-amdahl
0218
2020-05-10
alex
os=sysv
0219
2020-05-10
alex
;;
0220
2020-05-10
alex
amiga)
0221
2020-05-10
alex
basic_machine=m68k-unknown
0222
2020-05-10
alex
os=
0223
2020-05-10
alex
;;
0224
2020-05-10
alex
amigaos | amigados)
0225
2020-05-10
alex
basic_machine=m68k-unknown
0226
2020-05-10
alex
os=amigaos
0227
2020-05-10
alex
;;
0228
2020-05-10
alex
amigaunix | amix)
0229
2020-05-10
alex
basic_machine=m68k-unknown
0230
2020-05-10
alex
os=sysv4
0231
2020-05-10
alex
;;
0232
2020-05-10
alex
apollo68)
0233
2020-05-10
alex
basic_machine=m68k-apollo
0234
2020-05-10
alex
os=sysv
0235
2020-05-10
alex
;;
0236
2020-05-10
alex
apollo68bsd)
0237
2020-05-10
alex
basic_machine=m68k-apollo
0238
2020-05-10
alex
os=bsd
0239
2020-05-10
alex
;;
0240
2020-05-10
alex
aros)
0241
2020-05-10
alex
basic_machine=i386-pc
0242
2020-05-10
alex
os=aros
0243
2020-05-10
alex
;;
0244
2020-05-10
alex
aux)
0245
2020-05-10
alex
basic_machine=m68k-apple
0246
2020-05-10
alex
os=aux
0247
2020-05-10
alex
;;
0248
2020-05-10
alex
balance)
0249
2020-05-10
alex
basic_machine=ns32k-sequent
0250
2020-05-10
alex
os=dynix
0251
2020-05-10
alex
;;
0252
2020-05-10
alex
blackfin)
0253
2020-05-10
alex
basic_machine=bfin-unknown
0254
2020-05-10
alex
os=linux
0255
2020-05-10
alex
;;
0256
2020-05-10
alex
cegcc)
0257
2020-05-10
alex
basic_machine=arm-unknown
0258
2020-05-10
alex
os=cegcc
0259
2020-05-10
alex
;;
0260
2020-05-10
alex
convex-c1)
0261
2020-05-10
alex
basic_machine=c1-convex
0262
2020-05-10
alex
os=bsd
0263
2020-05-10
alex
;;
0264
2020-05-10
alex
convex-c2)
0265
2020-05-10
alex
basic_machine=c2-convex
0266
2020-05-10
alex
os=bsd
0267
2020-05-10
alex
;;
0268
2020-05-10
alex
convex-c32)
0269
2020-05-10
alex
basic_machine=c32-convex
0270
2020-05-10
alex
os=bsd
0271
2020-05-10
alex
;;
0272
2020-05-10
alex
convex-c34)
0273
2020-05-10
alex
basic_machine=c34-convex
0274
2020-05-10
alex
os=bsd
0275
2020-05-10
alex
;;
0276
2020-05-10
alex
convex-c38)
0277
2020-05-10
alex
basic_machine=c38-convex
0278
2020-05-10
alex
os=bsd
0279
2020-05-10
alex
;;
0280
2020-05-10
alex
cray)
0281
2020-05-10
alex
basic_machine=j90-cray
0282
2020-05-10
alex
os=unicos
0283
2020-05-10
alex
;;
0284
2020-05-10
alex
crds | unos)
0285
2020-05-10
alex
basic_machine=m68k-crds
0286
2020-05-10
alex
os=
0287
2020-05-10
alex
;;
0288
2020-05-10
alex
da30)
0289
2020-05-10
alex
basic_machine=m68k-da30
0290
2020-05-10
alex
os=
0291
2020-05-10
alex
;;
0292
2020-05-10
alex
decstation | pmax | pmin | dec3100 | decstatn)
0293
2020-05-10
alex
basic_machine=mips-dec
0294
2020-05-10
alex
os=
0295
2020-05-10
alex
;;
0296
2020-05-10
alex
delta88)
0297
2020-05-10
alex
basic_machine=m88k-motorola
0298
2020-05-10
alex
os=sysv3
0299
2020-05-10
alex
;;
0300
2020-05-10
alex
dicos)
0301
2020-05-10
alex
basic_machine=i686-pc
0302
2020-05-10
alex
os=dicos
0303
2020-05-10
alex
;;
0304
2020-05-10
alex
djgpp)
0305
2020-05-10
alex
basic_machine=i586-pc
0306
2020-05-10
alex
os=msdosdjgpp
0307
2020-05-10
alex
;;
0308
2020-05-10
alex
ebmon29k)
0309
2020-05-10
alex
basic_machine=a29k-amd
0310
2020-05-10
alex
os=ebmon
0311
2020-05-10
alex
;;
0312
2020-05-10
alex
es1800 | OSE68k | ose68k | ose | OSE)
0313
2020-05-10
alex
basic_machine=m68k-ericsson
0314
2020-05-10
alex
os=ose
0315
2020-05-10
alex
;;
0316
2020-05-10
alex
gmicro)
0317
2020-05-10
alex
basic_machine=tron-gmicro
0318
2020-05-10
alex
os=sysv
0319
2020-05-10
alex
;;
0320
2020-05-10
alex
go32)
0321
2020-05-10
alex
basic_machine=i386-pc
0322
2020-05-10
alex
os=go32
0323
2020-05-10
alex
;;
0324
2020-05-10
alex
h8300hms)
0325
2020-05-10
alex
basic_machine=h8300-hitachi
0326
2020-05-10
alex
os=hms
0327
2020-05-10
alex
;;
0328
2020-05-10
alex
h8300xray)
0329
2020-05-10
alex
basic_machine=h8300-hitachi
0330
2020-05-10
alex
os=xray
0331
2020-05-10
alex
;;
0332
2020-05-10
alex
h8500hms)
0333
2020-05-10
alex
basic_machine=h8500-hitachi
0334
2020-05-10
alex
os=hms
0335
2020-05-10
alex
;;
0336
2020-05-10
alex
harris)
0337
2020-05-10
alex
basic_machine=m88k-harris
0338
2020-05-10
alex
os=sysv3
0339
2020-05-10
alex
;;
0340
2020-05-10
alex
hp300 | hp300hpux)
0341
2020-05-10
alex
basic_machine=m68k-hp
0342
2020-05-10
alex
os=hpux
0343
2020-05-10
alex
;;
0344
2020-05-10
alex
hp300bsd)
0345
2020-05-10
alex
basic_machine=m68k-hp
0346
2020-05-10
alex
os=bsd
0347
2020-05-10
alex
;;
0348
2020-05-10
alex
hppaosf)
0349
2020-05-10
alex
basic_machine=hppa1.1-hp
0350
2020-05-10
alex
os=osf
0351
2020-05-10
alex
;;
0352
2020-05-10
alex
hppro)
0353
2020-05-10
alex
basic_machine=hppa1.1-hp
0354
2020-05-10
alex
os=proelf
0355
2020-05-10
alex
;;
0356
2020-05-10
alex
i386mach)
0357
2020-05-10
alex
basic_machine=i386-mach
0358
2020-05-10
alex
os=mach
0359
2020-05-10
alex
;;
0360
2020-05-10
alex
isi68 | isi)
0361
2020-05-10
alex
basic_machine=m68k-isi
0362
2020-05-10
alex
os=sysv
0363
2020-05-10
alex
;;
0364
2020-05-10
alex
m68knommu)
0365
2020-05-10
alex
basic_machine=m68k-unknown
0366
2020-05-10
alex
os=linux
0367
2020-05-10
alex
;;
0368
2020-05-10
alex
magnum | m3230)
0369
2020-05-10
alex
basic_machine=mips-mips
0370
2020-05-10
alex
os=sysv
0371
2020-05-10
alex
;;
0372
2020-05-10
alex
merlin)
0373
2020-05-10
alex
basic_machine=ns32k-utek
0374
2020-05-10
alex
os=sysv
0375
2020-05-10
alex
;;
0376
2020-05-10
alex
mingw64)
0377
2020-05-10
alex
basic_machine=x86_64-pc
0378
2020-05-10
alex
os=mingw64
0379
2020-05-10
alex
;;
0380
2020-05-10
alex
mingw32)
0381
2020-05-10
alex
basic_machine=i686-pc
0382
2020-05-10
alex
os=mingw32
0383
2020-05-10
alex
;;
0384
2020-05-10
alex
mingw32ce)
0385
2020-05-10
alex
basic_machine=arm-unknown
0386
2020-05-10
alex
os=mingw32ce
0387
2020-05-10
alex
;;
0388
2020-05-10
alex
monitor)
0389
2020-05-10
alex
basic_machine=m68k-rom68k
0390
2020-05-10
alex
os=coff
0391
2020-05-10
alex
;;
0392
2020-05-10
alex
morphos)
0393
2020-05-10
alex
basic_machine=powerpc-unknown
0394
2020-05-10
alex
os=morphos
0395
2020-05-10
alex
;;
0396
2020-05-10
alex
moxiebox)
0397
2020-05-10
alex
basic_machine=moxie-unknown
0398
2020-05-10
alex
os=moxiebox
0399
2020-05-10
alex
;;
0400
2020-05-10
alex
msdos)
0401
2020-05-10
alex
basic_machine=i386-pc
0402
2020-05-10
alex
os=msdos
0403
2020-05-10
alex
;;
0404
2020-05-10
alex
msys)
0405
2020-05-10
alex
basic_machine=i686-pc
0406
2020-05-10
alex
os=msys
0407
2020-05-10
alex
;;
0408
2020-05-10
alex
mvs)
0409
2020-05-10
alex
basic_machine=i370-ibm
0410
2020-05-10
alex
os=mvs
0411
2020-05-10
alex
;;
0412
2020-05-10
alex
nacl)
0413
2020-05-10
alex
basic_machine=le32-unknown
0414
2020-05-10
alex
os=nacl
0415
2020-05-10
alex
;;
0416
2020-05-10
alex
ncr3000)
0417
2020-05-10
alex
basic_machine=i486-ncr
0418
2020-05-10
alex
os=sysv4
0419
2020-05-10
alex
;;
0420
2020-05-10
alex
netbsd386)
0421
2020-05-10
alex
basic_machine=i386-pc
0422
2020-05-10
alex
os=netbsd
0423
2020-05-10
alex
;;
0424
2020-05-10
alex
netwinder)
0425
2020-05-10
alex
basic_machine=armv4l-rebel
0426
2020-05-10
alex
os=linux
0427
2020-05-10
alex
;;
0428
2020-05-10
alex
news | news700 | news800 | news900)
0429
2020-05-10
alex
basic_machine=m68k-sony
0430
2020-05-10
alex
os=newsos
0431
2020-05-10
alex
;;
0432
2020-05-10
alex
news1000)
0433
2020-05-10
alex
basic_machine=m68030-sony
0434
2020-05-10
alex
os=newsos
0435
2020-05-10
alex
;;
0436
2020-05-10
alex
necv70)
0437
2020-05-10
alex
basic_machine=v70-nec
0438
2020-05-10
alex
os=sysv
0439
2020-05-10
alex
;;
0440
2020-05-10
alex
nh3000)
0441
2020-05-10
alex
basic_machine=m68k-harris
0442
2020-05-10
alex
os=cxux
0443
2020-05-10
alex
;;
0444
2020-05-10
alex
nh[45]000)
0445
2020-05-10
alex
basic_machine=m88k-harris
0446
2020-05-10
alex
os=cxux
0447
2020-05-10
alex
;;
0448
2020-05-10
alex
nindy960)
0449
2020-05-10
alex
basic_machine=i960-intel
0450
2020-05-10
alex
os=nindy
0451
2020-05-10
alex
;;
0452
2020-05-10
alex
mon960)
0453
2020-05-10
alex
basic_machine=i960-intel
0454
2020-05-10
alex
os=mon960
0455
2020-05-10
alex
;;
0456
2020-05-10
alex
nonstopux)
0457
2020-05-10
alex
basic_machine=mips-compaq
0458
2020-05-10
alex
os=nonstopux
0459
2020-05-10
alex
;;
0460
2020-05-10
alex
os400)
0461
2020-05-10
alex
basic_machine=powerpc-ibm
0462
2020-05-10
alex
os=os400
0463
2020-05-10
alex
;;
0464
2020-05-10
alex
OSE68000 | ose68000)
0465
2020-05-10
alex
basic_machine=m68000-ericsson
0466
2020-05-10
alex
os=ose
0467
2020-05-10
alex
;;
0468
2020-05-10
alex
os68k)
0469
2020-05-10
alex
basic_machine=m68k-none
0470
2020-05-10
alex
os=os68k
0471
2020-05-10
alex
;;
0472
2020-05-10
alex
paragon)
0473
2020-05-10
alex
basic_machine=i860-intel
0474
2020-05-10
alex
os=osf
0475
2020-05-10
alex
;;
0476
2020-05-10
alex
parisc)
0477
2020-05-10
alex
basic_machine=hppa-unknown
0478
2020-05-10
alex
os=linux
0479
2020-05-10
alex
;;
0480
2020-05-10
alex
pw32)
0481
2020-05-10
alex
basic_machine=i586-unknown
0482
2020-05-10
alex
os=pw32
0483
2020-05-10
alex
;;
0484
2020-05-10
alex
rdos | rdos64)
0485
2020-05-10
alex
basic_machine=x86_64-pc
0486
2020-05-10
alex
os=rdos
0487
2020-05-10
alex
;;
0488
2020-05-10
alex
rdos32)
0489
2020-05-10
alex
basic_machine=i386-pc
0490
2020-05-10
alex
os=rdos
0491
2020-05-10
alex
;;
0492
2020-05-10
alex
rom68k)
0493
2020-05-10
alex
basic_machine=m68k-rom68k
0494
2020-05-10
alex
os=coff
0495
2020-05-10
alex
;;
0496
2020-05-10
alex
sa29200)
0497
2020-05-10
alex
basic_machine=a29k-amd
0498
2020-05-10
alex
os=udi
0499
2020-05-10
alex
;;
0500
2020-05-10
alex
sei)
0501
2020-05-10
alex
basic_machine=mips-sei
0502
2020-05-10
alex
os=seiux
0503
2020-05-10
alex
;;
0504
2020-05-10
alex
sequent)
0505
2020-05-10
alex
basic_machine=i386-sequent
0506
2020-05-10
alex
os=
0507
2020-05-10
alex
;;
0508
2020-05-10
alex
sps7)
0509
2020-05-10
alex
basic_machine=m68k-bull
0510
2020-05-10
alex
os=sysv2
0511
2020-05-10
alex
;;
0512
2020-05-10
alex
st2000)
0513
2020-05-10
alex
basic_machine=m68k-tandem
0514
2020-05-10
alex
os=
0515
2020-05-10
alex
;;
0516
2020-05-10
alex
stratus)
0517
2020-05-10
alex
basic_machine=i860-stratus
0518
2020-05-10
alex
os=sysv4
0519
2020-05-10
alex
;;
0520
2020-05-10
alex
sun2)
0521
2020-05-10
alex
basic_machine=m68000-sun
0522
2020-05-10
alex
os=
0523
2020-05-10
alex
;;
0524
2020-05-10
alex
sun2os3)
0525
2020-05-10
alex
basic_machine=m68000-sun
0526
2020-05-10
alex
os=sunos3
0527
2020-05-10
alex
;;
0528
2020-05-10
alex
sun2os4)
0529
2020-05-10
alex
basic_machine=m68000-sun
0530
2020-05-10
alex
os=sunos4
0531
2020-05-10
alex
;;
0532
2020-05-10
alex
sun3)
0533
2020-05-10
alex
basic_machine=m68k-sun
0534
2020-05-10
alex
os=
0535
2020-05-10
alex
;;
0536
2020-05-10
alex
sun3os3)
0537
2020-05-10
alex
basic_machine=m68k-sun
0538
2020-05-10
alex
os=sunos3
0539
2020-05-10
alex
;;
0540
2020-05-10
alex
sun3os4)
0541
2020-05-10
alex
basic_machine=m68k-sun
0542
2020-05-10
alex
os=sunos4
0543
2020-05-10
alex
;;
0544
2020-05-10
alex
sun4)
0545
2020-05-10
alex
basic_machine=sparc-sun
0546
2020-05-10
alex
os=
0547
2020-05-10
alex
;;
0548
2020-05-10
alex
sun4os3)
0549
2020-05-10
alex
basic_machine=sparc-sun
0550
2020-05-10
alex
os=sunos3
0551
2020-05-10
alex
;;
0552
2020-05-10
alex
sun4os4)
0553
2020-05-10
alex
basic_machine=sparc-sun
0554
2020-05-10
alex
os=sunos4
0555
2020-05-10
alex
;;
0556
2020-05-10
alex
sun4sol2)
0557
2020-05-10
alex
basic_machine=sparc-sun
0558
2020-05-10
alex
os=solaris2
0559
2020-05-10
alex
;;
0560
2020-05-10
alex
sun386 | sun386i | roadrunner)
0561
2020-05-10
alex
basic_machine=i386-sun
0562
2020-05-10
alex
os=
0563
2020-05-10
alex
;;
0564
2020-05-10
alex
sv1)
0565
2020-05-10
alex
basic_machine=sv1-cray
0566
2020-05-10
alex
os=unicos
0567
2020-05-10
alex
;;
0568
2020-05-10
alex
symmetry)
0569
2020-05-10
alex
basic_machine=i386-sequent
0570
2020-05-10
alex
os=dynix
0571
2020-05-10
alex
;;
0572
2020-05-10
alex
t3e)
0573
2020-05-10
alex
basic_machine=alphaev5-cray
0574
2020-05-10
alex
os=unicos
0575
2020-05-10
alex
;;
0576
2020-05-10
alex
t90)
0577
2020-05-10
alex
basic_machine=t90-cray
0578
2020-05-10
alex
os=unicos
0579
2020-05-10
alex
;;
0580
2020-05-10
alex
toad1)
0581
2020-05-10
alex
basic_machine=pdp10-xkl
0582
2020-05-10
alex
os=tops20
0583
2020-05-10
alex
;;
0584
2020-05-10
alex
tpf)
0585
2020-05-10
alex
basic_machine=s390x-ibm
0586
2020-05-10
alex
os=tpf
0587
2020-05-10
alex
;;
0588
2020-05-10
alex
udi29k)
0589
2020-05-10
alex
basic_machine=a29k-amd
0590
2020-05-10
alex
os=udi
0591
2020-05-10
alex
;;
0592
2020-05-10
alex
ultra3)
0593
2020-05-10
alex
basic_machine=a29k-nyu
0594
2020-05-10
alex
os=sym1
0595
2020-05-10
alex
;;
0596
2020-05-10
alex
v810 | necv810)
0597
2020-05-10
alex
basic_machine=v810-nec
0598
2020-05-10
alex
os=none
0599
2020-05-10
alex
;;
0600
2020-05-10
alex
vaxv)
0601
2020-05-10
alex
basic_machine=vax-dec
0602
2020-05-10
alex
os=sysv
0603
2020-05-10
alex
;;
0604
2020-05-10
alex
vms)
0605
2020-05-10
alex
basic_machine=vax-dec
0606
2020-05-10
alex
os=vms
0607
2020-05-10
alex
;;
0608
2020-05-10
alex
vsta)
0609
2020-05-10
alex
basic_machine=i386-pc
0610
2020-05-10
alex
os=vsta
0611
2020-05-10
alex
;;
0612
2020-05-10
alex
vxworks960)
0613
2020-05-10
alex
basic_machine=i960-wrs
0614
2020-05-10
alex
os=vxworks
0615
2020-05-10
alex
;;
0616
2020-05-10
alex
vxworks68)
0617
2020-05-10
alex
basic_machine=m68k-wrs
0618
2020-05-10
alex
os=vxworks
0619
2020-05-10
alex
;;
0620
2020-05-10
alex
vxworks29k)
0621
2020-05-10
alex
basic_machine=a29k-wrs
0622
2020-05-10
alex
os=vxworks
0623
2020-05-10
alex
;;
0624
2020-05-10
alex
xbox)
0625
2020-05-10
alex
basic_machine=i686-pc
0626
2020-05-10
alex
os=mingw32
0627
2020-05-10
alex
;;
0628
2020-05-10
alex
ymp)
0629
2020-05-10
alex
basic_machine=ymp-cray
0630
2020-05-10
alex
os=unicos
0631
2020-05-10
alex
;;
0632
2020-05-10
alex
*)
0633
2020-05-10
alex
basic_machine=$1
0634
2020-05-10
alex
os=
0635
2020-05-10
alex
;;
0636
2020-05-10
alex
esac
0637
2008-10-03
alex
;;
0638
2020-05-10
alex
esac
0639
2020-05-10
alex
0640
2020-05-10
alex
# Decode 1-component or ad-hoc basic machines
0641
2020-05-10
alex
case $basic_machine in
0642
2020-05-10
alex
# Here we handle the default manufacturer of certain CPU types. It is in
0643
2020-05-10
alex
# some cases the only manufacturer, in others, it is the most popular.
0644
2020-05-10
alex
w89k)
0645
2020-05-10
alex
cpu=hppa1.1
0646
2020-05-10
alex
vendor=winbond
0647
2020-05-10
alex
;;
0648
2020-05-10
alex
op50n)
0649
2020-05-10
alex
cpu=hppa1.1
0650
2020-05-10
alex
vendor=oki
0651
2020-05-10
alex
;;
0652
2020-05-10
alex
op60c)
0653
2020-05-10
alex
cpu=hppa1.1
0654
2020-05-10
alex
vendor=oki
0655
2020-05-10
alex
;;
0656
2020-05-10
alex
ibm*)
0657
2020-05-10
alex
cpu=i370
0658
2020-05-10
alex
vendor=ibm
0659
2020-05-10
alex
;;
0660
2020-05-10
alex
orion105)
0661
2020-05-10
alex
cpu=clipper
0662
2020-05-10
alex
vendor=highlevel
0663
2020-05-10
alex
;;
0664
2020-05-10
alex
mac | mpw | mac-mpw)
0665
2020-05-10
alex
cpu=m68k
0666
2020-05-10
alex
vendor=apple
0667
2020-05-10
alex
;;
0668
2020-05-10
alex
pmac | pmac-mpw)
0669
2020-05-10
alex
cpu=powerpc
0670
2020-05-10
alex
vendor=apple
0671
2020-05-10
alex
;;
0672
2020-05-10
alex
0673
2002-03-12
alex
# Recognize the various machine names and aliases which stand
0674
2002-03-12
alex
# for a CPU type and a company and sometimes even an OS.
0675
2002-03-12
alex
3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
0676
2020-05-10
alex
cpu=m68000
0677
2020-05-10
alex
vendor=att
0678
2002-03-12
alex
;;
0679
2002-03-12
alex
3b*)
0680
2020-05-10
alex
cpu=we32k
0681
2020-05-10
alex
vendor=att
0682
2002-03-12
alex
;;
0683
2012-02-27
alex
bluegene*)
0684
2020-05-10
alex
cpu=powerpc
0685
2020-05-10
alex
vendor=ibm
0686
2020-05-10
alex
os=cnk
0687
2012-02-27
alex
;;
0688
2002-03-12
alex
decsystem10* | dec10*)
0689
2020-05-10
alex
cpu=pdp10
0690
2020-05-10
alex
vendor=dec
0691
2020-05-10
alex
os=tops10
0692
2002-03-12
alex
;;
0693
2002-03-12
alex
decsystem20* | dec20*)
0694
2020-05-10
alex
cpu=pdp10
0695
2020-05-10
alex
vendor=dec
0696
2020-05-10
alex
os=tops20
0697
2002-03-12
alex
;;
0698
2002-03-12
alex
delta | 3300 | motorola-3300 | motorola-delta \
0699
2002-03-12
alex
| 3300-motorola | delta-motorola)
0700
2020-05-10
alex
cpu=m68k
0701
2020-05-10
alex
vendor=motorola
0702
2002-03-12
alex
;;
0703
2018-04-01
alex
dpx2*)
0704
2020-05-10
alex
cpu=m68k
0705
2020-05-10
alex
vendor=bull
0706
2020-05-10
alex
os=sysv3
0707
2002-03-12
alex
;;
0708
2002-03-12
alex
encore | umax | mmax)
0709
2020-05-10
alex
cpu=ns32k
0710
2020-05-10
alex
vendor=encore
0711
2002-03-12
alex
;;
0712
2020-05-10
alex
elxsi)
0713
2020-05-10
alex
cpu=elxsi
0714
2020-05-10
alex
vendor=elxsi
0715
2020-05-10
alex
os=${os:-bsd}
0716
2002-03-12
alex
;;
0717
2002-03-12
alex
fx2800)
0718
2020-05-10
alex
cpu=i860
0719
2020-05-10
alex
vendor=alliant
0720
2002-03-12
alex
;;
0721
2002-03-12
alex
genix)
0722
2020-05-10
alex
cpu=ns32k
0723
2020-05-10
alex
vendor=ns
0724
2002-03-12
alex
;;
0725
2002-03-12
alex
h3050r* | hiux*)
0726
2020-05-10
alex
cpu=hppa1.1
0727
2020-05-10
alex
vendor=hitachi
0728
2020-05-10
alex
os=hiuxwe2
0729
2002-03-12
alex
;;
0730
2002-03-12
alex
hp3k9[0-9][0-9] | hp9[0-9][0-9])
0731
2020-05-10
alex
cpu=hppa1.0
0732
2020-05-10
alex
vendor=hp
0733
2002-03-12
alex
;;
0734
2002-03-12
alex
hp9k2[0-9][0-9] | hp9k31[0-9])
0735
2020-05-10
alex
cpu=m68000
0736
2020-05-10
alex
vendor=hp
0737
2002-03-12
alex
;;
0738
2002-03-12
alex
hp9k3[2-9][0-9])
0739
2020-05-10
alex
cpu=m68k
0740
2020-05-10
alex
vendor=hp
0741
2002-03-12
alex
;;
0742
2002-03-12
alex
hp9k6[0-9][0-9] | hp6[0-9][0-9])
0743
2020-05-10
alex
cpu=hppa1.0
0744
2020-05-10
alex
vendor=hp
0745
2002-03-12
alex
;;
0746
2002-03-12
alex
hp9k7[0-79][0-9] | hp7[0-79][0-9])
0747
2020-05-10
alex
cpu=hppa1.1
0748
2020-05-10
alex
vendor=hp
0749
2002-03-12
alex
;;
0750
2002-03-12
alex
hp9k78[0-9] | hp78[0-9])
0751
2002-03-12
alex
# FIXME: really hppa2.0-hp
0752
2020-05-10
alex
cpu=hppa1.1
0753
2020-05-10
alex
vendor=hp
0754
2002-03-12
alex
;;
0755
2002-03-12
alex
hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
0756
2002-03-12
alex
# FIXME: really hppa2.0-hp
0757
2020-05-10
alex
cpu=hppa1.1
0758
2020-05-10
alex
vendor=hp
0759
2002-03-12
alex
;;
0760
2002-03-12
alex
hp9k8[0-9][13679] | hp8[0-9][13679])
0761
2020-05-10
alex
cpu=hppa1.1
0762
2020-05-10
alex
vendor=hp
0763
2002-03-12
alex
;;
0764
2002-03-12
alex
hp9k8[0-9][0-9] | hp8[0-9][0-9])
0765
2020-05-10
alex
cpu=hppa1.0
0766
2020-05-10
alex
vendor=hp
0767
2002-03-12
alex
;;
0768
2002-03-12
alex
i*86v32)
0769
2020-05-10
alex
cpu=`echo "$1" | sed -e 's/86.*/86/'`
0770
2020-05-10
alex
vendor=pc
0771
2020-05-10
alex
os=sysv32
0772
2002-03-12
alex
;;
0773
2002-03-12
alex
i*86v4*)
0774
2020-05-10
alex
cpu=`echo "$1" | sed -e 's/86.*/86/'`
0775
2020-05-10
alex
vendor=pc
0776
2020-05-10
alex
os=sysv4
0777
2002-03-12
alex
;;
0778
2002-03-12
alex
i*86v)
0779
2020-05-10
alex
cpu=`echo "$1" | sed -e 's/86.*/86/'`
0780
2020-05-10
alex
vendor=pc
0781
2020-05-10
alex
os=sysv
0782
2002-03-12
alex
;;
0783
2002-03-12
alex
i*86sol2)
0784
2020-05-10
alex
cpu=`echo "$1" | sed -e 's/86.*/86/'`
0785
2020-05-10
alex
vendor=pc
0786
2020-05-10
alex
os=solaris2
0787
2002-03-12
alex
;;
0788
2020-05-10
alex
j90 | j90-cray)
0789
2020-05-10
alex
cpu=j90
0790
2020-05-10
alex
vendor=cray
0791
2020-05-10
alex
os=${os:-unicos}
0792
2002-03-12
alex
;;
0793
2002-03-12
alex
iris | iris4d)
0794
2020-05-10
alex
cpu=mips
0795
2020-05-10
alex
vendor=sgi
0796
2002-03-12
alex
case $os in
0797
2020-05-10
alex
irix*)
0798
2002-03-12
alex
;;
0799
2002-03-12
alex
*)
0800
2020-05-10
alex
os=irix4
0801
2002-03-12
alex
;;
0802
2002-03-12
alex
esac
0803
2002-03-12
alex
;;
0804
2002-03-12
alex
miniframe)
0805
2020-05-10
alex
cpu=m68000
0806
2020-05-10
alex
vendor=convergent
0807
2002-03-12
alex
;;
0808
2020-05-10
alex
*mint | mint[0-9]* | *MiNT | *MiNT[0-9]*)
0809
2020-05-10
alex
cpu=m68k
0810
2020-05-10
alex
vendor=atari
0811
2020-05-10
alex
os=mint
0812
2002-03-12
alex
;;
0813
2002-03-12
alex
news-3600 | risc-news)
0814
2020-05-10
alex
cpu=mips
0815
2020-05-10
alex
vendor=sony
0816
2020-05-10
alex
os=newsos
0817
2002-03-12
alex
;;
0818
2018-04-01
alex
next | m*-next)
0819
2020-05-10
alex
cpu=m68k
0820
2020-05-10
alex
vendor=next
0821
2002-03-12
alex
case $os in
0822
2020-05-10
alex
openstep*)
0823
2020-05-10
alex
;;
0824
2020-05-10
alex
nextstep*)
0825
2002-03-12
alex
;;
0826
2020-05-10
alex
ns2*)
0827
2020-05-10
alex
os=nextstep2
0828
2002-03-12
alex
;;
0829
2002-03-12
alex
*)
0830
2020-05-10
alex
os=nextstep3
0831
2002-03-12
alex
;;
0832
2002-03-12
alex
esac
0833
2002-03-12
alex
;;
0834
2002-03-12
alex
np1)
0835
2020-05-10
alex
cpu=np1
0836
2020-05-10
alex
vendor=gould
0837
2002-03-12
alex
;;
0838
2002-03-12
alex
op50n-* | op60c-*)
0839
2020-05-10
alex
cpu=hppa1.1
0840
2020-05-10
alex
vendor=oki
0841
2020-05-10
alex
os=proelf
0842
2002-03-12
alex
;;
0843
2002-03-12
alex
pa-hitachi)
0844
2020-05-10
alex
cpu=hppa1.1
0845
2020-05-10
alex
vendor=hitachi
0846
2020-05-10
alex
os=hiuxwe2
0847
2002-03-12
alex
;;
0848
2002-03-12
alex
pbd)
0849
2020-05-10
alex
cpu=sparc
0850
2020-05-10
alex
vendor=tti
0851
2002-03-12
alex
;;
0852
2002-03-12
alex
pbb)
0853
2020-05-10
alex
cpu=m68k
0854
2020-05-10
alex
vendor=tti
0855
2002-03-12
alex
;;
0856
2020-05-10
alex
pc532)
0857
2020-05-10
alex
cpu=ns32k
0858
2020-05-10
alex
vendor=pc532
0859
2002-03-12
alex
;;
0860
2002-03-12
alex
pn)
0861
2020-05-10
alex
cpu=pn
0862
2020-05-10
alex
vendor=gould
0863
2002-03-12
alex
;;
0864
2020-05-10
alex
power)
0865
2020-05-10
alex
cpu=power
0866
2020-05-10
alex
vendor=ibm
0867
2002-03-12
alex
;;
0868
2002-03-12
alex
ps2)
0869
2020-05-10
alex
cpu=i386
0870
2020-05-10
alex
vendor=ibm
0871
2002-03-12
alex
;;
0872
2002-03-12
alex
rm[46]00)
0873
2020-05-10
alex
cpu=mips
0874
2020-05-10
alex
vendor=siemens
0875
2002-03-12
alex
;;
0876
2002-03-12
alex
rtpc | rtpc-*)
0877
2020-05-10
alex
cpu=romp
0878
2020-05-10
alex
vendor=ibm
0879
2002-03-12
alex
;;
0880
2007-05-26
alex
sde)
0881
2020-05-10
alex
cpu=mipsisa32
0882
2020-05-10
alex
vendor=sde
0883
2020-05-10
alex
os=${os:-elf}
0884
2007-05-26
alex
;;
0885
2018-04-01
alex
simso-wrs)
0886
2020-05-10
alex
cpu=sparclite
0887
2020-05-10
alex
vendor=wrs
0888
2020-05-10
alex
os=vxworks
0889
2002-03-12
alex
;;
0890
2002-03-12
alex
tower | tower-32)
0891
2020-05-10
alex
cpu=m68k
0892
2020-05-10
alex
vendor=ncr
0893
2002-03-12
alex
;;
0894
2002-03-12
alex
vpp*|vx|vx-*)
0895
2020-05-10
alex
cpu=f301
0896
2020-05-10
alex
vendor=fujitsu
0897
2003-07-09
alex
;;
0898
2020-05-10
alex
w65)
0899
2020-05-10
alex
cpu=w65
0900
2020-05-10
alex
vendor=wdc
0901
2002-03-12
alex
;;
0902
2002-03-12
alex
w89k-*)
0903
2020-05-10
alex
cpu=hppa1.1
0904
2020-05-10
alex
vendor=winbond
0905
2020-05-10
alex
os=proelf
0906
2002-03-12
alex
;;
0907
2020-05-10
alex
none)
0908
2020-05-10
alex
cpu=none
0909
2020-05-10
alex
vendor=none
0910
2018-04-01
alex
;;
0911
2020-05-10
alex
leon|leon[3-9])
0912
2020-05-10
alex
cpu=sparc
0913
2020-05-10
alex
vendor=$basic_machine
0914
2005-01-27
alex
;;
0915
2020-05-10
alex
leon-*|leon[3-9]-*)
0916
2020-05-10
alex
cpu=sparc
0917
2020-05-10
alex
vendor=`echo "$basic_machine" | sed 's/-.*//'`
0918
2002-03-12
alex
;;
0919
2020-05-10
alex
0920
2020-05-10
alex
*-*)
0921
2020-05-10
alex
# shellcheck disable=SC2162
0922
2020-05-10
alex
IFS="-" read cpu vendor <<EOF
0923
2020-05-10
alex
$basic_machine
0924
2020-05-10
alex
EOF
0925
2020-05-10
alex
;;
0926
2020-05-10
alex
# We use `pc' rather than `unknown'
0927
2020-05-10
alex
# because (1) that's what they normally are, and
0928
2020-05-10
alex
# (2) the word "unknown" tends to confuse beginning users.
0929
2020-05-10
alex
i*86 | x86_64)
0930
2020-05-10
alex
cpu=$basic_machine
0931
2020-05-10
alex
vendor=pc
0932
2020-05-10
alex
;;
0933
2020-05-10
alex
# These rules are duplicated from below for sake of the special case above;
0934
2020-05-10
alex
# i.e. things that normalized to x86 arches should also default to "pc"
0935
2020-05-10
alex
pc98)
0936
2020-05-10
alex
cpu=i386
0937
2020-05-10
alex
vendor=pc
0938
2020-05-10
alex
;;
0939
2020-05-10
alex
x64 | amd64)
0940
2020-05-10
alex
cpu=x86_64
0941
2020-05-10
alex
vendor=pc
0942
2020-05-10
alex
;;
0943
2020-05-10
alex
# Recognize the basic CPU types without company name.
0944
2020-05-10
alex
*)
0945
2020-05-10
alex
cpu=$basic_machine
0946
2020-05-10
alex
vendor=unknown
0947
2020-05-10
alex
;;
0948
2020-05-10
alex
esac
0949
2020-05-10
alex
0950
2020-05-10
alex
unset -v basic_machine
0951
2020-05-10
alex
0952
2020-05-10
alex
# Decode basic machines in the full and proper CPU-Company form.
0953
2020-05-10
alex
case $cpu-$vendor in
0954
2020-05-10
alex
# Here we handle the default manufacturer of certain CPU types in canonical form. It is in
0955
2020-05-10
alex
# some cases the only manufacturer, in others, it is the most popular.
0956
2020-05-10
alex
craynv-unknown)
0957
2020-05-10
alex
vendor=cray
0958
2020-05-10
alex
os=${os:-unicosmp}
0959
2020-05-10
alex
;;
0960
2020-05-10
alex
c90-unknown | c90-cray)
0961
2020-05-10
alex
vendor=cray
0962
2020-05-10
alex
os=${os:-unicos}
0963
2020-05-10
alex
;;
0964
2020-05-10
alex
fx80-unknown)
0965
2020-05-10
alex
vendor=alliant
0966
2020-05-10
alex
;;
0967
2020-05-10
alex
romp-unknown)
0968
2020-05-10
alex
vendor=ibm
0969
2020-05-10
alex
;;
0970
2020-05-10
alex
mmix-unknown)
0971
2020-05-10
alex
vendor=knuth
0972
2020-05-10
alex
;;
0973
2020-05-10
alex
microblaze-unknown | microblazeel-unknown)
0974
2020-05-10
alex
vendor=xilinx
0975
2020-05-10
alex
;;
0976
2020-05-10
alex
rs6000-unknown)
0977
2020-05-10
alex
vendor=ibm
0978
2020-05-10
alex
;;
0979
2020-05-10
alex
vax-unknown)
0980
2020-05-10
alex
vendor=dec
0981
2020-05-10
alex
;;
0982
2020-05-10
alex
pdp11-unknown)
0983
2020-05-10
alex
vendor=dec
0984
2020-05-10
alex
;;
0985
2020-05-10
alex
we32k-unknown)
0986
2020-05-10
alex
vendor=att
0987
2020-05-10
alex
;;
0988
2020-05-10
alex
cydra-unknown)
0989
2020-05-10
alex
vendor=cydrome
0990
2020-05-10
alex
;;
0991
2020-05-10
alex
i370-ibm*)
0992
2020-05-10
alex
vendor=ibm
0993
2020-05-10
alex
;;
0994
2020-05-10
alex
orion-unknown)
0995
2020-05-10
alex
vendor=highlevel
0996
2020-05-10
alex
;;
0997
2020-05-10
alex
xps-unknown | xps100-unknown)
0998
2020-05-10
alex
cpu=xps100
0999
2020-05-10
alex
vendor=honeywell
1000
2020-05-10
alex
;;
1001
2020-05-10
alex
1002
2020-05-10
alex
# Here we normalize CPU types with a missing or matching vendor
1003
2020-05-10
alex
dpx20-unknown | dpx20-bull)
1004
2020-05-10
alex
cpu=rs6000
1005
2020-05-10
alex
vendor=bull
1006
2020-05-10
alex
os=${os:-bosx}
1007
2020-05-10
alex
;;
1008
2020-05-10
alex
1009
2020-05-10
alex
# Here we normalize CPU types irrespective of the vendor
1010
2020-05-10
alex
amd64-*)
1011
2020-05-10
alex
cpu=x86_64
1012
2020-05-10
alex
;;
1013
2020-05-10
alex
blackfin-*)
1014
2020-05-10
alex
cpu=bfin
1015
2020-05-10
alex
os=linux
1016
2020-05-10
alex
;;
1017
2020-05-10
alex
c54x-*)
1018
2020-05-10
alex
cpu=tic54x
1019
2020-05-10
alex
;;
1020
2020-05-10
alex
c55x-*)
1021
2020-05-10
alex
cpu=tic55x
1022
2020-05-10
alex
;;
1023
2020-05-10
alex
c6x-*)
1024
2020-05-10
alex
cpu=tic6x
1025
2020-05-10
alex
;;
1026
2020-05-10
alex
e500v[12]-*)
1027
2020-05-10
alex
cpu=powerpc
1028
2020-05-10
alex
os=$os"spe"
1029
2020-05-10
alex
;;
1030
2020-05-10
alex
mips3*-*)
1031
2020-05-10
alex
cpu=mips64
1032
2020-05-10
alex
;;
1033
2020-05-10
alex
ms1-*)
1034
2020-05-10
alex
cpu=mt
1035
2020-05-10
alex
;;
1036
2020-05-10
alex
m68knommu-*)
1037
2020-05-10
alex
cpu=m68k
1038
2020-05-10
alex
os=linux
1039
2020-05-10
alex
;;
1040
2020-05-10
alex
m9s12z-* | m68hcs12z-* | hcs12z-* | s12z-*)
1041
2020-05-10
alex
cpu=s12z
1042
2020-05-10
alex
;;
1043
2020-05-10
alex
openrisc-*)
1044
2020-05-10
alex
cpu=or32
1045
2020-05-10
alex
;;
1046
2020-05-10
alex
parisc-*)
1047
2020-05-10
alex
cpu=hppa
1048
2020-05-10
alex
os=linux
1049
2020-05-10
alex
;;
1050
2020-05-10
alex
pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
1051
2020-05-10
alex
cpu=i586
1052
2020-05-10
alex
;;
1053
2020-05-10
alex
pentiumpro-* | p6-* | 6x86-* | athlon-* | athalon_*-*)
1054
2020-05-10
alex
cpu=i686
1055
2020-05-10
alex
;;
1056
2020-05-10
alex
pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
1057
2020-05-10
alex
cpu=i686
1058
2020-05-10
alex
;;
1059
2020-05-10
alex
pentium4-*)
1060
2020-05-10
alex
cpu=i786
1061
2020-05-10
alex
;;
1062
2020-05-10
alex
pc98-*)
1063
2020-05-10
alex
cpu=i386
1064
2020-05-10
alex
;;
1065
2020-05-10
alex
ppc-* | ppcbe-*)
1066
2020-05-10
alex
cpu=powerpc
1067
2020-05-10
alex
;;
1068
2020-05-10
alex
ppcle-* | powerpclittle-*)
1069
2020-05-10
alex
cpu=powerpcle
1070
2020-05-10
alex
;;
1071
2020-05-10
alex
ppc64-*)
1072
2020-05-10
alex
cpu=powerpc64
1073
2020-05-10
alex
;;
1074
2020-05-10
alex
ppc64le-* | powerpc64little-*)
1075
2020-05-10
alex
cpu=powerpc64le
1076
2020-05-10
alex
;;
1077
2020-05-10
alex
sb1-*)
1078
2020-05-10
alex
cpu=mipsisa64sb1
1079
2020-05-10
alex
;;
1080
2020-05-10
alex
sb1el-*)
1081
2020-05-10
alex
cpu=mipsisa64sb1el
1082
2020-05-10
alex
;;
1083
2020-05-10
alex
sh5e[lb]-*)
1084
2020-05-10
alex
cpu=`echo "$cpu" | sed 's/^\(sh.\)e\(.\)$/\1\2e/'`
1085
2020-05-10
alex
;;
1086
2020-05-10
alex
spur-*)
1087
2020-05-10
alex
cpu=spur
1088
2020-05-10
alex
;;
1089
2020-05-10
alex
strongarm-* | thumb-*)
1090
2020-05-10
alex
cpu=arm
1091
2020-05-10
alex
;;
1092
2020-05-10
alex
tx39-*)
1093
2020-05-10
alex
cpu=mipstx39
1094
2020-05-10
alex
;;
1095
2020-05-10
alex
tx39el-*)
1096
2020-05-10
alex
cpu=mipstx39el
1097
2020-05-10
alex
;;
1098
2020-05-10
alex
x64-*)
1099
2020-05-10
alex
cpu=x86_64
1100
2020-05-10
alex
;;
1101
2012-02-27
alex
xscale-* | xscalee[bl]-*)
1102
2020-05-10
alex
cpu=`echo "$cpu" | sed 's/^xscale/arm/'`
1103
2012-02-27
alex
;;
1104
2002-03-12
alex
1105
2020-05-10
alex
# Recognize the canonical CPU Types that limit and/or modify the
1106
2020-05-10
alex
# company names they are paired with.
1107
2020-05-10
alex
cr16-*)
1108
2020-05-10
alex
os=${os:-elf}
1109
2002-03-12
alex
;;
1110
2020-05-10
alex
crisv32-* | etraxfs*-*)
1111
2020-05-10
alex
cpu=crisv32
1112
2020-05-10
alex
vendor=axis
1113
2002-03-12
alex
;;
1114
2020-05-10
alex
cris-* | etrax*-*)
1115
2020-05-10
alex
cpu=cris
1116
2020-05-10
alex
vendor=axis
1117
2002-03-12
alex
;;
1118
2020-05-10
alex
crx-*)
1119
2020-05-10
alex
os=${os:-elf}
1120
2002-03-12
alex
;;
1121
2020-05-10
alex
neo-tandem)
1122
2020-05-10
alex
cpu=neo
1123
2020-05-10
alex
vendor=tandem
1124
2004-12-25
alex
;;
1125
2020-05-10
alex
nse-tandem)
1126
2020-05-10
alex
cpu=nse
1127
2020-05-10
alex
vendor=tandem
1128
2002-03-12
alex
;;
1129
2020-05-10
alex
nsr-tandem)
1130
2020-05-10
alex
cpu=nsr
1131
2020-05-10
alex
vendor=tandem
1132
2002-03-12
alex
;;
1133
2020-05-10
alex
nsv-tandem)
1134
2020-05-10
alex
cpu=nsv
1135
2020-05-10
alex
vendor=tandem
1136
2002-03-12
alex
;;
1137
2020-05-10
alex
nsx-tandem)
1138
2020-05-10
alex
cpu=nsx
1139
2020-05-10
alex
vendor=tandem
1140
2002-03-12
alex
;;
1141
2020-05-10
alex
s390-*)
1142
2020-05-10
alex
cpu=s390
1143
2020-05-10
alex
vendor=ibm
1144
2002-03-12
alex
;;
1145
2020-05-10
alex
s390x-*)
1146
2020-05-10
alex
cpu=s390x
1147
2020-05-10
alex
vendor=ibm
1148
2002-03-12
alex
;;
1149
2020-05-10
alex
tile*-*)
1150
2020-05-10
alex
os=${os:-linux-gnu}
1151
2002-03-12
alex
;;
1152
2020-05-10
alex
1153
2002-03-12
alex
*)
1154
2020-05-10
alex
# Recognize the canonical CPU types that are allowed with any
1155
2020-05-10
alex
# company name.
1156
2020-05-10
alex
case $cpu in
1157
2020-05-10
alex
1750a | 580 \
1158
2020-05-10
alex
| a29k \
1159
2020-05-10
alex
| aarch64 | aarch64_be \
1160
2020-05-10
alex
| abacus \
1161
2020-05-10
alex
| alpha | alphaev[4-8] | alphaev56 | alphaev6[78] \
1162
2020-05-10
alex
| alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] \
1163
2020-05-10
alex
| alphapca5[67] | alpha64pca5[67] \
1164
2020-05-10
alex
| am33_2.0 \
1165
2020-05-10
alex
| amdgcn \
1166
2020-05-10
alex
| arc | arceb \
1167
2020-05-10
alex
| arm | arm[lb]e | arme[lb] | armv* \
1168
2020-05-10
alex
| avr | avr32 \
1169
2020-05-10
alex
| asmjs \
1170
2020-05-10
alex
| ba \
1171
2020-05-10
alex
| be32 | be64 \
1172
2020-05-10
alex
| bfin | bpf | bs2000 \
1173
2020-05-10
alex
| c[123]* | c30 | [cjt]90 | c4x \
1174
2020-05-10
alex
| c8051 | clipper | craynv | csky | cydra \
1175
2020-05-10
alex
| d10v | d30v | dlx | dsp16xx \
1176
2020-05-10
alex
| e2k | elxsi | epiphany \
1177
2020-05-10
alex
| f30[01] | f700 | fido | fr30 | frv | ft32 | fx80 \
1178
2020-05-10
alex
| h8300 | h8500 \
1179
2020-05-10
alex
| hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
1180
2020-05-10
alex
| hexagon \
1181
2020-05-10
alex
| i370 | i*86 | i860 | i960 | ia16 | ia64 \
1182
2020-05-10
alex
| ip2k | iq2000 \
1183
2020-05-10
alex
| k1om \
1184
2020-05-10
alex
| le32 | le64 \
1185
2020-05-10
alex
| lm32 \
1186
2020-05-10
alex
| m32c | m32r | m32rle \
1187
2020-05-10
alex
| m5200 | m68000 | m680[012346]0 | m68360 | m683?2 | m68k \
1188
2020-05-10
alex
| m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x \
1189
2020-05-10
alex
| m88110 | m88k | maxq | mb | mcore | mep | metag \
1190
2020-05-10
alex
| microblaze | microblazeel \
1191
2020-05-10
alex
| mips | mipsbe | mipseb | mipsel | mipsle \
1192
2020-05-10
alex
| mips16 \
1193
2020-05-10
alex
| mips64 | mips64eb | mips64el \
1194
2020-05-10
alex
| mips64octeon | mips64octeonel \
1195
2020-05-10
alex
| mips64orion | mips64orionel \
1196
2020-05-10
alex
| mips64r5900 | mips64r5900el \
1197
2020-05-10
alex
| mips64vr | mips64vrel \
1198
2020-05-10
alex
| mips64vr4100 | mips64vr4100el \
1199
2020-05-10
alex
| mips64vr4300 | mips64vr4300el \
1200
2020-05-10
alex
| mips64vr5000 | mips64vr5000el \
1201
2020-05-10
alex
| mips64vr5900 | mips64vr5900el \
1202
2020-05-10
alex
| mipsisa32 | mipsisa32el \
1203
2020-05-10
alex
| mipsisa32r2 | mipsisa32r2el \
1204
2020-05-10
alex
| mipsisa32r6 | mipsisa32r6el \
1205
2020-05-10
alex
| mipsisa64 | mipsisa64el \
1206
2020-05-10
alex
| mipsisa64r2 | mipsisa64r2el \
1207
2020-05-10
alex
| mipsisa64r6 | mipsisa64r6el \
1208
2020-05-10
alex
| mipsisa64sb1 | mipsisa64sb1el \
1209
2020-05-10
alex
| mipsisa64sr71k | mipsisa64sr71kel \
1210
2020-05-10
alex
| mipsr5900 | mipsr5900el \
1211
2020-05-10
alex
| mipstx39 | mipstx39el \
1212
2020-05-10
alex
| mmix \
1213
2020-05-10
alex
| mn10200 | mn10300 \
1214
2020-05-10
alex
| moxie \
1215
2020-05-10
alex
| mt \
1216
2020-05-10
alex
| msp430 \
1217
2020-05-10
alex
| nds32 | nds32le | nds32be \
1218
2020-05-10
alex
| nfp \
1219
2020-05-10
alex
| nios | nios2 | nios2eb | nios2el \
1220
2020-05-10
alex
| none | np1 | ns16k | ns32k | nvptx \
1221
2020-05-10
alex
| open8 \
1222
2020-05-10
alex
| or1k* \
1223
2020-05-10
alex
| or32 \
1224
2020-05-10
alex
| orion \
1225
2020-05-10
alex
| picochip \
1226
2020-05-10
alex
| pdp10 | pdp11 | pj | pjl | pn | power \
1227
2020-05-10
alex
| powerpc | powerpc64 | powerpc64le | powerpcle | powerpcspe \
1228
2020-05-10
alex
| pru \
1229
2020-05-10
alex
| pyramid \
1230
2020-05-10
alex
| riscv | riscv32 | riscv64 \
1231
2020-05-10
alex
| rl78 | romp | rs6000 | rx \
1232
2020-05-10
alex
| score \
1233
2020-05-10
alex
| sh | shl \
1234
2020-05-10
alex
| sh[1234] | sh[24]a | sh[24]ae[lb] | sh[23]e | she[lb] | sh[lb]e \
1235
2020-05-10
alex
| sh[1234]e[lb] | sh[12345][lb]e | sh[23]ele | sh64 | sh64le \
1236
2020-05-10
alex
| sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet \
1237
2020-05-10
alex
| sparclite \
1238
2020-05-10
alex
| sparcv8 | sparcv9 | sparcv9b | sparcv9v | sv1 | sx* \
1239
2020-05-10
alex
| spu \
1240
2020-05-10
alex
| tahoe \
1241
2020-05-10
alex
| tic30 | tic4x | tic54x | tic55x | tic6x | tic80 \
1242
2020-05-10
alex
| tron \
1243
2020-05-10
alex
| ubicom32 \
1244
2020-05-10
alex
| v70 | v850 | v850e | v850e1 | v850es | v850e2 | v850e2v3 \
1245
2020-05-10
alex
| vax \
1246
2020-05-10
alex
| visium \
1247
2020-05-10
alex
| w65 \
1248
2020-05-10
alex
| wasm32 | wasm64 \
1249
2020-05-10
alex
| we32k \
1250
2020-05-10
alex
| x86 | x86_64 | xc16x | xgate | xps100 \
1251
2020-05-10
alex
| xstormy16 | xtensa* \
1252
2020-05-10
alex
| ymp \
1253
2020-05-10
alex
| z8k | z80)
1254
2020-05-10
alex
;;
1255
2020-05-10
alex
1256
2020-05-10
alex
*)
1257
2020-05-10
alex
echo Invalid configuration \`"$1"\': machine \`"$cpu-$vendor"\' not recognized 1>&2
1258
2020-05-10
alex
exit 1
1259
2020-05-10
alex
;;
1260
2020-05-10
alex
esac
1261
2002-03-12
alex
;;
1262
2002-03-12
alex
esac
1263
2002-03-12
alex
1264
2002-03-12
alex
# Here we canonicalize certain aliases for manufacturers.
1265
2020-05-10
alex
case $vendor in
1266
2020-05-10
alex
digital*)
1267
2020-05-10
alex
vendor=dec
1268
2002-03-12
alex
;;
1269
2020-05-10
alex
commodore*)
1270
2020-05-10
alex
vendor=cbm
1271
2002-03-12
alex
;;
1272
2002-03-12
alex
*)
1273
2002-03-12
alex
;;
1274
2002-03-12
alex
esac
1275
2002-03-12
alex
1276
2002-03-12
alex
# Decode manufacturer-specific aliases for certain operating systems.
1277
2002-03-12
alex
1278
2020-05-10
alex
if [ x$os != x ]
1279
2002-03-12
alex
then
1280
2002-03-12
alex
case $os in
1281
2018-04-01
alex
# First match some system type aliases that might get confused
1282
2018-04-01
alex
# with valid system types.
1283
2020-05-10
alex
# solaris* is a basic system type, with this one exception.
1284
2020-05-10
alex
auroraux)
1285
2020-05-10
alex
os=auroraux
1286
2012-02-27
alex
;;
1287
2020-05-10
alex
bluegene*)
1288
2020-05-10
alex
os=cnk
1289
2020-05-10
alex
;;
1290
2020-05-10
alex
solaris1 | solaris1.*)
1291
2002-03-12
alex
os=`echo $os | sed -e 's|solaris1|sunos4|'`
1292
2002-03-12
alex
;;
1293
2020-05-10
alex
solaris)
1294
2020-05-10
alex
os=solaris2
1295
2002-03-12
alex
;;
1296
2020-05-10
alex
unixware*)
1297
2020-05-10
alex
os=sysv4.2uw
1298
2002-03-12
alex
;;
1299
2020-05-10
alex
gnu/linux*)
1300
2002-03-12
alex
os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
1301
2002-03-12
alex
;;
1302
2018-04-01
alex
# es1800 is here to avoid being matched by es* (a different OS)
1303
2020-05-10
alex
es1800*)
1304
2020-05-10
alex
os=ose
1305
2018-04-01
alex
;;
1306
2020-05-10
alex
# Some version numbers need modification
1307
2020-05-10
alex
chorusos*)
1308
2020-05-10
alex
os=chorusos
1309
2020-05-10
alex
;;
1310
2020-05-10
alex
isc)
1311
2020-05-10
alex
os=isc2.2
1312
2020-05-10
alex
;;
1313
2020-05-10
alex
sco6)
1314
2020-05-10
alex
os=sco5v6
1315
2020-05-10
alex
;;
1316
2020-05-10
alex
sco5)
1317
2020-05-10
alex
os=sco3.2v5
1318
2020-05-10
alex
;;
1319
2020-05-10
alex
sco4)
1320
2020-05-10
alex
os=sco3.2v4
1321
2020-05-10
alex
;;
1322
2020-05-10
alex
sco3.2.[4-9]*)
1323
2020-05-10
alex
os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
1324
2020-05-10
alex
;;
1325
2020-05-10
alex
sco3.2v[4-9]* | sco5v6*)
1326
2020-05-10
alex
# Don't forget version if it is 3.2v4 or newer.
1327
2020-05-10
alex
;;
1328
2020-05-10
alex
scout)
1329
2020-05-10
alex
# Don't match below
1330
2020-05-10
alex
;;
1331
2020-05-10
alex
sco*)
1332
2020-05-10
alex
os=sco3.2v2
1333
2020-05-10
alex
;;
1334
2020-05-10
alex
psos*)
1335
2020-05-10
alex
os=psos
1336
2020-05-10
alex
;;
1337
2018-04-01
alex
# Now accept the basic system types.
1338
2002-03-12
alex
# The portable systems comes first.
1339
2018-04-01
alex
# Each alternative MUST end in a * to match a version number.
1340
2020-05-10
alex
# sysv* is not here because it comes later, after sysvr4.
1341
2020-05-10
alex
gnu* | bsd* | mach* | minix* | genix* | ultrix* | irix* \
1342
2020-05-10
alex
| *vms* | esix* | aix* | cnk* | sunos | sunos[34]*\
1343
2020-05-10
alex
| hpux* | unos* | osf* | luna* | dgux* | auroraux* | solaris* \
1344
2020-05-10
alex
| sym* | kopensolaris* | plan9* \
1345
2020-05-10
alex
| amigaos* | amigados* | msdos* | newsos* | unicos* | aof* \
1346
2020-05-10
alex
| aos* | aros* | cloudabi* | sortix* | twizzler* \
1347
2020-05-10
alex
| nindy* | vxsim* | vxworks* | ebmon* | hms* | mvs* \
1348
2020-05-10
alex
| clix* | riscos* | uniplus* | iris* | isc* | rtu* | xenix* \
1349
2020-05-10
alex
| knetbsd* | mirbsd* | netbsd* \
1350
2020-05-10
alex
| bitrig* | openbsd* | solidbsd* | libertybsd* | os108* \
1351
2020-05-10
alex
| ekkobsd* | kfreebsd* | freebsd* | riscix* | lynxos* \
1352
2020-05-10
alex
| bosx* | nextstep* | cxux* | aout* | elf* | oabi* \
1353
2020-05-10
alex
| ptx* | coff* | ecoff* | winnt* | domain* | vsta* \
1354
2020-05-10
alex
| udi* | eabi* | lites* | ieee* | go32* | aux* | hcos* \
1355
2020-05-10
alex
| chorusrdb* | cegcc* | glidix* \
1356
2020-05-10
alex
| cygwin* | msys* | pe* | moss* | proelf* | rtems* \
1357
2020-05-10
alex
| midipix* | mingw32* | mingw64* | linux-gnu* | linux-android* \
1358
2020-05-10
alex
| linux-newlib* | linux-musl* | linux-uclibc* \
1359
2020-05-10
alex
| uxpv* | beos* | mpeix* | udk* | moxiebox* \
1360
2020-05-10
alex
| interix* | uwin* | mks* | rhapsody* | darwin* \
1361
2020-05-10
alex
| openstep* | oskit* | conix* | pw32* | nonstopux* \
1362
2020-05-10
alex
| storm-chaos* | tops10* | tenex* | tops20* | its* \
1363
2020-05-10
alex
| os2* | vos* | palmos* | uclinux* | nucleus* \
1364
2020-05-10
alex
| morphos* | superux* | rtmk* | windiss* \
1365
2020-05-10
alex
| powermax* | dnix* | nx6 | nx7 | sei* | dragonfly* \
1366
2020-05-10
alex
| skyos* | haiku* | rdos* | toppers* | drops* | es* \
1367
2020-05-10
alex
| onefs* | tirtos* | phoenix* | fuchsia* | redox* | bme* \
1368
2020-05-10
alex
| midnightbsd* | amdhsa* | unleashed* | emscripten* | wasi* \
1369
2020-05-10
alex
| nsk* | powerunix* | genode*)
1370
2002-03-12
alex
# Remember, each alternative MUST END IN *, to match a version number.
1371
2002-03-12
alex
;;
1372
2020-05-10
alex
qnx*)
1373
2020-05-10
alex
case $cpu in
1374
2020-05-10
alex
x86 | i*86)
1375
2002-03-12
alex
;;
1376
2002-03-12
alex
*)
1377
2020-05-10
alex
os=nto-$os
1378
2002-03-12
alex
;;
1379
2002-03-12
alex
esac
1380
2002-03-12
alex
;;
1381
2020-05-10
alex
hiux*)
1382
2020-05-10
alex
os=hiuxwe2
1383
2003-07-09
alex
;;
1384
2020-05-10
alex
nto-qnx*)
1385
2020-05-10
alex
;;
1386
2020-05-10
alex
nto*)
1387
2003-07-09
alex
os=`echo $os | sed -e 's|nto|nto-qnx|'`
1388
2002-03-12
alex
;;
1389
2020-05-10
alex
sim | xray | os68k* | v88r* \
1390
2020-05-10
alex
| windows* | osx | abug | netware* | os9* \
1391
2020-05-10
alex
| macos* | mpw* | magic* | mmixware* | mon960* | lnews*)
1392
2002-03-12
alex
;;
1393
2020-05-10
alex
linux-dietlibc)
1394
2020-05-10
alex
os=linux-dietlibc
1395
2002-03-12
alex
;;
1396
2020-05-10
alex
linux*)
1397
2002-03-12
alex
os=`echo $os | sed -e 's|linux|linux-gnu|'`
1398
2002-03-12
alex
;;
1399
2020-05-10
alex
lynx*178)
1400
2020-05-10
alex
os=lynxos178
1401
2020-05-10
alex
;;
1402
2020-05-10
alex
lynx*5)
1403
2020-05-10
alex
os=lynxos5
1404
2020-05-10
alex
;;
1405
2020-05-10
alex
lynx*)
1406
2020-05-10
alex
os=lynxos
1407
2020-05-10
alex
;;
1408
2020-05-10
alex
mac*)
1409
2020-05-10
alex
os=`echo "$os" | sed -e 's|mac|macos|'`
1410
2020-05-10
alex
;;
1411
2020-05-10
alex
opened*)
1412
2020-05-10
alex
os=openedition
1413
2020-05-10
alex
;;
1414
2020-05-10
alex
os400*)
1415
2020-05-10
alex
os=os400
1416
2020-05-10
alex
;;
1417
2020-05-10
alex
sunos5*)
1418
2018-04-01
alex
os=`echo "$os" | sed -e 's|sunos5|solaris2|'`
1419
2002-03-12
alex
;;
1420
2020-05-10
alex
sunos6*)
1421
2018-04-01
alex
os=`echo "$os" | sed -e 's|sunos6|solaris3|'`
1422
2002-03-12
alex
;;
1423
2020-05-10
alex
wince*)
1424
2020-05-10
alex
os=wince
1425
2002-03-12
alex
;;
1426
2020-05-10
alex
utek*)
1427
2020-05-10
alex
os=bsd
1428
2004-03-11
alex
;;
1429
2020-05-10
alex
dynix*)
1430
2020-05-10
alex
os=bsd
1431
2002-03-12
alex
;;
1432
2020-05-10
alex
acis*)
1433
2020-05-10
alex
os=aos
1434
2002-03-12
alex
;;
1435
2020-05-10
alex
atheos*)
1436
2020-05-10
alex
os=atheos
1437
2002-03-12
alex
;;
1438
2020-05-10
alex
syllable*)
1439
2020-05-10
alex
os=syllable
1440
2002-03-12
alex
;;
1441
2020-05-10
alex
386bsd)
1442
2020-05-10
alex
os=bsd
1443
2002-03-12
alex
;;
1444
2020-05-10
alex
ctix* | uts*)
1445
2020-05-10
alex
os=sysv
1446
2004-03-11
alex
;;
1447
2020-05-10
alex
nova*)
1448
2020-05-10
alex
os=rtmk-nova
1449
2002-03-12
alex
;;
1450
2020-05-10
alex
ns2)
1451
2020-05-10
alex
os=nextstep2
1452
2002-03-12
alex
;;
1453
2002-03-12
alex
# Preserve the version number of sinix5.
1454
2020-05-10
alex
sinix5.*)
1455
2002-03-12
alex
os=`echo $os | sed -e 's|sinix|sysv|'`
1456
2002-03-12
alex
;;
1457
2020-05-10
alex
sinix*)
1458
2020-05-10
alex
os=sysv4
1459
2002-03-12
alex
;;
1460
2020-05-10
alex
tpf*)
1461
2020-05-10
alex
os=tpf
1462
2004-03-11
alex
;;
1463
2020-05-10
alex
triton*)
1464
2020-05-10
alex
os=sysv3
1465
2002-03-12
alex
;;
1466
2020-05-10
alex
oss*)
1467
2020-05-10
alex
os=sysv3
1468
2002-03-12
alex
;;
1469
2020-05-10
alex
svr4*)
1470
2020-05-10
alex
os=sysv4
1471
2002-03-12
alex
;;
1472
2020-05-10
alex
svr3)
1473
2020-05-10
alex
os=sysv3
1474
2002-03-12
alex
;;
1475
2020-05-10
alex
sysvr4)
1476
2020-05-10
alex
os=sysv4
1477
2002-03-12
alex
;;
1478
2020-05-10
alex
# This must come after sysvr4.
1479
2020-05-10
alex
sysv*)
1480
2002-03-12
alex
;;
1481
2020-05-10
alex
ose*)
1482
2020-05-10
alex
os=ose
1483
2002-03-12
alex
;;
1484
2020-05-10
alex
*mint | mint[0-9]* | *MiNT | MiNT[0-9]*)
1485
2020-05-10
alex
os=mint
1486
2002-03-12
alex
;;
1487
2020-05-10
alex
zvmoe)
1488
2020-05-10
alex
os=zvmoe
1489
2005-01-27
alex
;;
1490
2020-05-10
alex
dicos*)
1491
2020-05-10
alex
os=dicos
1492
2012-02-27
alex
;;
1493
2020-05-10
alex
pikeos*)
1494
2018-04-01
alex
# Until real need of OS specific support for
1495
2018-04-01
alex
# particular features comes up, bare metal
1496
2018-04-01
alex
# configurations are quite functional.
1497
2020-05-10
alex
case $cpu in
1498
2018-04-01
alex
arm*)
1499
2020-05-10
alex
os=eabi
1500
2018-04-01
alex
;;
1501
2018-04-01
alex
*)
1502
2020-05-10
alex
os=elf
1503
2018-04-01
alex
;;
1504
2018-04-01
alex
esac
1505
2018-04-01
alex
;;
1506
2020-05-10
alex
nacl*)
1507
2012-02-27
alex
;;
1508
2020-05-10
alex
ios)
1509
2016-11-05
alex
;;
1510
2020-05-10
alex
none)
1511
2002-03-12
alex
;;
1512
2020-05-10
alex
*-eabi)
1513
2020-05-10
alex
;;
1514
2002-03-12
alex
*)
1515
2018-04-01
alex
echo Invalid configuration \`"$1"\': system \`"$os"\' not recognized 1>&2
1516
2002-03-12
alex
exit 1
1517
2002-03-12
alex
;;
1518
2002-03-12
alex
esac
1519
2002-03-12
alex
else
1520
2002-03-12
alex
1521
2002-03-12
alex
# Here we handle the default operating systems that come with various machines.
1522
2002-03-12
alex
# The value should be what the vendor currently ships out the door with their
1523
2002-03-12
alex
# machine or put another way, the most popular os provided with the machine.
1524
2002-03-12
alex
1525
2002-03-12
alex
# Note that if you're going to try to match "-MANUFACTURER" here (say,
1526
2002-03-12
alex
# "-sun"), then you have to tell the case statement up towards the top
1527
2002-03-12
alex
# that MANUFACTURER isn't an operating system. Otherwise, code above
1528
2002-03-12
alex
# will signal an error saying that MANUFACTURER isn't an operating
1529
2002-03-12
alex
# system, and we'll never get to this point.
1530
2002-03-12
alex
1531
2020-05-10
alex
case $cpu-$vendor in
1532
2012-02-27
alex
score-*)
1533
2020-05-10
alex
os=elf
1534
2007-05-26
alex
;;
1535
2012-02-27
alex
spu-*)
1536
2020-05-10
alex
os=elf
1537
2006-09-11
alex
;;
1538
2002-03-12
alex
*-acorn)
1539
2020-05-10
alex
os=riscix1.2
1540
2002-03-12
alex
;;
1541
2002-03-12
alex
arm*-rebel)
1542
2020-05-10
alex
os=linux
1543
2002-03-12
alex
;;
1544
2002-03-12
alex
arm*-semi)
1545
2020-05-10
alex
os=aout
1546
2002-03-12
alex
;;
1547
2012-02-27
alex
c4x-* | tic4x-*)
1548
2020-05-10
alex
os=coff
1549
2006-09-11
alex
;;
1550
2014-03-18
alex
c8051-*)
1551
2020-05-10
alex
os=elf
1552
2014-03-18
alex
;;
1553
2020-05-10
alex
clipper-intergraph)
1554
2020-05-10
alex
os=clix
1555
2020-05-10
alex
;;
1556
2012-09-16
alex
hexagon-*)
1557
2020-05-10
alex
os=elf
1558
2012-09-16
alex
;;
1559
2012-02-27
alex
tic54x-*)
1560
2020-05-10
alex
os=coff
1561
2012-02-27
alex
;;
1562
2012-02-27
alex
tic55x-*)
1563
2020-05-10
alex
os=coff
1564
2012-02-27
alex
;;
1565
2012-02-27
alex
tic6x-*)
1566
2020-05-10
alex
os=coff
1567
2012-02-27
alex
;;
1568
2002-03-12
alex
# This must come before the *-dec entry.
1569
2002-03-12
alex
pdp10-*)
1570
2020-05-10
alex
os=tops20
1571
2002-03-12
alex
;;
1572
2003-07-09
alex
pdp11-*)
1573
2020-05-10
alex
os=none
1574
2002-03-12
alex
;;
1575
2002-03-12
alex
*-dec | vax-*)
1576
2020-05-10
alex
os=ultrix4.2
1577
2002-03-12
alex
;;
1578
2002-03-12
alex
m68*-apollo)
1579
2020-05-10
alex
os=domain
1580
2002-03-12
alex
;;
1581
2002-03-12
alex
i386-sun)
1582
2020-05-10
alex
os=sunos4.0.2
1583
2002-03-12
alex
;;
1584
2002-03-12
alex
m68000-sun)
1585
2020-05-10
alex
os=sunos3
1586
2002-03-12
alex
;;
1587
2002-03-12
alex
m68*-cisco)
1588
2020-05-10
alex
os=aout
1589
2002-03-12
alex
;;
1590
2012-02-27
alex
mep-*)
1591
2020-05-10
alex
os=elf
1592
2007-05-26
alex
;;
1593
2002-03-12
alex
mips*-cisco)
1594
2020-05-10
alex
os=elf
1595
2002-03-12
alex
;;
1596
2002-03-12
alex
mips*-*)
1597
2020-05-10
alex
os=elf
1598
2002-03-12
alex
;;
1599
2002-03-12
alex
or32-*)
1600
2020-05-10
alex
os=coff
1601
2002-03-12
alex
;;
1602
2002-03-12
alex
*-tti) # must be before sparc entry or we get the wrong os.
1603
2020-05-10
alex
os=sysv3
1604
2002-03-12
alex
;;
1605
2002-03-12
alex
sparc-* | *-sun)
1606
2020-05-10
alex
os=sunos4.1.1
1607
2002-03-12
alex
;;
1608
2018-04-01
alex
pru-*)
1609
2020-05-10
alex
os=elf
1610
2018-04-01
alex
;;
1611
2002-03-12
alex
*-be)
1612
2020-05-10
alex
os=beos
1613
2002-03-12
alex
;;
1614
2002-03-12
alex
*-ibm)
1615
2020-05-10
alex
os=aix
1616
2002-03-12
alex
;;
1617
2012-02-27
alex
*-knuth)
1618
2020-05-10
alex
os=mmixware
1619
2004-12-25
alex
;;
1620
2002-03-12
alex
*-wec)
1621
2020-05-10
alex
os=proelf
1622
2002-03-12
alex
;;
1623
2002-03-12
alex
*-winbond)
1624
2020-05-10
alex
os=proelf
1625
2002-03-12
alex
;;
1626
2002-03-12
alex
*-oki)
1627
2020-05-10
alex
os=proelf
1628
2002-03-12
alex
;;
1629
2002-03-12
alex
*-hp)
1630
2020-05-10
alex
os=hpux
1631
2002-03-12
alex
;;
1632
2002-03-12
alex
*-hitachi)
1633
2020-05-10
alex
os=hiux
1634
2002-03-12
alex
;;
1635
2002-03-12
alex
i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent)
1636
2020-05-10
alex
os=sysv
1637
2002-03-12
alex
;;
1638
2002-03-12
alex
*-cbm)
1639
2020-05-10
alex
os=amigaos
1640
2002-03-12
alex
;;
1641
2002-03-12
alex
*-dg)
1642
2020-05-10
alex
os=dgux
1643
2002-03-12
alex
;;
1644
2002-03-12
alex
*-dolphin)
1645
2020-05-10
alex
os=sysv3
1646
2002-03-12
alex
;;
1647
2002-03-12
alex
m68k-ccur)
1648
2020-05-10
alex
os=rtu
1649
2002-03-12
alex
;;
1650
2002-03-12
alex
m88k-omron*)
1651
2020-05-10
alex
os=luna
1652
2002-03-12
alex
;;
1653
2018-04-01
alex
*-next)
1654
2020-05-10
alex
os=nextstep
1655
2002-03-12
alex
;;
1656
2002-03-12
alex
*-sequent)
1657
2020-05-10
alex
os=ptx
1658
2002-03-12
alex
;;
1659
2002-03-12
alex
*-crds)
1660
2020-05-10
alex
os=unos
1661
2002-03-12
alex
;;
1662
2002-03-12
alex
*-ns)
1663
2020-05-10
alex
os=genix
1664
2002-03-12
alex
;;
1665
2002-03-12
alex
i370-*)
1666
2020-05-10
alex
os=mvs
1667
2002-03-12
alex
;;
1668
2003-07-09
alex
*-gould)
1669
2020-05-10
alex
os=sysv
1670
2002-03-12
alex
;;
1671
2003-07-09
alex
*-highlevel)
1672
2020-05-10
alex
os=bsd
1673
2002-03-12
alex
;;
1674
2002-03-12
alex
*-encore)
1675
2020-05-10
alex
os=bsd
1676
2002-03-12
alex
;;
1677
2003-07-09
alex
*-sgi)
1678
2020-05-10
alex
os=irix
1679
2002-03-12
alex
;;
1680
2003-07-09
alex
*-siemens)
1681
2020-05-10
alex
os=sysv4
1682
2002-03-12
alex
;;
1683
2002-03-12
alex
*-masscomp)
1684
2020-05-10
alex
os=rtu
1685
2002-03-12
alex
;;
1686
2002-03-12
alex
f30[01]-fujitsu | f700-fujitsu)
1687
2020-05-10
alex
os=uxpv
1688
2002-03-12
alex
;;
1689
2002-03-12
alex
*-rom68k)
1690
2020-05-10
alex
os=coff
1691
2002-03-12
alex
;;
1692
2002-03-12
alex
*-*bug)
1693
2020-05-10
alex
os=coff
1694
2002-03-12
alex
;;
1695
2002-03-12
alex
*-apple)
1696
2020-05-10
alex
os=macos
1697
2002-03-12
alex
;;
1698
2002-03-12
alex
*-atari*)
1699
2020-05-10
alex
os=mint
1700
2002-03-12
alex
;;
1701
2020-05-10
alex
*-wrs)
1702
2020-05-10
alex
os=vxworks
1703
2020-05-10
alex
;;
1704
2002-03-12
alex
*)
1705
2020-05-10
alex
os=none
1706
2002-03-12
alex
;;
1707
2002-03-12
alex
esac
1708
2002-03-12
alex
fi
1709
2002-03-12
alex
1710
2002-03-12
alex
# Here we handle the case where we know the os, and the CPU type, but not the
1711
2002-03-12
alex
# manufacturer. We pick the logical manufacturer.
1712
2020-05-10
alex
case $vendor in
1713
2020-05-10
alex
unknown)
1714
2002-03-12
alex
case $os in
1715
2020-05-10
alex
riscix*)
1716
2002-03-12
alex
vendor=acorn
1717
2002-03-12
alex
;;
1718
2020-05-10
alex
sunos*)
1719
2002-03-12
alex
vendor=sun
1720
2002-03-12
alex
;;
1721
2020-05-10
alex
cnk*|-aix*)
1722
2002-03-12
alex
vendor=ibm
1723
2002-03-12
alex
;;
1724
2020-05-10
alex
beos*)
1725
2002-03-12
alex
vendor=be
1726
2002-03-12
alex
;;
1727
2020-05-10
alex
hpux*)
1728
2002-03-12
alex
vendor=hp
1729
2002-03-12
alex
;;
1730
2020-05-10
alex
mpeix*)
1731
2002-03-12
alex
vendor=hp
1732
2002-03-12
alex
;;
1733
2020-05-10
alex
hiux*)
1734
2002-03-12
alex
vendor=hitachi
1735
2002-03-12
alex
;;
1736
2020-05-10
alex
unos*)
1737
2002-03-12
alex
vendor=crds
1738
2002-03-12
alex
;;
1739
2020-05-10
alex
dgux*)
1740
2002-03-12
alex
vendor=dg
1741
2002-03-12
alex
;;
1742
2020-05-10
alex
luna*)
1743
2002-03-12
alex
vendor=omron
1744
2002-03-12
alex
;;
1745
2020-05-10
alex
genix*)
1746
2002-03-12
alex
vendor=ns
1747
2002-03-12
alex
;;
1748
2020-05-10
alex
clix*)
1749
2020-05-10
alex
vendor=intergraph
1750
2020-05-10
alex
;;
1751
2020-05-10
alex
mvs* | opened*)
1752
2002-03-12
alex
vendor=ibm
1753
2002-03-12
alex
;;
1754
2020-05-10
alex
os400*)
1755
2004-03-11
alex
vendor=ibm
1756
2004-03-11
alex
;;
1757
2020-05-10
alex
ptx*)
1758
2002-03-12
alex
vendor=sequent
1759
2002-03-12
alex
;;
1760
2020-05-10
alex
tpf*)
1761
2004-03-11
alex
vendor=ibm
1762
2004-03-11
alex
;;
1763
2020-05-10
alex
vxsim* | vxworks* | windiss*)
1764
2002-03-12
alex
vendor=wrs
1765
2002-03-12
alex
;;
1766
2020-05-10
alex
aux*)
1767
2002-03-12
alex
vendor=apple
1768
2002-03-12
alex
;;
1769
2020-05-10
alex
hms*)
1770
2002-03-12
alex
vendor=hitachi
1771
2002-03-12
alex
;;
1772
2020-05-10
alex
mpw* | macos*)
1773
2002-03-12
alex
vendor=apple
1774
2002-03-12
alex
;;
1775
2020-05-10
alex
*mint | mint[0-9]* | *MiNT | MiNT[0-9]*)
1776
2002-03-12
alex
vendor=atari
1777
2002-03-12
alex
;;
1778
2020-05-10
alex
vos*)
1779
2002-03-12
alex
vendor=stratus
1780
2002-03-12
alex
;;
1781
2002-03-12
alex
esac
1782
2002-03-12
alex
;;
1783
2002-03-12
alex
esac
1784
2002-03-12
alex
1785
2020-05-10
alex
echo "$cpu-$vendor-$os"
1786
2005-10-15
alex
exit
1787
2002-03-12
alex
1788
2002-03-12
alex
# Local variables:
1789
2018-04-01
alex
# eval: (add-hook 'before-save-hook 'time-stamp)
1790
2002-03-12
alex
# time-stamp-start: "timestamp='"
1791
2002-03-12
alex
# time-stamp-format: "%:y-%02m-%02d"
1792
2002-03-12
alex
# time-stamp-end: "'"
1793
2002-03-12
alex
# End:
IRCNow