Mercurial > emacs
annotate config.sub @ 4898:a9faadbe66cf
(paragon): New alias.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Tue, 26 Oct 1993 23:28:00 +0000 |
parents | aa1a42c0b779 |
children | c8bade6c2b02 |
rev | line source |
---|---|
576 | 1 #!/bin/sh |
653
f3531d3d57c9
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
652
diff
changeset
|
2 # Configuration validation subroutine script, version 1.1. |
3934
0bd0d7678a09
Recognize `gnu' as a valid operating system. Sheesh.
Roland McGrath <roland@gnu.org>
parents:
3914
diff
changeset
|
3 # Copyright (C) 1991, 1992, 1993 Free Software Foundation, Inc. |
645
57295fc40ac3
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
631
diff
changeset
|
4 # This file is (in principle) common to ALL GNU software. |
57295fc40ac3
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
631
diff
changeset
|
5 # The presence of a machine in this file suggests that SOME GNU software |
57295fc40ac3
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
631
diff
changeset
|
6 # can handle that machine. It does not imply ALL GNU software can. |
576 | 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 | |
20 #Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | |
21 | |
22 | |
23 # Configuration subroutine to validate and canonicalize a configuration type. | |
24 # Supply the specified configuration type as an argument. | |
25 # If it is invalid, we print an error message on stderr and exit with code 1. | |
26 # Otherwise, we print the canonical config type on stdout and succeed. | |
27 | |
28 # This file is supposed to be the same for all GNU packages | |
29 # and recognize all the CPU types, system types and aliases | |
30 # that are meaningful with *any* GNU software. | |
31 # Each package is responsible for reporting which valid configurations | |
32 # it does not support. The user should be able to distinguish | |
33 # a failure to support a valid configuration from a meaningless | |
34 # configuration. | |
35 | |
36 # The goal of this file is to map all the various variations of a given | |
37 # machine specification into a single specification in the form: | |
38 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM | |
1631
9c52fcf232bf
Fri Nov 20 05:24:16 1992 Jim Blandy (jimb@totoro.cs.oberlin.edu)
Jim Blandy <jimb@redhat.com>
parents:
1627
diff
changeset
|
39 # It is wrong to echo any other type of specification. |
576 | 40 |
41 # First pass through any local machine types. | |
42 case $1 in | |
43 *local*) | |
44 echo $1 | |
45 exit 0 | |
46 ;; | |
47 *) | |
48 ;; | |
49 esac | |
50 | |
51 # Separate what the user gave into CPU-COMPANY and OS (if any). | |
52 basic_machine=`echo $1 | sed 's/-[^-]*$//'` | |
53 if [ $basic_machine != $1 ] | |
54 then os=`echo $1 | sed 's/.*-/-/'` | |
55 else os=; fi | |
56 | |
1631
9c52fcf232bf
Fri Nov 20 05:24:16 1992 Jim Blandy (jimb@totoro.cs.oberlin.edu)
Jim Blandy <jimb@redhat.com>
parents:
1627
diff
changeset
|
57 ### Let's recognize common machines as not being operating systems so |
9c52fcf232bf
Fri Nov 20 05:24:16 1992 Jim Blandy (jimb@totoro.cs.oberlin.edu)
Jim Blandy <jimb@redhat.com>
parents:
1627
diff
changeset
|
58 ### that things like config.sub decstation-3100 work. We also |
9c52fcf232bf
Fri Nov 20 05:24:16 1992 Jim Blandy (jimb@totoro.cs.oberlin.edu)
Jim Blandy <jimb@redhat.com>
parents:
1627
diff
changeset
|
59 ### recognize some manufacturers as not being operating systems, so we |
9c52fcf232bf
Fri Nov 20 05:24:16 1992 Jim Blandy (jimb@totoro.cs.oberlin.edu)
Jim Blandy <jimb@redhat.com>
parents:
1627
diff
changeset
|
60 ### can provide default operating systems below. |
576 | 61 case $os in |
1961
eeb000068cc8
Error if company name is more than one word.
Richard M. Stallman <rms@gnu.org>
parents:
1852
diff
changeset
|
62 -sun*os*) |
eeb000068cc8
Error if company name is more than one word.
Richard M. Stallman <rms@gnu.org>
parents:
1852
diff
changeset
|
63 # Prevent following clause from handling this invalid input. |
eeb000068cc8
Error if company name is more than one word.
Richard M. Stallman <rms@gnu.org>
parents:
1852
diff
changeset
|
64 ;; |
576 | 65 -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \ |
66 -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ | |
67 -unicom* | -ibm* | -next* | -hp | -isi* | -apollo | -altos* | \ | |
2616 | 68 -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi | \ |
576 | 69 -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ |
1631
9c52fcf232bf
Fri Nov 20 05:24:16 1992 Jim Blandy (jimb@totoro.cs.oberlin.edu)
Jim Blandy <jimb@redhat.com>
parents:
1627
diff
changeset
|
70 -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp ) |
576 | 71 os= |
72 basic_machine=$1 | |
73 ;; | |
3904
6c98b9e2a213
Canonicalize -sco4 and -sco3.2.4 to -sco3.2v4.
Richard M. Stallman <rms@gnu.org>
parents:
3896
diff
changeset
|
74 -sco4) |
6c98b9e2a213
Canonicalize -sco4 and -sco3.2.4 to -sco3.2v4.
Richard M. Stallman <rms@gnu.org>
parents:
3896
diff
changeset
|
75 os=-sco3.2v4 |
6c98b9e2a213
Canonicalize -sco4 and -sco3.2.4 to -sco3.2v4.
Richard M. Stallman <rms@gnu.org>
parents:
3896
diff
changeset
|
76 basic_machine=`echo $1 | sed -e 's/86-.*/86-unknown/'` |
6c98b9e2a213
Canonicalize -sco4 and -sco3.2.4 to -sco3.2v4.
Richard M. Stallman <rms@gnu.org>
parents:
3896
diff
changeset
|
77 ;; |
6c98b9e2a213
Canonicalize -sco4 and -sco3.2.4 to -sco3.2v4.
Richard M. Stallman <rms@gnu.org>
parents:
3896
diff
changeset
|
78 -sco3.2.[4-9]*) |
6c98b9e2a213
Canonicalize -sco4 and -sco3.2.4 to -sco3.2v4.
Richard M. Stallman <rms@gnu.org>
parents:
3896
diff
changeset
|
79 os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` |
6c98b9e2a213
Canonicalize -sco4 and -sco3.2.4 to -sco3.2v4.
Richard M. Stallman <rms@gnu.org>
parents:
3896
diff
changeset
|
80 basic_machine=`echo $1 | sed -e 's/86-.*/86-unknown/'` |
6c98b9e2a213
Canonicalize -sco4 and -sco3.2.4 to -sco3.2v4.
Richard M. Stallman <rms@gnu.org>
parents:
3896
diff
changeset
|
81 ;; |
1545
9ff238dd8a35
Don't discard SCO version number if it's 3.2v4.
Richard M. Stallman <rms@gnu.org>
parents:
1415
diff
changeset
|
82 -sco3.2v[4-9]*) |
9ff238dd8a35
Don't discard SCO version number if it's 3.2v4.
Richard M. Stallman <rms@gnu.org>
parents:
1415
diff
changeset
|
83 # Don't forget version if it is 3.2v4 or newer. |
1735
5032e4faca19
($os alternatives for sco and isc): Preserve the specified os version if any.
Richard M. Stallman <rms@gnu.org>
parents:
1732
diff
changeset
|
84 basic_machine=`echo $1 | sed -e 's/86-.*/86-unknown/'` |
1545
9ff238dd8a35
Don't discard SCO version number if it's 3.2v4.
Richard M. Stallman <rms@gnu.org>
parents:
1415
diff
changeset
|
85 ;; |
576 | 86 -sco*) |
646
e283d4164aca
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
645
diff
changeset
|
87 os=-sco3.2v2 |
1735
5032e4faca19
($os alternatives for sco and isc): Preserve the specified os version if any.
Richard M. Stallman <rms@gnu.org>
parents:
1732
diff
changeset
|
88 basic_machine=`echo $1 | sed -e 's/86-.*/86-unknown/'` |
576 | 89 ;; |
1631
9c52fcf232bf
Fri Nov 20 05:24:16 1992 Jim Blandy (jimb@totoro.cs.oberlin.edu)
Jim Blandy <jimb@redhat.com>
parents:
1627
diff
changeset
|
90 -isc) |
9c52fcf232bf
Fri Nov 20 05:24:16 1992 Jim Blandy (jimb@totoro.cs.oberlin.edu)
Jim Blandy <jimb@redhat.com>
parents:
1627
diff
changeset
|
91 os=-isc2.2 |
1735
5032e4faca19
($os alternatives for sco and isc): Preserve the specified os version if any.
Richard M. Stallman <rms@gnu.org>
parents:
1732
diff
changeset
|
92 basic_machine=`echo $1 | sed -e 's/86-.*/86-unknown/'` |
1631
9c52fcf232bf
Fri Nov 20 05:24:16 1992 Jim Blandy (jimb@totoro.cs.oberlin.edu)
Jim Blandy <jimb@redhat.com>
parents:
1627
diff
changeset
|
93 ;; |
2344
d21c82eba8ab
Default to clipper-intergraph if system is clix.
Richard M. Stallman <rms@gnu.org>
parents:
2204
diff
changeset
|
94 -clix*) |
d21c82eba8ab
Default to clipper-intergraph if system is clix.
Richard M. Stallman <rms@gnu.org>
parents:
2204
diff
changeset
|
95 basic_machine=clipper-intergraph |
d21c82eba8ab
Default to clipper-intergraph if system is clix.
Richard M. Stallman <rms@gnu.org>
parents:
2204
diff
changeset
|
96 ;; |
576 | 97 -isc*) |
1735
5032e4faca19
($os alternatives for sco and isc): Preserve the specified os version if any.
Richard M. Stallman <rms@gnu.org>
parents:
1732
diff
changeset
|
98 basic_machine=`echo $1 | sed -e 's/86-.*/86-unknown/'` |
576 | 99 ;; |
4204 | 100 -lynx) |
101 os=-lynxos | |
102 ;; | |
576 | 103 esac |
104 | |
105 # Decode aliases for certain CPU-COMPANY combinations. | |
106 case $basic_machine in | |
4829 | 107 # Recognize the basic CPU types without company name. |
576 | 108 # Some are omitted here because they have special meanings below. |
589
03fd51103bc3
*** empty log message ***
Michael Meissner <gnu@the-meissners.org>
parents:
576
diff
changeset
|
109 tahoe | i[34]86 | i860 | m68k | m68000 | m88k | ns32k | arm | pyramid \ |
993 | 110 | tron | a29k | 580 | i960 | h8300 | hppa1.0 | hppa1.1 \ |
4859 | 111 | alpha | we32k | ns16k | clipper | sparclite | i370 | sh \ |
112 | powerpc) | |
576 | 113 basic_machine=$basic_machine-unknown |
114 ;; | |
1961
eeb000068cc8
Error if company name is more than one word.
Richard M. Stallman <rms@gnu.org>
parents:
1852
diff
changeset
|
115 # Object if more than one company name word. |
eeb000068cc8
Error if company name is more than one word.
Richard M. Stallman <rms@gnu.org>
parents:
1852
diff
changeset
|
116 *-*-*) |
eeb000068cc8
Error if company name is more than one word.
Richard M. Stallman <rms@gnu.org>
parents:
1852
diff
changeset
|
117 echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 |
eeb000068cc8
Error if company name is more than one word.
Richard M. Stallman <rms@gnu.org>
parents:
1852
diff
changeset
|
118 exit 1 |
eeb000068cc8
Error if company name is more than one word.
Richard M. Stallman <rms@gnu.org>
parents:
1852
diff
changeset
|
119 ;; |
4829 | 120 # Recognize the basic CPU types with company name. |
607
e0ce539246b8
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
589
diff
changeset
|
121 vax-* | tahoe-* | i[34]86-* | i860-* | m68k-* | m68000-* | m88k-* \ |
576 | 122 | sparc-* | ns32k-* | fx80-* | arm-* | c[123]* \ |
123 | mips-* | pyramid-* | tron-* | a29k-* | romp-* | rs6000-* \ | |
124 | none-* | 580-* | cray2-* | h8300-* | i960-* | xmp-* | ymp-* \ | |
1631
9c52fcf232bf
Fri Nov 20 05:24:16 1992 Jim Blandy (jimb@totoro.cs.oberlin.edu)
Jim Blandy <jimb@redhat.com>
parents:
1627
diff
changeset
|
125 | hppa1.0-* | hppa1.1-* | alpha-* | we32k-* | cydra-* | ns16k-* \ |
2614 | 126 | pn-* | np1-* | xps100-* | clipper-* | orion-* | sparclite-* \ |
4859 | 127 | sh-* | powerpc-*) |
576 | 128 ;; |
129 # Recognize the various machine names and aliases which stand | |
130 # for a CPU type and a company and sometimes even an OS. | |
131 vaxv) | |
132 basic_machine=vax-dec | |
133 os=-sysv | |
134 ;; | |
135 vms) | |
136 basic_machine=vax-dec | |
137 os=-vms | |
138 ;; | |
2495 | 139 i370-ibm* | ibm*) |
140 basic_machine=i370-ibm | |
141 os=-mvs | |
142 ;; | |
1735
5032e4faca19
($os alternatives for sco and isc): Preserve the specified os version if any.
Richard M. Stallman <rms@gnu.org>
parents:
1732
diff
changeset
|
143 # I'm not sure what "Sysv32" means. Should this be sysv3.2? |
5032e4faca19
($os alternatives for sco and isc): Preserve the specified os version if any.
Richard M. Stallman <rms@gnu.org>
parents:
1732
diff
changeset
|
144 i[34]86v32) |
5032e4faca19
($os alternatives for sco and isc): Preserve the specified os version if any.
Richard M. Stallman <rms@gnu.org>
parents:
1732
diff
changeset
|
145 basic_machine=`echo $1 | sed -e 's/86.*/86-unknown/'` |
738
81cd2a003397
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
674
diff
changeset
|
146 os=-sysv32 |
81cd2a003397
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
674
diff
changeset
|
147 ;; |
1735
5032e4faca19
($os alternatives for sco and isc): Preserve the specified os version if any.
Richard M. Stallman <rms@gnu.org>
parents:
1732
diff
changeset
|
148 i[34]86v4*) |
5032e4faca19
($os alternatives for sco and isc): Preserve the specified os version if any.
Richard M. Stallman <rms@gnu.org>
parents:
1732
diff
changeset
|
149 basic_machine=`echo $1 | sed -e 's/86.*/86-unknown/'` |
576 | 150 os=-sysv4 |
151 ;; | |
1735
5032e4faca19
($os alternatives for sco and isc): Preserve the specified os version if any.
Richard M. Stallman <rms@gnu.org>
parents:
1732
diff
changeset
|
152 i[34]86v) |
5032e4faca19
($os alternatives for sco and isc): Preserve the specified os version if any.
Richard M. Stallman <rms@gnu.org>
parents:
1732
diff
changeset
|
153 basic_machine=`echo $1 | sed -e 's/86.*/86-unknown/'` |
738
81cd2a003397
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
674
diff
changeset
|
154 os=-sysv |
81cd2a003397
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
674
diff
changeset
|
155 ;; |
1840
b00ada422354
(i[34]86sol2): New abbrev for i[34]86-unknown-solaris2.
Jim Wilson <wilson@gnu.org>
parents:
1735
diff
changeset
|
156 i[34]86sol2) |
b00ada422354
(i[34]86sol2): New abbrev for i[34]86-unknown-solaris2.
Jim Wilson <wilson@gnu.org>
parents:
1735
diff
changeset
|
157 basic_machine=`echo $1 | sed -e 's/86.*/86-unknown/'` |
b00ada422354
(i[34]86sol2): New abbrev for i[34]86-unknown-solaris2.
Jim Wilson <wilson@gnu.org>
parents:
1735
diff
changeset
|
158 os=-solaris2 |
b00ada422354
(i[34]86sol2): New abbrev for i[34]86-unknown-solaris2.
Jim Wilson <wilson@gnu.org>
parents:
1735
diff
changeset
|
159 ;; |
576 | 160 spur) |
161 basic_machine=spur-unknown | |
162 ;; | |
4898 | 163 paragon) |
164 basic_machine=i860-intel | |
165 os=-osf | |
166 ;; | |
576 | 167 alliant | fx80) |
168 basic_machine=fx80-alliant | |
169 ;; | |
170 convex-c1) | |
171 basic_machine=c1-convex | |
172 os=-bsd | |
173 ;; | |
174 convex-c2) | |
175 basic_machine=c2-convex | |
176 os=-bsd | |
177 ;; | |
178 convex-c32) | |
179 basic_machine=c32-convex | |
180 os=-bsd | |
181 ;; | |
182 convex-c34) | |
183 basic_machine=c34-convex | |
184 os=-bsd | |
185 ;; | |
186 convex-c38) | |
187 basic_machine=c38-convex | |
188 os=-bsd | |
189 ;; | |
190 m88k-omron*) | |
191 basic_machine=m88k-omron | |
192 ;; | |
193 merlin) | |
194 basic_machine=ns32k-utek | |
195 os=-sysv | |
196 ;; | |
197 crds | unos) | |
198 basic_machine=m68k-crds | |
199 ;; | |
1415
1b82f79c4eb4
Add support for a new 64 bit CPU type. Elxsi.
Mike Stump <mrs@apple.com>
parents:
1270
diff
changeset
|
200 elxsi) |
1b82f79c4eb4
Add support for a new 64 bit CPU type. Elxsi.
Mike Stump <mrs@apple.com>
parents:
1270
diff
changeset
|
201 basic_machine=elxsi-elxsi |
1b82f79c4eb4
Add support for a new 64 bit CPU type. Elxsi.
Mike Stump <mrs@apple.com>
parents:
1270
diff
changeset
|
202 os=-bsd |
1b82f79c4eb4
Add support for a new 64 bit CPU type. Elxsi.
Mike Stump <mrs@apple.com>
parents:
1270
diff
changeset
|
203 ;; |
576 | 204 encore | umax | mmax) |
205 basic_machine=ns32k-encore | |
206 ;; | |
207 genix) | |
208 basic_machine=ns32k-ns | |
209 ;; | |
210 iris | iris4d) | |
211 basic_machine=mips-sgi | |
651
144027c7abb2
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
646
diff
changeset
|
212 case $os in |
144027c7abb2
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
646
diff
changeset
|
213 -irix*) |
144027c7abb2
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
646
diff
changeset
|
214 ;; |
144027c7abb2
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
646
diff
changeset
|
215 *) |
144027c7abb2
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
646
diff
changeset
|
216 os=-irix4 |
144027c7abb2
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
646
diff
changeset
|
217 ;; |
144027c7abb2
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
646
diff
changeset
|
218 esac |
576 | 219 ;; |
220 news | news700 | news800 | news900) | |
221 basic_machine=m68k-sony | |
222 os=-newsos | |
223 ;; | |
224 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) | |
225 basic_machine=m68000-att | |
226 ;; | |
629
e47f9ff356ea
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
613
diff
changeset
|
227 3b*) |
652
88a5b1ed98bb
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
651
diff
changeset
|
228 basic_machine=we32k-att |
629
e47f9ff356ea
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
613
diff
changeset
|
229 ;; |
576 | 230 delta | 3300 | motorola-3300 | motorola-delta \ |
231 | 3300-motorola | delta-motorola) | |
232 basic_machine=m68k-motorola | |
233 ;; | |
234 balance) | |
235 basic_machine=ns32k-sequent | |
236 os=-dynix | |
237 ;; | |
238 pc532) | |
239 basic_machine=ns32k-pc532 | |
240 ;; | |
241 symmetry) | |
242 basic_machine=i386-sequent | |
243 os=-dynix | |
244 ;; | |
245 sun2) | |
246 basic_machine=m68000-sun | |
247 ;; | |
248 sun2os3) | |
249 basic_machine=m68000-sun | |
250 os=-sunos3 | |
251 ;; | |
252 sun2os4) | |
253 basic_machine=m68000-sun | |
254 os=-sunos4 | |
255 ;; | |
256 sun3os3) | |
257 basic_machine=m68k-sun | |
258 os=-sunos3 | |
259 ;; | |
260 sun3os4) | |
261 basic_machine=m68k-sun | |
262 os=-sunos4 | |
263 ;; | |
264 sun4os3) | |
265 basic_machine=sparc-sun | |
266 os=-sunos3 | |
267 ;; | |
268 sun4os4) | |
269 basic_machine=sparc-sun | |
270 os=-sunos4 | |
271 ;; | |
272 sun3) | |
273 basic_machine=m68k-sun | |
274 ;; | |
275 sun4) | |
276 basic_machine=sparc-sun | |
277 ;; | |
278 pbd) | |
279 basic_machine=sparc-tti | |
280 ;; | |
281 pbb) | |
282 basic_machine=m68k-tti | |
283 ;; | |
284 sun386 | sun386i | roadrunner) | |
285 basic_machine=i386-sun | |
286 ;; | |
287 ps2) | |
288 basic_machine=i386-ibm | |
289 ;; | |
652
88a5b1ed98bb
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
651
diff
changeset
|
290 fx2800) |
88a5b1ed98bb
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
651
diff
changeset
|
291 basic_machine=i860-alliant |
88a5b1ed98bb
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
651
diff
changeset
|
292 ;; |
576 | 293 next) |
294 basic_machine=m68k-next | |
631
3c7da8664d12
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
629
diff
changeset
|
295 os=-bsd |
576 | 296 ;; |
297 amiga) | |
298 basic_machine=m68k-cbm | |
299 ;; | |
1631
9c52fcf232bf
Fri Nov 20 05:24:16 1992 Jim Blandy (jimb@totoro.cs.oberlin.edu)
Jim Blandy <jimb@redhat.com>
parents:
1627
diff
changeset
|
300 amigados) |
9c52fcf232bf
Fri Nov 20 05:24:16 1992 Jim Blandy (jimb@totoro.cs.oberlin.edu)
Jim Blandy <jimb@redhat.com>
parents:
1627
diff
changeset
|
301 basic_machine=m68k-cbm |
9c52fcf232bf
Fri Nov 20 05:24:16 1992 Jim Blandy (jimb@totoro.cs.oberlin.edu)
Jim Blandy <jimb@redhat.com>
parents:
1627
diff
changeset
|
302 os=-amigados |
9c52fcf232bf
Fri Nov 20 05:24:16 1992 Jim Blandy (jimb@totoro.cs.oberlin.edu)
Jim Blandy <jimb@redhat.com>
parents:
1627
diff
changeset
|
303 ;; |
9c52fcf232bf
Fri Nov 20 05:24:16 1992 Jim Blandy (jimb@totoro.cs.oberlin.edu)
Jim Blandy <jimb@redhat.com>
parents:
1627
diff
changeset
|
304 amigaunix | amix) |
9c52fcf232bf
Fri Nov 20 05:24:16 1992 Jim Blandy (jimb@totoro.cs.oberlin.edu)
Jim Blandy <jimb@redhat.com>
parents:
1627
diff
changeset
|
305 basic_machine=m68k-cbm |
9c52fcf232bf
Fri Nov 20 05:24:16 1992 Jim Blandy (jimb@totoro.cs.oberlin.edu)
Jim Blandy <jimb@redhat.com>
parents:
1627
diff
changeset
|
306 os=-sysv4 |
9c52fcf232bf
Fri Nov 20 05:24:16 1992 Jim Blandy (jimb@totoro.cs.oberlin.edu)
Jim Blandy <jimb@redhat.com>
parents:
1627
diff
changeset
|
307 ;; |
576 | 308 hp9k3[2-9][0-9]) |
309 basic_machine=m68k-hp | |
310 ;; | |
311 hp9k31[0-9] | hp9k2[0-9][0-9]) | |
312 basic_machine=m68000-hp | |
313 ;; | |
610
5f2f551fc367
*** empty log message ***
Torbjorn Granlund <tege@swox.com>
parents:
607
diff
changeset
|
314 hp9k7[0-9][0-9] | hp7[0-9][0-9] | hp9k8[0-9]7 | hp8[0-9]7) |
5f2f551fc367
*** empty log message ***
Torbjorn Granlund <tege@swox.com>
parents:
607
diff
changeset
|
315 basic_machine=hppa1.1-hp |
576 | 316 ;; |
610
5f2f551fc367
*** empty log message ***
Torbjorn Granlund <tege@swox.com>
parents:
607
diff
changeset
|
317 hp9k8[0-9][0-9] | hp8[0-9][0-9]) |
5f2f551fc367
*** empty log message ***
Torbjorn Granlund <tege@swox.com>
parents:
607
diff
changeset
|
318 basic_machine=hppa1.0-hp |
607
e0ce539246b8
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
589
diff
changeset
|
319 ;; |
576 | 320 isi68 | isi) |
321 basic_machine=m68k-isi | |
322 os=-sysv | |
323 ;; | |
324 apollo68) | |
325 basic_machine=m68k-apollo | |
326 os=-sysv | |
327 ;; | |
328 altos | altos3068) | |
329 basic_machine=m68k-altos | |
330 ;; | |
331 miniframe) | |
332 basic_machine=m68000-convergent | |
333 ;; | |
334 tower | tower-32) | |
335 basic_machine=m68k-ncr | |
336 ;; | |
337 news-3600 | risc-news) | |
338 basic_machine=mips-sony | |
339 os=-newsos | |
340 ;; | |
652
88a5b1ed98bb
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
651
diff
changeset
|
341 decstation | decstation-3100 | pmax | pmin | dec3100 | decstatn) |
576 | 342 basic_machine=mips-dec |
343 ;; | |
344 magnum | m3230) | |
345 basic_machine=mips-mips | |
346 os=-sysv | |
347 ;; | |
348 gmicro) | |
349 basic_machine=tron-gmicro | |
350 os=-sysv | |
351 ;; | |
352 rtpc | rtpc-*) | |
353 basic_machine=romp-ibm | |
354 ;; | |
355 am29k) | |
356 basic_machine=a29k-none | |
357 os=-bsd | |
358 ;; | |
359 amdahl) | |
360 basic_machine=580-amdahl | |
361 os=-sysv | |
362 ;; | |
363 cray | ymp) | |
364 basic_machine=ymp-cray | |
365 os=-unicos | |
366 ;; | |
367 cray2) | |
368 basic_machine=cray2-cray | |
369 os=-unicos | |
370 ;; | |
371 xmp) | |
372 basic_machine=xmp-cray | |
373 os=-unicos | |
374 ;; | |
375 delta88) | |
376 basic_machine=m88k-motorola | |
1852
93cf37057957
removed m88kbcs, changed delta88 and harris to
John Hassey <hassey@dg-rtp.dg.com>
parents:
1840
diff
changeset
|
377 os=-sysv3 |
576 | 378 ;; |
4084
1e9a4f812fc1
* config.sub: Add case for Bull dpx/2.
Jim Blandy <jimb@redhat.com>
parents:
4055
diff
changeset
|
379 dpx2* | dpx2*-bull) |
576 | 380 basic_machine=m68k-bull |
4084
1e9a4f812fc1
* config.sub: Add case for Bull dpx/2.
Jim Blandy <jimb@redhat.com>
parents:
4055
diff
changeset
|
381 os=-sysv3 |
1e9a4f812fc1
* config.sub: Add case for Bull dpx/2.
Jim Blandy <jimb@redhat.com>
parents:
4055
diff
changeset
|
382 ;; |
1e9a4f812fc1
* config.sub: Add case for Bull dpx/2.
Jim Blandy <jimb@redhat.com>
parents:
4055
diff
changeset
|
383 sps7) |
1e9a4f812fc1
* config.sub: Add case for Bull dpx/2.
Jim Blandy <jimb@redhat.com>
parents:
4055
diff
changeset
|
384 basic_machine=m68k-bull |
1e9a4f812fc1
* config.sub: Add case for Bull dpx/2.
Jim Blandy <jimb@redhat.com>
parents:
4055
diff
changeset
|
385 os=-sysv2 |
576 | 386 ;; |
387 ebmon29k) | |
388 basic_machine=a29k-amd | |
389 os=-ebmon | |
390 ;; | |
2009
755588575884
(h8300hds): Change hds to hms.
Steve Chamberlain <sac@transmeta.com>
parents:
1961
diff
changeset
|
391 h8300hms) |
576 | 392 basic_machine=h8300-hitachi |
2009
755588575884
(h8300hds): Change hds to hms.
Steve Chamberlain <sac@transmeta.com>
parents:
1961
diff
changeset
|
393 os=-hms |
576 | 394 ;; |
2614 | 395 sh) |
396 basic_machine=sh-hitachi | |
397 os=-hms | |
398 ;; | |
576 | 399 harris) |
400 basic_machine=m88k-harris | |
1852
93cf37057957
removed m88kbcs, changed delta88 and harris to
John Hassey <hassey@dg-rtp.dg.com>
parents:
1840
diff
changeset
|
401 os=-sysv3 |
576 | 402 ;; |
403 hp300bsd) | |
404 basic_machine=m68k-hp | |
405 os=-bsd | |
406 ;; | |
407 hp300hpux) | |
408 basic_machine=m68k-hp | |
409 os=-hpux | |
410 ;; | |
411 hp9k2[0-9][0-9] | hp9k31[0-9]) | |
412 basic_machine=m68000-hp | |
413 os=-hpux | |
414 ;; | |
415 hp9k3[2-9][0-9]) | |
416 basic_machine=m68k-hp | |
417 os=-hpux | |
418 ;; | |
419 ncr3000) | |
607
e0ce539246b8
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
589
diff
changeset
|
420 basic_machine=i486-ncr |
576 | 421 os=-sysv4 |
422 ;; | |
423 news1000) | |
424 basic_machine=m68030-sony | |
425 os=-newsos | |
426 ;; | |
427 nindy960) | |
428 basic_machine=i960-intel | |
429 os=-nindy | |
430 ;; | |
431 pn) | |
432 basic_machine=pn-gould | |
433 ;; | |
434 np1) | |
435 basic_machine=np1-gould | |
436 ;; | |
437 ultra3) | |
438 basic_machine=a29k-nyu | |
439 os=-sym1 | |
440 ;; | |
441 vxworks960) | |
442 basic_machine=i960-wrs | |
443 os=-vxworks | |
444 ;; | |
445 vxworks68) | |
446 basic_machine=m68k-wrs | |
447 os=-vxworks | |
448 ;; | |
1631
9c52fcf232bf
Fri Nov 20 05:24:16 1992 Jim Blandy (jimb@totoro.cs.oberlin.edu)
Jim Blandy <jimb@redhat.com>
parents:
1627
diff
changeset
|
449 xps | xps100) |
9c52fcf232bf
Fri Nov 20 05:24:16 1992 Jim Blandy (jimb@totoro.cs.oberlin.edu)
Jim Blandy <jimb@redhat.com>
parents:
1627
diff
changeset
|
450 basic_machine=xps100-honeywell |
9c52fcf232bf
Fri Nov 20 05:24:16 1992 Jim Blandy (jimb@totoro.cs.oberlin.edu)
Jim Blandy <jimb@redhat.com>
parents:
1627
diff
changeset
|
451 ;; |
576 | 452 none) |
453 basic_machine=none-none | |
454 os=-none | |
455 ;; | |
456 | |
457 # Here we handle the default manufacturer of certain CPU types. It is in | |
458 # some cases the only manufacturer, in others, it is the most popular. | |
459 mips) | |
460 basic_machine=mips-mips | |
461 ;; | |
462 romp) | |
463 basic_machine=romp-ibm | |
464 ;; | |
465 rs6000) | |
466 basic_machine=rs6000-ibm | |
467 ;; | |
468 vax) | |
469 basic_machine=vax-dec | |
470 ;; | |
652
88a5b1ed98bb
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
651
diff
changeset
|
471 we32k) |
88a5b1ed98bb
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
651
diff
changeset
|
472 basic_machine=we32k-att |
88a5b1ed98bb
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
651
diff
changeset
|
473 ;; |
576 | 474 sparc) |
475 basic_machine=sparc-sun | |
476 ;; | |
1631
9c52fcf232bf
Fri Nov 20 05:24:16 1992 Jim Blandy (jimb@totoro.cs.oberlin.edu)
Jim Blandy <jimb@redhat.com>
parents:
1627
diff
changeset
|
477 cydra) |
9c52fcf232bf
Fri Nov 20 05:24:16 1992 Jim Blandy (jimb@totoro.cs.oberlin.edu)
Jim Blandy <jimb@redhat.com>
parents:
1627
diff
changeset
|
478 basic_machine=cydra-cydrome |
9c52fcf232bf
Fri Nov 20 05:24:16 1992 Jim Blandy (jimb@totoro.cs.oberlin.edu)
Jim Blandy <jimb@redhat.com>
parents:
1627
diff
changeset
|
479 ;; |
9c52fcf232bf
Fri Nov 20 05:24:16 1992 Jim Blandy (jimb@totoro.cs.oberlin.edu)
Jim Blandy <jimb@redhat.com>
parents:
1627
diff
changeset
|
480 orion) |
9c52fcf232bf
Fri Nov 20 05:24:16 1992 Jim Blandy (jimb@totoro.cs.oberlin.edu)
Jim Blandy <jimb@redhat.com>
parents:
1627
diff
changeset
|
481 basic_machine=orion-highlevel |
9c52fcf232bf
Fri Nov 20 05:24:16 1992 Jim Blandy (jimb@totoro.cs.oberlin.edu)
Jim Blandy <jimb@redhat.com>
parents:
1627
diff
changeset
|
482 ;; |
9c52fcf232bf
Fri Nov 20 05:24:16 1992 Jim Blandy (jimb@totoro.cs.oberlin.edu)
Jim Blandy <jimb@redhat.com>
parents:
1627
diff
changeset
|
483 orion105) |
9c52fcf232bf
Fri Nov 20 05:24:16 1992 Jim Blandy (jimb@totoro.cs.oberlin.edu)
Jim Blandy <jimb@redhat.com>
parents:
1627
diff
changeset
|
484 basic_machine=clipper-highlevel |
9c52fcf232bf
Fri Nov 20 05:24:16 1992 Jim Blandy (jimb@totoro.cs.oberlin.edu)
Jim Blandy <jimb@redhat.com>
parents:
1627
diff
changeset
|
485 ;; |
576 | 486 *) |
487 echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 | |
488 exit 1 | |
489 ;; | |
490 esac | |
491 | |
492 # Here we canonicalize certain aliases for manufacturers. | |
493 case $basic_machine in | |
494 *-digital*) | |
495 basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'` | |
496 ;; | |
497 *-commodore*) | |
498 basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'` | |
499 ;; | |
500 *) | |
501 ;; | |
502 esac | |
503 | |
504 # Decode manufacturer-specific aliases for certain operating systems. | |
505 | |
4109
76f746324590
if [ "$os" ] --> if [ x"$os" != x"" ]
Doug Evans <dje@gnu.org>
parents:
4084
diff
changeset
|
506 if [ x"$os" != x"" ] |
576 | 507 then |
508 case $os in | |
1732
2dd86a54c11b
Translate sunos5 to solaris2, and solaris1 to sunos4.
Richard M. Stallman <rms@gnu.org>
parents:
1726
diff
changeset
|
509 # -solaris* is a basic system type, with this one exception. |
2dd86a54c11b
Translate sunos5 to solaris2, and solaris1 to sunos4.
Richard M. Stallman <rms@gnu.org>
parents:
1726
diff
changeset
|
510 -solaris1 | -solaris1.*) |
2dd86a54c11b
Translate sunos5 to solaris2, and solaris1 to sunos4.
Richard M. Stallman <rms@gnu.org>
parents:
1726
diff
changeset
|
511 os=`echo $os | sed -e 's|solaris1|sunos4|'` |
2dd86a54c11b
Translate sunos5 to solaris2, and solaris1 to sunos4.
Richard M. Stallman <rms@gnu.org>
parents:
1726
diff
changeset
|
512 ;; |
4055
e5d455b14d82
Make `solaris' reflect the most recent major release.
Doug Evans <dje@gnu.org>
parents:
3934
diff
changeset
|
513 -solaris) |
e5d455b14d82
Make `solaris' reflect the most recent major release.
Doug Evans <dje@gnu.org>
parents:
3934
diff
changeset
|
514 os=-solaris2 |
e5d455b14d82
Make `solaris' reflect the most recent major release.
Doug Evans <dje@gnu.org>
parents:
3934
diff
changeset
|
515 ;; |
576 | 516 # First accept the basic system types. |
517 # The portable systems comes first. | |
518 # Each alternative must end in a *, to match a version number. | |
3914
a16c11d3670f
Recognize -sysv* after -sysvr4.
Richard M. Stallman <rms@gnu.org>
parents:
3904
diff
changeset
|
519 # -sysv* is not here because it comes later, after sysvr4. |
3934
0bd0d7678a09
Recognize `gnu' as a valid operating system. Sheesh.
Roland McGrath <roland@gnu.org>
parents:
3914
diff
changeset
|
520 -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ |
1732
2dd86a54c11b
Translate sunos5 to solaris2, and solaris1 to sunos4.
Richard M. Stallman <rms@gnu.org>
parents:
1726
diff
changeset
|
521 | -vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]* | -hpux* \ |
2dd86a54c11b
Translate sunos5 to solaris2, and solaris1 to sunos4.
Richard M. Stallman <rms@gnu.org>
parents:
1726
diff
changeset
|
522 | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \ |
610
5f2f551fc367
*** empty log message ***
Torbjorn Granlund <tege@swox.com>
parents:
607
diff
changeset
|
523 | -amigados* | -msdos* | -newsos* | -unicos* | -aos* \ |
2675 | 524 | -nindy* | -vxworks* | -ebmon* | -hms* | -mvs* | -clix* \ |
3382 | 525 | -riscos* | -linux* | -uniplus* | -iris* | -rtu* | -xenix* \ |
4806
d48a4664d92a
Recognize operating system "riscix*"; recognize acorn as vendor
Erich Stefan Boleyn <erich@uruk.org>
parents:
4689
diff
changeset
|
526 | -386bsd* | -netbsd* | -riscix* | -lynxos*) |
576 | 527 ;; |
1732
2dd86a54c11b
Translate sunos5 to solaris2, and solaris1 to sunos4.
Richard M. Stallman <rms@gnu.org>
parents:
1726
diff
changeset
|
528 -sunos5*) |
2dd86a54c11b
Translate sunos5 to solaris2, and solaris1 to sunos4.
Richard M. Stallman <rms@gnu.org>
parents:
1726
diff
changeset
|
529 os=`echo $os | sed -e 's|sunos5|solaris2|'` |
2dd86a54c11b
Translate sunos5 to solaris2, and solaris1 to sunos4.
Richard M. Stallman <rms@gnu.org>
parents:
1726
diff
changeset
|
530 ;; |
2dd86a54c11b
Translate sunos5 to solaris2, and solaris1 to sunos4.
Richard M. Stallman <rms@gnu.org>
parents:
1726
diff
changeset
|
531 -sunos6*) |
2dd86a54c11b
Translate sunos5 to solaris2, and solaris1 to sunos4.
Richard M. Stallman <rms@gnu.org>
parents:
1726
diff
changeset
|
532 os=`echo $os | sed -e 's|sunos6|solaris3|'` |
2dd86a54c11b
Translate sunos5 to solaris2, and solaris1 to sunos4.
Richard M. Stallman <rms@gnu.org>
parents:
1726
diff
changeset
|
533 ;; |
576 | 534 -osfrose*) |
674
d5c90f190057
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
654
diff
changeset
|
535 os=-osfrose |
576 | 536 ;; |
537 -osf*) | |
674
d5c90f190057
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
654
diff
changeset
|
538 os=-osf |
576 | 539 ;; |
742 | 540 -utek*) |
541 os=-bsd | |
542 ;; | |
576 | 543 -dynix*) |
544 os=-bsd | |
545 ;; | |
546 -acis*) | |
547 os=-aos | |
548 ;; | |
549 -ctix* | -uts*) | |
550 os=-sysv | |
551 ;; | |
552 -triton*) | |
553 os=-sysv3 | |
554 ;; | |
555 -oss*) | |
556 os=-sysv3 | |
557 ;; | |
558 -svr4) | |
559 os=-sysv4 | |
560 ;; | |
3914
a16c11d3670f
Recognize -sysv* after -sysvr4.
Richard M. Stallman <rms@gnu.org>
parents:
3904
diff
changeset
|
561 -svr3) |
a16c11d3670f
Recognize -sysv* after -sysvr4.
Richard M. Stallman <rms@gnu.org>
parents:
3904
diff
changeset
|
562 os=-sysv3 |
a16c11d3670f
Recognize -sysv* after -sysvr4.
Richard M. Stallman <rms@gnu.org>
parents:
3904
diff
changeset
|
563 ;; |
3896
bea021b3124a
Convert ...-sysvr4 into ...-sysv4.
Richard M. Stallman <rms@gnu.org>
parents:
3382
diff
changeset
|
564 -sysvr4) |
bea021b3124a
Convert ...-sysvr4 into ...-sysv4.
Richard M. Stallman <rms@gnu.org>
parents:
3382
diff
changeset
|
565 os=-sysv4 |
bea021b3124a
Convert ...-sysvr4 into ...-sysv4.
Richard M. Stallman <rms@gnu.org>
parents:
3382
diff
changeset
|
566 ;; |
3914
a16c11d3670f
Recognize -sysv* after -sysvr4.
Richard M. Stallman <rms@gnu.org>
parents:
3904
diff
changeset
|
567 # This must come after -sysvr4. |
a16c11d3670f
Recognize -sysv* after -sysvr4.
Richard M. Stallman <rms@gnu.org>
parents:
3904
diff
changeset
|
568 -sysv*) |
576 | 569 ;; |
1627
1c2f6bc3d8fe
* config.sub: Added Xenix operating system.
Jim Blandy <jimb@redhat.com>
parents:
1545
diff
changeset
|
570 -xenix) |
1c2f6bc3d8fe
* config.sub: Added Xenix operating system.
Jim Blandy <jimb@redhat.com>
parents:
1545
diff
changeset
|
571 os=-xenix |
1c2f6bc3d8fe
* config.sub: Added Xenix operating system.
Jim Blandy <jimb@redhat.com>
parents:
1545
diff
changeset
|
572 ;; |
645
57295fc40ac3
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
631
diff
changeset
|
573 -none) |
57295fc40ac3
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
631
diff
changeset
|
574 ;; |
576 | 575 *) |
576 # Get rid of the `-' at the beginning of $os. | |
577 os=`echo $1 | sed 's/[^-]*-//'` | |
578 echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2 | |
579 exit 1 | |
580 ;; | |
581 esac | |
582 else | |
583 | |
584 # Here we handle the default operating systems that come with various machines. | |
585 # The value should be what the vendor currently ships out the door with their | |
586 # machine or put another way, the most popular os provided with the machine. | |
1631
9c52fcf232bf
Fri Nov 20 05:24:16 1992 Jim Blandy (jimb@totoro.cs.oberlin.edu)
Jim Blandy <jimb@redhat.com>
parents:
1627
diff
changeset
|
587 |
9c52fcf232bf
Fri Nov 20 05:24:16 1992 Jim Blandy (jimb@totoro.cs.oberlin.edu)
Jim Blandy <jimb@redhat.com>
parents:
1627
diff
changeset
|
588 # Note that if you're going to try to match "-MANUFACTURER" here (say, |
9c52fcf232bf
Fri Nov 20 05:24:16 1992 Jim Blandy (jimb@totoro.cs.oberlin.edu)
Jim Blandy <jimb@redhat.com>
parents:
1627
diff
changeset
|
589 # "-sun"), then you have to tell the case statement up towards the top |
9c52fcf232bf
Fri Nov 20 05:24:16 1992 Jim Blandy (jimb@totoro.cs.oberlin.edu)
Jim Blandy <jimb@redhat.com>
parents:
1627
diff
changeset
|
590 # that MANUFACTURER isn't an operating system. Otherwise, code above |
9c52fcf232bf
Fri Nov 20 05:24:16 1992 Jim Blandy (jimb@totoro.cs.oberlin.edu)
Jim Blandy <jimb@redhat.com>
parents:
1627
diff
changeset
|
591 # will signal an error saying that MANUFACTURER isn't an operating |
9c52fcf232bf
Fri Nov 20 05:24:16 1992 Jim Blandy (jimb@totoro.cs.oberlin.edu)
Jim Blandy <jimb@redhat.com>
parents:
1627
diff
changeset
|
592 # system, and we'll never get to this point. |
9c52fcf232bf
Fri Nov 20 05:24:16 1992 Jim Blandy (jimb@totoro.cs.oberlin.edu)
Jim Blandy <jimb@redhat.com>
parents:
1627
diff
changeset
|
593 |
576 | 594 case $basic_machine in |
4806
d48a4664d92a
Recognize operating system "riscix*"; recognize acorn as vendor
Erich Stefan Boleyn <erich@uruk.org>
parents:
4689
diff
changeset
|
595 *-acorn) |
d48a4664d92a
Recognize operating system "riscix*"; recognize acorn as vendor
Erich Stefan Boleyn <erich@uruk.org>
parents:
4689
diff
changeset
|
596 os=-riscix1.2 |
d48a4664d92a
Recognize operating system "riscix*"; recognize acorn as vendor
Erich Stefan Boleyn <erich@uruk.org>
parents:
4689
diff
changeset
|
597 ;; |
576 | 598 *-dec | vax-*) |
654
6d56ce1261a7
*** empty log message ***
Michael Meissner <gnu@the-meissners.org>
parents:
653
diff
changeset
|
599 os=-ultrix4.2 |
576 | 600 ;; |
601 i386-sun) | |
654
6d56ce1261a7
*** empty log message ***
Michael Meissner <gnu@the-meissners.org>
parents:
653
diff
changeset
|
602 os=-sunos4.0.2 |
576 | 603 ;; |
604 m68000-sun) | |
605 os=-sunos3 | |
606 # This also exists in the configure program, but was not the | |
607 # default. | |
608 # os=-sunos4 | |
609 ;; | |
610 *-tti) # must be before sparc entry or we get the wrong os. | |
611 os=-sysv3 | |
612 ;; | |
613 sparc-* | *-sun) | |
654
6d56ce1261a7
*** empty log message ***
Michael Meissner <gnu@the-meissners.org>
parents:
653
diff
changeset
|
614 os=-sunos4.1.1 |
576 | 615 ;; |
616 *-ibm) | |
617 os=-aix | |
618 ;; | |
619 *-hp) | |
620 os=-hpux | |
621 ;; | |
1631
9c52fcf232bf
Fri Nov 20 05:24:16 1992 Jim Blandy (jimb@totoro.cs.oberlin.edu)
Jim Blandy <jimb@redhat.com>
parents:
1627
diff
changeset
|
622 i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent) |
576 | 623 os=-sysv |
624 ;; | |
625 *-cbm) | |
626 os=-amigados | |
627 ;; | |
628 *-dg) | |
629 os=-dgux | |
630 ;; | |
631 *-dolphin) | |
632 os=-sysv3 | |
633 ;; | |
634 m88k-omron*) | |
635 os=-luna | |
636 ;; | |
1726
e44b2de1b698
Default to bsd for *-sequent.
Richard M. Stallman <rms@gnu.org>
parents:
1631
diff
changeset
|
637 *-sequent) |
e44b2de1b698
Default to bsd for *-sequent.
Richard M. Stallman <rms@gnu.org>
parents:
1631
diff
changeset
|
638 os=-bsd |
e44b2de1b698
Default to bsd for *-sequent.
Richard M. Stallman <rms@gnu.org>
parents:
1631
diff
changeset
|
639 ;; |
576 | 640 *-crds) |
641 os=-unos | |
642 ;; | |
643 *-ns) | |
644 os=-genix | |
645 ;; | |
2495 | 646 i370-*) |
647 os=-mvs | |
648 ;; | |
2497
55f73883303f
> Default to bsd if vendor is next.
Tom Wood <wood@next.com>
parents:
2495
diff
changeset
|
649 *-next) |
55f73883303f
> Default to bsd if vendor is next.
Tom Wood <wood@next.com>
parents:
2495
diff
changeset
|
650 os=-bsd |
55f73883303f
> Default to bsd if vendor is next.
Tom Wood <wood@next.com>
parents:
2495
diff
changeset
|
651 ;; |
738
81cd2a003397
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
674
diff
changeset
|
652 i[34]86-*) |
646
e283d4164aca
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
645
diff
changeset
|
653 os=-sco3.2v2 |
576 | 654 ;; |
1631
9c52fcf232bf
Fri Nov 20 05:24:16 1992 Jim Blandy (jimb@totoro.cs.oberlin.edu)
Jim Blandy <jimb@redhat.com>
parents:
1627
diff
changeset
|
655 *-gould) |
9c52fcf232bf
Fri Nov 20 05:24:16 1992 Jim Blandy (jimb@totoro.cs.oberlin.edu)
Jim Blandy <jimb@redhat.com>
parents:
1627
diff
changeset
|
656 os=-sysv |
9c52fcf232bf
Fri Nov 20 05:24:16 1992 Jim Blandy (jimb@totoro.cs.oberlin.edu)
Jim Blandy <jimb@redhat.com>
parents:
1627
diff
changeset
|
657 ;; |
9c52fcf232bf
Fri Nov 20 05:24:16 1992 Jim Blandy (jimb@totoro.cs.oberlin.edu)
Jim Blandy <jimb@redhat.com>
parents:
1627
diff
changeset
|
658 *-highlevel) |
9c52fcf232bf
Fri Nov 20 05:24:16 1992 Jim Blandy (jimb@totoro.cs.oberlin.edu)
Jim Blandy <jimb@redhat.com>
parents:
1627
diff
changeset
|
659 os=-bsd |
9c52fcf232bf
Fri Nov 20 05:24:16 1992 Jim Blandy (jimb@totoro.cs.oberlin.edu)
Jim Blandy <jimb@redhat.com>
parents:
1627
diff
changeset
|
660 ;; |
9c52fcf232bf
Fri Nov 20 05:24:16 1992 Jim Blandy (jimb@totoro.cs.oberlin.edu)
Jim Blandy <jimb@redhat.com>
parents:
1627
diff
changeset
|
661 *-encore) |
9c52fcf232bf
Fri Nov 20 05:24:16 1992 Jim Blandy (jimb@totoro.cs.oberlin.edu)
Jim Blandy <jimb@redhat.com>
parents:
1627
diff
changeset
|
662 os=-bsd |
9c52fcf232bf
Fri Nov 20 05:24:16 1992 Jim Blandy (jimb@totoro.cs.oberlin.edu)
Jim Blandy <jimb@redhat.com>
parents:
1627
diff
changeset
|
663 ;; |
9c52fcf232bf
Fri Nov 20 05:24:16 1992 Jim Blandy (jimb@totoro.cs.oberlin.edu)
Jim Blandy <jimb@redhat.com>
parents:
1627
diff
changeset
|
664 *-sgi) |
9c52fcf232bf
Fri Nov 20 05:24:16 1992 Jim Blandy (jimb@totoro.cs.oberlin.edu)
Jim Blandy <jimb@redhat.com>
parents:
1627
diff
changeset
|
665 os=-irix |
9c52fcf232bf
Fri Nov 20 05:24:16 1992 Jim Blandy (jimb@totoro.cs.oberlin.edu)
Jim Blandy <jimb@redhat.com>
parents:
1627
diff
changeset
|
666 ;; |
9c52fcf232bf
Fri Nov 20 05:24:16 1992 Jim Blandy (jimb@totoro.cs.oberlin.edu)
Jim Blandy <jimb@redhat.com>
parents:
1627
diff
changeset
|
667 *-masscomp) |
9c52fcf232bf
Fri Nov 20 05:24:16 1992 Jim Blandy (jimb@totoro.cs.oberlin.edu)
Jim Blandy <jimb@redhat.com>
parents:
1627
diff
changeset
|
668 os=-rtu |
9c52fcf232bf
Fri Nov 20 05:24:16 1992 Jim Blandy (jimb@totoro.cs.oberlin.edu)
Jim Blandy <jimb@redhat.com>
parents:
1627
diff
changeset
|
669 ;; |
576 | 670 *) |
671 os=-none | |
672 ;; | |
673 esac | |
674 fi | |
675 | |
676 # Here we handle the case where we know the os, and the CPU type, but not the | |
677 # manufacturer. We pick the logical manufacturer. | |
678 vendor=unknown | |
679 case $basic_machine in | |
680 *-unknown) | |
681 case $os in | |
4806
d48a4664d92a
Recognize operating system "riscix*"; recognize acorn as vendor
Erich Stefan Boleyn <erich@uruk.org>
parents:
4689
diff
changeset
|
682 -riscix*) |
d48a4664d92a
Recognize operating system "riscix*"; recognize acorn as vendor
Erich Stefan Boleyn <erich@uruk.org>
parents:
4689
diff
changeset
|
683 vendor=acorn |
d48a4664d92a
Recognize operating system "riscix*"; recognize acorn as vendor
Erich Stefan Boleyn <erich@uruk.org>
parents:
4689
diff
changeset
|
684 ;; |
576 | 685 -sunos*) |
686 vendor=sun | |
687 ;; | |
4204 | 688 -lynxos*) |
689 vendor=lynx | |
690 ;; | |
576 | 691 -aix*) |
692 vendor=ibm | |
693 ;; | |
694 -hpux*) | |
695 vendor=hp | |
696 ;; | |
697 -unos*) | |
698 vendor=crds | |
699 ;; | |
700 -dgux*) | |
701 vendor=dg | |
702 ;; | |
703 -luna*) | |
704 vendor=omron | |
705 ;; | |
706 -genix*) | |
707 vendor=ns | |
708 ;; | |
2495 | 709 -mvs*) |
710 vendor=ibm | |
711 ;; | |
576 | 712 esac |
713 basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` | |
714 ;; | |
715 esac | |
716 | |
717 echo $basic_machine$os |