GNU Binutils with patches for OS216
Revision | f26682b913acef7a586fe0fd46b0a652d9aa85cc (tree) |
---|---|
Time | 2000-10-17 02:51:02 |
Author | Phil Blundell <philb@gnu....> |
Commiter | Phil Blundell |
Update from mainline
@@ -2,7 +2,9 @@ | ||
2 | 2 | # Attempt to guess a canonical system name. |
3 | 3 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000 |
4 | 4 | # Free Software Foundation, Inc. |
5 | -# | |
5 | + | |
6 | +version='2000-09-05' | |
7 | + | |
6 | 8 | # This file is free software; you can redistribute it and/or modify it |
7 | 9 | # under the terms of the GNU General Public License as published by |
8 | 10 | # the Free Software Foundation; either version 2 of the License, or |
@@ -36,6 +38,46 @@ | ||
36 | 38 | # (but try to keep the structure clean). |
37 | 39 | # |
38 | 40 | |
41 | +me=`echo "$0" | sed -e 's,.*/,,'` | |
42 | + | |
43 | +usage="\ | |
44 | +Usage: $0 [OPTION] | |
45 | + | |
46 | +Output the configuration name of this system. | |
47 | + | |
48 | +Operation modes: | |
49 | + -h, --help print this help, then exit | |
50 | + -V, --version print version number, then exit" | |
51 | + | |
52 | +help=" | |
53 | +Try \`$me --help' for more information." | |
54 | + | |
55 | +# Parse command line | |
56 | +while test $# -gt 0 ; do | |
57 | + case "$1" in | |
58 | + --version | --vers* | -V ) | |
59 | + echo "$version" ; exit 0 ;; | |
60 | + --help | --h* | -h ) | |
61 | + echo "$usage"; exit 0 ;; | |
62 | + -- ) # Stop option processing | |
63 | + shift; break ;; | |
64 | + - ) # Use stdin as input. | |
65 | + break ;; | |
66 | + -* ) | |
67 | + exec >&2 | |
68 | + echo "$me: invalid option $1" | |
69 | + echo "$help" | |
70 | + exit 1 ;; | |
71 | + * ) | |
72 | + break ;; | |
73 | + esac | |
74 | +done | |
75 | + | |
76 | +if test $# != 0; then | |
77 | + echo "$me: too many arguments$help" >&2 | |
78 | + exit 1 | |
79 | +fi | |
80 | + | |
39 | 81 | # Use $HOST_CC if defined. $CC may point to a cross-compiler |
40 | 82 | if test x"$CC_FOR_BUILD" = x; then |
41 | 83 | if test x"$HOST_CC" != x; then |
@@ -77,7 +119,7 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in | ||
77 | 119 | # object file format. |
78 | 120 | # Determine the machine/vendor (is the vendor relevant). |
79 | 121 | case "${UNAME_MACHINE}" in |
80 | - amiga) machine=m68k-cbm ;; | |
122 | + amiga) machine=m68k-unknown ;; | |
81 | 123 | arm32) machine=arm-unknown ;; |
82 | 124 | atari*) machine=m68k-atari ;; |
83 | 125 | sun3*) machine=m68k-sun ;; |
@@ -173,7 +215,7 @@ EOF | ||
173 | 215 | echo alpha-dec-winnt3.5 |
174 | 216 | exit 0 ;; |
175 | 217 | Amiga*:UNIX_System_V:4.0:*) |
176 | - echo m68k-cbm-sysv4 | |
218 | + echo m68k-unknown-sysv4 | |
177 | 219 | exit 0;; |
178 | 220 | amiga:OpenBSD:*:*) |
179 | 221 | echo m68k-unknown-openbsd${UNAME_RELEASE} |
@@ -266,7 +308,7 @@ EOF | ||
266 | 308 | exit 0 ;; |
267 | 309 | # The situation for MiNT is a little confusing. The machine name |
268 | 310 | # can be virtually everything (everything which is not |
269 | - # "atarist" or "atariste" at least should have a processor | |
311 | + # "atarist" or "atariste" at least should have a processor | |
270 | 312 | # > m68000). The system name ranges from "MiNT" over "FreeMiNT" |
271 | 313 | # to the lowercase version "mint" (or "freemint"). Finally |
272 | 314 | # the system name "TOS" denotes a system which is actually not |
@@ -360,7 +402,7 @@ EOF | ||
360 | 402 | AViiON:dgux:*:*) |
361 | 403 | # DG/UX returns AViiON for all architectures |
362 | 404 | UNAME_PROCESSOR=`/usr/bin/uname -p` |
363 | - if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110] | |
405 | + if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ] | |
364 | 406 | then |
365 | 407 | if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \ |
366 | 408 | [ ${TARGET_BINARY_INTERFACE}x = x ] |
@@ -458,6 +500,8 @@ EOF | ||
458 | 500 | 9000/[34]?? ) HP_ARCH=m68k ;; |
459 | 501 | 9000/[678][0-9][0-9]) |
460 | 502 | sed 's/^ //' << EOF >$dummy.c |
503 | + | |
504 | + #define _HPUX_SOURCE | |
461 | 505 | #include <stdlib.h> |
462 | 506 | #include <unistd.h> |
463 | 507 |
@@ -588,7 +632,7 @@ EOF | ||
588 | 632 | echo alpha-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' |
589 | 633 | exit 0 ;; |
590 | 634 | CRAY*SV1:*:*:*) |
591 | - echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' | |
635 | + echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' | |
592 | 636 | exit 0 ;; |
593 | 637 | CRAY-2:*:*:*) |
594 | 638 | echo cray2-cray-unicos |
@@ -604,7 +648,7 @@ EOF | ||
604 | 648 | hp300:OpenBSD:*:*) |
605 | 649 | echo m68k-unknown-openbsd${UNAME_RELEASE} |
606 | 650 | exit 0 ;; |
607 | - i?86:BSD/386:*:* | i?86:BSD/OS:*:*) | |
651 | + i?86:BSD/386:*:* | i?86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) | |
608 | 652 | echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} |
609 | 653 | exit 0 ;; |
610 | 654 | sparc*:BSD/OS:*:*) |
@@ -614,12 +658,6 @@ EOF | ||
614 | 658 | echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} |
615 | 659 | exit 0 ;; |
616 | 660 | *:FreeBSD:*:*) |
617 | - if test -x /usr/bin/objformat; then | |
618 | - if test "elf" = "`/usr/bin/objformat`"; then | |
619 | - echo ${UNAME_MACHINE}-unknown-freebsdelf`echo ${UNAME_RELEASE}|sed -e 's/[-_].*//'` | |
620 | - exit 0 | |
621 | - fi | |
622 | - fi | |
623 | 661 | echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` |
624 | 662 | exit 0 ;; |
625 | 663 | *:OpenBSD:*:*) |
@@ -631,6 +669,9 @@ EOF | ||
631 | 669 | i*:MINGW*:*) |
632 | 670 | echo ${UNAME_MACHINE}-pc-mingw32 |
633 | 671 | exit 0 ;; |
672 | + i*:PW*:*) | |
673 | + echo ${UNAME_MACHINE}-pc-pw32 | |
674 | + exit 0 ;; | |
634 | 675 | i*:Windows_NT*:* | Pentium*:Windows_NT*:*) |
635 | 676 | # How do we know it's Interix rather than the generic POSIX subsystem? |
636 | 677 | # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we |
@@ -649,6 +690,9 @@ EOF | ||
649 | 690 | *:GNU:*:*) |
650 | 691 | echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` |
651 | 692 | exit 0 ;; |
693 | + i*86:Minix:*:*) | |
694 | + echo ${UNAME_MACHINE}-pc-minix | |
695 | + exit 0 ;; | |
652 | 696 | *:Linux:*:*) |
653 | 697 | |
654 | 698 | # The BFD linker knows what the default object file format is, so |
@@ -670,6 +714,9 @@ EOF | ||
670 | 714 | echo "${UNAME_MACHINE}-pc-linux-gnuaout" |
671 | 715 | exit 0 |
672 | 716 | ;; |
717 | + elf_i?86) | |
718 | + TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu" | |
719 | + ;; | |
673 | 720 | i?86coff) |
674 | 721 | echo "${UNAME_MACHINE}-pc-linux-gnucoff" |
675 | 722 | exit 0 |
@@ -721,11 +768,15 @@ EOF | ||
721 | 768 | if test "$?" = 0 ; then |
722 | 769 | LIBC="libc1" |
723 | 770 | fi |
724 | - fi | |
771 | + fi | |
725 | 772 | rm -f $dummy.c $dummy |
726 | 773 | echo powerpc-unknown-linux-gnu${LIBC} |
727 | 774 | exit 0 |
728 | 775 | ;; |
776 | + shelf_linux) | |
777 | + echo "${UNAME_MACHINE}-unknown-linux-gnu" | |
778 | + exit 0 | |
779 | + ;; | |
729 | 780 | esac |
730 | 781 | |
731 | 782 | if test "${UNAME_MACHINE}" = "alpha" ; then |
@@ -807,6 +858,8 @@ EOF | ||
807 | 858 | rm -f $dummy.c $dummy |
808 | 859 | elif test "${UNAME_MACHINE}" = "s390"; then |
809 | 860 | echo s390-ibm-linux && exit 0 |
861 | + elif test "${UNAME_MACHINE}" = "x86_64"; then | |
862 | + echo x86_64-unknown-linux-gnu && exit 0 | |
810 | 863 | else |
811 | 864 | # Either a pre-BFD a.out linker (linux-gnuoldld) |
812 | 865 | # or one that does not give us useful --help. |
@@ -851,6 +904,7 @@ EOF | ||
851 | 904 | EOF |
852 | 905 | $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null && ./$dummy "${UNAME_MACHINE}" && rm $dummy.c $dummy && exit 0 |
853 | 906 | rm -f $dummy.c $dummy |
907 | + test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0 | |
854 | 908 | fi ;; |
855 | 909 | # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. earlier versions |
856 | 910 | # are messed up and put the nodename in both sysname and nodename. |
@@ -987,7 +1041,7 @@ EOF | ||
987 | 1041 | mc68*:A/UX:*:*) |
988 | 1042 | echo m68k-apple-aux${UNAME_RELEASE} |
989 | 1043 | exit 0 ;; |
990 | - news*:NEWS-OS:*:6*) | |
1044 | + news*:NEWS-OS:6*:*) | |
991 | 1045 | echo mips-sony-newsos6 |
992 | 1046 | exit 0 ;; |
993 | 1047 | R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) |
@@ -1018,14 +1072,37 @@ EOF | ||
1018 | 1072 | *:Rhapsody:*:*) |
1019 | 1073 | echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} |
1020 | 1074 | exit 0 ;; |
1021 | - Power*:Mac*OS:*:*) | |
1022 | - echo powerpc-apple-macos${UNAME_RELEASE} | |
1075 | + *:Darwin:*:*) | |
1076 | + echo `uname -p`-apple-darwin${UNAME_RELEASE} | |
1023 | 1077 | exit 0 ;; |
1024 | - *:Mac*OS:*:*) | |
1025 | - echo ${UNAME_MACHINE}-apple-macos${UNAME_RELEASE} | |
1078 | + *:procnto*:*:* | *:QNX:[0123456789]*:*) | |
1079 | + if test "${UNAME_MACHINE}" = "x86pc"; then | |
1080 | + UNAME_MACHINE=pc | |
1081 | + fi | |
1082 | + echo `uname -p`-${UNAME_MACHINE}-nto-qnx | |
1026 | 1083 | exit 0 ;; |
1027 | 1084 | *:QNX:*:4*) |
1028 | - echo i386-qnx-qnx${UNAME_VERSION} | |
1085 | + echo i386-pc-qnx | |
1086 | + exit 0 ;; | |
1087 | + NSR-[KW]:NONSTOP_KERNEL:*:*) | |
1088 | + echo nsr-tandem-nsk${UNAME_RELEASE} | |
1089 | + exit 0 ;; | |
1090 | + BS2000:POSIX*:*:*) | |
1091 | + echo bs2000-siemens-sysv | |
1092 | + exit 0 ;; | |
1093 | + DS/*:UNIX_System_V:*:*) | |
1094 | + echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE} | |
1095 | + exit 0 ;; | |
1096 | + *:Plan9:*:*) | |
1097 | + # "uname -m" is not consistent, so use $cputype instead. 386 | |
1098 | + # is converted to i386 for consistency with other x86 | |
1099 | + # operating systems. | |
1100 | + if test "$cputype" = "386"; then | |
1101 | + UNAME_MACHINE=i386 | |
1102 | + else | |
1103 | + UNAME_MACHINE="$cputype" | |
1104 | + fi | |
1105 | + echo ${UNAME_MACHINE}-unknown-plan9 | |
1029 | 1106 | exit 0 ;; |
1030 | 1107 | esac |
1031 | 1108 |
@@ -1166,6 +1243,47 @@ then | ||
1166 | 1243 | esac |
1167 | 1244 | fi |
1168 | 1245 | |
1169 | -#echo '(Unable to guess system type)' 1>&2 | |
1246 | +cat >&2 <<EOF | |
1247 | +$0: unable to guess system type | |
1248 | + | |
1249 | +The $version version of this script cannot recognize your system type. | |
1250 | +Please download the most up to date version of the config scripts: | |
1251 | + | |
1252 | + ftp://ftp.gnu.org/pub/gnu/config/ | |
1253 | + | |
1254 | +If the version you run ($0) is already up to date, please | |
1255 | +send the following data and any information you think might be | |
1256 | +pertinent to <config-patches@gnu.org> in order to provide the needed | |
1257 | +information to handle your system. | |
1258 | + | |
1259 | +config.guess version = $version | |
1260 | + | |
1261 | +uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1262 | +uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1263 | +uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1264 | +uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1265 | + | |
1266 | +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null` | |
1267 | +/bin/uname -X = `(/bin/uname -X) 2>/dev/null` | |
1268 | + | |
1269 | +hostinfo = `(hostinfo) 2>/dev/null` | |
1270 | +/bin/universe = `(/bin/universe) 2>/dev/null` | |
1271 | +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null` | |
1272 | +/bin/arch = `(/bin/arch) 2>/dev/null` | |
1273 | +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null` | |
1274 | +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null` | |
1275 | + | |
1276 | +UNAME_MACHINE = ${UNAME_MACHINE} | |
1277 | +UNAME_RELEASE = ${UNAME_RELEASE} | |
1278 | +UNAME_SYSTEM = ${UNAME_SYSTEM} | |
1279 | +UNAME_VERSION = ${UNAME_VERSION} | |
1280 | +EOF | |
1170 | 1281 | |
1171 | 1282 | exit 1 |
1283 | + | |
1284 | +# Local variables: | |
1285 | +# eval: (add-hook 'write-file-hooks 'time-stamp) | |
1286 | +# time-stamp-start: "version='" | |
1287 | +# time-stamp-format: "%:y-%02m-%02d" | |
1288 | +# time-stamp-end: "'" | |
1289 | +# End: |
@@ -2,7 +2,9 @@ | ||
2 | 2 | # Configuration validation subroutine script, version 1.1. |
3 | 3 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000 |
4 | 4 | # Free Software Foundation, Inc. |
5 | -# | |
5 | + | |
6 | +version='2000-09-11' | |
7 | + | |
6 | 8 | # This file is (in principle) common to ALL GNU software. |
7 | 9 | # The presence of a machine in this file suggests that SOME GNU software |
8 | 10 | # can handle that machine. It does not imply ALL GNU software can. |
@@ -27,7 +29,6 @@ | ||
27 | 29 | # configuration script generated by Autoconf, you may include it under |
28 | 30 | # the same distribution terms that you use for the rest of that program. |
29 | 31 | |
30 | -# Written by Per Bothner <bothner@cygnus.com>. | |
31 | 32 | # Please send patches to <config-patches@gnu.org>. |
32 | 33 | # |
33 | 34 | # Configuration subroutine to validate and canonicalize a configuration type. |
@@ -50,30 +51,61 @@ | ||
50 | 51 | # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM |
51 | 52 | # It is wrong to echo any other type of specification. |
52 | 53 | |
53 | -if [ x$1 = x ] | |
54 | -then | |
55 | - echo Configuration name missing. 1>&2 | |
56 | - echo "Usage: $0 CPU-MFR-OPSYS" 1>&2 | |
57 | - echo "or $0 ALIAS" 1>&2 | |
58 | - echo where ALIAS is a recognized configuration type. 1>&2 | |
59 | - exit 1 | |
60 | -fi | |
54 | +me=`echo "$0" | sed -e 's,.*/,,'` | |
61 | 55 | |
62 | -# First pass through any local machine types. | |
63 | -case $1 in | |
64 | - *local*) | |
65 | - echo $1 | |
66 | - exit 0 | |
67 | - ;; | |
68 | - *) | |
69 | - ;; | |
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 | + -V, --version print version number, then exit" | |
65 | + | |
66 | +help=" | |
67 | +Try \`$me --help' for more information." | |
68 | + | |
69 | +# Parse command line | |
70 | +while test $# -gt 0 ; do | |
71 | + case "$1" in | |
72 | + --version | --vers* | -V ) | |
73 | + echo "$version" ; exit 0 ;; | |
74 | + --help | --h* | -h ) | |
75 | + echo "$usage"; exit 0 ;; | |
76 | + -- ) # Stop option processing | |
77 | + shift; break ;; | |
78 | + - ) # Use stdin as input. | |
79 | + break ;; | |
80 | + -* ) | |
81 | + exec >&2 | |
82 | + echo "$me: invalid option $1" | |
83 | + echo "$help" | |
84 | + exit 1 ;; | |
85 | + | |
86 | + *local*) | |
87 | + # First pass through any local machine types. | |
88 | + echo $1 | |
89 | + exit 0;; | |
90 | + | |
91 | + * ) | |
92 | + break ;; | |
93 | + esac | |
94 | +done | |
95 | + | |
96 | +case $# in | |
97 | + 0) echo "$me: missing argument$help" >&2 | |
98 | + exit 1;; | |
99 | + 1) ;; | |
100 | + *) echo "$me: too many arguments$help" >&2 | |
101 | + exit 1;; | |
70 | 102 | esac |
71 | 103 | |
72 | 104 | # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). |
73 | 105 | # Here we must recognize all the valid KERNEL-OS combinations. |
74 | 106 | maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` |
75 | 107 | case $maybe_os in |
76 | - linux-gnu*) | |
108 | + nto-qnx* | linux-gnu*) | |
77 | 109 | os=-$maybe_os |
78 | 110 | basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` |
79 | 111 | ;; |
@@ -99,7 +131,7 @@ case $os in | ||
99 | 131 | -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ |
100 | 132 | -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ |
101 | 133 | -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ |
102 | - -apple) | |
134 | + -apple | -axis) | |
103 | 135 | os= |
104 | 136 | basic_machine=$1 |
105 | 137 | ;; |
@@ -172,27 +204,35 @@ case $basic_machine in | ||
172 | 204 | # Recognize the basic CPU types without company name. |
173 | 205 | # Some are omitted here because they have special meanings below. |
174 | 206 | tahoe | i860 | ia64 | m32r | m68k | m68000 | m88k | ns32k | arc | arm \ |
175 | - | arme[lb] | pyramid | mn10200 | mn10300 | tron | a29k \ | |
207 | + | arme[lb] | armv[2345] | armv[345][lb] | pyramid | mn10200 | mn10300 | tron | a29k \ | |
176 | 208 | | 580 | i960 | h8300 \ |
209 | + | x86 | ppcbe | mipsbe | mipsle | shbe | shle | armbe | armle \ | |
177 | 210 | | hppa | hppa1.0 | hppa1.1 | hppa2.0 | hppa2.0w | hppa2.0n \ |
211 | + | hppa64 \ | |
178 | 212 | | alpha | alphaev[4-8] | alphaev56 | alphapca5[67] \ |
179 | 213 | | alphaev6[78] \ |
180 | - | we32k | ns16k | clipper | i370 | sh | powerpc | powerpcle \ | |
214 | + | we32k | ns16k | clipper | i370 | sh | sh[34] \ | |
215 | + | powerpc | powerpcle \ | |
181 | 216 | | 1750a | dsp16xx | pdp11 | mips16 | mips64 | mipsel | mips64el \ |
182 | 217 | | mips64orion | mips64orionel | mipstx39 | mipstx39el \ |
183 | 218 | | mips64vr4300 | mips64vr4300el | mips64vr4100 | mips64vr4100el \ |
184 | 219 | | mips64vr5000 | miprs64vr5000el | mcore \ |
185 | 220 | | sparc | sparclet | sparclite | sparc64 | sparcv9 | v850 | c4x \ |
186 | - | thumb | d10v | fr30 | avr) | |
221 | + | thumb | d10v | d30v | fr30 | avr) | |
187 | 222 | basic_machine=$basic_machine-unknown |
188 | 223 | ;; |
224 | + m6811 | m68hc11 | m6812 | m68hc12) | |
225 | + # Motorola 68HC11/12. | |
226 | + basic_machine=$basic_machine-unknown | |
227 | + os=-none | |
228 | + ;; | |
189 | 229 | m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | z8k | v70 | h8500 | w65 | pj | pjl) |
190 | 230 | ;; |
191 | 231 | |
192 | 232 | # We use `pc' rather than `unknown' |
193 | 233 | # because (1) that's what they normally are, and |
194 | 234 | # (2) the word "unknown" tends to confuse beginning users. |
195 | - i[34567]86) | |
235 | + i[234567]86 | x86_64) | |
196 | 236 | basic_machine=$basic_machine-pc |
197 | 237 | ;; |
198 | 238 | # Object if more than one company name word. |
@@ -202,12 +242,14 @@ case $basic_machine in | ||
202 | 242 | ;; |
203 | 243 | # Recognize the basic CPU types with company name. |
204 | 244 | # FIXME: clean up the formatting here. |
205 | - vax-* | tahoe-* | i[34567]86-* | i860-* | ia64-* | m32r-* | m68k-* | m68000-* \ | |
245 | + vax-* | tahoe-* | i[234567]86-* | i860-* | ia64-* | m32r-* | m68k-* | m68000-* \ | |
206 | 246 | | m88k-* | sparc-* | ns32k-* | fx80-* | arc-* | arm-* | c[123]* \ |
207 | 247 | | mips-* | pyramid-* | tron-* | a29k-* | romp-* | rs6000-* \ |
208 | 248 | | power-* | none-* | 580-* | cray2-* | h8300-* | h8500-* | i960-* \ |
209 | 249 | | xmp-* | ymp-* \ |
210 | - | hppa-* | hppa1.0-* | hppa1.1-* | hppa2.0-* | hppa2.0w-* | hppa2.0n-* \ | |
250 | + | x86-* | ppcbe-* | mipsbe-* | mipsle-* | shbe-* | shle-* | armbe-* | armle-* \ | |
251 | + | hppa-* | hppa1.0-* | hppa1.1-* | hppa2.0-* | hppa2.0w-* \ | |
252 | + | hppa2.0n-* | hppa64-* \ | |
211 | 253 | | alpha-* | alphaev[4-8]-* | alphaev56-* | alphapca5[67]-* \ |
212 | 254 | | alphaev6[78]-* \ |
213 | 255 | | we32k-* | cydra-* | ns16k-* | pn-* | np1-* | xps100-* \ |
@@ -219,7 +261,8 @@ case $basic_machine in | ||
219 | 261 | | mipstx39-* | mipstx39el-* | mcore-* \ |
220 | 262 | | f301-* | armv*-* | s390-* | sv1-* | t3e-* \ |
221 | 263 | | m88110-* | m680[01234]0-* | m683?2-* | m68360-* | z8k-* | d10v-* \ |
222 | - | thumb-* | v850-* | d30v-* | tic30-* | c30-* | fr30-* ) | |
264 | + | thumb-* | v850-* | d30v-* | tic30-* | c30-* | fr30-* \ | |
265 | + | bs2000-* | tic54x-* | c54x-* | x86_64-*) | |
223 | 266 | ;; |
224 | 267 | # Recognize the various machine names and aliases which stand |
225 | 268 | # for a CPU type and a company and sometimes even an OS. |
@@ -256,14 +299,14 @@ case $basic_machine in | ||
256 | 299 | os=-sysv |
257 | 300 | ;; |
258 | 301 | amiga | amiga-*) |
259 | - basic_machine=m68k-cbm | |
302 | + basic_machine=m68k-unknown | |
260 | 303 | ;; |
261 | 304 | amigaos | amigados) |
262 | - basic_machine=m68k-cbm | |
305 | + basic_machine=m68k-unknown | |
263 | 306 | os=-amigaos |
264 | 307 | ;; |
265 | 308 | amigaunix | amix) |
266 | - basic_machine=m68k-cbm | |
309 | + basic_machine=m68k-unknown | |
267 | 310 | os=-sysv4 |
268 | 311 | ;; |
269 | 312 | apollo68) |
@@ -317,6 +360,9 @@ case $basic_machine in | ||
317 | 360 | crds | unos) |
318 | 361 | basic_machine=m68k-crds |
319 | 362 | ;; |
363 | + cris | cris-* | etrax*) | |
364 | + basic_machine=cris-axis | |
365 | + ;; | |
320 | 366 | da30 | da30-*) |
321 | 367 | basic_machine=m68k-da30 |
322 | 368 | ;; |
@@ -471,8 +517,9 @@ case $basic_machine in | ||
471 | 517 | basic_machine=i386-unknown |
472 | 518 | os=-mingw32 |
473 | 519 | ;; |
474 | - i386-qnx | qnx) | |
475 | - basic_machine=i386-qnx | |
520 | + i[34567]86-pw32 | pw32) | |
521 | + basic_machine=i586-unknown | |
522 | + os=-pw32 | |
476 | 523 | ;; |
477 | 524 | iris | iris4d) |
478 | 525 | basic_machine=mips-sgi |
@@ -596,6 +643,9 @@ case $basic_machine in | ||
596 | 643 | np1) |
597 | 644 | basic_machine=np1-gould |
598 | 645 | ;; |
646 | + nsr-tandem) | |
647 | + basic_machine=nsr-tandem | |
648 | + ;; | |
599 | 649 | op50n-* | op60c-*) |
600 | 650 | basic_machine=hppa1.1-oki |
601 | 651 | os=-proelf |
@@ -628,7 +678,7 @@ case $basic_machine in | ||
628 | 678 | pentium | p5 | k5 | k6 | nexen) |
629 | 679 | basic_machine=i586-pc |
630 | 680 | ;; |
631 | - pentiumpro | p6 | 6x86) | |
681 | + pentiumpro | p6 | 6x86 | athlon) | |
632 | 682 | basic_machine=i686-pc |
633 | 683 | ;; |
634 | 684 | pentiumii | pentium2) |
@@ -637,7 +687,7 @@ case $basic_machine in | ||
637 | 687 | pentium-* | p5-* | k5-* | k6-* | nexen-*) |
638 | 688 | basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` |
639 | 689 | ;; |
640 | - pentiumpro-* | p6-* | 6x86-*) | |
690 | + pentiumpro-* | p6-* | 6x86-* | athlon-*) | |
641 | 691 | basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` |
642 | 692 | ;; |
643 | 693 | pentiumii-* | pentium2-*) |
@@ -752,6 +802,10 @@ case $basic_machine in | ||
752 | 802 | basic_machine=t3e-cray |
753 | 803 | os=-unicos |
754 | 804 | ;; |
805 | + tic54x | c54x*) | |
806 | + basic_machine=tic54x-unknown | |
807 | + os=-coff | |
808 | + ;; | |
755 | 809 | tx39) |
756 | 810 | basic_machine=mipstx39-unknown |
757 | 811 | ;; |
@@ -853,6 +907,9 @@ case $basic_machine in | ||
853 | 907 | we32k) |
854 | 908 | basic_machine=we32k-att |
855 | 909 | ;; |
910 | + sh3 | sh4) | |
911 | + base_machine=sh-unknown | |
912 | + ;; | |
856 | 913 | sparc | sparcv9) |
857 | 914 | basic_machine=sparc-sun |
858 | 915 | ;; |
@@ -933,9 +990,22 @@ case $os in | ||
933 | 990 | | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ |
934 | 991 | | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ |
935 | 992 | | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \ |
936 | - | -interix* | -uwin* | -rhapsody* | -opened* | -openstep* | -oskit*) | |
993 | + | -interix* | -uwin* | -rhapsody* | -darwin* | -opened* \ | |
994 | + | -openstep* | -oskit* | -conix* | -pw32*) | |
937 | 995 | # Remember, each alternative MUST END IN *, to match a version number. |
938 | 996 | ;; |
997 | + -qnx*) | |
998 | + case $basic_machine in | |
999 | + x86-* | i[34567]86-*) | |
1000 | + ;; | |
1001 | + *) | |
1002 | + os=-nto$os | |
1003 | + ;; | |
1004 | + esac | |
1005 | + ;; | |
1006 | + -nto*) | |
1007 | + os=-nto-qnx | |
1008 | + ;; | |
939 | 1009 | -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ |
940 | 1010 | | -windows* | -osx | -abug | -netware* | -os9* | -beos* \ |
941 | 1011 | | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) |
@@ -982,6 +1052,9 @@ case $os in | ||
982 | 1052 | -ns2 ) |
983 | 1053 | os=-nextstep2 |
984 | 1054 | ;; |
1055 | + -nsk*) | |
1056 | + os=-nsk | |
1057 | + ;; | |
985 | 1058 | # Preserve the version number of sinix5. |
986 | 1059 | -sinix5.*) |
987 | 1060 | os=`echo $os | sed -e 's|sinix|sysv|'` |
@@ -995,9 +1068,6 @@ case $os in | ||
995 | 1068 | -oss*) |
996 | 1069 | os=-sysv3 |
997 | 1070 | ;; |
998 | - -qnx) | |
999 | - os=-qnx4 | |
1000 | - ;; | |
1001 | 1071 | -svr4) |
1002 | 1072 | os=-sysv4 |
1003 | 1073 | ;; |
@@ -1248,3 +1318,11 @@ case $basic_machine in | ||
1248 | 1318 | esac |
1249 | 1319 | |
1250 | 1320 | echo $basic_machine$os |
1321 | +exit 0 | |
1322 | + | |
1323 | +# Local variables: | |
1324 | +# eval: (add-hook 'write-file-hooks 'time-stamp) | |
1325 | +# time-stamp-start: "version='" | |
1326 | +# time-stamp-format: "%:y-%02m-%02d" | |
1327 | +# time-stamp-end: "'" | |
1328 | +# End: |