blob: e38f9798a8e47f7a684b20aea118f19ba388e868 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
|
#!/bin/sh
# Configuration subroutine to validate and canonicalize a configuration type.
# Supply the specified configuration type as an argument.
# If it is invalid, we print an error message on stderr and exit with code 1.
# Otherwise, we print the canonical config type on stdout and succeed.
# This file is supposed to be the same for all GNU packages
# and recognize all the CPU types, system types and aliases
# that are meaningful with *any* GNU software.
# Each package is responsible for reporting which valid configurations
# it does not support. The user should be able to distinguish
# a failure to support a valid configuration from a meaningless
# configuration.
# Please email any bugs, comments, and/or additions to this file to:
# configure@cygnus.com
# decode aliases into canonical names
case "$1" in
# cpu alone is a valid alias for cpu-none-none.
vax | tahoe | i386 | i860 | m68k | m68000 | m88k | sparc | ns32k \
| alliant | arm | c1 | c2 | mips | pyramid | tron | a29k \
| rtpc | rs6000 | i960)
cpu=$1
vendor=none
os=none
;;
altos | altos3068)
cpu=m68k
vendor=altos
os=sysv # maybe?
;;
altosgas)
cpu=m68k
vendor=altos
os=gas
;;
am29k)
cpu=a29k
vendor=none
os=bsd
;;
amdahl)
cpu=580
vendor=amdahl
os=uts
;;
apollo68)
cpu=m68k
vendor=apollo
os=sysv # maybe?
;;
balance)
cpu=ns32k
vendor=sequent
os=dynix
;;
convex-c1)
cpu=c1
vendor=convex
os=sysv # maybe?
;;
convex-c2)
cpu=c2
vendor=convex
os=sysv # maybe?
;;
cray | ymp)
cpu=ymp
vendor=cray
os=unicos
;;
cray2)
cpu=cray2
vendor=cray
os=unicos
;;
dec3100 | decstatn | decstation | decstation-3100 | pmax | pmin)
cpu=mips
vendor=dec
os=ultrix
;;
delta | 3300 | motorola-3300 | motorola-delta \
| 3300-motorola | delta-motorola)
cpu=m68k
vendor=motorola
os=sysv # maybe?
;;
gmicro)
cpu=tron
vendor=gmicro
os=sysv # maybe?
;;
# start-sanitize-v9
hal-32 | hal32)
cpu=sparc64
vendor=hal
os=hal32
;;
hal-64 | hal64)
cpu=sparc64
vendor=hal
os=hal64
;;
sparc64)
cpu=sparc64
vendor=sun
os=v9
;;
sparc64-v7 | sparc64v7)
cpu=sparc64
vendor=sun
os=v7
;;
# end-sanitize-v9
hp300bsd)
cpu=m68k
vendor=hp
os=bsd
;;
hp300hpux | hpux | hp9k3[2-9][0-9])
cpu=m68k
vendor=hp
os=hpux
;;
hp9k31[0-9] | hp9k2[0-9][0-9])
cpu=m68000
vendor=hp
os=hpux
;;
i386sco)
cpu=i386
vendor=sco
os=sysv # maybe?
;;
i386v)
cpu=i386
vendor=none
os=sysv
;;
i386v32)
cpu=i386
vendor=none
os=sysv32
;;
iris | iris4d)
cpu=mips
vendor=sgi
os=irix # maybe?
;;
isi | isi68)
cpu=m68k
vendor=isi
os=sysv # maybe?
;;
littlemips)
cpu=mips
vendor=little
os=bsd
;;
magnum | m3230)
cpu=mips
vendor=mips
os=sysv # maybe?
;;
merlin)
cpu=ns32k
vendor=utek
os=sysv # maybe?
;;
miniframe)
cpu=m68000
vendor=convergent
os=sysv # maybe?
;;
mmax)
cpu=ns32k
vendor=encore
os=sysv # maybe?
;;
news | news700 | news800 | news900)
cpu=m68k
vendor=sony
os=sysv # maybe?
;;
news1000)
cpu=m68030
vendor=sony
os=sysv # maybe?
;;
news-3600 | bigmips | risc-news)
cpu=mips
vendor=sony
os=newsos # maybe?
;;
next)
cpu=m68k
vendor=next
os=sysv # maybe?
;;
nindy960)
cpu=i960
vendor=intel
os=nindy
;;
none)
cpu=none
vendor=none
os=none
;;
np1)
cpu=np1
vendor=gould
os=sysv # maybe?
;;
pbd)
cpu=sparc
vendor=unicom
os=sysv
;;
pn)
cpu=pn
vendor=gould
os=sysv # maybe?
;;
ps2)
cpu=i386
vendor=ibm
os=sysv # maybe?
;;
sun2)
cpu=m68000
vendor=sun
os=sunos4
;;
sun2os3)
cpu=m68000
vendor=sun
os=sunos3
;;
sun2os4)
cpu=m68000
vendor=sun
os=sunos4
;;
sun3)
cpu=m68k
vendor=sun
os=sunos4
;;
sun3os3)
cpu=m68k
vendor=sun
os=sunos3
;;
sun3os4)
cpu=m68k
vendor=sun
os=sunos4
;;
sun386 | roadrunner | sun386i)
cpu=i386
vendor=sun
os=sunos
;;
sun4)
cpu=sparc
vendor=sun
os=sunos4
;;
sun4os3)
cpu=sparc
vendor=sun
os=sunos3
;;
sun4os4)
cpu=sparc
vendor=sun
os=sunos4
;;
symmetry)
cpu=i386
vendor=sequent
os=dynix
;;
tower | tower-32)
cpu=m68k
vendor=ncr
os=sysv # maybe?
;;
umax)
cpu=ns32k
vendor=encore
os=sysv # maybe?
;;
unixpc | safari | pc7300 | 3b1 | 7300 | 7300-att | att-7300)
cpu=m68k
vendor=att
os=sysv # maybe?
;;
vax-dec)
cpu=vax
vendor=dec
os=ultrix # maybe?
;;
vxworks68)
cpu=m68k
vendor=wrs
os=vxworks
;;
vxworks960)
cpu=i960
vendor=wrs
os=vxworks
;;
xmp)
cpu=xmp
vendor=cray
os=unicos
;;
# not an alias. parse what we expect to be a canonical name.
*)
cpu=`echo $1 | sed 's/-.*$//'`
if [ "${cpu}" = "$1" ] ; then
# no vendor so this is an invalid name.
echo '***' No vendor: configuration \`$1\' not recognized 1>&2
exit 1
else
# parse out vendor
rest=`echo $1 | sed "s/${cpu}-//"`
vendor=`echo ${rest} | sed 's/-.*$//'`
if [ "${vendor}" = "${rest}" ] ; then
# a missing os is acceptable
os=none
else
os=`echo ${rest} | sed "s/${vendor}-//"`
fi
fi
;;
esac
# At this point we should have three parts of a canonical name in cpu,
# vendor, and os.
# verify that the cpu is known.
case "${cpu}" in
none | vax | tahoe | i386 | i860 | m68k | m68000 | m88k | sparc \
| ns32k | alliant | arm | c1 | c2 | mips | pyramid | tron \
| a29k | rtpc | rs6000 | i960 | xmp | ymp | cray2 | 580)
;;
# start-sanitize-v9
sparc64) ;;
# end-sanitize-v9
*)
echo '***' Invalid cpu \`${cpu}\': configuration \`$1\' not recognized 1>&2
exit 1
;;
esac
# verify that the vendor is known.
case "${vendor}" in
none | convex | mips | dec | little | sony | ncr | convergent \
| altos | apollo | isi | hp | next | sco | ibm | sun \
| unicom | sequent | encore | motorola | att | sgi | utek \
| gould | wrs | intel | aout | bout | coff | bcs | amdahl \
| cray) ;;
# start-sanitize-v9
hal) ;;
# end-sanitize-v9
*)
echo '***' Invalid vendor \`${vendor}\': configuration \`$1\' not recognized 1>&2
exit 1
;;
esac
# verify that the os is known, if it exists.
case "${os}" in
aix* | aout | bout | bsd* | coff | ctix* | dynix* | esix* | hpux* | irix* \
| isc* | mach* | newsos* | nindy* | none | osf* | osf* | sco* \
| sunos* | sysv* | ultrix* | unos* | v88r* | vms* | vxworks* \
| unicos* | uts)
;;
# start-sanitize-v9
hal32 | hal64 | v7 | v9) ;;
# end-sanitize-v9
*)
echo '***' Invalid os \`${os}\': configuration \`$1\' not recognized 1>&2
exit 1
;;
esac
echo ${cpu}-${vendor}-${os}
|