* i386v4-nat.c: Include sys/reg.h if present.
[deliverable/binutils-gdb.git] / config.sub
CommitLineData
84849c9c 1#! /bin/sh
378fd382 2# Configuration validation subroutine script, version 1.1.
8d71997d 3# Copyright (C) 1991, 92, 93, 94, 95, 96, 1997 Free Software Foundation, Inc.
378fd382
DZ
4# This file is (in principle) common to ALL GNU software.
5# The presence of a machine in this file suggests that SOME GNU software
d7a57996 6# can handle that machine. It does not imply ALL GNU software can.
032d50a9
DE
7#
8# This file is free software; you can redistribute it and/or modify
9# it under the terms of the GNU General Public License as published by
10# the Free Software Foundation; either version 2 of the License, or
11# (at your option) any later version.
12#
13# This program is distributed in the hope that it will be useful,
14# but WITHOUT ANY WARRANTY; without even the implied warranty of
15# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16# GNU General Public License for more details.
17#
18# You should have received a copy of the GNU General Public License
19# along with this program; if not, write to the Free Software
d586f394
ILT
20# Foundation, Inc., 59 Temple Place - Suite 330,
21# Boston, MA 02111-1307, USA.
a2ee3e6d 22
84849c9c
ILT
23# As a special exception to the GNU General Public License, if you
24# distribute this file as part of a program that contains a
25# configuration script generated by Autoconf, you may include it under
26# the same distribution terms that you use for the rest of that program.
4f183929
RP
27
28# Configuration subroutine to validate and canonicalize a configuration type.
29# Supply the specified configuration type as an argument.
30# If it is invalid, we print an error message on stderr and exit with code 1.
31# Otherwise, we print the canonical config type on stdout and succeed.
32
33# This file is supposed to be the same for all GNU packages
34# and recognize all the CPU types, system types and aliases
35# that are meaningful with *any* GNU software.
36# Each package is responsible for reporting which valid configurations
37# it does not support. The user should be able to distinguish
38# a failure to support a valid configuration from a meaningless
a2ee3e6d 39# configuration.
4f183929 40
a2ee3e6d
JW
41# The goal of this file is to map all the various variations of a given
42# machine specification into a single specification in the form:
43# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
d7a57996
ILT
44# or in some cases, the newer four-part form:
45# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
27a2a371 46# It is wrong to echo any other type of specification.
8b204e6e 47
032d50a9 48if [ x$1 = x ]
23ab00aa
KR
49then
50 echo Configuration name missing. 1>&2
51 echo "Usage: $0 CPU-MFR-OPSYS" 1>&2
52 echo "or $0 ALIAS" 1>&2
53 echo where ALIAS is a recognized configuration type. 1>&2
54 exit 1
55fi
56
a2ee3e6d
JW
57# First pass through any local machine types.
58case $1 in
59 *local*)
60 echo $1
61 exit 0
62 ;;
63 *)
69e87de2 64 ;;
a2ee3e6d 65esac
b9fe720d 66
b637f306
GRK
67# CYGNUS LOCAL marketing-names
68# Here we handle any "marketing" names - translating them to
69# standard triplets
70case $1 in
f71eeb23
GRK
71 mips-tx39-elf)
72 set mipstx39-unknown-elf
73 ;;
b637f306
GRK
74# start-sanitize-tx19
75 mips-tx19-elf)
76 set mipstx19-unknown-elf
77 ;;
78# end-sanitize-tx19
d649db65
GRK
79# start-sanitize-tx49
80 mips-tx49-elf)
81 set mips64tx49-unknown-elf
82 ;;
83# end-sanitize-tx49
8f6462bc
JL
84# start-sanitize-vr5400
85 mips64vr5xxx-elf)
86 set mips64vr5000-elf
87 ;;
88# end-sanitize-vr5400
b637f306
GRK
89 *)
90 ;;
91esac
92# END CYGNUS LOCAL marketing-names
93
d7a57996
ILT
94# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
95# Here we must recognize all the valid KERNEL-OS combinations.
96maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
97case $maybe_os in
98 linux-gnu*)
99 os=-$maybe_os
100 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
101 ;;
102 *)
103 basic_machine=`echo $1 | sed 's/-[^-]*$//'`
104 if [ $basic_machine != $1 ]
105 then os=`echo $1 | sed 's/.*-/-/'`
106 else os=; fi
107 ;;
108esac
caebaa16 109
27a2a371
JW
110### Let's recognize common machines as not being operating systems so
111### that things like config.sub decstation-3100 work. We also
6559fbdb 112### recognize some manufacturers as not being operating systems, so we
27a2a371 113### can provide default operating systems below.
a2ee3e6d 114case $os in
939d9e8a
JL
115 -sun*os*)
116 # Prevent following clause from handling this invalid input.
117 ;;
a2ee3e6d
JW
118 -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \
119 -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
1983e432 120 -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
939d9e8a 121 -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
a2ee3e6d 122 -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
d7a57996
ILT
123 -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
124 -apple)
032d50a9
DE
125 os=
126 basic_machine=$1
127 ;;
3b61a094 128 -sim | -cisco | -oki | -wec | -winbond ) # CYGNUS LOCAL
a2ee3e6d
JW
129 os=
130 basic_machine=$1
131 ;;
378fd382 132 -scout) # CYGNUS LOCAL
f68be6f0 133 ;;
6559fbdb 134 -wrs) # CYGNUS LOCAL
300f6a4f
RS
135 os=vxworks
136 basic_machine=$1
137 ;;
939d9e8a 138 -hiux*)
aa6db781 139 os=-hiuxwe2
939d9e8a 140 ;;
d586f394 141 -sco5)
8c4774d9 142 os=-sco3.2v5
d7a57996 143 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
d586f394 144 ;;
939d9e8a
JL
145 -sco4)
146 os=-sco3.2v4
d7a57996 147 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
939d9e8a
JL
148 ;;
149 -sco3.2.[4-9]*)
150 os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
d7a57996 151 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
939d9e8a 152 ;;
27a2a371
JW
153 -sco3.2v[4-9]*)
154 # Don't forget version if it is 3.2v4 or newer.
d7a57996 155 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
27a2a371 156 ;;
a2ee3e6d 157 -sco*)
378fd382 158 os=-sco3.2v2
d7a57996 159 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
a2ee3e6d 160 ;;
27a2a371
JW
161 -isc)
162 os=-isc2.2
d7a57996 163 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
27a2a371 164 ;;
9d784b19
RS
165 -clix*)
166 basic_machine=clipper-intergraph
167 ;;
378fd382 168 -isc*)
d7a57996 169 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
a2ee3e6d 170 ;;
032d50a9 171 -lynx*)
939d9e8a
JL
172 os=-lynxos
173 ;;
d1c8b869
ILT
174 -ptx*)
175 basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'`
aa6db781 176 ;;
d94aca1a
MT
177 -windowsnt*)
178 os=`echo $os | sed -e 's/windowsnt/winnt/'`
179 ;;
3f5d1c2c
C
180 -psos*)
181 os=-psos
182 ;;
a2ee3e6d 183esac
b9fe720d 184
a2ee3e6d
JW
185# Decode aliases for certain CPU-COMPANY combinations.
186case $basic_machine in
939d9e8a 187 # Recognize the basic CPU types without company name.
378fd382 188 # Some are omitted here because they have special meanings below.
8d71997d 189 tahoe | i860 | m32r | m68k | m68000 | m88k | ns32k | arc | arm \
5b1875c6 190 | arme[lb] | pyramid | mn10200 | mn10300 \
9ddf4089 191 | tron | a29k | 580 | i960 | h8300 | hppa | hppa1.0 | hppa1.1 \
8c4774d9
ILT
192 | alpha | alphaev5 | alphaev56 | alphapca56 | alphaev6 \
193 | we32k | ns16k | clipper | i370 | sh | powerpc | powerpcle \
194 | 1750a | dsp16xx | pdp11 \
8d71997d
GRK
195 | mips64 | mipsel | mips64el | mips64orion | mips64orionel \
196 | mipstx39 | mipstx39el \
8c4774d9 197 | sparc | sparclet | sparclite | sparc64 | sparc86x | v850)
032d50a9
DE
198 basic_machine=$basic_machine-unknown
199 ;;
8c4774d9
ILT
200 m88110 | m680[012346]0 | m683?2 | m68360 | m5200 | z8k | v70 \
201 | h8500 | w65) # CYGNUS LOCAL
a2ee3e6d
JW
202 basic_machine=$basic_machine-unknown
203 ;;
8c4774d9 204 thumb)
d649db65
GRK
205 basic_machine=$basic_machine-unknown
206 ;;
33d917af
GRK
207# start-sanitize-vr4320
208 mips64vr4320 | mips64vr4320el)
209 basic_machine=$basic_machine-unknown
210 ;;
5e731826 211# end-sanitize-vr4320
d586f394
ILT
212 mips64vr4300 | mips64vr4300el) # CYGNUS LOCAL jsmith/vr4300
213 basic_machine=$basic_machine-unknown
214 ;;
215 mips64vr4100 | mips64vr4100el) # CYGNUS LOCAL jsmith/vr4100
48ac1853
ILT
216 basic_machine=$basic_machine-unknown
217 ;;
be9b9d69
JL
218 mips64vr5000 | mips64vr5000el) # CYGNUS LOCAL ian/vr5000
219 basic_machine=$basic_machine-unknown
220 ;;
6671b6e7
AC
221# start-sanitize-vr5400
222 mips64vr5400) # CYGNUS LOCAL cagney/vr5400
223 basic_machine=$basic_machine-unknown
224 ;;
225# end-sanitize-vr5400
8f6462bc
JL
226# start-sanitize-tx19
227 mipstx19 | mipstx19el)
228 basic_machine=$basic_machine-unknown
229 ;;
230# end-sanitize-tx19
231# start-sanitize-tx49
232 mips64tx49 | mips64tx49el)
233 basic_machine=$basic_machine-unknown
234 ;;
235# end-sanitize-tx49
c2304cba 236# start-sanitize-r5900
f71eeb23 237 mips64r5900 | mips64r5900el) # CYGNUS LOCAL gavin/r5900
c2304cba
MH
238 basic_machine=$basic_machine-unknown
239 ;;
240# end-sanitize-r5900
9ddf4089
ILT
241 mips16) # CYGNUS LOCAL krk/mips16
242 basic_machine=$basic_machine-unknown
243 ;;
33d917af
GRK
244 tic30) # CYGNUS LOCAL ian/tic30
245 basic_machine=$basic_machine-unknown
246 ;;
247 c30) # CYGNUS LOCAL ian/tic30
248 basic_machine=tic30-unknown
249 ;;
962873d5
FF
250# start-sanitize-tic80
251 tic80) # CYGNUS LOCAL fnf/TIc80
252 basic_machine=$basic_machine-unknown
253 ;;
254# end-sanitize-tic80
5042ba87 255# start-sanitize-sky
33d917af 256 dvp)
5042ba87
JL
257 basic_machine=$basic_machine-unknown
258 ;;
259# end-sanitize-sky
b079f659
JL
260# start-sanitize-v850e
261 v850e) # CYGNUS LOCAL jtc/v850
3f5d1c2c
C
262 basic_machine=$basic_machine-unknown
263 ;;
8f6462bc 264 v850ea) # CYGNUS LOCAL jtc/v850
b079f659
JL
265 basic_machine=$basic_machine-unknown
266 ;;
f71eeb23 267# end-sanitize-v850e
3f5d1c2c
C
268 d10v) # CYGNUS LOCAL meissner/d10v
269 basic_machine=$basic_machine-unknown
270 ;;
c2304cba
MH
271 d30v) # CYGNUS LOCAL hunt/d30v
272 basic_machine=$basic_machine-unknown
273 ;;
d7a57996
ILT
274 # We use `pc' rather than `unknown'
275 # because (1) that's what they normally are, and
276 # (2) the word "unknown" tends to confuse beginning users.
277 i[3456]86)
278 basic_machine=$basic_machine-pc
279 ;;
939d9e8a
JL
280 # Object if more than one company name word.
281 *-*-*)
282 echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
283 exit 1
284 ;;
285 # Recognize the basic CPU types with company name.
982c3e4f 286 vax-* | tahoe-* | i[3456]86-* | i860-* | m32r-* | m68k-* | m68000-* \
8d71997d
GRK
287 | m88k-* | sparc-* | ns32k-* | fx80-* | arc-* | arm-* | c[123]* \
288 | mips-* | pyramid-* | tron-* | a29k-* | romp-* | rs6000-* \
289 | power-* | none-* | 580-* | cray2-* | h8300-* | i960-* \
290 | xmp-* | ymp-* | hppa-* | hppa1.0-* | hppa1.1-* \
8c4774d9
ILT
291 | alpha-* | alphaev5-* | alphaev56-* | alphapca56-* \
292 | alphaev6-* | we32k-* | cydra-* | ns16k-* | pn-* | np1-* \
293 | xps100-* | clipper-* | orion-* \
8d71997d 294 | sparclite-* | pdp11-* | sh-* | powerpc-* | powerpcle-* \
8c4774d9 295 | sparc64-* | sparc86x-* | mips64-* | mipsel-* \
8d71997d
GRK
296 | mips64el-* | mips64orion-* | mips64orionel-* \
297 | mipstx39-* | mipstx39el-* \
298 | f301-*)
a2ee3e6d 299 ;;
5b1875c6 300 m88110-* | m680[01234]0-* | m683?2-* | m68360-* | z8k-* | h8500-* | d10v-*) # CYGNUS LOCAL
7c71fc39 301 ;;
8f6462bc
JL
302 thumb-*) # CYGNUS LOCAL angela/thumb
303 ;;
5042ba87 304# start-sanitize-sky
33d917af 305 dvp-* | txvu-*)
5042ba87
JL
306 ;;
307# end-sanitize-sky
5b1875c6
JL
308 v850-*) # CYGNUS LOCAL
309 ;;
b079f659
JL
310# start-sanitize-v850e
311 v850e-*) # CYGNUS LOCAL
312 ;;
8f6462bc 313 v850ea-*) # CYGNUS LOCAL
b079f659 314 ;;
f71eeb23 315# end-sanitize-v850e
5b1875c6
JL
316 d30v-*) # CYGNUS LOCAL
317 ;;
33d917af
GRK
318# start-sanitize-vr4320
319 mips64vr4320-* | mips64vr4320el-*)
320 ;;
321# end-sanitize-vr4320
d586f394
ILT
322 mips64vr4300-* | mips64vr4300el-*) # CYGNUS LOCAL jsmith/vr4300
323 ;;
324 mips64vr4100-* | mips64vr4100el-*) # CYGNUS LOCAL jsmith/vr4100
48ac1853 325 ;;
b637f306
GRK
326# start-sanitize-tx19
327 mipstx19-* | mipstx19el-*)
328 ;;
329# end-sanitize-tx19
d649db65
GRK
330# start-sanitize-tx49
331 mips64tx49-* | mips64tx49el-*)
332 ;;
333# end-sanitize-tx49
c2304cba 334# start-sanitize-r5900
f71eeb23 335 mips64r5900-* | mips64r5900el-*) # CYGNUS LOCAL gavin/r5900
c2304cba
MH
336 ;;
337# end-sanitize-r5900
9ddf4089
ILT
338 mips16-*) # CYGNUS LOCAL krk/mips16
339 ;;
33d917af
GRK
340 tic30-*) # CYGNUS LOCAL ian/tic30
341 ;;
342 c30-*) # CYGNUS LOCAL ian/tic30
343 basic_machine=tic30-unknown
344 ;;
962873d5
FF
345# start-sanitize-tic80
346 tic80-*) # CYGNUS LOCAL fnf/TIc80
347 ;;
348# end-sanitize-tic80
a2ee3e6d
JW
349 # Recognize the various machine names and aliases which stand
350 # for a CPU type and a company and sometimes even an OS.
842ca181
PB
351 386bsd) # CYGNUS LOCAL
352 basic_machine=i386-unknown
353 os=-bsd
a2ee3e6d 354 ;;
842ca181
PB
355 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
356 basic_machine=m68000-att
a2ee3e6d 357 ;;
842ca181
PB
358 3b*)
359 basic_machine=we32k-att
939d9e8a 360 ;;
842ca181
PB
361 a29khif) # CYGNUS LOCAL
362 basic_machine=a29k-amd
363 os=-udi
939d9e8a 364 ;;
842ca181
PB
365 adobe68k) # CYGNUS LOCAL
366 basic_machine=m68010-adobe
367 os=-scout
ba7f177a 368 ;;
842ca181
PB
369 alliant | fx80)
370 basic_machine=fx80-alliant
939d9e8a 371 ;;
842ca181
PB
372 altos | altos3068)
373 basic_machine=m68k-altos
a2ee3e6d 374 ;;
842ca181
PB
375 am29k)
376 basic_machine=a29k-none
377 os=-bsd
a2ee3e6d 378 ;;
842ca181
PB
379 amdahl)
380 basic_machine=580-amdahl
381 os=-sysv
939d9e8a 382 ;;
d1c8b869 383 amiga | amiga-*)
842ca181 384 basic_machine=m68k-cbm
68cd7865 385 ;;
842ca181
PB
386 amigados)
387 basic_machine=m68k-cbm
388 os=-amigados
a2ee3e6d 389 ;;
842ca181
PB
390 amigaunix | amix)
391 basic_machine=m68k-cbm
6559fbdb
RP
392 os=-sysv4
393 ;;
842ca181
PB
394 apollo68)
395 basic_machine=m68k-apollo
6559fbdb
RP
396 os=-sysv
397 ;;
842ca181
PB
398 apollo68bsd) # CYGNUS LOCAL
399 basic_machine=m68k-apollo
23ab00aa
KR
400 os=-bsd
401 ;;
349f03db
ILT
402 aux)
403 basic_machine=m68k-apple
404 os=-aux
405 ;;
842ca181
PB
406 balance)
407 basic_machine=ns32k-sequent
408 os=-dynix
939d9e8a 409 ;;
a2ee3e6d
JW
410 convex-c1)
411 basic_machine=c1-convex
378fd382 412 os=-bsd
a2ee3e6d
JW
413 ;;
414 convex-c2)
415 basic_machine=c2-convex
378fd382 416 os=-bsd
a2ee3e6d
JW
417 ;;
418 convex-c32)
419 basic_machine=c32-convex
378fd382 420 os=-bsd
a2ee3e6d
JW
421 ;;
422 convex-c34)
423 basic_machine=c34-convex
378fd382 424 os=-bsd
a2ee3e6d
JW
425 ;;
426 convex-c38)
427 basic_machine=c38-convex
378fd382 428 os=-bsd
a2ee3e6d 429 ;;
842ca181
PB
430 cray | ymp)
431 basic_machine=ymp-cray
432 os=-unicos
a2ee3e6d 433 ;;
842ca181
PB
434 cray2)
435 basic_machine=cray2-cray
436 os=-unicos
a2ee3e6d 437 ;;
d7a57996
ILT
438 [ctj]90-cray)
439 basic_machine=c90-cray
440 os=-unicos
441 ;;
a2ee3e6d
JW
442 crds | unos)
443 basic_machine=m68k-crds
444 ;;
d1c8b869
ILT
445 da30 | da30-*)
446 basic_machine=m68k-da30
447 ;;
448 decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
842ca181
PB
449 basic_machine=mips-dec
450 ;;
451 delta | 3300 | motorola-3300 | motorola-delta \
452 | 3300-motorola | delta-motorola)
453 basic_machine=m68k-motorola
454 ;;
455 delta88)
456 basic_machine=m88k-motorola
457 os=-sysv3
458 ;;
459 dpx20 | dpx20-*)
460 basic_machine=rs6000-bull
461 os=-bosx
462 ;;
463 dpx2* | dpx2*-bull)
464 basic_machine=m68k-bull
465 os=-sysv3
466 ;;
467 ebmon29k)
468 basic_machine=a29k-amd
469 os=-ebmon
470 ;;
378fd382
DZ
471 elxsi)
472 basic_machine=elxsi-elxsi
473 os=-bsd
474 ;;
a2ee3e6d
JW
475 encore | umax | mmax)
476 basic_machine=ns32k-encore
a2ee3e6d 477 ;;
842ca181
PB
478 es1800 | OSE68k | ose68k | ose | OSE) # CYGNUS LOCAL
479 basic_machine=m68k-ericsson
480 os=-ose
481 ;;
482 fx2800)
483 basic_machine=i860-alliant
484 ;;
a2ee3e6d
JW
485 genix)
486 basic_machine=ns32k-ns
487 ;;
842ca181
PB
488 gmicro)
489 basic_machine=tron-gmicro
490 os=-sysv
a2ee3e6d 491 ;;
842ca181
PB
492 h3050r* | hiux*)
493 basic_machine=hppa1.1-hitachi
494 os=-hiuxwe2
a2ee3e6d 495 ;;
d94aca1a 496 h8300hms)
842ca181
PB
497 basic_machine=h8300-hitachi
498 os=-hms
a2ee3e6d 499 ;;
842ca181
PB
500 h8300xray) # CYGNUS LOCAL
501 basic_machine=h8300-hitachi
502 os=-xray
a2ee3e6d 503 ;;
842ca181
PB
504 h8500hms) # CYGNUS LOCAL
505 basic_machine=h8500-hitachi
506 os=-hms
a2ee3e6d 507 ;;
842ca181
PB
508 harris)
509 basic_machine=m88k-harris
510 os=-sysv3
a2ee3e6d 511 ;;
d1c8b869
ILT
512 hp300-*)
513 basic_machine=m68k-hp
a2ee3e6d 514 ;;
842ca181
PB
515 hp300bsd)
516 basic_machine=m68k-hp
517 os=-bsd
a2ee3e6d 518 ;;
842ca181
PB
519 hp300hpux)
520 basic_machine=m68k-hp
521 os=-hpux
a2ee3e6d 522 ;;
d1c8b869
ILT
523 w89k-*) # CYGNUS LOCAL
524 basic_machine=hppa1.1-winbond
525 os=-proelf
526 ;;
527 op50n-*) # CYGNUS LOCAL
528 basic_machine=hppa1.1-oki
529 os=-proelf
530 ;;
531 op60c-*) # CYGNUS LOCAL
532 basic_machine=hppa1.1-oki
533 os=-proelf
534 ;;
535 hppro) # CYGNUS LOCAL
536 basic_machine=hppa1.1-hp
537 os=-proelf
538 ;;
842ca181
PB
539 hp9k2[0-9][0-9] | hp9k31[0-9])
540 basic_machine=m68000-hp
a2ee3e6d 541 ;;
842ca181
PB
542 hp9k3[2-9][0-9])
543 basic_machine=m68k-hp
a2ee3e6d 544 ;;
5042ba87
JL
545 hp9k6[0-9][0-9] | hp6[0-9][0-9] )
546 basic_machine=hppa1.0-hp
547 ;;
548 hp9k7[0-79][0-9] | hp7[0-79][0-9] )
549 basic_machine=hppa1.1-hp
550 ;;
551 hp9k78[0-9] | hp78[0-9] )
552 # FIXME: really hppa2.0-hp
553 basic_machine=hppa1.1-hp
554 ;;
555 hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | \
556 hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893 )
557 # FIXME: really hppa2.0-hp
558 basic_machine=hppa1.1-hp
559 ;;
560 hp9k8[0-9][13679] | hp8[0-9][13679] )
842ca181 561 basic_machine=hppa1.1-hp
a2ee3e6d 562 ;;
842ca181
PB
563 hp9k8[0-9][0-9] | hp8[0-9][0-9])
564 basic_machine=hppa1.0-hp
a2ee3e6d 565 ;;
9ddf4089
ILT
566 hppa-next)
567 os=-nextstep3
568 ;;
d94aca1a 569 hppaosf) # CYGNUS LOCAL
842ca181
PB
570 basic_machine=hppa1.1-hp
571 os=-osf
572 ;;
573 i370-ibm* | ibm*)
574 basic_machine=i370-ibm
575 os=-mvs
576 ;;
842ca181 577# I'm not sure what "Sysv32" means. Should this be sysv3.2?
d586f394 578 i[3456]86v32)
d7a57996 579 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
842ca181
PB
580 os=-sysv32
581 ;;
d586f394 582 i[3456]86v4*)
d7a57996 583 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
842ca181
PB
584 os=-sysv4
585 ;;
d586f394 586 i[3456]86v)
d7a57996 587 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
842ca181
PB
588 os=-sysv
589 ;;
d586f394 590 i[3456]86sol2)
d7a57996 591 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
8bcd7db2
JW
592 os=-solaris2
593 ;;
d1c8b869
ILT
594 i386mach) # CYGNUS LOCAL
595 basic_machine=i386-mach
596 os=-mach
597 ;;
598 i386-vsta | vsta) # CYGNUS LOCAL
599 basic_machine=i386-unknown
600 os=-vsta
601 ;;
602 i386-go32 | go32) # CYGNUS LOCAL
603 basic_machine=i386-unknown
604 os=-go32
605 ;;
5042ba87
JL
606 i386-mingw32 | mingw32)
607 basic_machine=i386-unknown
608 os=-mingw32
609 ;;
84849c9c 610 iris | iris4d)
842ca181
PB
611 basic_machine=mips-sgi
612 case $os in
613 -irix*)
614 ;;
615 *)
616 os=-irix4
617 ;;
618 esac
619 ;;
620 isi68 | isi)
621 basic_machine=m68k-isi
622 os=-sysv
623 ;;
842ca181
PB
624 m88k-omron*)
625 basic_machine=m88k-omron
626 ;;
627 magnum | m3230)
628 basic_machine=mips-mips
629 os=-sysv
630 ;;
631 merlin)
632 basic_machine=ns32k-utek
633 os=-sysv
634 ;;
635 miniframe)
d1c8b869 636 basic_machine=m68000-convergent
a2ee3e6d 637 ;;
c2304cba
MH
638 mipsel*-linux*)
639 basic_machine=mipsel-unknown
8d71997d 640 os=-linux-gnu
c2304cba
MH
641 ;;
642 mips*-linux*)
643 basic_machine=mips-unknown
8d71997d 644 os=-linux-gnu
c2304cba 645 ;;
d1c8b869 646 mips3*-*)
842ca181
PB
647 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
648 ;;
d1c8b869
ILT
649 mips3*)
650 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
842ca181 651 ;;
d94aca1a 652 monitor) # CYGNUS LOCAL
d1c8b869 653 basic_machine=m68k-rom68k
842ca181 654 os=-coff
d1c8b869 655 ;;
378fd382 656 msdos) # CYGNUS LOCAL
afba2b22
ILT
657 basic_machine=i386-unknown
658 os=-msdos
659 ;;
842ca181
PB
660 ncr3000)
661 basic_machine=i486-ncr
662 os=-sysv4
378fd382 663 ;;
842ca181
PB
664 netbsd386)
665 basic_machine=i386-unknown # CYGNUS LOCAL
666 os=-netbsd
a2ee3e6d 667 ;;
842ca181
PB
668 news | news700 | news800 | news900)
669 basic_machine=m68k-sony
670 os=-newsos
a2ee3e6d 671 ;;
842ca181
PB
672 news1000)
673 basic_machine=m68030-sony
674 os=-newsos
675 ;;
676 news-3600 | risc-news)
677 basic_machine=mips-sony
678 os=-newsos
378fd382 679 ;;
d1c8b869
ILT
680 necv70) # CYGNUS LOCAL
681 basic_machine=v70-nec
682 os=-sysv
683 ;;
684 next | m*-next )
a2ee3e6d 685 basic_machine=m68k-next
842ca181 686 case $os in
d1c8b869
ILT
687 -nextstep* )
688 ;;
689 -ns2*)
690 os=-nextstep2
842ca181
PB
691 ;;
692 *)
1983e432 693 os=-nextstep3
842ca181
PB
694 ;;
695 esac
a2ee3e6d 696 ;;
842ca181
PB
697 nh3000)
698 basic_machine=m68k-harris
699 os=-cxux
378fd382 700 ;;
842ca181
PB
701 nh[45]000)
702 basic_machine=m88k-harris
703 os=-cxux
27a2a371 704 ;;
842ca181
PB
705 nindy960)
706 basic_machine=i960-intel
707 os=-nindy
a2ee3e6d 708 ;;
d7a57996 709 mon960) # CYGNUS LOCAL
3f5d1c2c
C
710 basic_machine=i960-intel
711 os=-mon960
712 ;;
842ca181
PB
713 np1)
714 basic_machine=np1-gould
a2ee3e6d 715 ;;
842ca181
PB
716 OSE68000 | ose68000) # CYGNUS LOCAL
717 basic_machine=m68000-ericsson
718 os=-ose
a2ee3e6d 719 ;;
d1c8b869
ILT
720 os68k) # CYGNUS LOCAL
721 basic_machine=m68k-none
722 os=-os68k
723 ;;
842ca181 724 pa-hitachi)
9117f609 725 basic_machine=hppa1.1-hitachi
842ca181 726 os=-hiuxwe2
9117f609 727 ;;
842ca181
PB
728 paragon)
729 basic_machine=i860-intel
730 os=-osf
a2ee3e6d 731 ;;
842ca181
PB
732 pbd)
733 basic_machine=sparc-tti
a2ee3e6d 734 ;;
842ca181
PB
735 pbb)
736 basic_machine=m68k-tti
a2ee3e6d 737 ;;
d1c8b869 738 pc532 | pc532-*)
842ca181 739 basic_machine=ns32k-pc532
a2ee3e6d 740 ;;
d586f394 741 pentium | p5)
35262713
SC
742 basic_machine=i586-intel
743 ;;
d586f394
ILT
744 pentiumpro | p6)
745 basic_machine=i686-intel
746 ;;
747 pentium-* | p5-*)
35262713
SC
748 basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
749 ;;
d586f394
ILT
750 pentiumpro-* | p6-*)
751 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
752 ;;
35262713
SC
753 k5)
754 # We don't have specific support for AMD's K5 yet, so just call it a Pentium
755 basic_machine=i586-amd
756 ;;
d586f394 757 nexen)
35262713
SC
758 # We don't have specific support for Nexgen yet, so just call it a Pentium
759 basic_machine=i586-nexgen
d1c8b869 760 ;;
842ca181
PB
761 pn)
762 basic_machine=pn-gould
763 ;;
35262713
SC
764 power) basic_machine=rs6000-ibm
765 ;;
766 ppc) basic_machine=powerpc-unknown
767 ;;
768 ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
769 ;;
770 ppcle | powerpclittle | ppc-le | powerpc-little)
771 basic_machine=powerpcle-unknown
772 ;;
773 ppcle-* | powerpclittle-*)
774 basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
775 ;;
842ca181
PB
776 ps2)
777 basic_machine=i386-ibm
68cd7865 778 ;;
b637f306
GRK
779# start-sanitize-tx19
780 r1900)
781 basic_machine=mipstx19-unknown
782 ;;
783 r1900el)
784 basic_machine=mipstx19el-unknown
785 ;;
786# end-sanitize-tx19
c2304cba 787# start-sanitize-r5900
f71eeb23
GRK
788 r5900 | r5900el) # CYGNUS LOCAL
789 basic_machine=mips64r5900-unknown
c2304cba
MH
790 ;;
791# end-sanitize-r5900
d1c8b869
ILT
792 rom68k) # CYGNUS LOCAL
793 basic_machine=m68k-rom68k
9d784b19 794 os=-coff
d1c8b869 795 ;;
84849c9c
ILT
796 rm[46]00)
797 basic_machine=mips-siemens
798 ;;
842ca181
PB
799 rtpc | rtpc-*)
800 basic_machine=romp-ibm
a2ee3e6d 801 ;;
842ca181
PB
802 sa29200) # CYGNUS LOCAL
803 basic_machine=a29k-amd
804 os=-udi
a2ee3e6d 805 ;;
d1c8b869
ILT
806 sequent)
807 basic_machine=i386-sequent
808 ;;
809 sh)
842ca181
PB
810 basic_machine=sh-hitachi
811 os=-hms
a2ee3e6d 812 ;;
842ca181
PB
813 sparclite-wrs) # CYGNUS LOCAL
814 basic_machine=sparclite-wrs
815 os=-vxworks
816 ;;
842ca181
PB
817 sps7)
818 basic_machine=m68k-bull
819 os=-sysv2
820 ;;
821 spur)
822 basic_machine=spur-unknown
823 ;;
824 st2000) # CYGNUS LOCAL
825 basic_machine=m68k-tandem
a2ee3e6d 826 ;;
378fd382 827 stratus) # CYGNUS LOCAL
dd16baba
SEF
828 basic_machine=i860-stratus
829 os=-sysv4
830 ;;
842ca181
PB
831 sun2)
832 basic_machine=m68000-sun
a2ee3e6d 833 ;;
842ca181
PB
834 sun2os3)
835 basic_machine=m68000-sun
836 os=-sunos3
a2ee3e6d 837 ;;
842ca181
PB
838 sun2os4)
839 basic_machine=m68000-sun
840 os=-sunos4
a2ee3e6d 841 ;;
842ca181
PB
842 sun3os3)
843 basic_machine=m68k-sun
844 os=-sunos3
a2ee3e6d 845 ;;
842ca181
PB
846 sun3os4)
847 basic_machine=m68k-sun
848 os=-sunos4
a2ee3e6d 849 ;;
842ca181
PB
850 sun4os3)
851 basic_machine=sparc-sun
852 os=-sunos3
a2ee3e6d 853 ;;
842ca181
PB
854 sun4os4)
855 basic_machine=sparc-sun
856 os=-sunos4
2501643a 857 ;;
84849c9c 858 sun4sol2)
842ca181
PB
859 basic_machine=sparc-sun
860 os=-solaris2
984b27cb 861 ;;
d1c8b869 862 sun3 | sun3-*)
842ca181 863 basic_machine=m68k-sun
984b27cb 864 ;;
842ca181
PB
865 sun4)
866 basic_machine=sparc-sun
378fd382 867 ;;
842ca181
PB
868 sun386 | sun386i | roadrunner)
869 basic_machine=i386-sun
378fd382 870 ;;
842ca181
PB
871 symmetry)
872 basic_machine=i386-sequent
873 os=-dynix
2501643a 874 ;;
b637f306
GRK
875# start-sanitize-tx19
876 tx19)
877 basic_machine=mipstx19-unknown
878 ;;
879 tx19el)
880 basic_machine=mipstx19el-unknown
881 ;;
882# end-sanitize-tx19
8d71997d
GRK
883 tx39)
884 basic_machine=mipstx39-unknown
885 ;;
886 tx39el)
887 basic_machine=mipstx39el-unknown
888 ;;
842ca181
PB
889 tower | tower-32)
890 basic_machine=m68k-ncr
2501643a 891 ;;
032d50a9 892 udi29k)
2501643a
PB
893 basic_machine=a29k-amd
894 os=-udi
895 ;;
842ca181
PB
896 ultra3)
897 basic_machine=a29k-nyu
898 os=-sym1
99a5da15 899 ;;
d94aca1a 900 v810 | necv810) # CYGNUS LOCAL
4a967132
PB
901 basic_machine=v810-nec
902 os=-none
903 ;;
842ca181
PB
904 vaxv)
905 basic_machine=vax-dec
906 os=-sysv
a2ee3e6d 907 ;;
842ca181
PB
908 vms)
909 basic_machine=vax-dec
910 os=-vms
a2ee3e6d 911 ;;
8d71997d 912 vpp*|vx|vx-*)
9ddf4089
ILT
913 basic_machine=f301-fujitsu
914 ;;
a2ee3e6d
JW
915 vxworks960)
916 basic_machine=i960-wrs
917 os=-vxworks
918 ;;
919 vxworks68)
920 basic_machine=m68k-wrs
921 os=-vxworks
922 ;;
d586f394
ILT
923 vxworks29k)
924 basic_machine=a29k-wrs
925 os=-vxworks
926 ;;
84849c9c 927 w65*) # CYGNUS LOCAL
032d50a9
DE
928 basic_machine=w65-wdc
929 os=-none
930 ;;
842ca181
PB
931 xmp)
932 basic_machine=xmp-cray
933 os=-unicos
f68be6f0 934 ;;
27a2a371
JW
935 xps | xps100)
936 basic_machine=xps100-honeywell
937 ;;
48ac1853 938 z8k-*-coff) # CYGNUS LOCAL
d1c8b869 939 basic_machine=z8k-unknown
842ca181
PB
940 os=-sim
941 ;;
a2ee3e6d
JW
942 none)
943 basic_machine=none-none
944 os=-none
945 ;;
69e87de2 946
a2ee3e6d
JW
947# Here we handle the default manufacturer of certain CPU types. It is in
948# some cases the only manufacturer, in others, it is the most popular.
d1c8b869 949 w89k) # CYGNUS LOCAL
3b61a094
RS
950 basic_machine=hppa1.1-winbond
951 ;;
d1c8b869 952 op50n) # CYGNUS LOCAL
3b61a094
RS
953 basic_machine=hppa1.1-oki
954 ;;
d1c8b869 955 op60c) # CYGNUS LOCAL
3b61a094
RS
956 basic_machine=hppa1.1-oki
957 ;;
a2ee3e6d 958 mips)
8d71997d 959 if [ x$os = x-linux-gnu ]; then
c2304cba
MH
960 basic_machine=mips-unknown
961 else
962 basic_machine=mips-mips
963 fi
a2ee3e6d
JW
964 ;;
965 romp)
966 basic_machine=romp-ibm
967 ;;
968 rs6000)
969 basic_machine=rs6000-ibm
970 ;;
971 vax)
972 basic_machine=vax-dec
973 ;;
84849c9c
ILT
974 pdp11)
975 basic_machine=pdp11-dec
976 ;;
378fd382
DZ
977 we32k)
978 basic_machine=we32k-att
979 ;;
6559fbdb
RP
980 sparc)
981 basic_machine=sparc-sun
982 ;;
27a2a371
JW
983 cydra)
984 basic_machine=cydra-cydrome
985 ;;
986 orion)
987 basic_machine=orion-highlevel
988 ;;
989 orion105)
990 basic_machine=clipper-highlevel
991 ;;
48ac1853 992 mac | mpw | mac-mpw) # CYGNUS LOCAL
939d9e8a
JL
993 basic_machine=m68k-apple
994 ;;
48ac1853
ILT
995 pmac | pmac-mpw) # CYGNUS LOCAL
996 basic_machine=powerpc-apple
939d9e8a 997 ;;
a2ee3e6d
JW
998 *)
999 echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
4f183929 1000 exit 1
a2ee3e6d 1001 ;;
4f183929
RP
1002esac
1003
378fd382
DZ
1004# Here we canonicalize certain aliases for manufacturers.
1005case $basic_machine in
1006 *-digital*)
1007 basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'`
1008 ;;
1009 *-commodore*)
1010 basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'`
1011 ;;
1012 *)
1013 ;;
1014esac
1015
a2ee3e6d 1016# Decode manufacturer-specific aliases for certain operating systems.
e6602723 1017
b48eb8b7 1018if [ x"$os" != x"" ]
a2ee3e6d
JW
1019then
1020case $os in
d7a57996
ILT
1021 # First match some system type aliases
1022 # that might get confused with valid system types.
6559fbdb
RP
1023 # -solaris* is a basic system type, with this one exception.
1024 -solaris1 | -solaris1.*)
1025 os=`echo $os | sed -e 's|solaris1|sunos4|'`
1026 ;;
b2eed00f
DE
1027 -solaris)
1028 os=-solaris2
1029 ;;
84849c9c
ILT
1030 -unixware* | svr4*)
1031 os=-sysv4
1032 ;;
d94aca1a 1033 -gnu/linux*)
d7a57996 1034 os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
d94aca1a 1035 ;;
a2ee3e6d
JW
1036 # First accept the basic system types.
1037 # The portable systems comes first.
d586f394 1038 # Each alternative MUST END IN A *, to match a version number.
939d9e8a 1039 # -sysv* is not here because it comes later, after sysvr4.
d586f394 1040 -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
d7a57996 1041 | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
d1c8b869 1042 | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
d7a57996
ILT
1043 | -amigados* | -msdos* | -newsos* | -unicos* | -aof* | -aos* \
1044 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
1045 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
9ddf4089 1046 | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \
d1c8b869 1047 | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* \
d586f394 1048 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
3f5d1c2c 1049 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
d7a57996 1050 | -cygwin32* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
8d71997d 1051 | -mingw32* | -linux-gnu* | -uxpv*)
d586f394 1052 # Remember, each alternative MUST END IN *, to match a version number.
d1c8b869 1053 ;;
032d50a9 1054 # CYGNUS LOCAL
d586f394 1055 -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
c28b08c2 1056 | -windows* | -osx | -abug | -netware* | -os9* | -beos* \
4365b7b5 1057 | -macos* | -mpw* | -magic* | -mon960* | -lnews* )
032d50a9 1058 ;;
d586f394 1059 -mac*)
032d50a9
DE
1060 os=`echo $os | sed -e 's|mac|macos|'`
1061 ;;
d586f394 1062 # END CYGNUS LOCAL
d7a57996
ILT
1063 -linux*)
1064 os=`echo $os | sed -e 's|linux|linux-gnu|'`
1065 ;;
6559fbdb
RP
1066 -sunos5*)
1067 os=`echo $os | sed -e 's|sunos5|solaris2|'`
1068 ;;
1069 -sunos6*)
1070 os=`echo $os | sed -e 's|sunos6|solaris3|'`
1071 ;;
a2ee3e6d 1072 -osfrose*)
378fd382 1073 os=-osfrose
a2ee3e6d
JW
1074 ;;
1075 -osf*)
378fd382
DZ
1076 os=-osf
1077 ;;
1078 -utek*)
a2ee3e6d
JW
1079 os=-bsd
1080 ;;
1081 -dynix*)
1082 os=-bsd
1083 ;;
378fd382
DZ
1084 -acis*)
1085 os=-aos
a2ee3e6d 1086 ;;
378fd382 1087 -386bsd) # CYGNUS LOCAL
23ab00aa
KR
1088 os=-bsd
1089 ;;
68cd7865 1090 -ctix* | -uts*)
a2ee3e6d
JW
1091 os=-sysv
1092 ;;
d586f394
ILT
1093 -ns2 )
1094 os=-nextstep2
1095 ;;
84849c9c
ILT
1096 # Preserve the version number of sinix5.
1097 -sinix5.*)
1098 os=`echo $os | sed -e 's|sinix|sysv|'`
1099 ;;
1100 -sinix*)
1101 os=-sysv4
1102 ;;
378fd382
DZ
1103 -triton*)
1104 os=-sysv3
1105 ;;
1106 -oss*)
1107 os=-sysv3
1108 ;;
c1e296fc
SG
1109 -svr4)
1110 os=-sysv4
1111 ;;
1112 -svr3)
1113 os=-sysv3
1114 ;;
939d9e8a
JL
1115 -sysvr4)
1116 os=-sysv4
1117 ;;
1118 # This must come after -sysvr4.
1119 -sysv*)
1120 ;;
378fd382 1121 -ose*) # CYGNUS LOCAL
afba2b22
ILT
1122 os=-ose
1123 ;;
378fd382 1124 -es1800*) # CYGNUS LOCAL
afba2b22
ILT
1125 os=-ose
1126 ;;
27a2a371
JW
1127 -xenix)
1128 os=-xenix
1129 ;;
378fd382
DZ
1130 -none)
1131 ;;
a2ee3e6d
JW
1132 *)
1133 # Get rid of the `-' at the beginning of $os.
d1c8b869 1134 os=`echo $os | sed 's/[^-]*-//'`
a2ee3e6d
JW
1135 echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2
1136 exit 1
1137 ;;
69e87de2 1138esac
a2ee3e6d 1139else
69e87de2 1140
a2ee3e6d
JW
1141# Here we handle the default operating systems that come with various machines.
1142# The value should be what the vendor currently ships out the door with their
1143# machine or put another way, the most popular os provided with the machine.
27a2a371
JW
1144
1145# Note that if you're going to try to match "-MANUFACTURER" here (say,
1146# "-sun"), then you have to tell the case statement up towards the top
1147# that MANUFACTURER isn't an operating system. Otherwise, code above
1148# will signal an error saying that MANUFACTURER isn't an operating
1149# system, and we'll never get to this point.
1150
a2ee3e6d 1151case $basic_machine in
939d9e8a
JL
1152 *-acorn)
1153 os=-riscix1.2
1154 ;;
d586f394
ILT
1155 arm*-semi)
1156 os=-aout
1157 ;;
84849c9c
ILT
1158 pdp11-*)
1159 os=-none
1160 ;;
a2ee3e6d 1161 *-dec | vax-*)
378fd382 1162 os=-ultrix4.2
a2ee3e6d 1163 ;;
84849c9c
ILT
1164 m68*-apollo)
1165 os=-domain
1166 ;;
a2ee3e6d 1167 i386-sun)
378fd382 1168 os=-sunos4.0.2
a2ee3e6d
JW
1169 ;;
1170 m68000-sun)
1171 os=-sunos3
1172 # This also exists in the configure program, but was not the
1173 # default.
1174 # os=-sunos4
1175 ;;
d94aca1a 1176 m68*-cisco) # CYGNUS LOCAL
aa6db781
DE
1177 os=-aout
1178 ;;
d94aca1a 1179 mips*-cisco) # CYGNUS LOCAL
aa6db781
DE
1180 os=-elf
1181 ;;
c2304cba
MH
1182 mips*-*) # CYGNUS LOCAL
1183 os=-elf
1184 ;;
378fd382
DZ
1185 *-tti) # must be before sparc entry or we get the wrong os.
1186 os=-sysv3
a2ee3e6d 1187 ;;
378fd382
DZ
1188 sparc-* | *-sun)
1189 os=-sunos4.1.1
a2ee3e6d 1190 ;;
4365b7b5
FF
1191 *-be) # CYGNUS LOCAL
1192 os=-beos
1193 ;;
a2ee3e6d
JW
1194 *-ibm)
1195 os=-aix
1196 ;;
3b61a094 1197 *-wec) # CYGNUS LOCAL
d1c8b869 1198 os=-proelf
3b61a094
RS
1199 ;;
1200 *-winbond) # CYGNUS LOCAL
d1c8b869 1201 os=-proelf
3b61a094
RS
1202 ;;
1203 *-oki) # CYGNUS LOCAL
d1c8b869
ILT
1204 os=-proelf
1205 ;;
1206 *-hp)
1207 os=-hpux
3b61a094 1208 ;;
9117f609
JK
1209 *-hitachi)
1210 os=-hiux
1211 ;;
27a2a371 1212 i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent)
a2ee3e6d
JW
1213 os=-sysv
1214 ;;
378fd382
DZ
1215 *-cbm)
1216 os=-amigados
1217 ;;
a2ee3e6d
JW
1218 *-dg)
1219 os=-dgux
1220 ;;
378fd382
DZ
1221 *-dolphin)
1222 os=-sysv3
1223 ;;
d1c8b869
ILT
1224 m68k-ccur)
1225 os=-rtu
1226 ;;
a2ee3e6d
JW
1227 m88k-omron*)
1228 os=-luna
1229 ;;
d586f394
ILT
1230 *-next )
1231 os=-nextstep
1232 ;;
a70c9959 1233 *-sequent)
d1c8b869 1234 os=-ptx
a70c9959 1235 ;;
a2ee3e6d
JW
1236 *-crds)
1237 os=-unos
1238 ;;
1239 *-ns)
1240 os=-genix
1241 ;;
939d9e8a
JL
1242 i370-*)
1243 os=-mvs
1244 ;;
1245 *-next)
d1c8b869 1246 os=-nextstep3
a2ee3e6d 1247 ;;
27a2a371
JW
1248 *-gould)
1249 os=-sysv
1250 ;;
1251 *-highlevel)
1252 os=-bsd
1253 ;;
1254 *-encore)
1255 os=-bsd
1256 ;;
1257 *-sgi)
1258 os=-irix
1259 ;;
84849c9c
ILT
1260 *-siemens)
1261 os=-sysv4
1262 ;;
27a2a371
JW
1263 *-masscomp)
1264 os=-rtu
1265 ;;
9ddf4089
ILT
1266 f301-fujitsu)
1267 os=-uxpv
1268 ;;
9d784b19
RS
1269 *-rom68k) # CYGNUS LOCAL
1270 os=-coff
1271 ;;
1272 *-*bug) # CYGNUS LOCAL
1273 os=-coff
1274 ;;
939d9e8a 1275 *-apple) # CYGNUS LOCAL
48ac1853 1276 os=-macos
939d9e8a 1277 ;;
a2ee3e6d
JW
1278 *)
1279 os=-none
1280 ;;
69e87de2 1281esac
a2ee3e6d 1282fi
69e87de2 1283
a2ee3e6d
JW
1284# Here we handle the case where we know the os, and the CPU type, but not the
1285# manufacturer. We pick the logical manufacturer.
1286vendor=unknown
1287case $basic_machine in
1288 *-unknown)
1289 case $os in
939d9e8a
JL
1290 -riscix*)
1291 vendor=acorn
1292 ;;
a2ee3e6d
JW
1293 -sunos*)
1294 vendor=sun
1295 ;;
1296 -aix*)
1297 vendor=ibm
1298 ;;
4365b7b5
FF
1299 -beos*) # CYGNUS LOCAL
1300 vendor=be
1301 ;;
a2ee3e6d
JW
1302 -hpux*)
1303 vendor=hp
1304 ;;
9117f609
JK
1305 -hiux*)
1306 vendor=hitachi
1307 ;;
a2ee3e6d
JW
1308 -unos*)
1309 vendor=crds
1310 ;;
1311 -dgux*)
1312 vendor=dg
1313 ;;
1314 -luna*)
1315 vendor=omron
1316 ;;
1317 -genix*)
1318 vendor=ns
1319 ;;
939d9e8a
JL
1320 -mvs*)
1321 vendor=ibm
1322 ;;
d1c8b869
ILT
1323 -ptx*)
1324 vendor=sequent
1325 ;;
d7a57996 1326 -vxsim* | -vxworks*)
032d50a9 1327 vendor=wrs
afba2b22 1328 ;;
349f03db
ILT
1329 -aux*)
1330 vendor=apple
1331 ;;
984b27cb
SC
1332 -hms*) # CYGNUS LOCAL
1333 vendor=hitachi
1334 ;;
35262713 1335 -mpw* | -macos*) # CYGNUS LOCAL
939d9e8a
JL
1336 vendor=apple
1337 ;;
a2ee3e6d
JW
1338 esac
1339 basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
1340 ;;
4f183929
RP
1341esac
1342
a2ee3e6d 1343echo $basic_machine$os
This page took 0.303792 seconds and 4 git commands to generate.