1 |
|
#! /bin/sh |
2 |
< |
# Configuration validation subroutine script, version 1.1. |
3 |
< |
# Copyright (C) 1991, 92-97, 1998, 1999 Free Software Foundation, Inc. |
2 |
> |
# Configuration validation subroutine script. |
3 |
> |
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001 |
4 |
> |
# Free Software Foundation, Inc. |
5 |
> |
|
6 |
> |
timestamp='2001-04-20' |
7 |
> |
|
8 |
|
# This file is (in principle) common to ALL GNU software. |
9 |
|
# The presence of a machine in this file suggests that SOME GNU software |
10 |
|
# can handle that machine. It does not imply ALL GNU software can. |
29 |
|
# configuration script generated by Autoconf, you may include it under |
30 |
|
# the same distribution terms that you use for the rest of that program. |
31 |
|
|
32 |
+ |
# Please send patches to <config-patches@gnu.org>. |
33 |
+ |
# |
34 |
|
# Configuration subroutine to validate and canonicalize a configuration type. |
35 |
|
# Supply the specified configuration type as an argument. |
36 |
|
# If it is invalid, we print an error message on stderr and exit with code 1. |
51 |
|
# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM |
52 |
|
# It is wrong to echo any other type of specification. |
53 |
|
|
54 |
< |
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 |
54 |
> |
me=`echo "$0" | sed -e 's,.*/,,'` |
55 |
|
|
56 |
< |
# First pass through any local machine types. |
57 |
< |
case $1 in |
58 |
< |
*local*) |
59 |
< |
echo $1 |
60 |
< |
exit 0 |
61 |
< |
;; |
62 |
< |
*) |
63 |
< |
;; |
56 |
> |
usage="\ |
57 |
> |
Usage: $0 [OPTION] CPU-MFR-OPSYS |
58 |
> |
$0 [OPTION] ALIAS |
59 |
> |
|
60 |
> |
Canonicalize a configuration name. |
61 |
> |
|
62 |
> |
Operation modes: |
63 |
> |
-h, --help print this help, then exit |
64 |
> |
-t, --time-stamp print date of last modification, then exit |
65 |
> |
-v, --version print version number, then exit |
66 |
> |
|
67 |
> |
Report bugs and patches to <config-patches@gnu.org>." |
68 |
> |
|
69 |
> |
version="\ |
70 |
> |
GNU config.sub ($timestamp) |
71 |
> |
|
72 |
> |
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001 |
73 |
> |
Free Software Foundation, Inc. |
74 |
> |
|
75 |
> |
This is free software; see the source for copying conditions. There is NO |
76 |
> |
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." |
77 |
> |
|
78 |
> |
help=" |
79 |
> |
Try \`$me --help' for more information." |
80 |
> |
|
81 |
> |
# Parse command line |
82 |
> |
while test $# -gt 0 ; do |
83 |
> |
case $1 in |
84 |
> |
--time-stamp | --time* | -t ) |
85 |
> |
echo "$timestamp" ; exit 0 ;; |
86 |
> |
--version | -v ) |
87 |
> |
echo "$version" ; exit 0 ;; |
88 |
> |
--help | --h* | -h ) |
89 |
> |
echo "$usage"; exit 0 ;; |
90 |
> |
-- ) # Stop option processing |
91 |
> |
shift; break ;; |
92 |
> |
- ) # Use stdin as input. |
93 |
> |
break ;; |
94 |
> |
-* ) |
95 |
> |
echo "$me: invalid option $1$help" |
96 |
> |
exit 1 ;; |
97 |
> |
|
98 |
> |
*local*) |
99 |
> |
# First pass through any local machine types. |
100 |
> |
echo $1 |
101 |
> |
exit 0;; |
102 |
> |
|
103 |
> |
* ) |
104 |
> |
break ;; |
105 |
> |
esac |
106 |
> |
done |
107 |
> |
|
108 |
> |
case $# in |
109 |
> |
0) echo "$me: missing argument$help" >&2 |
110 |
> |
exit 1;; |
111 |
> |
1) ;; |
112 |
> |
*) echo "$me: too many arguments$help" >&2 |
113 |
> |
exit 1;; |
114 |
|
esac |
115 |
|
|
116 |
|
# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). |
117 |
|
# Here we must recognize all the valid KERNEL-OS combinations. |
118 |
|
maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` |
119 |
|
case $maybe_os in |
120 |
< |
linux-gnu*) |
120 |
> |
nto-qnx* | linux-gnu* | storm-chaos* | os2-emx*) |
121 |
|
os=-$maybe_os |
122 |
|
basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` |
123 |
|
;; |
143 |
|
-convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ |
144 |
|
-c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ |
145 |
|
-harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ |
146 |
< |
-apple) |
146 |
> |
-apple | -axis) |
147 |
|
os= |
148 |
|
basic_machine=$1 |
149 |
|
;; |
154 |
|
-scout) |
155 |
|
;; |
156 |
|
-wrs) |
157 |
< |
os=vxworks |
157 |
> |
os=-vxworks |
158 |
|
basic_machine=$1 |
159 |
|
;; |
160 |
|
-hiux*) |
205 |
|
-psos*) |
206 |
|
os=-psos |
207 |
|
;; |
208 |
+ |
-mint | -mint[0-9]*) |
209 |
+ |
basic_machine=m68k-atari |
210 |
+ |
os=-mint |
211 |
+ |
;; |
212 |
|
esac |
213 |
|
|
214 |
|
# Decode aliases for certain CPU-COMPANY combinations. |
215 |
|
case $basic_machine in |
216 |
|
# Recognize the basic CPU types without company name. |
217 |
|
# Some are omitted here because they have special meanings below. |
218 |
< |
tahoe | i860 | m32r | m68k | m68000 | m88k | ns32k | arc | arm \ |
219 |
< |
| arme[lb] | pyramid | mn10200 | mn10300 | tron | a29k \ |
218 |
> |
tahoe | i860 | ia64 | m32r | m68k | m68000 | m88k | ns32k | arc \ |
219 |
> |
| arm | arme[lb] | arm[bl]e | armv[2345] | armv[345][lb] | strongarm | xscale \ |
220 |
> |
| pyramid | mn10200 | mn10300 | tron | a29k \ |
221 |
|
| 580 | i960 | h8300 \ |
222 |
+ |
| x86 | ppcbe | mipsbe | mipsle | shbe | shle \ |
223 |
|
| hppa | hppa1.0 | hppa1.1 | hppa2.0 | hppa2.0w | hppa2.0n \ |
224 |
< |
| alpha | alphaev[4-7] | alphaev56 | alphapca5[67] \ |
225 |
< |
| we32k | ns16k | clipper | i370 | sh | powerpc | powerpcle \ |
226 |
< |
| 1750a | dsp16xx | pdp11 | mips16 | mips64 | mipsel | mips64el \ |
224 |
> |
| hppa64 \ |
225 |
> |
| alpha | alphaev[4-8] | alphaev56 | alphapca5[67] \ |
226 |
> |
| alphaev6[78] \ |
227 |
> |
| we32k | ns16k | clipper | i370 | sh | sh[34] \ |
228 |
> |
| powerpc | powerpcle \ |
229 |
> |
| 1750a | dsp16xx | pdp10 | pdp11 \ |
230 |
> |
| mips16 | mips64 | mipsel | mips64el \ |
231 |
|
| mips64orion | mips64orionel | mipstx39 | mipstx39el \ |
232 |
|
| mips64vr4300 | mips64vr4300el | mips64vr4100 | mips64vr4100el \ |
233 |
< |
| mips64vr5000 | miprs64vr5000el \ |
234 |
< |
| sparc | sparclet | sparclite | sparc64 | sparcv9 | v850 | c4x \ |
235 |
< |
| thumb | d10v) |
233 |
> |
| mips64vr5000 | miprs64vr5000el | mcore | s390 | s390x \ |
234 |
> |
| sparc | sparclet | sparclite | sparc64 | sparcv9 | sparcv9b \ |
235 |
> |
| v850 | c4x \ |
236 |
> |
| thumb | d10v | d30v | fr30 | avr | openrisc | tic80 \ |
237 |
> |
| pj | pjl | h8500) |
238 |
> |
basic_machine=$basic_machine-unknown |
239 |
> |
;; |
240 |
> |
m6811 | m68hc11 | m6812 | m68hc12) |
241 |
> |
# Motorola 68HC11/12. |
242 |
|
basic_machine=$basic_machine-unknown |
243 |
+ |
os=-none |
244 |
|
;; |
245 |
< |
m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | z8k | v70 | h8500 | w65) |
245 |
> |
m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | z8k | v70 | w65) |
246 |
|
;; |
247 |
|
|
248 |
|
# We use `pc' rather than `unknown' |
249 |
|
# because (1) that's what they normally are, and |
250 |
|
# (2) the word "unknown" tends to confuse beginning users. |
251 |
< |
i[34567]86) |
251 |
> |
i*86 | x86_64) |
252 |
|
basic_machine=$basic_machine-pc |
253 |
|
;; |
254 |
|
# Object if more than one company name word. |
257 |
|
exit 1 |
258 |
|
;; |
259 |
|
# Recognize the basic CPU types with company name. |
260 |
< |
vax-* | tahoe-* | i[34567]86-* | i860-* | m32r-* | m68k-* | m68000-* \ |
261 |
< |
| m88k-* | sparc-* | ns32k-* | fx80-* | arc-* | arm-* | c[123]* \ |
260 |
> |
# FIXME: clean up the formatting here. |
261 |
> |
vax-* | tahoe-* | i*86-* | i860-* | ia64-* | m32r-* | m68k-* | m68000-* \ |
262 |
> |
| m88k-* | sparc-* | ns32k-* | fx80-* | arc-* | c[123]* \ |
263 |
> |
| arm-* | armbe-* | armle-* | armv*-* | strongarm-* | xscale-* \ |
264 |
|
| mips-* | pyramid-* | tron-* | a29k-* | romp-* | rs6000-* \ |
265 |
|
| power-* | none-* | 580-* | cray2-* | h8300-* | h8500-* | i960-* \ |
266 |
|
| xmp-* | ymp-* \ |
267 |
< |
| hppa-* | hppa1.0-* | hppa1.1-* | hppa2.0-* | hppa2.0w-* | hppa2.0n-* \ |
268 |
< |
| alpha-* | alphaev[4-7]-* | alphaev56-* | alphapca5[67]-* \ |
267 |
> |
| x86-* | ppcbe-* | mipsbe-* | mipsle-* | shbe-* | shle-* \ |
268 |
> |
| hppa-* | hppa1.0-* | hppa1.1-* | hppa2.0-* | hppa2.0w-* \ |
269 |
> |
| hppa2.0n-* | hppa64-* \ |
270 |
> |
| alpha-* | alphaev[4-8]-* | alphaev56-* | alphapca5[67]-* \ |
271 |
> |
| alphaev6[78]-* \ |
272 |
|
| we32k-* | cydra-* | ns16k-* | pn-* | np1-* | xps100-* \ |
273 |
|
| clipper-* | orion-* \ |
274 |
< |
| sparclite-* | pdp11-* | sh-* | powerpc-* | powerpcle-* \ |
275 |
< |
| sparc64-* | sparcv9-* | sparc86x-* | mips16-* | mips64-* | mipsel-* \ |
274 |
> |
| sparclite-* | pdp10-* | pdp11-* | sh-* | powerpc-* | powerpcle-* \ |
275 |
> |
| sparc64-* | sparcv9-* | sparcv9b-* | sparc86x-* \ |
276 |
> |
| mips16-* | mips64-* | mipsel-* \ |
277 |
|
| mips64el-* | mips64orion-* | mips64orionel-* \ |
278 |
|
| mips64vr4100-* | mips64vr4100el-* | mips64vr4300-* | mips64vr4300el-* \ |
279 |
< |
| mipstx39-* | mipstx39el-* \ |
280 |
< |
| f301-* | armv*-* | t3e-* \ |
279 |
> |
| mipstx39-* | mipstx39el-* | mcore-* \ |
280 |
> |
| f30[01]-* | f700-* | s390-* | s390x-* | sv1-* | t3e-* \ |
281 |
> |
| [cjt]90-* \ |
282 |
|
| m88110-* | m680[01234]0-* | m683?2-* | m68360-* | z8k-* | d10v-* \ |
283 |
< |
| thumb-* | v850-* | d30v-* | tic30-* | c30-* ) |
283 |
> |
| thumb-* | v850-* | d30v-* | tic30-* | tic80-* | c30-* | fr30-* \ |
284 |
> |
| bs2000-* | tic54x-* | c54x-* | x86_64-* | pj-* | pjl-*) |
285 |
|
;; |
286 |
|
# Recognize the various machine names and aliases which stand |
287 |
|
# for a CPU type and a company and sometimes even an OS. |
318 |
|
os=-sysv |
319 |
|
;; |
320 |
|
amiga | amiga-*) |
321 |
< |
basic_machine=m68k-cbm |
321 |
> |
basic_machine=m68k-unknown |
322 |
|
;; |
323 |
|
amigaos | amigados) |
324 |
< |
basic_machine=m68k-cbm |
324 |
> |
basic_machine=m68k-unknown |
325 |
|
os=-amigaos |
326 |
|
;; |
327 |
|
amigaunix | amix) |
328 |
< |
basic_machine=m68k-cbm |
328 |
> |
basic_machine=m68k-unknown |
329 |
|
os=-sysv4 |
330 |
|
;; |
331 |
|
apollo68) |
372 |
|
basic_machine=cray2-cray |
373 |
|
os=-unicos |
374 |
|
;; |
375 |
< |
[ctj]90-cray) |
376 |
< |
basic_machine=c90-cray |
375 |
> |
[cjt]90) |
376 |
> |
basic_machine=${basic_machine}-cray |
377 |
|
os=-unicos |
378 |
|
;; |
379 |
|
crds | unos) |
380 |
|
basic_machine=m68k-crds |
381 |
|
;; |
382 |
+ |
cris | cris-* | etrax*) |
383 |
+ |
basic_machine=cris-axis |
384 |
+ |
;; |
385 |
|
da30 | da30-*) |
386 |
|
basic_machine=m68k-da30 |
387 |
|
;; |
429 |
|
basic_machine=tron-gmicro |
430 |
|
os=-sysv |
431 |
|
;; |
432 |
+ |
go32) |
433 |
+ |
basic_machine=i386-pc |
434 |
+ |
os=-go32 |
435 |
+ |
;; |
436 |
|
h3050r* | hiux*) |
437 |
|
basic_machine=hppa1.1-hitachi |
438 |
|
os=-hiuxwe2 |
506 |
|
;; |
507 |
|
i370-ibm* | ibm*) |
508 |
|
basic_machine=i370-ibm |
428 |
– |
os=-mvs |
509 |
|
;; |
510 |
|
# I'm not sure what "Sysv32" means. Should this be sysv3.2? |
511 |
< |
i[34567]86v32) |
511 |
> |
i*86v32) |
512 |
|
basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` |
513 |
|
os=-sysv32 |
514 |
|
;; |
515 |
< |
i[34567]86v4*) |
515 |
> |
i*86v4*) |
516 |
|
basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` |
517 |
|
os=-sysv4 |
518 |
|
;; |
519 |
< |
i[34567]86v) |
519 |
> |
i*86v) |
520 |
|
basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` |
521 |
|
os=-sysv |
522 |
|
;; |
523 |
< |
i[34567]86sol2) |
523 |
> |
i*86sol2) |
524 |
|
basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` |
525 |
|
os=-solaris2 |
526 |
|
;; |
532 |
|
basic_machine=i386-unknown |
533 |
|
os=-vsta |
534 |
|
;; |
455 |
– |
i386-go32 | go32) |
456 |
– |
basic_machine=i386-unknown |
457 |
– |
os=-go32 |
458 |
– |
;; |
459 |
– |
i386-mingw32 | mingw32) |
460 |
– |
basic_machine=i386-unknown |
461 |
– |
os=-mingw32 |
462 |
– |
;; |
535 |
|
iris | iris4d) |
536 |
|
basic_machine=mips-sgi |
537 |
|
case $os in |
557 |
|
basic_machine=ns32k-utek |
558 |
|
os=-sysv |
559 |
|
;; |
560 |
+ |
mingw32) |
561 |
+ |
basic_machine=i386-pc |
562 |
+ |
os=-mingw32 |
563 |
+ |
;; |
564 |
|
miniframe) |
565 |
|
basic_machine=m68000-convergent |
566 |
|
;; |
567 |
< |
*mint | *MiNT) |
567 |
> |
*mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*) |
568 |
|
basic_machine=m68k-atari |
569 |
|
os=-mint |
570 |
|
;; |
582 |
|
mips3*) |
583 |
|
basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown |
584 |
|
;; |
585 |
+ |
mmix*) |
586 |
+ |
basic_machine=mmix-knuth |
587 |
+ |
os=-mmixware |
588 |
+ |
;; |
589 |
|
monitor) |
590 |
|
basic_machine=m68k-rom68k |
591 |
|
os=-coff |
592 |
|
;; |
593 |
|
msdos) |
594 |
< |
basic_machine=i386-unknown |
594 |
> |
basic_machine=i386-pc |
595 |
|
os=-msdos |
596 |
|
;; |
597 |
+ |
mvs) |
598 |
+ |
basic_machine=i370-ibm |
599 |
+ |
os=-mvs |
600 |
+ |
;; |
601 |
|
ncr3000) |
602 |
|
basic_machine=i486-ncr |
603 |
|
os=-sysv4 |
607 |
|
os=-netbsd |
608 |
|
;; |
609 |
|
netwinder) |
610 |
< |
basic_machine=armv4l-corel |
610 |
> |
basic_machine=armv4l-rebel |
611 |
|
os=-linux |
612 |
|
;; |
613 |
|
news | news700 | news800 | news900) |
655 |
|
basic_machine=i960-intel |
656 |
|
os=-mon960 |
657 |
|
;; |
658 |
+ |
nonstopux) |
659 |
+ |
basic_machine=mips-compaq |
660 |
+ |
os=-nonstopux |
661 |
+ |
;; |
662 |
|
np1) |
663 |
|
basic_machine=np1-gould |
664 |
|
;; |
665 |
+ |
nsr-tandem) |
666 |
+ |
basic_machine=nsr-tandem |
667 |
+ |
;; |
668 |
|
op50n-* | op60c-*) |
669 |
|
basic_machine=hppa1.1-oki |
670 |
|
os=-proelf |
694 |
|
pc532 | pc532-*) |
695 |
|
basic_machine=ns32k-pc532 |
696 |
|
;; |
697 |
< |
pentium | p5 | k5 | k6 | nexen) |
697 |
> |
pentium | p5 | k5 | k6 | nexgen) |
698 |
|
basic_machine=i586-pc |
699 |
|
;; |
700 |
< |
pentiumpro | p6 | 6x86) |
700 |
> |
pentiumpro | p6 | 6x86 | athlon) |
701 |
|
basic_machine=i686-pc |
702 |
|
;; |
703 |
|
pentiumii | pentium2) |
704 |
< |
basic_machine=i786-pc |
704 |
> |
basic_machine=i686-pc |
705 |
|
;; |
706 |
< |
pentium-* | p5-* | k5-* | k6-* | nexen-*) |
706 |
> |
pentium-* | p5-* | k5-* | k6-* | nexgen-*) |
707 |
|
basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` |
708 |
|
;; |
709 |
< |
pentiumpro-* | p6-* | 6x86-*) |
709 |
> |
pentiumpro-* | p6-* | 6x86-* | athlon-*) |
710 |
|
basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` |
711 |
|
;; |
712 |
|
pentiumii-* | pentium2-*) |
713 |
< |
basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'` |
713 |
> |
basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` |
714 |
|
;; |
715 |
|
pn) |
716 |
|
basic_machine=pn-gould |
717 |
|
;; |
718 |
< |
power) basic_machine=rs6000-ibm |
718 |
> |
power) basic_machine=power-ibm |
719 |
|
;; |
720 |
|
ppc) basic_machine=powerpc-unknown |
721 |
|
;; |
730 |
|
ps2) |
731 |
|
basic_machine=i386-ibm |
732 |
|
;; |
733 |
+ |
pw32) |
734 |
+ |
basic_machine=i586-unknown |
735 |
+ |
os=-pw32 |
736 |
+ |
;; |
737 |
|
rom68k) |
738 |
|
basic_machine=m68k-rom68k |
739 |
|
os=-coff |
813 |
|
sun386 | sun386i | roadrunner) |
814 |
|
basic_machine=i386-sun |
815 |
|
;; |
816 |
+ |
sv1) |
817 |
+ |
basic_machine=sv1-cray |
818 |
+ |
os=-unicos |
819 |
+ |
;; |
820 |
|
symmetry) |
821 |
|
basic_machine=i386-sequent |
822 |
|
os=-dynix |
825 |
|
basic_machine=t3e-cray |
826 |
|
os=-unicos |
827 |
|
;; |
828 |
+ |
tic54x | c54x*) |
829 |
+ |
basic_machine=tic54x-unknown |
830 |
+ |
os=-coff |
831 |
+ |
;; |
832 |
|
tx39) |
833 |
|
basic_machine=mipstx39-unknown |
834 |
|
;; |
924 |
|
vax) |
925 |
|
basic_machine=vax-dec |
926 |
|
;; |
927 |
+ |
pdp10) |
928 |
+ |
# there are many clones, so DEC is not a safe bet |
929 |
+ |
basic_machine=pdp10-unknown |
930 |
+ |
;; |
931 |
|
pdp11) |
932 |
|
basic_machine=pdp11-dec |
933 |
|
;; |
934 |
|
we32k) |
935 |
|
basic_machine=we32k-att |
936 |
|
;; |
937 |
< |
sparc | sparcv9) |
937 |
> |
sh3 | sh4) |
938 |
> |
basic_machine=sh-unknown |
939 |
> |
;; |
940 |
> |
sparc | sparcv9 | sparcv9b) |
941 |
|
basic_machine=sparc-sun |
942 |
|
;; |
943 |
|
cydra) |
959 |
|
basic_machine=c4x-none |
960 |
|
os=-coff |
961 |
|
;; |
962 |
+ |
*-unknown) |
963 |
+ |
# Make sure to match an already-canonicalized machine name. |
964 |
+ |
;; |
965 |
|
*) |
966 |
|
echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 |
967 |
|
exit 1 |
1020 |
|
| -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ |
1021 |
|
| -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ |
1022 |
|
| -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \ |
1023 |
< |
| -interix* | -uwin* | -rhapsody* | -openstep* | -oskit*) |
1023 |
> |
| -interix* | -uwin* | -rhapsody* | -darwin* | -opened* \ |
1024 |
> |
| -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ |
1025 |
> |
| -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* | -os2*) |
1026 |
|
# Remember, each alternative MUST END IN *, to match a version number. |
1027 |
|
;; |
1028 |
+ |
-qnx*) |
1029 |
+ |
case $basic_machine in |
1030 |
+ |
x86-* | i*86-*) |
1031 |
+ |
;; |
1032 |
+ |
*) |
1033 |
+ |
os=-nto$os |
1034 |
+ |
;; |
1035 |
+ |
esac |
1036 |
+ |
;; |
1037 |
+ |
-nto*) |
1038 |
+ |
os=-nto-qnx |
1039 |
+ |
;; |
1040 |
|
-sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ |
1041 |
|
| -windows* | -osx | -abug | -netware* | -os9* | -beos* \ |
1042 |
< |
| -macos* | -mpw* | -magic* | -mon960* | -lnews*) |
1042 |
> |
| -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) |
1043 |
|
;; |
1044 |
|
-mac*) |
1045 |
|
os=`echo $os | sed -e 's|mac|macos|'` |
1053 |
|
-sunos6*) |
1054 |
|
os=`echo $os | sed -e 's|sunos6|solaris3|'` |
1055 |
|
;; |
1056 |
+ |
-opened*) |
1057 |
+ |
os=-openedition |
1058 |
+ |
;; |
1059 |
+ |
-wince*) |
1060 |
+ |
os=-wince |
1061 |
+ |
;; |
1062 |
|
-osfrose*) |
1063 |
|
os=-osfrose |
1064 |
|
;; |
1083 |
|
-ns2 ) |
1084 |
|
os=-nextstep2 |
1085 |
|
;; |
1086 |
+ |
-nsk*) |
1087 |
+ |
os=-nsk |
1088 |
+ |
;; |
1089 |
|
# Preserve the version number of sinix5. |
1090 |
|
-sinix5.*) |
1091 |
|
os=`echo $os | sed -e 's|sinix|sysv|'` |
1120 |
|
-xenix) |
1121 |
|
os=-xenix |
1122 |
|
;; |
1123 |
< |
-*mint | -*MiNT) |
1123 |
> |
-*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) |
1124 |
|
os=-mint |
1125 |
|
;; |
1126 |
|
-none) |
1148 |
|
*-acorn) |
1149 |
|
os=-riscix1.2 |
1150 |
|
;; |
1151 |
< |
arm*-corel) |
1151 |
> |
arm*-rebel) |
1152 |
|
os=-linux |
1153 |
|
;; |
1154 |
|
arm*-semi) |
1155 |
|
os=-aout |
1156 |
|
;; |
1157 |
+ |
pdp10-*) |
1158 |
+ |
os=-tops20 |
1159 |
+ |
;; |
1160 |
|
pdp11-*) |
1161 |
|
os=-none |
1162 |
|
;; |
1265 |
|
*-masscomp) |
1266 |
|
os=-rtu |
1267 |
|
;; |
1268 |
< |
f301-fujitsu) |
1268 |
> |
f30[01]-fujitsu | f700-fujitsu) |
1269 |
|
os=-uxpv |
1270 |
|
;; |
1271 |
|
*-rom68k) |
1325 |
|
-genix*) |
1326 |
|
vendor=ns |
1327 |
|
;; |
1328 |
< |
-mvs*) |
1328 |
> |
-mvs* | -opened*) |
1329 |
|
vendor=ibm |
1330 |
|
;; |
1331 |
|
-ptx*) |
1343 |
|
-mpw* | -macos*) |
1344 |
|
vendor=apple |
1345 |
|
;; |
1346 |
< |
-*mint | -*MiNT) |
1346 |
> |
-*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) |
1347 |
|
vendor=atari |
1348 |
|
;; |
1349 |
|
esac |
1352 |
|
esac |
1353 |
|
|
1354 |
|
echo $basic_machine$os |
1355 |
+ |
exit 0 |
1356 |
+ |
|
1357 |
+ |
# Local variables: |
1358 |
+ |
# eval: (add-hook 'write-file-hooks 'time-stamp) |
1359 |
+ |
# time-stamp-start: "timestamp='" |
1360 |
+ |
# time-stamp-format: "%:y-%02m-%02d" |
1361 |
+ |
# time-stamp-end: "'" |
1362 |
+ |
# End: |