Deleted Added
full compact
config.sub (17683) config.sub (26175)
1#! /bin/sh
2# Configuration validation subroutine script, version 1.1.
1#! /bin/sh
2# Configuration validation subroutine script, version 1.1.
3# Copyright (C) 1991, 1992, 1993, 1994, 1995 Free Software Foundation, Inc.
3# Copyright (C) 1991, 92, 93, 94, 95, 1996 Free Software Foundation, Inc.
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
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
6# can handle that machine. It does not imply ALL GNU software can.
6# can handle that machine. It does not imply ALL GNU software can.
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

--- 21 unchanged lines hidden (view full) ---

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
39# configuration.
40
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
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

--- 21 unchanged lines hidden (view full) ---

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
39# configuration.
40
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
44# or in some cases, the newer four-part form:
45# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
44# It is wrong to echo any other type of specification.
45
46if [ x$1 = x ]
47then
48 echo Configuration name missing. 1>&2
49 echo "Usage: $0 CPU-MFR-OPSYS" 1>&2
50 echo "or $0 ALIAS" 1>&2
51 echo where ALIAS is a recognized configuration type. 1>&2

--- 5 unchanged lines hidden (view full) ---

57 *local*)
58 echo $1
59 exit 0
60 ;;
61 *)
62 ;;
63esac
64
46# It is wrong to echo any other type of specification.
47
48if [ x$1 = x ]
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

--- 5 unchanged lines hidden (view full) ---

59 *local*)
60 echo $1
61 exit 0
62 ;;
63 *)
64 ;;
65esac
66
65# Separate what the user gave into CPU-COMPANY and OS (if any).
66basic_machine=`echo $1 | sed 's/-[^-]*$//'`
67if [ $basic_machine != $1 ]
68then os=`echo $1 | sed 's/.*-/-/'`
69else os=; fi
67# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
68# Here we must recognize all the valid KERNEL-OS combinations.
69maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
70case $maybe_os in
71 linux-gnu*)
72 os=-$maybe_os
73 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
74 ;;
75 *)
76 basic_machine=`echo $1 | sed 's/-[^-]*$//'`
77 if [ $basic_machine != $1 ]
78 then os=`echo $1 | sed 's/.*-/-/'`
79 else os=; fi
80 ;;
81esac
70
71### Let's recognize common machines as not being operating systems so
72### that things like config.sub decstation-3100 work. We also
73### recognize some manufacturers as not being operating systems, so we
74### can provide default operating systems below.
75case $os in
76 -sun*os*)
77 # Prevent following clause from handling this invalid input.
78 ;;
79 -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \
80 -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
81 -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
82 -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
83 -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
82
83### Let's recognize common machines as not being operating systems so
84### that things like config.sub decstation-3100 work. We also
85### recognize some manufacturers as not being operating systems, so we
86### can provide default operating systems below.
87case $os in
88 -sun*os*)
89 # Prevent following clause from handling this invalid input.
90 ;;
91 -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \
92 -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
93 -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
94 -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
95 -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
84 -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp )
96 -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
97 -apple)
85 os=
86 basic_machine=$1
87 ;;
88 -hiux*)
89 os=-hiuxwe2
90 ;;
98 os=
99 basic_machine=$1
100 ;;
101 -hiux*)
102 os=-hiuxwe2
103 ;;
104 -sco5)
105 os=sco3.2v5
106 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
107 ;;
91 -sco4)
92 os=-sco3.2v4
108 -sco4)
109 os=-sco3.2v4
93 basic_machine=`echo $1 | sed -e 's/86-.*/86-unknown/'`
110 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
94 ;;
95 -sco3.2.[4-9]*)
96 os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
111 ;;
112 -sco3.2.[4-9]*)
113 os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
97 basic_machine=`echo $1 | sed -e 's/86-.*/86-unknown/'`
114 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
98 ;;
99 -sco3.2v[4-9]*)
100 # Don't forget version if it is 3.2v4 or newer.
115 ;;
116 -sco3.2v[4-9]*)
117 # Don't forget version if it is 3.2v4 or newer.
101 basic_machine=`echo $1 | sed -e 's/86-.*/86-unknown/'`
118 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
102 ;;
103 -sco*)
104 os=-sco3.2v2
119 ;;
120 -sco*)
121 os=-sco3.2v2
105 basic_machine=`echo $1 | sed -e 's/86-.*/86-unknown/'`
122 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
106 ;;
107 -isc)
108 os=-isc2.2
123 ;;
124 -isc)
125 os=-isc2.2
109 basic_machine=`echo $1 | sed -e 's/86-.*/86-unknown/'`
126 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
110 ;;
111 -clix*)
112 basic_machine=clipper-intergraph
113 ;;
114 -isc*)
127 ;;
128 -clix*)
129 basic_machine=clipper-intergraph
130 ;;
131 -isc*)
115 basic_machine=`echo $1 | sed -e 's/86-.*/86-unknown/'`
132 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
116 ;;
117 -lynx*)
118 os=-lynxos
119 ;;
120 -ptx*)
121 basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'`
122 ;;
123 -windowsnt*)
124 os=`echo $os | sed -e 's/windowsnt/winnt/'`
125 ;;
133 ;;
134 -lynx*)
135 os=-lynxos
136 ;;
137 -ptx*)
138 basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'`
139 ;;
140 -windowsnt*)
141 os=`echo $os | sed -e 's/windowsnt/winnt/'`
142 ;;
143 -psos*)
144 os=-psos
145 ;;
126esac
127
128# Decode aliases for certain CPU-COMPANY combinations.
129case $basic_machine in
130 # Recognize the basic CPU types without company name.
131 # Some are omitted here because they have special meanings below.
146esac
147
148# Decode aliases for certain CPU-COMPANY combinations.
149case $basic_machine in
150 # Recognize the basic CPU types without company name.
151 # Some are omitted here because they have special meanings below.
132 tahoe | i[345]86 | i860 | m68k | m68000 | m88k | ns32k | arm \
152 tahoe | i860 | m68k | m68000 | m88k | ns32k | arm \
133 | arme[lb] | pyramid \
153 | arme[lb] | pyramid \
134 | tron | a29k | 580 | i960 | h8300 | hppa1.0 | hppa1.1 \
135 | alpha | we32k | ns16k | clipper | sparclite | i370 | sh \
136 | powerpc | powerpcle | sparc64 | 1750a | dsp16xx | mips64 | mipsel \
154 | tron | a29k | 580 | i960 | h8300 | hppa | hppa1.0 | hppa1.1 \
155 | alpha | we32k | ns16k | clipper | i370 | sh \
156 | powerpc | powerpcle | 1750a | dsp16xx | mips64 | mipsel \
137 | pdp11 | mips64el | mips64orion | mips64orionel \
157 | pdp11 | mips64el | mips64orion | mips64orionel \
138 | sparc)
158 | sparc | sparclet | sparclite | sparc64)
139 basic_machine=$basic_machine-unknown
140 ;;
159 basic_machine=$basic_machine-unknown
160 ;;
161 # We use `pc' rather than `unknown'
162 # because (1) that's what they normally are, and
163 # (2) the word "unknown" tends to confuse beginning users.
164 i[3456]86)
165 basic_machine=$basic_machine-pc
166 ;;
141 # Object if more than one company name word.
142 *-*-*)
143 echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
144 exit 1
145 ;;
146 # Recognize the basic CPU types with company name.
167 # Object if more than one company name word.
168 *-*-*)
169 echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
170 exit 1
171 ;;
172 # Recognize the basic CPU types with company name.
147 vax-* | tahoe-* | i[345]86-* | i860-* | m68k-* | m68000-* | m88k-* \
173 vax-* | tahoe-* | i[3456]86-* | i860-* | m68k-* | m68000-* | m88k-* \
148 | sparc-* | ns32k-* | fx80-* | arm-* | c[123]* \
149 | mips-* | pyramid-* | tron-* | a29k-* | romp-* | rs6000-* | power-* \
150 | none-* | 580-* | cray2-* | h8300-* | i960-* | xmp-* | ymp-* \
174 | sparc-* | ns32k-* | fx80-* | arm-* | c[123]* \
175 | mips-* | pyramid-* | tron-* | a29k-* | romp-* | rs6000-* | power-* \
176 | none-* | 580-* | cray2-* | h8300-* | i960-* | xmp-* | ymp-* \
151 | hppa1.0-* | hppa1.1-* | alpha-* | we32k-* | cydra-* | ns16k-* \
177 | hppa-* | hppa1.0-* | hppa1.1-* | alpha-* | we32k-* | cydra-* | ns16k-* \
152 | pn-* | np1-* | xps100-* | clipper-* | orion-* | sparclite-* \
153 | pdp11-* | sh-* | powerpc-* | powerpcle-* | sparc64-* | mips64-* | mipsel-* \
178 | pn-* | np1-* | xps100-* | clipper-* | orion-* | sparclite-* \
179 | pdp11-* | sh-* | powerpc-* | powerpcle-* | sparc64-* | mips64-* | mipsel-* \
154 | mips64el-* | mips64orion-* | mips64orionel-*)
180 | mips64el-* | mips64orion-* | mips64orionel-* | f301-*)
155 ;;
156 # Recognize the various machine names and aliases which stand
157 # for a CPU type and a company and sometimes even an OS.
158 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
159 basic_machine=m68000-att
160 ;;
161 3b*)
162 basic_machine=we32k-att

--- 22 unchanged lines hidden (view full) ---

185 amigaunix | amix)
186 basic_machine=m68k-cbm
187 os=-sysv4
188 ;;
189 apollo68)
190 basic_machine=m68k-apollo
191 os=-sysv
192 ;;
181 ;;
182 # Recognize the various machine names and aliases which stand
183 # for a CPU type and a company and sometimes even an OS.
184 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
185 basic_machine=m68000-att
186 ;;
187 3b*)
188 basic_machine=we32k-att

--- 22 unchanged lines hidden (view full) ---

211 amigaunix | amix)
212 basic_machine=m68k-cbm
213 os=-sysv4
214 ;;
215 apollo68)
216 basic_machine=m68k-apollo
217 os=-sysv
218 ;;
219 aux)
220 basic_machine=m68k-apple
221 os=-aux
222 ;;
193 balance)
194 basic_machine=ns32k-sequent
195 os=-dynix
196 ;;
197 convex-c1)
198 basic_machine=c1-convex
199 os=-bsd
200 ;;

--- 16 unchanged lines hidden (view full) ---

217 cray | ymp)
218 basic_machine=ymp-cray
219 os=-unicos
220 ;;
221 cray2)
222 basic_machine=cray2-cray
223 os=-unicos
224 ;;
223 balance)
224 basic_machine=ns32k-sequent
225 os=-dynix
226 ;;
227 convex-c1)
228 basic_machine=c1-convex
229 os=-bsd
230 ;;

--- 16 unchanged lines hidden (view full) ---

247 cray | ymp)
248 basic_machine=ymp-cray
249 os=-unicos
250 ;;
251 cray2)
252 basic_machine=cray2-cray
253 os=-unicos
254 ;;
255 [ctj]90-cray)
256 basic_machine=c90-cray
257 os=-unicos
258 ;;
225 crds | unos)
226 basic_machine=m68k-crds
227 ;;
228 da30 | da30-*)
229 basic_machine=m68k-da30
230 ;;
231 decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
232 basic_machine=mips-dec

--- 65 unchanged lines hidden (view full) ---

298 basic_machine=m68k-hp
299 ;;
300 hp9k7[0-9][0-9] | hp7[0-9][0-9] | hp9k8[0-9]7 | hp8[0-9]7)
301 basic_machine=hppa1.1-hp
302 ;;
303 hp9k8[0-9][0-9] | hp8[0-9][0-9])
304 basic_machine=hppa1.0-hp
305 ;;
259 crds | unos)
260 basic_machine=m68k-crds
261 ;;
262 da30 | da30-*)
263 basic_machine=m68k-da30
264 ;;
265 decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
266 basic_machine=mips-dec

--- 65 unchanged lines hidden (view full) ---

332 basic_machine=m68k-hp
333 ;;
334 hp9k7[0-9][0-9] | hp7[0-9][0-9] | hp9k8[0-9]7 | hp8[0-9]7)
335 basic_machine=hppa1.1-hp
336 ;;
337 hp9k8[0-9][0-9] | hp8[0-9][0-9])
338 basic_machine=hppa1.0-hp
339 ;;
340 hppa-next)
341 os=-nextstep3
342 ;;
306 i370-ibm* | ibm*)
307 basic_machine=i370-ibm
308 os=-mvs
309 ;;
310# I'm not sure what "Sysv32" means. Should this be sysv3.2?
343 i370-ibm* | ibm*)
344 basic_machine=i370-ibm
345 os=-mvs
346 ;;
347# I'm not sure what "Sysv32" means. Should this be sysv3.2?
311 i[345]86v32)
312 basic_machine=`echo $1 | sed -e 's/86.*/86-unknown/'`
348 i[3456]86v32)
349 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
313 os=-sysv32
314 ;;
350 os=-sysv32
351 ;;
315 i[345]86v4*)
316 basic_machine=`echo $1 | sed -e 's/86.*/86-unknown/'`
352 i[3456]86v4*)
353 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
317 os=-sysv4
318 ;;
354 os=-sysv4
355 ;;
319 i[345]86v)
320 basic_machine=`echo $1 | sed -e 's/86.*/86-unknown/'`
356 i[3456]86v)
357 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
321 os=-sysv
322 ;;
358 os=-sysv
359 ;;
323 i[345]86sol2)
324 basic_machine=`echo $1 | sed -e 's/86.*/86-unknown/'`
360 i[3456]86sol2)
361 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
325 os=-solaris2
326 ;;
327 iris | iris4d)
328 basic_machine=mips-sgi
329 case $os in
330 -irix*)
331 ;;
332 *)

--- 81 unchanged lines hidden (view full) ---

414 basic_machine=sparc-tti
415 ;;
416 pbb)
417 basic_machine=m68k-tti
418 ;;
419 pc532 | pc532-*)
420 basic_machine=ns32k-pc532
421 ;;
362 os=-solaris2
363 ;;
364 iris | iris4d)
365 basic_machine=mips-sgi
366 case $os in
367 -irix*)
368 ;;
369 *)

--- 81 unchanged lines hidden (view full) ---

451 basic_machine=sparc-tti
452 ;;
453 pbb)
454 basic_machine=m68k-tti
455 ;;
456 pc532 | pc532-*)
457 basic_machine=ns32k-pc532
458 ;;
422 pentium | p5 | p6)
423 # We don't have specific support for the Intel Pentium (p6) followon yet, so just call it a Pentium
459 pentium | p5)
424 basic_machine=i586-intel
425 ;;
460 basic_machine=i586-intel
461 ;;
426 pentium-* | p5-* | p6-*)
427 # We don't have specific support for the Intel Pentium (p6) followon yet, so just call it a Pentium
462 pentiumpro | p6)
463 basic_machine=i686-intel
464 ;;
465 pentium-* | p5-*)
428 basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
429 ;;
466 basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
467 ;;
468 pentiumpro-* | p6-*)
469 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
470 ;;
430 k5)
431 # We don't have specific support for AMD's K5 yet, so just call it a Pentium
432 basic_machine=i586-amd
433 ;;
434 nexen)
435 # We don't have specific support for Nexgen yet, so just call it a Pentium
436 basic_machine=i586-nexgen
437 ;;

--- 93 unchanged lines hidden (view full) ---

531 vaxv)
532 basic_machine=vax-dec
533 os=-sysv
534 ;;
535 vms)
536 basic_machine=vax-dec
537 os=-vms
538 ;;
471 k5)
472 # We don't have specific support for AMD's K5 yet, so just call it a Pentium
473 basic_machine=i586-amd
474 ;;
475 nexen)
476 # We don't have specific support for Nexgen yet, so just call it a Pentium
477 basic_machine=i586-nexgen
478 ;;

--- 93 unchanged lines hidden (view full) ---

572 vaxv)
573 basic_machine=vax-dec
574 os=-sysv
575 ;;
576 vms)
577 basic_machine=vax-dec
578 os=-vms
579 ;;
580 vpp*|vx|vx-*)
581 basic_machine=f301-fujitsu
582 ;;
539 vxworks960)
540 basic_machine=i960-wrs
541 os=-vxworks
542 ;;
543 vxworks68)
544 basic_machine=m68k-wrs
545 os=-vxworks
546 ;;

--- 63 unchanged lines hidden (view full) ---

610 ;;
611esac
612
613# Decode manufacturer-specific aliases for certain operating systems.
614
615if [ x"$os" != x"" ]
616then
617case $os in
583 vxworks960)
584 basic_machine=i960-wrs
585 os=-vxworks
586 ;;
587 vxworks68)
588 basic_machine=m68k-wrs
589 os=-vxworks
590 ;;

--- 63 unchanged lines hidden (view full) ---

654 ;;
655esac
656
657# Decode manufacturer-specific aliases for certain operating systems.
658
659if [ x"$os" != x"" ]
660then
661case $os in
662 # First match some system type aliases
663 # that might get confused with valid system types.
618 # -solaris* is a basic system type, with this one exception.
619 -solaris1 | -solaris1.*)
620 os=`echo $os | sed -e 's|solaris1|sunos4|'`
621 ;;
622 -solaris)
623 os=-solaris2
624 ;;
625 -unixware* | svr4*)
626 os=-sysv4
627 ;;
628 -gnu/linux*)
664 # -solaris* is a basic system type, with this one exception.
665 -solaris1 | -solaris1.*)
666 os=`echo $os | sed -e 's|solaris1|sunos4|'`
667 ;;
668 -solaris)
669 os=-solaris2
670 ;;
671 -unixware* | svr4*)
672 os=-sysv4
673 ;;
674 -gnu/linux*)
629 os=`echo $os | sed -e 's|gnu/linux|linux|'`
675 os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
630 ;;
631 # First accept the basic system types.
632 # The portable systems comes first.
633 # Each alternative MUST END IN A *, to match a version number.
634 # -sysv* is not here because it comes later, after sysvr4.
635 -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
676 ;;
677 # First accept the basic system types.
678 # The portable systems comes first.
679 # Each alternative MUST END IN A *, to match a version number.
680 # -sysv* is not here because it comes later, after sysvr4.
681 -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
636 | -vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[345]* \
682 | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
637 | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
683 | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
638 | -amigados* | -msdos* | -newsos* | -unicos* | -aos* \
639 | -nindy* | -vxworks* | -ebmon* | -hms* | -mvs* | -clix* \
640 | -riscos* | -linux* | -uniplus* | -iris* | -rtu* | -xenix* \
641 | -hiux* | -386bsd* | -netbsd* | -freebsd* | -riscix* \
684 | -amigados* | -msdos* | -newsos* | -unicos* | -aof* | -aos* \
685 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
686 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
687 | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \
642 | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* \
643 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
688 | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* \
689 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
644 | -udi* | -eabi* | -lites* )
690 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
691 | -cygwin32* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
692 | -linux-gnu* | -uxpv*)
645 # Remember, each alternative MUST END IN *, to match a version number.
646 ;;
693 # Remember, each alternative MUST END IN *, to match a version number.
694 ;;
695 -linux*)
696 os=`echo $os | sed -e 's|linux|linux-gnu|'`
697 ;;
647 -sunos5*)
648 os=`echo $os | sed -e 's|sunos5|solaris2|'`
649 ;;
650 -sunos6*)
651 os=`echo $os | sed -e 's|sunos6|solaris3|'`
652 ;;
653 -osfrose*)
654 os=-osfrose

--- 8 unchanged lines hidden (view full) ---

663 os=-bsd
664 ;;
665 -acis*)
666 os=-aos
667 ;;
668 -ctix* | -uts*)
669 os=-sysv
670 ;;
698 -sunos5*)
699 os=`echo $os | sed -e 's|sunos5|solaris2|'`
700 ;;
701 -sunos6*)
702 os=`echo $os | sed -e 's|sunos6|solaris3|'`
703 ;;
704 -osfrose*)
705 os=-osfrose

--- 8 unchanged lines hidden (view full) ---

714 os=-bsd
715 ;;
716 -acis*)
717 os=-aos
718 ;;
719 -ctix* | -uts*)
720 os=-sysv
721 ;;
722 -ns2 )
723 os=-nextstep2
724 ;;
671 # Preserve the version number of sinix5.
672 -sinix5.*)
673 os=`echo $os | sed -e 's|sinix|sysv|'`
674 ;;
675 -sinix*)
676 os=-sysv4
677 ;;
678 -triton*)

--- 91 unchanged lines hidden (view full) ---

770 os=-sysv3
771 ;;
772 m68k-ccur)
773 os=-rtu
774 ;;
775 m88k-omron*)
776 os=-luna
777 ;;
725 # Preserve the version number of sinix5.
726 -sinix5.*)
727 os=`echo $os | sed -e 's|sinix|sysv|'`
728 ;;
729 -sinix*)
730 os=-sysv4
731 ;;
732 -triton*)

--- 91 unchanged lines hidden (view full) ---

824 os=-sysv3
825 ;;
826 m68k-ccur)
827 os=-rtu
828 ;;
829 m88k-omron*)
830 os=-luna
831 ;;
832 *-next )
833 os=-nextstep
834 ;;
778 *-sequent)
779 os=-ptx
780 ;;
781 *-crds)
782 os=-unos
783 ;;
784 *-ns)
785 os=-genix

--- 17 unchanged lines hidden (view full) ---

803 os=-irix
804 ;;
805 *-siemens)
806 os=-sysv4
807 ;;
808 *-masscomp)
809 os=-rtu
810 ;;
835 *-sequent)
836 os=-ptx
837 ;;
838 *-crds)
839 os=-unos
840 ;;
841 *-ns)
842 os=-genix

--- 17 unchanged lines hidden (view full) ---

860 os=-irix
861 ;;
862 *-siemens)
863 os=-sysv4
864 ;;
865 *-masscomp)
866 os=-rtu
867 ;;
868 f301-fujitsu)
869 os=-uxpv
870 ;;
811 *)
812 os=-none
813 ;;
814esac
815fi
816
817# Here we handle the case where we know the os, and the CPU type, but not the
818# manufacturer. We pick the logical manufacturer.
819vendor=unknown
820case $basic_machine in
821 *-unknown)
822 case $os in
823 -riscix*)
824 vendor=acorn
825 ;;
826 -sunos*)
827 vendor=sun
828 ;;
871 *)
872 os=-none
873 ;;
874esac
875fi
876
877# Here we handle the case where we know the os, and the CPU type, but not the
878# manufacturer. We pick the logical manufacturer.
879vendor=unknown
880case $basic_machine in
881 *-unknown)
882 case $os in
883 -riscix*)
884 vendor=acorn
885 ;;
886 -sunos*)
887 vendor=sun
888 ;;
829 -lynxos*)
830 vendor=lynx
831 ;;
832 -aix*)
833 vendor=ibm
834 ;;
835 -hpux*)
836 vendor=hp
837 ;;
838 -hiux*)
839 vendor=hitachi

--- 11 unchanged lines hidden (view full) ---

851 vendor=ns
852 ;;
853 -mvs*)
854 vendor=ibm
855 ;;
856 -ptx*)
857 vendor=sequent
858 ;;
889 -aix*)
890 vendor=ibm
891 ;;
892 -hpux*)
893 vendor=hp
894 ;;
895 -hiux*)
896 vendor=hitachi

--- 11 unchanged lines hidden (view full) ---

908 vendor=ns
909 ;;
910 -mvs*)
911 vendor=ibm
912 ;;
913 -ptx*)
914 vendor=sequent
915 ;;
859 -vxworks*)
916 -vxsim* | -vxworks*)
860 vendor=wrs
861 ;;
917 vendor=wrs
918 ;;
919 -aux*)
920 vendor=apple
921 ;;
862 esac
863 basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
864 ;;
865esac
866
867echo $basic_machine$os
922 esac
923 basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
924 ;;
925esac
926
927echo $basic_machine$os