1 | #! /bin/sh
|
---|
2 | # Configuration validation subroutine script, version 1.1.
|
---|
3 | # Copyright (C) 1991, 92, 93, 94, 95, 96, 1997 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
|
---|
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
|
---|
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., 59 Temple Place - Suite 330,
|
---|
21 | # Boston, MA 02111-1307, USA.
|
---|
22 |
|
---|
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.
|
---|
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
|
---|
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
|
---|
46 | # It is wrong to echo any other type of specification.
|
---|
47 |
|
---|
48 | if [ x$1 = x ]
|
---|
49 | then
|
---|
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
|
---|
55 | fi
|
---|
56 |
|
---|
57 | # First pass through any local machine types.
|
---|
58 | case $1 in
|
---|
59 | *local*)
|
---|
60 | echo $1
|
---|
61 | exit 0
|
---|
62 | ;;
|
---|
63 | *)
|
---|
64 | ;;
|
---|
65 | esac
|
---|
66 |
|
---|
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.
|
---|
69 | maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
|
---|
70 | case $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 | ;;
|
---|
81 | esac
|
---|
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.
|
---|
87 | case $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* | \
|
---|
96 | -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
|
---|
97 | -apple)
|
---|
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 | ;;
|
---|
108 | -sco4)
|
---|
109 | os=-sco3.2v4
|
---|
110 | basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
|
---|
111 | ;;
|
---|
112 | -sco3.2.[4-9]*)
|
---|
113 | os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
|
---|
114 | basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
|
---|
115 | ;;
|
---|
116 | -sco3.2v[4-9]*)
|
---|
117 | # Don't forget version if it is 3.2v4 or newer.
|
---|
118 | basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
|
---|
119 | ;;
|
---|
120 | -sco*)
|
---|
121 | os=-sco3.2v2
|
---|
122 | basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
|
---|
123 | ;;
|
---|
124 | -isc)
|
---|
125 | os=-isc2.2
|
---|
126 | basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
|
---|
127 | ;;
|
---|
128 | -clix*)
|
---|
129 | basic_machine=clipper-intergraph
|
---|
130 | ;;
|
---|
131 | -isc*)
|
---|
132 | basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
|
---|
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 | ;;
|
---|
146 | esac
|
---|
147 |
|
---|
148 | # Decode aliases for certain CPU-COMPANY combinations.
|
---|
149 | case $basic_machine in
|
---|
150 | # Recognize the basic CPU types without company name.
|
---|
151 | # Some are omitted here because they have special meanings below.
|
---|
152 | # GS: added x86_64-* to the list below, since configuring produced the following error without it
|
---|
153 | # checking host system type... Invalid configuration `x86_64-unknown-linux-gnu': machine `x86_64-unknown' not recognized
|
---|
154 | # in which case running make on the libjpeg package then failed with the error:
|
---|
155 | # ./libtool --mode=compile gcc -I/home/greenstone/gs3-svn-26Mar2018/gs2build/ext/xpdf-tools/linux/include -fPIC -I/home/greenstone/gs3-svn-26Mar2018/gs2build/ext/xpdf-tools/linux/include -I. -c ./jcapimin.c
|
---|
156 | # make: ./libtool: Command not found
|
---|
157 | # make: *** [jcapimin.lo] Error 127
|
---|
158 | # Error encountered running *make * stage of ./CASCADE-MAKE/LIBJPEG.sh
|
---|
159 | # The solution is taken from https://sourceforge.net/p/libjpeg/bugs/12/
|
---|
160 | tahoe | i860 | x86_64-* | m32r | m68k | m68000 | m88k | ns32k | arc | arm \
|
---|
161 | | arme[lb] | pyramid | mn10200 | mn10300 \
|
---|
162 | | tron | a29k | 580 | i960 | h8300 | hppa | hppa1.0 | hppa1.1 \
|
---|
163 | | alpha | alphaev5 | alphaev56 | we32k | ns16k | clipper \
|
---|
164 | | i370 | sh | powerpc | powerpcle | 1750a | dsp16xx | pdp11 \
|
---|
165 | | mips64 | mipsel | mips64el | mips64orion | mips64orionel \
|
---|
166 | | mipstx39 | mipstx39el \
|
---|
167 | | sparc | sparclet | sparclite | sparc64 | v850)
|
---|
168 | basic_machine=$basic_machine-unknown
|
---|
169 | ;;
|
---|
170 | # We use `pc' rather than `unknown'
|
---|
171 | # because (1) that's what they normally are, and
|
---|
172 | # (2) the word "unknown" tends to confuse beginning users.
|
---|
173 | i[3456]86)
|
---|
174 | basic_machine=$basic_machine-pc
|
---|
175 | ;;
|
---|
176 | # Object if more than one company name word.
|
---|
177 | *-*-*)
|
---|
178 | echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
|
---|
179 | exit 1
|
---|
180 | ;;
|
---|
181 | # Recognize the basic CPU types with company name.
|
---|
182 | vax-* | tahoe-* | i[3456]86-* | i860-* | m32r-* | m68k-* | m68000-* \
|
---|
183 | | m88k-* | sparc-* | ns32k-* | fx80-* | arc-* | arm-* | c[123]* \
|
---|
184 | | mips-* | pyramid-* | tron-* | a29k-* | romp-* | rs6000-* \
|
---|
185 | | power-* | none-* | 580-* | cray2-* | h8300-* | i960-* \
|
---|
186 | | xmp-* | ymp-* | hppa-* | hppa1.0-* | hppa1.1-* \
|
---|
187 | | alpha-* | alphaev5-* | alphaev56-* | we32k-* | cydra-* \
|
---|
188 | | ns16k-* | pn-* | np1-* | xps100-* | clipper-* | orion-* \
|
---|
189 | | sparclite-* | pdp11-* | sh-* | powerpc-* | powerpcle-* \
|
---|
190 | | sparc64-* | mips64-* | mipsel-* \
|
---|
191 | | mips64el-* | mips64orion-* | mips64orionel-* \
|
---|
192 | | mipstx39-* | mipstx39el-* \
|
---|
193 | | f301-*)
|
---|
194 | ;;
|
---|
195 | # Recognize the various machine names and aliases which stand
|
---|
196 | # for a CPU type and a company and sometimes even an OS.
|
---|
197 | 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
|
---|
198 | basic_machine=m68000-att
|
---|
199 | ;;
|
---|
200 | 3b*)
|
---|
201 | basic_machine=we32k-att
|
---|
202 | ;;
|
---|
203 | alliant | fx80)
|
---|
204 | basic_machine=fx80-alliant
|
---|
205 | ;;
|
---|
206 | altos | altos3068)
|
---|
207 | basic_machine=m68k-altos
|
---|
208 | ;;
|
---|
209 | am29k)
|
---|
210 | basic_machine=a29k-none
|
---|
211 | os=-bsd
|
---|
212 | ;;
|
---|
213 | amdahl)
|
---|
214 | basic_machine=580-amdahl
|
---|
215 | os=-sysv
|
---|
216 | ;;
|
---|
217 | amiga | amiga-*)
|
---|
218 | basic_machine=m68k-cbm
|
---|
219 | ;;
|
---|
220 | amigaos | amigados)
|
---|
221 | basic_machine=m68k-cbm
|
---|
222 | os=-amigaos
|
---|
223 | ;;
|
---|
224 | amigaunix | amix)
|
---|
225 | basic_machine=m68k-cbm
|
---|
226 | os=-sysv4
|
---|
227 | ;;
|
---|
228 | apollo68)
|
---|
229 | basic_machine=m68k-apollo
|
---|
230 | os=-sysv
|
---|
231 | ;;
|
---|
232 | aux)
|
---|
233 | basic_machine=m68k-apple
|
---|
234 | os=-aux
|
---|
235 | ;;
|
---|
236 | balance)
|
---|
237 | basic_machine=ns32k-sequent
|
---|
238 | os=-dynix
|
---|
239 | ;;
|
---|
240 | convex-c1)
|
---|
241 | basic_machine=c1-convex
|
---|
242 | os=-bsd
|
---|
243 | ;;
|
---|
244 | convex-c2)
|
---|
245 | basic_machine=c2-convex
|
---|
246 | os=-bsd
|
---|
247 | ;;
|
---|
248 | convex-c32)
|
---|
249 | basic_machine=c32-convex
|
---|
250 | os=-bsd
|
---|
251 | ;;
|
---|
252 | convex-c34)
|
---|
253 | basic_machine=c34-convex
|
---|
254 | os=-bsd
|
---|
255 | ;;
|
---|
256 | convex-c38)
|
---|
257 | basic_machine=c38-convex
|
---|
258 | os=-bsd
|
---|
259 | ;;
|
---|
260 | cray | ymp)
|
---|
261 | basic_machine=ymp-cray
|
---|
262 | os=-unicos
|
---|
263 | ;;
|
---|
264 | cray2)
|
---|
265 | basic_machine=cray2-cray
|
---|
266 | os=-unicos
|
---|
267 | ;;
|
---|
268 | [ctj]90-cray)
|
---|
269 | basic_machine=c90-cray
|
---|
270 | os=-unicos
|
---|
271 | ;;
|
---|
272 | crds | unos)
|
---|
273 | basic_machine=m68k-crds
|
---|
274 | ;;
|
---|
275 | da30 | da30-*)
|
---|
276 | basic_machine=m68k-da30
|
---|
277 | ;;
|
---|
278 | decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
|
---|
279 | basic_machine=mips-dec
|
---|
280 | ;;
|
---|
281 | delta | 3300 | motorola-3300 | motorola-delta \
|
---|
282 | | 3300-motorola | delta-motorola)
|
---|
283 | basic_machine=m68k-motorola
|
---|
284 | ;;
|
---|
285 | delta88)
|
---|
286 | basic_machine=m88k-motorola
|
---|
287 | os=-sysv3
|
---|
288 | ;;
|
---|
289 | dpx20 | dpx20-*)
|
---|
290 | basic_machine=rs6000-bull
|
---|
291 | os=-bosx
|
---|
292 | ;;
|
---|
293 | dpx2* | dpx2*-bull)
|
---|
294 | basic_machine=m68k-bull
|
---|
295 | os=-sysv3
|
---|
296 | ;;
|
---|
297 | ebmon29k)
|
---|
298 | basic_machine=a29k-amd
|
---|
299 | os=-ebmon
|
---|
300 | ;;
|
---|
301 | elxsi)
|
---|
302 | basic_machine=elxsi-elxsi
|
---|
303 | os=-bsd
|
---|
304 | ;;
|
---|
305 | encore | umax | mmax)
|
---|
306 | basic_machine=ns32k-encore
|
---|
307 | ;;
|
---|
308 | fx2800)
|
---|
309 | basic_machine=i860-alliant
|
---|
310 | ;;
|
---|
311 | genix)
|
---|
312 | basic_machine=ns32k-ns
|
---|
313 | ;;
|
---|
314 | gmicro)
|
---|
315 | basic_machine=tron-gmicro
|
---|
316 | os=-sysv
|
---|
317 | ;;
|
---|
318 | h3050r* | hiux*)
|
---|
319 | basic_machine=hppa1.1-hitachi
|
---|
320 | os=-hiuxwe2
|
---|
321 | ;;
|
---|
322 | h8300hms)
|
---|
323 | basic_machine=h8300-hitachi
|
---|
324 | os=-hms
|
---|
325 | ;;
|
---|
326 | harris)
|
---|
327 | basic_machine=m88k-harris
|
---|
328 | os=-sysv3
|
---|
329 | ;;
|
---|
330 | hp300-*)
|
---|
331 | basic_machine=m68k-hp
|
---|
332 | ;;
|
---|
333 | hp300bsd)
|
---|
334 | basic_machine=m68k-hp
|
---|
335 | os=-bsd
|
---|
336 | ;;
|
---|
337 | hp300hpux)
|
---|
338 | basic_machine=m68k-hp
|
---|
339 | os=-hpux
|
---|
340 | ;;
|
---|
341 | hp9k2[0-9][0-9] | hp9k31[0-9])
|
---|
342 | basic_machine=m68000-hp
|
---|
343 | ;;
|
---|
344 | hp9k3[2-9][0-9])
|
---|
345 | basic_machine=m68k-hp
|
---|
346 | ;;
|
---|
347 | hp9k7[0-9][0-9] | hp7[0-9][0-9] | hp9k8[0-9]7 | hp8[0-9]7)
|
---|
348 | basic_machine=hppa1.1-hp
|
---|
349 | ;;
|
---|
350 | hp9k8[0-9][0-9] | hp8[0-9][0-9])
|
---|
351 | basic_machine=hppa1.0-hp
|
---|
352 | ;;
|
---|
353 | hppa-next)
|
---|
354 | os=-nextstep3
|
---|
355 | ;;
|
---|
356 | i370-ibm* | ibm*)
|
---|
357 | basic_machine=i370-ibm
|
---|
358 | os=-mvs
|
---|
359 | ;;
|
---|
360 | # I'm not sure what "Sysv32" means. Should this be sysv3.2?
|
---|
361 | i[3456]86v32)
|
---|
362 | basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
|
---|
363 | os=-sysv32
|
---|
364 | ;;
|
---|
365 | i[3456]86v4*)
|
---|
366 | basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
|
---|
367 | os=-sysv4
|
---|
368 | ;;
|
---|
369 | i[3456]86v)
|
---|
370 | basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
|
---|
371 | os=-sysv
|
---|
372 | ;;
|
---|
373 | i[3456]86sol2)
|
---|
374 | basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
|
---|
375 | os=-solaris2
|
---|
376 | ;;
|
---|
377 | iris | iris4d)
|
---|
378 | basic_machine=mips-sgi
|
---|
379 | case $os in
|
---|
380 | -irix*)
|
---|
381 | ;;
|
---|
382 | *)
|
---|
383 | os=-irix4
|
---|
384 | ;;
|
---|
385 | esac
|
---|
386 | ;;
|
---|
387 | isi68 | isi)
|
---|
388 | basic_machine=m68k-isi
|
---|
389 | os=-sysv
|
---|
390 | ;;
|
---|
391 | m88k-omron*)
|
---|
392 | basic_machine=m88k-omron
|
---|
393 | ;;
|
---|
394 | magnum | m3230)
|
---|
395 | basic_machine=mips-mips
|
---|
396 | os=-sysv
|
---|
397 | ;;
|
---|
398 | merlin)
|
---|
399 | basic_machine=ns32k-utek
|
---|
400 | os=-sysv
|
---|
401 | ;;
|
---|
402 | miniframe)
|
---|
403 | basic_machine=m68000-convergent
|
---|
404 | ;;
|
---|
405 | mipsel*-linux*)
|
---|
406 | basic_machine=mipsel-unknown
|
---|
407 | os=-linux-gnu
|
---|
408 | ;;
|
---|
409 | mips*-linux*)
|
---|
410 | basic_machine=mips-unknown
|
---|
411 | os=-linux-gnu
|
---|
412 | ;;
|
---|
413 | mips3*-*)
|
---|
414 | basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
|
---|
415 | ;;
|
---|
416 | mips3*)
|
---|
417 | basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
|
---|
418 | ;;
|
---|
419 | ncr3000)
|
---|
420 | basic_machine=i486-ncr
|
---|
421 | os=-sysv4
|
---|
422 | ;;
|
---|
423 | news | news700 | news800 | news900)
|
---|
424 | basic_machine=m68k-sony
|
---|
425 | os=-newsos
|
---|
426 | ;;
|
---|
427 | news1000)
|
---|
428 | basic_machine=m68030-sony
|
---|
429 | os=-newsos
|
---|
430 | ;;
|
---|
431 | news-3600 | risc-news)
|
---|
432 | basic_machine=mips-sony
|
---|
433 | os=-newsos
|
---|
434 | ;;
|
---|
435 | next | m*-next )
|
---|
436 | basic_machine=m68k-next
|
---|
437 | case $os in
|
---|
438 | -nextstep* )
|
---|
439 | ;;
|
---|
440 | -ns2*)
|
---|
441 | os=-nextstep2
|
---|
442 | ;;
|
---|
443 | *)
|
---|
444 | os=-nextstep3
|
---|
445 | ;;
|
---|
446 | esac
|
---|
447 | ;;
|
---|
448 | nh3000)
|
---|
449 | basic_machine=m68k-harris
|
---|
450 | os=-cxux
|
---|
451 | ;;
|
---|
452 | nh[45]000)
|
---|
453 | basic_machine=m88k-harris
|
---|
454 | os=-cxux
|
---|
455 | ;;
|
---|
456 | nindy960)
|
---|
457 | basic_machine=i960-intel
|
---|
458 | os=-nindy
|
---|
459 | ;;
|
---|
460 | np1)
|
---|
461 | basic_machine=np1-gould
|
---|
462 | ;;
|
---|
463 | pa-hitachi)
|
---|
464 | basic_machine=hppa1.1-hitachi
|
---|
465 | os=-hiuxwe2
|
---|
466 | ;;
|
---|
467 | paragon)
|
---|
468 | basic_machine=i860-intel
|
---|
469 | os=-osf
|
---|
470 | ;;
|
---|
471 | pbd)
|
---|
472 | basic_machine=sparc-tti
|
---|
473 | ;;
|
---|
474 | pbb)
|
---|
475 | basic_machine=m68k-tti
|
---|
476 | ;;
|
---|
477 | pc532 | pc532-*)
|
---|
478 | basic_machine=ns32k-pc532
|
---|
479 | ;;
|
---|
480 | pentium | p5)
|
---|
481 | basic_machine=i586-intel
|
---|
482 | ;;
|
---|
483 | pentiumpro | p6)
|
---|
484 | basic_machine=i686-intel
|
---|
485 | ;;
|
---|
486 | pentium-* | p5-*)
|
---|
487 | basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
|
---|
488 | ;;
|
---|
489 | pentiumpro-* | p6-*)
|
---|
490 | basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
|
---|
491 | ;;
|
---|
492 | k5)
|
---|
493 | # We don't have specific support for AMD's K5 yet, so just call it a Pentium
|
---|
494 | basic_machine=i586-amd
|
---|
495 | ;;
|
---|
496 | nexen)
|
---|
497 | # We don't have specific support for Nexgen yet, so just call it a Pentium
|
---|
498 | basic_machine=i586-nexgen
|
---|
499 | ;;
|
---|
500 | pn)
|
---|
501 | basic_machine=pn-gould
|
---|
502 | ;;
|
---|
503 | power) basic_machine=rs6000-ibm
|
---|
504 | ;;
|
---|
505 | ppc) basic_machine=powerpc-unknown
|
---|
506 | ;;
|
---|
507 | ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
|
---|
508 | ;;
|
---|
509 | ppcle | powerpclittle | ppc-le | powerpc-little)
|
---|
510 | basic_machine=powerpcle-unknown
|
---|
511 | ;;
|
---|
512 | ppcle-* | powerpclittle-*)
|
---|
513 | basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
|
---|
514 | ;;
|
---|
515 | ps2)
|
---|
516 | basic_machine=i386-ibm
|
---|
517 | ;;
|
---|
518 | rm[46]00)
|
---|
519 | basic_machine=mips-siemens
|
---|
520 | ;;
|
---|
521 | rtpc | rtpc-*)
|
---|
522 | basic_machine=romp-ibm
|
---|
523 | ;;
|
---|
524 | sequent)
|
---|
525 | basic_machine=i386-sequent
|
---|
526 | ;;
|
---|
527 | sh)
|
---|
528 | basic_machine=sh-hitachi
|
---|
529 | os=-hms
|
---|
530 | ;;
|
---|
531 | sps7)
|
---|
532 | basic_machine=m68k-bull
|
---|
533 | os=-sysv2
|
---|
534 | ;;
|
---|
535 | spur)
|
---|
536 | basic_machine=spur-unknown
|
---|
537 | ;;
|
---|
538 | sun2)
|
---|
539 | basic_machine=m68000-sun
|
---|
540 | ;;
|
---|
541 | sun2os3)
|
---|
542 | basic_machine=m68000-sun
|
---|
543 | os=-sunos3
|
---|
544 | ;;
|
---|
545 | sun2os4)
|
---|
546 | basic_machine=m68000-sun
|
---|
547 | os=-sunos4
|
---|
548 | ;;
|
---|
549 | sun3os3)
|
---|
550 | basic_machine=m68k-sun
|
---|
551 | os=-sunos3
|
---|
552 | ;;
|
---|
553 | sun3os4)
|
---|
554 | basic_machine=m68k-sun
|
---|
555 | os=-sunos4
|
---|
556 | ;;
|
---|
557 | sun4os3)
|
---|
558 | basic_machine=sparc-sun
|
---|
559 | os=-sunos3
|
---|
560 | ;;
|
---|
561 | sun4os4)
|
---|
562 | basic_machine=sparc-sun
|
---|
563 | os=-sunos4
|
---|
564 | ;;
|
---|
565 | sun4sol2)
|
---|
566 | basic_machine=sparc-sun
|
---|
567 | os=-solaris2
|
---|
568 | ;;
|
---|
569 | sun3 | sun3-*)
|
---|
570 | basic_machine=m68k-sun
|
---|
571 | ;;
|
---|
572 | sun4)
|
---|
573 | basic_machine=sparc-sun
|
---|
574 | ;;
|
---|
575 | sun386 | sun386i | roadrunner)
|
---|
576 | basic_machine=i386-sun
|
---|
577 | ;;
|
---|
578 | symmetry)
|
---|
579 | basic_machine=i386-sequent
|
---|
580 | os=-dynix
|
---|
581 | ;;
|
---|
582 | tx39)
|
---|
583 | basic_machine=mipstx39-unknown
|
---|
584 | ;;
|
---|
585 | tx39el)
|
---|
586 | basic_machine=mipstx39el-unknown
|
---|
587 | ;;
|
---|
588 | tower | tower-32)
|
---|
589 | basic_machine=m68k-ncr
|
---|
590 | ;;
|
---|
591 | udi29k)
|
---|
592 | basic_machine=a29k-amd
|
---|
593 | os=-udi
|
---|
594 | ;;
|
---|
595 | ultra3)
|
---|
596 | basic_machine=a29k-nyu
|
---|
597 | os=-sym1
|
---|
598 | ;;
|
---|
599 | vaxv)
|
---|
600 | basic_machine=vax-dec
|
---|
601 | os=-sysv
|
---|
602 | ;;
|
---|
603 | vms)
|
---|
604 | basic_machine=vax-dec
|
---|
605 | os=-vms
|
---|
606 | ;;
|
---|
607 | vpp*|vx|vx-*)
|
---|
608 | basic_machine=f301-fujitsu
|
---|
609 | ;;
|
---|
610 | vxworks960)
|
---|
611 | basic_machine=i960-wrs
|
---|
612 | os=-vxworks
|
---|
613 | ;;
|
---|
614 | vxworks68)
|
---|
615 | basic_machine=m68k-wrs
|
---|
616 | os=-vxworks
|
---|
617 | ;;
|
---|
618 | vxworks29k)
|
---|
619 | basic_machine=a29k-wrs
|
---|
620 | os=-vxworks
|
---|
621 | ;;
|
---|
622 | xmp)
|
---|
623 | basic_machine=xmp-cray
|
---|
624 | os=-unicos
|
---|
625 | ;;
|
---|
626 | xps | xps100)
|
---|
627 | basic_machine=xps100-honeywell
|
---|
628 | ;;
|
---|
629 | none)
|
---|
630 | basic_machine=none-none
|
---|
631 | os=-none
|
---|
632 | ;;
|
---|
633 |
|
---|
634 | # Here we handle the default manufacturer of certain CPU types. It is in
|
---|
635 | # some cases the only manufacturer, in others, it is the most popular.
|
---|
636 | mips)
|
---|
637 | if [ x$os = x-linux-gnu ]; then
|
---|
638 | basic_machine=mips-unknown
|
---|
639 | else
|
---|
640 | basic_machine=mips-mips
|
---|
641 | fi
|
---|
642 | ;;
|
---|
643 | romp)
|
---|
644 | basic_machine=romp-ibm
|
---|
645 | ;;
|
---|
646 | rs6000)
|
---|
647 | basic_machine=rs6000-ibm
|
---|
648 | ;;
|
---|
649 | vax)
|
---|
650 | basic_machine=vax-dec
|
---|
651 | ;;
|
---|
652 | pdp11)
|
---|
653 | basic_machine=pdp11-dec
|
---|
654 | ;;
|
---|
655 | we32k)
|
---|
656 | basic_machine=we32k-att
|
---|
657 | ;;
|
---|
658 | sparc)
|
---|
659 | basic_machine=sparc-sun
|
---|
660 | ;;
|
---|
661 | cydra)
|
---|
662 | basic_machine=cydra-cydrome
|
---|
663 | ;;
|
---|
664 | orion)
|
---|
665 | basic_machine=orion-highlevel
|
---|
666 | ;;
|
---|
667 | orion105)
|
---|
668 | basic_machine=clipper-highlevel
|
---|
669 | ;;
|
---|
670 | *)
|
---|
671 | echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
|
---|
672 | exit 1
|
---|
673 | ;;
|
---|
674 | esac
|
---|
675 |
|
---|
676 | # Here we canonicalize certain aliases for manufacturers.
|
---|
677 | case $basic_machine in
|
---|
678 | *-digital*)
|
---|
679 | basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'`
|
---|
680 | ;;
|
---|
681 | *-commodore*)
|
---|
682 | basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'`
|
---|
683 | ;;
|
---|
684 | *)
|
---|
685 | ;;
|
---|
686 | esac
|
---|
687 |
|
---|
688 | # Decode manufacturer-specific aliases for certain operating systems.
|
---|
689 |
|
---|
690 | if [ x"$os" != x"" ]
|
---|
691 | then
|
---|
692 | case $os in
|
---|
693 | # First match some system type aliases
|
---|
694 | # that might get confused with valid system types.
|
---|
695 | # -solaris* is a basic system type, with this one exception.
|
---|
696 | -solaris1 | -solaris1.*)
|
---|
697 | os=`echo $os | sed -e 's|solaris1|sunos4|'`
|
---|
698 | ;;
|
---|
699 | -solaris)
|
---|
700 | os=-solaris2
|
---|
701 | ;;
|
---|
702 | -svr4*)
|
---|
703 | os=-sysv4
|
---|
704 | ;;
|
---|
705 | -unixware*)
|
---|
706 | os=-sysv4.2uw
|
---|
707 | ;;
|
---|
708 | -gnu/linux*)
|
---|
709 | os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
|
---|
710 | ;;
|
---|
711 | # First accept the basic system types.
|
---|
712 | # The portable systems comes first.
|
---|
713 | # Each alternative MUST END IN A *, to match a version number.
|
---|
714 | # -sysv* is not here because it comes later, after sysvr4.
|
---|
715 | -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
|
---|
716 | | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
|
---|
717 | | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
|
---|
718 | | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
|
---|
719 | | -aos* \
|
---|
720 | | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
|
---|
721 | | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
|
---|
722 | | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \
|
---|
723 | | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* \
|
---|
724 | | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
|
---|
725 | | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
|
---|
726 | | -cygwin32* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
|
---|
727 | | -mingw32* | -linux-gnu* | -uxpv*)
|
---|
728 | # Remember, each alternative MUST END IN *, to match a version number.
|
---|
729 | ;;
|
---|
730 | -linux*)
|
---|
731 | os=`echo $os | sed -e 's|linux|linux-gnu|'`
|
---|
732 | ;;
|
---|
733 | -sunos5*)
|
---|
734 | os=`echo $os | sed -e 's|sunos5|solaris2|'`
|
---|
735 | ;;
|
---|
736 | -sunos6*)
|
---|
737 | os=`echo $os | sed -e 's|sunos6|solaris3|'`
|
---|
738 | ;;
|
---|
739 | -osfrose*)
|
---|
740 | os=-osfrose
|
---|
741 | ;;
|
---|
742 | -osf*)
|
---|
743 | os=-osf
|
---|
744 | ;;
|
---|
745 | -utek*)
|
---|
746 | os=-bsd
|
---|
747 | ;;
|
---|
748 | -dynix*)
|
---|
749 | os=-bsd
|
---|
750 | ;;
|
---|
751 | -acis*)
|
---|
752 | os=-aos
|
---|
753 | ;;
|
---|
754 | -ctix* | -uts*)
|
---|
755 | os=-sysv
|
---|
756 | ;;
|
---|
757 | -ns2 )
|
---|
758 | os=-nextstep2
|
---|
759 | ;;
|
---|
760 | # Preserve the version number of sinix5.
|
---|
761 | -sinix5.*)
|
---|
762 | os=`echo $os | sed -e 's|sinix|sysv|'`
|
---|
763 | ;;
|
---|
764 | -sinix*)
|
---|
765 | os=-sysv4
|
---|
766 | ;;
|
---|
767 | -triton*)
|
---|
768 | os=-sysv3
|
---|
769 | ;;
|
---|
770 | -oss*)
|
---|
771 | os=-sysv3
|
---|
772 | ;;
|
---|
773 | -svr4)
|
---|
774 | os=-sysv4
|
---|
775 | ;;
|
---|
776 | -svr3)
|
---|
777 | os=-sysv3
|
---|
778 | ;;
|
---|
779 | -sysvr4)
|
---|
780 | os=-sysv4
|
---|
781 | ;;
|
---|
782 | # This must come after -sysvr4.
|
---|
783 | -sysv*)
|
---|
784 | ;;
|
---|
785 | -xenix)
|
---|
786 | os=-xenix
|
---|
787 | ;;
|
---|
788 | -none)
|
---|
789 | ;;
|
---|
790 | *)
|
---|
791 | # Get rid of the `-' at the beginning of $os.
|
---|
792 | os=`echo $os | sed 's/[^-]*-//'`
|
---|
793 | echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2
|
---|
794 | exit 1
|
---|
795 | ;;
|
---|
796 | esac
|
---|
797 | else
|
---|
798 |
|
---|
799 | # Here we handle the default operating systems that come with various machines.
|
---|
800 | # The value should be what the vendor currently ships out the door with their
|
---|
801 | # machine or put another way, the most popular os provided with the machine.
|
---|
802 |
|
---|
803 | # Note that if you're going to try to match "-MANUFACTURER" here (say,
|
---|
804 | # "-sun"), then you have to tell the case statement up towards the top
|
---|
805 | # that MANUFACTURER isn't an operating system. Otherwise, code above
|
---|
806 | # will signal an error saying that MANUFACTURER isn't an operating
|
---|
807 | # system, and we'll never get to this point.
|
---|
808 |
|
---|
809 | case $basic_machine in
|
---|
810 | *-acorn)
|
---|
811 | os=-riscix1.2
|
---|
812 | ;;
|
---|
813 | arm*-semi)
|
---|
814 | os=-aout
|
---|
815 | ;;
|
---|
816 | pdp11-*)
|
---|
817 | os=-none
|
---|
818 | ;;
|
---|
819 | *-dec | vax-*)
|
---|
820 | os=-ultrix4.2
|
---|
821 | ;;
|
---|
822 | m68*-apollo)
|
---|
823 | os=-domain
|
---|
824 | ;;
|
---|
825 | i386-sun)
|
---|
826 | os=-sunos4.0.2
|
---|
827 | ;;
|
---|
828 | m68000-sun)
|
---|
829 | os=-sunos3
|
---|
830 | # This also exists in the configure program, but was not the
|
---|
831 | # default.
|
---|
832 | # os=-sunos4
|
---|
833 | ;;
|
---|
834 | *-tti) # must be before sparc entry or we get the wrong os.
|
---|
835 | os=-sysv3
|
---|
836 | ;;
|
---|
837 | sparc-* | *-sun)
|
---|
838 | os=-sunos4.1.1
|
---|
839 | ;;
|
---|
840 | *-ibm)
|
---|
841 | os=-aix
|
---|
842 | ;;
|
---|
843 | *-hp)
|
---|
844 | os=-hpux
|
---|
845 | ;;
|
---|
846 | *-hitachi)
|
---|
847 | os=-hiux
|
---|
848 | ;;
|
---|
849 | i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent)
|
---|
850 | os=-sysv
|
---|
851 | ;;
|
---|
852 | *-cbm)
|
---|
853 | os=-amigaos
|
---|
854 | ;;
|
---|
855 | *-dg)
|
---|
856 | os=-dgux
|
---|
857 | ;;
|
---|
858 | *-dolphin)
|
---|
859 | os=-sysv3
|
---|
860 | ;;
|
---|
861 | m68k-ccur)
|
---|
862 | os=-rtu
|
---|
863 | ;;
|
---|
864 | m88k-omron*)
|
---|
865 | os=-luna
|
---|
866 | ;;
|
---|
867 | *-next )
|
---|
868 | os=-nextstep
|
---|
869 | ;;
|
---|
870 | *-sequent)
|
---|
871 | os=-ptx
|
---|
872 | ;;
|
---|
873 | *-crds)
|
---|
874 | os=-unos
|
---|
875 | ;;
|
---|
876 | *-ns)
|
---|
877 | os=-genix
|
---|
878 | ;;
|
---|
879 | i370-*)
|
---|
880 | os=-mvs
|
---|
881 | ;;
|
---|
882 | *-next)
|
---|
883 | os=-nextstep3
|
---|
884 | ;;
|
---|
885 | *-gould)
|
---|
886 | os=-sysv
|
---|
887 | ;;
|
---|
888 | *-highlevel)
|
---|
889 | os=-bsd
|
---|
890 | ;;
|
---|
891 | *-encore)
|
---|
892 | os=-bsd
|
---|
893 | ;;
|
---|
894 | *-sgi)
|
---|
895 | os=-irix
|
---|
896 | ;;
|
---|
897 | *-siemens)
|
---|
898 | os=-sysv4
|
---|
899 | ;;
|
---|
900 | *-masscomp)
|
---|
901 | os=-rtu
|
---|
902 | ;;
|
---|
903 | f301-fujitsu)
|
---|
904 | os=-uxpv
|
---|
905 | ;;
|
---|
906 | *)
|
---|
907 | os=-none
|
---|
908 | ;;
|
---|
909 | esac
|
---|
910 | fi
|
---|
911 |
|
---|
912 | # Here we handle the case where we know the os, and the CPU type, but not the
|
---|
913 | # manufacturer. We pick the logical manufacturer.
|
---|
914 | vendor=unknown
|
---|
915 | case $basic_machine in
|
---|
916 | *-unknown)
|
---|
917 | case $os in
|
---|
918 | -riscix*)
|
---|
919 | vendor=acorn
|
---|
920 | ;;
|
---|
921 | -sunos*)
|
---|
922 | vendor=sun
|
---|
923 | ;;
|
---|
924 | -aix*)
|
---|
925 | vendor=ibm
|
---|
926 | ;;
|
---|
927 | -hpux*)
|
---|
928 | vendor=hp
|
---|
929 | ;;
|
---|
930 | -hiux*)
|
---|
931 | vendor=hitachi
|
---|
932 | ;;
|
---|
933 | -unos*)
|
---|
934 | vendor=crds
|
---|
935 | ;;
|
---|
936 | -dgux*)
|
---|
937 | vendor=dg
|
---|
938 | ;;
|
---|
939 | -luna*)
|
---|
940 | vendor=omron
|
---|
941 | ;;
|
---|
942 | -genix*)
|
---|
943 | vendor=ns
|
---|
944 | ;;
|
---|
945 | -mvs*)
|
---|
946 | vendor=ibm
|
---|
947 | ;;
|
---|
948 | -ptx*)
|
---|
949 | vendor=sequent
|
---|
950 | ;;
|
---|
951 | -vxsim* | -vxworks*)
|
---|
952 | vendor=wrs
|
---|
953 | ;;
|
---|
954 | -aux*)
|
---|
955 | vendor=apple
|
---|
956 | ;;
|
---|
957 | esac
|
---|
958 | basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
|
---|
959 | ;;
|
---|
960 | esac
|
---|
961 |
|
---|
962 | echo $basic_machine$os
|
---|