diff options
| author | Gerd Moellmann | 2000-03-12 15:18:26 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2000-03-12 15:18:26 +0000 |
| commit | 3a27fa96384f73f2c7caa71d51fd8306f553a20f (patch) | |
| tree | 5c479d7ebd4fc85d785e1c5785538c955652be85 | |
| parent | 5bbf0b3c7fafe20d1d73aa95ecd9f5c476dfbee8 (diff) | |
| download | emacs-3a27fa96384f73f2c7caa71d51fd8306f553a20f.tar.gz emacs-3a27fa96384f73f2c7caa71d51fd8306f553a20f.zip | |
Use the versions of the file from subversions.
| -rwxr-xr-x | config.guess | 282 | ||||
| -rwxr-xr-x | config.sub | 79 |
2 files changed, 243 insertions, 118 deletions
diff --git a/config.guess b/config.guess index 6cb567b8ae6..20c971aae9a 100755 --- a/config.guess +++ b/config.guess | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | #! /bin/sh | 1 | #! /bin/sh |
| 2 | # Attempt to guess a canonical system name. | 2 | # Attempt to guess a canonical system name. |
| 3 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999 | 3 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000 |
| 4 | # Free Software Foundation, Inc. | 4 | # Free Software Foundation, Inc. |
| 5 | # | 5 | # |
| 6 | # This file is free software; you can redistribute it and/or modify it | 6 | # This file is free software; you can redistribute it and/or modify it |
| @@ -23,8 +23,7 @@ | |||
| 23 | # the same distribution terms that you use for the rest of that program. | 23 | # the same distribution terms that you use for the rest of that program. |
| 24 | 24 | ||
| 25 | # Written by Per Bothner <bothner@cygnus.com>. | 25 | # Written by Per Bothner <bothner@cygnus.com>. |
| 26 | # The master version of this file is at the FSF in /home/gd/gnu/lib. | 26 | # Please send patches to <config-patches@gnu.org>. |
| 27 | # Please send patches to the Autoconf mailing list <autoconf@gnu.org>. | ||
| 28 | # | 27 | # |
| 29 | # This script attempts to guess a canonical system name similar to | 28 | # This script attempts to guess a canonical system name similar to |
| 30 | # config.sub. If it succeeds, it prints the system name on stdout, and | 29 | # config.sub. If it succeeds, it prints the system name on stdout, and |
| @@ -68,6 +67,43 @@ trap 'rm -f $dummy.c $dummy.o $dummy; exit 1' 1 2 15 | |||
| 68 | # Note: order is significant - the case branches are not exclusive. | 67 | # Note: order is significant - the case branches are not exclusive. |
| 69 | 68 | ||
| 70 | case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in | 69 | case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in |
| 70 | *:NetBSD:*:*) | ||
| 71 | # Netbsd (nbsd) targets should (where applicable) match one or | ||
| 72 | # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*, | ||
| 73 | # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently | ||
| 74 | # switched to ELF, *-*-netbsd* would select the old | ||
| 75 | # object file format. This provides both forward | ||
| 76 | # compatibility and a consistent mechanism for selecting the | ||
| 77 | # object file format. | ||
| 78 | # Determine the machine/vendor (is the vendor relevant). | ||
| 79 | case "${UNAME_MACHINE}" in | ||
| 80 | amiga) machine=m68k-cbm ;; | ||
| 81 | arm32) machine=arm-unknown ;; | ||
| 82 | atari*) machine=m68k-atari ;; | ||
| 83 | sun3*) machine=m68k-sun ;; | ||
| 84 | mac68k) machine=m68k-apple ;; | ||
| 85 | macppc) machine=powerpc-apple ;; | ||
| 86 | hp3[0-9][05]) machine=m68k-hp ;; | ||
| 87 | ibmrt|romp-ibm) machine=romp-ibm ;; | ||
| 88 | *) machine=${UNAME_MACHINE}-unknown ;; | ||
| 89 | esac | ||
| 90 | # The Operating System including object format. | ||
| 91 | if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ | ||
| 92 | | grep __ELF__ >/dev/null | ||
| 93 | then | ||
| 94 | # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). | ||
| 95 | # Return netbsd for either. FIX? | ||
| 96 | os=netbsd | ||
| 97 | else | ||
| 98 | os=netbsdelf | ||
| 99 | fi | ||
| 100 | # The OS release | ||
| 101 | release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` | ||
| 102 | # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: | ||
| 103 | # contains redundant information, the shorter form: | ||
| 104 | # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. | ||
| 105 | echo "${machine}-${os}${release}" | ||
| 106 | exit 0 ;; | ||
| 71 | alpha:OSF1:*:*) | 107 | alpha:OSF1:*:*) |
| 72 | if test $UNAME_RELEASE = "V4.0"; then | 108 | if test $UNAME_RELEASE = "V4.0"; then |
| 73 | UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` | 109 | UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` |
| @@ -77,41 +113,51 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in | |||
| 77 | # A Xn.n version is an unreleased experimental baselevel. | 113 | # A Xn.n version is an unreleased experimental baselevel. |
| 78 | # 1.2 uses "1.2" for uname -r. | 114 | # 1.2 uses "1.2" for uname -r. |
| 79 | cat <<EOF >$dummy.s | 115 | cat <<EOF >$dummy.s |
| 116 | .data | ||
| 117 | \$Lformat: | ||
| 118 | .byte 37,100,45,37,120,10,0 # "%d-%x\n" | ||
| 119 | |||
| 120 | .text | ||
| 80 | .globl main | 121 | .globl main |
| 122 | .align 4 | ||
| 81 | .ent main | 123 | .ent main |
| 82 | main: | 124 | main: |
| 83 | .frame \$30,0,\$26,0 | 125 | .frame \$30,16,\$26,0 |
| 84 | .prologue 0 | 126 | ldgp \$29,0(\$27) |
| 85 | .long 0x47e03d80 # implver $0 | 127 | .prologue 1 |
| 86 | lda \$2,259 | 128 | .long 0x47e03d80 # implver \$0 |
| 87 | .long 0x47e20c21 # amask $2,$1 | 129 | lda \$2,-1 |
| 88 | srl \$1,8,\$2 | 130 | .long 0x47e20c21 # amask \$2,\$1 |
| 89 | sll \$2,2,\$2 | 131 | lda \$16,\$Lformat |
| 90 | sll \$0,3,\$0 | 132 | mov \$0,\$17 |
| 91 | addl \$1,\$0,\$0 | 133 | not \$1,\$18 |
| 92 | addl \$2,\$0,\$0 | 134 | jsr \$26,printf |
| 93 | ret \$31,(\$26),1 | 135 | ldgp \$29,0(\$26) |
| 136 | mov 0,\$16 | ||
| 137 | jsr \$26,exit | ||
| 94 | .end main | 138 | .end main |
| 95 | EOF | 139 | EOF |
| 96 | $CC_FOR_BUILD $dummy.s -o $dummy 2>/dev/null | 140 | $CC_FOR_BUILD $dummy.s -o $dummy 2>/dev/null |
| 97 | if test "$?" = 0 ; then | 141 | if test "$?" = 0 ; then |
| 98 | ./$dummy | 142 | case `./$dummy` in |
| 99 | case "$?" in | 143 | 0-0) |
| 100 | 7) | ||
| 101 | UNAME_MACHINE="alpha" | 144 | UNAME_MACHINE="alpha" |
| 102 | ;; | 145 | ;; |
| 103 | 15) | 146 | 1-0) |
| 104 | UNAME_MACHINE="alphaev5" | 147 | UNAME_MACHINE="alphaev5" |
| 105 | ;; | 148 | ;; |
| 106 | 14) | 149 | 1-1) |
| 107 | UNAME_MACHINE="alphaev56" | 150 | UNAME_MACHINE="alphaev56" |
| 108 | ;; | 151 | ;; |
| 109 | 10) | 152 | 1-101) |
| 110 | UNAME_MACHINE="alphapca56" | 153 | UNAME_MACHINE="alphapca56" |
| 111 | ;; | 154 | ;; |
| 112 | 16) | 155 | 2-303) |
| 113 | UNAME_MACHINE="alphaev6" | 156 | UNAME_MACHINE="alphaev6" |
| 114 | ;; | 157 | ;; |
| 158 | 2-307) | ||
| 159 | UNAME_MACHINE="alphaev67" | ||
| 160 | ;; | ||
| 115 | esac | 161 | esac |
| 116 | fi | 162 | fi |
| 117 | rm -f $dummy.s $dummy | 163 | rm -f $dummy.s $dummy |
| @@ -129,9 +175,6 @@ EOF | |||
| 129 | Amiga*:UNIX_System_V:4.0:*) | 175 | Amiga*:UNIX_System_V:4.0:*) |
| 130 | echo m68k-cbm-sysv4 | 176 | echo m68k-cbm-sysv4 |
| 131 | exit 0;; | 177 | exit 0;; |
| 132 | amiga:NetBSD:*:*) | ||
| 133 | echo m68k-cbm-netbsd${UNAME_RELEASE} | ||
| 134 | exit 0 ;; | ||
| 135 | amiga:OpenBSD:*:*) | 178 | amiga:OpenBSD:*:*) |
| 136 | echo m68k-unknown-openbsd${UNAME_RELEASE} | 179 | echo m68k-unknown-openbsd${UNAME_RELEASE} |
| 137 | exit 0 ;; | 180 | exit 0 ;; |
| @@ -156,12 +199,12 @@ EOF | |||
| 156 | wgrisc:OpenBSD:*:*) | 199 | wgrisc:OpenBSD:*:*) |
| 157 | echo mipsel-unknown-openbsd${UNAME_RELEASE} | 200 | echo mipsel-unknown-openbsd${UNAME_RELEASE} |
| 158 | exit 0 ;; | 201 | exit 0 ;; |
| 202 | *:OS/390:*:*) | ||
| 203 | echo i370-ibm-openedition | ||
| 204 | exit 0 ;; | ||
| 159 | arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) | 205 | arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) |
| 160 | echo arm-acorn-riscix${UNAME_RELEASE} | 206 | echo arm-acorn-riscix${UNAME_RELEASE} |
| 161 | exit 0;; | 207 | exit 0;; |
| 162 | arm32:NetBSD:*:*) | ||
| 163 | echo arm-unknown-netbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` | ||
| 164 | exit 0 ;; | ||
| 165 | SR2?01:HI-UX/MPP:*:*) | 208 | SR2?01:HI-UX/MPP:*:*) |
| 166 | echo hppa1.1-hitachi-hiuxmpp | 209 | echo hppa1.1-hitachi-hiuxmpp |
| 167 | exit 0;; | 210 | exit 0;; |
| @@ -218,9 +261,6 @@ EOF | |||
| 218 | aushp:SunOS:*:*) | 261 | aushp:SunOS:*:*) |
| 219 | echo sparc-auspex-sunos${UNAME_RELEASE} | 262 | echo sparc-auspex-sunos${UNAME_RELEASE} |
| 220 | exit 0 ;; | 263 | exit 0 ;; |
| 221 | atari*:NetBSD:*:*) | ||
| 222 | echo m68k-atari-netbsd${UNAME_RELEASE} | ||
| 223 | exit 0 ;; | ||
| 224 | atari*:OpenBSD:*:*) | 264 | atari*:OpenBSD:*:*) |
| 225 | echo m68k-unknown-openbsd${UNAME_RELEASE} | 265 | echo m68k-unknown-openbsd${UNAME_RELEASE} |
| 226 | exit 0 ;; | 266 | exit 0 ;; |
| @@ -250,15 +290,9 @@ EOF | |||
| 250 | *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) | 290 | *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) |
| 251 | echo m68k-unknown-mint${UNAME_RELEASE} | 291 | echo m68k-unknown-mint${UNAME_RELEASE} |
| 252 | exit 0 ;; | 292 | exit 0 ;; |
| 253 | sun3*:NetBSD:*:*) | ||
| 254 | echo m68k-sun-netbsd${UNAME_RELEASE} | ||
| 255 | exit 0 ;; | ||
| 256 | sun3*:OpenBSD:*:*) | 293 | sun3*:OpenBSD:*:*) |
| 257 | echo m68k-unknown-openbsd${UNAME_RELEASE} | 294 | echo m68k-unknown-openbsd${UNAME_RELEASE} |
| 258 | exit 0 ;; | 295 | exit 0 ;; |
| 259 | mac68k:NetBSD:*:*) | ||
| 260 | echo m68k-apple-netbsd${UNAME_RELEASE} | ||
| 261 | exit 0 ;; | ||
| 262 | mac68k:OpenBSD:*:*) | 296 | mac68k:OpenBSD:*:*) |
| 263 | echo m68k-unknown-openbsd${UNAME_RELEASE} | 297 | echo m68k-unknown-openbsd${UNAME_RELEASE} |
| 264 | exit 0 ;; | 298 | exit 0 ;; |
| @@ -271,9 +305,6 @@ EOF | |||
| 271 | powerpc:machten:*:*) | 305 | powerpc:machten:*:*) |
| 272 | echo powerpc-apple-machten${UNAME_RELEASE} | 306 | echo powerpc-apple-machten${UNAME_RELEASE} |
| 273 | exit 0 ;; | 307 | exit 0 ;; |
| 274 | macppc:NetBSD:*:*) | ||
| 275 | echo powerpc-apple-netbsd${UNAME_RELEASE} | ||
| 276 | exit 0 ;; | ||
| 277 | RISC*:Mach:*:*) | 308 | RISC*:Mach:*:*) |
| 278 | echo mips-dec-mach_bsd4.3 | 309 | echo mips-dec-mach_bsd4.3 |
| 279 | exit 0 ;; | 310 | exit 0 ;; |
| @@ -289,6 +320,7 @@ EOF | |||
| 289 | mips:*:*:UMIPS | mips:*:*:RISCos) | 320 | mips:*:*:UMIPS | mips:*:*:RISCos) |
| 290 | sed 's/^ //' << EOF >$dummy.c | 321 | sed 's/^ //' << EOF >$dummy.c |
| 291 | #ifdef __cplusplus | 322 | #ifdef __cplusplus |
| 323 | #include <stdio.h> /* for printf() prototype */ | ||
| 292 | int main (int argc, char *argv[]) { | 324 | int main (int argc, char *argv[]) { |
| 293 | #else | 325 | #else |
| 294 | int main (argc, argv) int argc; char *argv[]; { | 326 | int main (argc, argv) int argc; char *argv[]; { |
| @@ -328,15 +360,18 @@ EOF | |||
| 328 | AViiON:dgux:*:*) | 360 | AViiON:dgux:*:*) |
| 329 | # DG/UX returns AViiON for all architectures | 361 | # DG/UX returns AViiON for all architectures |
| 330 | UNAME_PROCESSOR=`/usr/bin/uname -p` | 362 | UNAME_PROCESSOR=`/usr/bin/uname -p` |
| 331 | if [ $UNAME_PROCESSOR = mc88100 -o $UNAME_PROCESSOR = mc88110 ] ; then | 363 | if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110] |
| 332 | if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx \ | 364 | then |
| 333 | -o ${TARGET_BINARY_INTERFACE}x = x ] ; then | 365 | if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \ |
| 366 | [ ${TARGET_BINARY_INTERFACE}x = x ] | ||
| 367 | then | ||
| 334 | echo m88k-dg-dgux${UNAME_RELEASE} | 368 | echo m88k-dg-dgux${UNAME_RELEASE} |
| 335 | else | 369 | else |
| 336 | echo m88k-dg-dguxbcs${UNAME_RELEASE} | 370 | echo m88k-dg-dguxbcs${UNAME_RELEASE} |
| 371 | fi | ||
| 372 | else | ||
| 373 | echo i586-dg-dgux${UNAME_RELEASE} | ||
| 337 | fi | 374 | fi |
| 338 | else echo i586-dg-dgux${UNAME_RELEASE} | ||
| 339 | fi | ||
| 340 | exit 0 ;; | 375 | exit 0 ;; |
| 341 | M88*:DolphinOS:*:*) # DolphinOS (SVR3) | 376 | M88*:DolphinOS:*:*) # DolphinOS (SVR3) |
| 342 | echo m88k-dolphin-sysv3 | 377 | echo m88k-dolphin-sysv3 |
| @@ -402,7 +437,7 @@ EOF | |||
| 402 | ibmrt:4.4BSD:*|romp-ibm:BSD:*) | 437 | ibmrt:4.4BSD:*|romp-ibm:BSD:*) |
| 403 | echo romp-ibm-bsd4.4 | 438 | echo romp-ibm-bsd4.4 |
| 404 | exit 0 ;; | 439 | exit 0 ;; |
| 405 | ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC NetBSD and | 440 | ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and |
| 406 | echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to | 441 | echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to |
| 407 | exit 0 ;; # report: romp-ibm BSD 4.3 | 442 | exit 0 ;; # report: romp-ibm BSD 4.3 |
| 408 | *:BOSX:*:*) | 443 | *:BOSX:*:*) |
| @@ -453,7 +488,7 @@ EOF | |||
| 453 | exit (0); | 488 | exit (0); |
| 454 | } | 489 | } |
| 455 | EOF | 490 | EOF |
| 456 | ($CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null ) && HP_ARCH=`./$dummy` | 491 | (CCOPTS= $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null ) && HP_ARCH=`./$dummy` |
| 457 | rm -f $dummy.c $dummy | 492 | rm -f $dummy.c $dummy |
| 458 | esac | 493 | esac |
| 459 | HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` | 494 | HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` |
| @@ -547,10 +582,13 @@ EOF | |||
| 547 | -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ | 582 | -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ |
| 548 | exit 0 ;; | 583 | exit 0 ;; |
| 549 | CRAY*TS:*:*:*) | 584 | CRAY*TS:*:*:*) |
| 550 | echo t90-cray-unicos${UNAME_RELEASE} | 585 | echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' |
| 551 | exit 0 ;; | 586 | exit 0 ;; |
| 552 | CRAY*T3E:*:*:*) | 587 | CRAY*T3E:*:*:*) |
| 553 | echo t3e-cray-unicosmk${UNAME_RELEASE} | 588 | echo alpha-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' |
| 589 | exit 0 ;; | ||
| 590 | CRAY*SV1:*:*:*) | ||
| 591 | echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' | ||
| 554 | exit 0 ;; | 592 | exit 0 ;; |
| 555 | CRAY-2:*:*:*) | 593 | CRAY-2:*:*:*) |
| 556 | echo cray2-cray-unicos | 594 | echo cray2-cray-unicos |
| @@ -563,9 +601,6 @@ EOF | |||
| 563 | F301:UNIX_System_V:*:*) | 601 | F301:UNIX_System_V:*:*) |
| 564 | echo f301-fujitsu-uxpv`echo $UNAME_RELEASE | sed 's/ .*//'` | 602 | echo f301-fujitsu-uxpv`echo $UNAME_RELEASE | sed 's/ .*//'` |
| 565 | exit 0 ;; | 603 | exit 0 ;; |
| 566 | hp3[0-9][05]:NetBSD:*:*) | ||
| 567 | echo m68k-hp-netbsd${UNAME_RELEASE} | ||
| 568 | exit 0 ;; | ||
| 569 | hp300:OpenBSD:*:*) | 604 | hp300:OpenBSD:*:*) |
| 570 | echo m68k-unknown-openbsd${UNAME_RELEASE} | 605 | echo m68k-unknown-openbsd${UNAME_RELEASE} |
| 571 | exit 0 ;; | 606 | exit 0 ;; |
| @@ -587,9 +622,6 @@ EOF | |||
| 587 | fi | 622 | fi |
| 588 | echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` | 623 | echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` |
| 589 | exit 0 ;; | 624 | exit 0 ;; |
| 590 | *:NetBSD:*:*) | ||
| 591 | echo ${UNAME_MACHINE}-unknown-netbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` | ||
| 592 | exit 0 ;; | ||
| 593 | *:OpenBSD:*:*) | 625 | *:OpenBSD:*:*) |
| 594 | echo ${UNAME_MACHINE}-unknown-openbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` | 626 | echo ${UNAME_MACHINE}-unknown-openbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` |
| 595 | exit 0 ;; | 627 | exit 0 ;; |
| @@ -618,12 +650,6 @@ EOF | |||
| 618 | echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` | 650 | echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` |
| 619 | exit 0 ;; | 651 | exit 0 ;; |
| 620 | *:Linux:*:*) | 652 | *:Linux:*:*) |
| 621 | # uname on the ARM produces all sorts of strangeness, and we need to | ||
| 622 | # filter it out. | ||
| 623 | case "$UNAME_MACHINE" in | ||
| 624 | armv*) UNAME_MACHINE=$UNAME_MACHINE ;; | ||
| 625 | arm* | sa110*) UNAME_MACHINE="arm" ;; | ||
| 626 | esac | ||
| 627 | 653 | ||
| 628 | # The BFD linker knows what the default object file format is, so | 654 | # The BFD linker knows what the default object file format is, so |
| 629 | # first see if it will tell us. cd to the root directory to prevent | 655 | # first see if it will tell us. cd to the root directory to prevent |
| @@ -636,12 +662,39 @@ EOF | |||
| 636 | s/ .*// | 662 | s/ .*// |
| 637 | p'` | 663 | p'` |
| 638 | case "$ld_supported_emulations" in | 664 | case "$ld_supported_emulations" in |
| 639 | i?86linux) echo "${UNAME_MACHINE}-pc-linux-gnuaout" ; exit 0 ;; | 665 | *ia64) |
| 640 | i?86coff) echo "${UNAME_MACHINE}-pc-linux-gnucoff" ; exit 0 ;; | 666 | echo "${UNAME_MACHINE}-unknown-linux" |
| 641 | sparclinux) echo "${UNAME_MACHINE}-unknown-linux-gnuaout" ; exit 0 ;; | 667 | exit 0 |
| 642 | armlinux) echo "${UNAME_MACHINE}-unknown-linux-gnuaout" ; exit 0 ;; | 668 | ;; |
| 643 | m68klinux) echo "${UNAME_MACHINE}-unknown-linux-gnuaout" ; exit 0 ;; | 669 | i?86linux) |
| 644 | elf32ppc) | 670 | echo "${UNAME_MACHINE}-pc-linux-gnuaout" |
| 671 | exit 0 | ||
| 672 | ;; | ||
| 673 | i?86coff) | ||
| 674 | echo "${UNAME_MACHINE}-pc-linux-gnucoff" | ||
| 675 | exit 0 | ||
| 676 | ;; | ||
| 677 | sparclinux) | ||
| 678 | echo "${UNAME_MACHINE}-unknown-linux-gnuaout" | ||
| 679 | exit 0 | ||
| 680 | ;; | ||
| 681 | armlinux) | ||
| 682 | echo "${UNAME_MACHINE}-unknown-linux-gnuaout" | ||
| 683 | exit 0 | ||
| 684 | ;; | ||
| 685 | elf32arm*) | ||
| 686 | echo "${UNAME_MACHINE}-unknown-linux-gnuoldld" | ||
| 687 | exit 0 | ||
| 688 | ;; | ||
| 689 | armelf_linux*) | ||
| 690 | echo "${UNAME_MACHINE}-unknown-linux-gnu" | ||
| 691 | exit 0 | ||
| 692 | ;; | ||
| 693 | m68klinux) | ||
| 694 | echo "${UNAME_MACHINE}-unknown-linux-gnuaout" | ||
| 695 | exit 0 | ||
| 696 | ;; | ||
| 697 | elf32ppc | elf32ppclinux) | ||
| 645 | # Determine Lib Version | 698 | # Determine Lib Version |
| 646 | cat >$dummy.c <<EOF | 699 | cat >$dummy.c <<EOF |
| 647 | #include <features.h> | 700 | #include <features.h> |
| @@ -670,47 +723,59 @@ EOF | |||
| 670 | fi | 723 | fi |
| 671 | fi | 724 | fi |
| 672 | rm -f $dummy.c $dummy | 725 | rm -f $dummy.c $dummy |
| 673 | echo powerpc-unknown-linux-gnu${LIBC} ; exit 0 ;; | 726 | echo powerpc-unknown-linux-gnu${LIBC} |
| 727 | exit 0 | ||
| 728 | ;; | ||
| 674 | esac | 729 | esac |
| 675 | 730 | ||
| 676 | if test "${UNAME_MACHINE}" = "alpha" ; then | 731 | if test "${UNAME_MACHINE}" = "alpha" ; then |
| 677 | sed 's/^ //' <<EOF >$dummy.s | 732 | cat <<EOF >$dummy.s |
| 678 | .globl main | 733 | .data |
| 679 | .ent main | 734 | \$Lformat: |
| 680 | main: | 735 | .byte 37,100,45,37,120,10,0 # "%d-%x\n" |
| 681 | .frame \$30,0,\$26,0 | 736 | |
| 682 | .prologue 0 | 737 | .text |
| 683 | .long 0x47e03d80 # implver $0 | 738 | .globl main |
| 684 | lda \$2,259 | 739 | .align 4 |
| 685 | .long 0x47e20c21 # amask $2,$1 | 740 | .ent main |
| 686 | srl \$1,8,\$2 | 741 | main: |
| 687 | sll \$2,2,\$2 | 742 | .frame \$30,16,\$26,0 |
| 688 | sll \$0,3,\$0 | 743 | ldgp \$29,0(\$27) |
| 689 | addl \$1,\$0,\$0 | 744 | .prologue 1 |
| 690 | addl \$2,\$0,\$0 | 745 | .long 0x47e03d80 # implver \$0 |
| 691 | ret \$31,(\$26),1 | 746 | lda \$2,-1 |
| 692 | .end main | 747 | .long 0x47e20c21 # amask \$2,\$1 |
| 748 | lda \$16,\$Lformat | ||
| 749 | mov \$0,\$17 | ||
| 750 | not \$1,\$18 | ||
| 751 | jsr \$26,printf | ||
| 752 | ldgp \$29,0(\$26) | ||
| 753 | mov 0,\$16 | ||
| 754 | jsr \$26,exit | ||
| 755 | .end main | ||
| 693 | EOF | 756 | EOF |
| 694 | LIBC="" | 757 | LIBC="" |
| 695 | $CC_FOR_BUILD $dummy.s -o $dummy 2>/dev/null | 758 | $CC_FOR_BUILD $dummy.s -o $dummy 2>/dev/null |
| 696 | if test "$?" = 0 ; then | 759 | if test "$?" = 0 ; then |
| 697 | ./$dummy | 760 | case `./$dummy` in |
| 698 | case "$?" in | 761 | 0-0) |
| 699 | 7) | ||
| 700 | UNAME_MACHINE="alpha" | 762 | UNAME_MACHINE="alpha" |
| 701 | ;; | 763 | ;; |
| 702 | 15) | 764 | 1-0) |
| 703 | UNAME_MACHINE="alphaev5" | 765 | UNAME_MACHINE="alphaev5" |
| 704 | ;; | 766 | ;; |
| 705 | 14) | 767 | 1-1) |
| 706 | UNAME_MACHINE="alphaev56" | 768 | UNAME_MACHINE="alphaev56" |
| 707 | ;; | 769 | ;; |
| 708 | 10) | 770 | 1-101) |
| 709 | UNAME_MACHINE="alphapca56" | 771 | UNAME_MACHINE="alphapca56" |
| 710 | ;; | 772 | ;; |
| 711 | 16) | 773 | 2-303) |
| 712 | UNAME_MACHINE="alphaev6" | 774 | UNAME_MACHINE="alphaev6" |
| 713 | ;; | 775 | ;; |
| 776 | 2-307) | ||
| 777 | UNAME_MACHINE="alphaev67" | ||
| 778 | ;; | ||
| 714 | esac | 779 | esac |
| 715 | 780 | ||
| 716 | objdump --private-headers $dummy | \ | 781 | objdump --private-headers $dummy | \ |
| @@ -724,6 +789,7 @@ EOF | |||
| 724 | elif test "${UNAME_MACHINE}" = "mips" ; then | 789 | elif test "${UNAME_MACHINE}" = "mips" ; then |
| 725 | cat >$dummy.c <<EOF | 790 | cat >$dummy.c <<EOF |
| 726 | #ifdef __cplusplus | 791 | #ifdef __cplusplus |
| 792 | #include <stdio.h> /* for printf() prototype */ | ||
| 727 | int main (int argc, char *argv[]) { | 793 | int main (int argc, char *argv[]) { |
| 728 | #else | 794 | #else |
| 729 | int main (argc, argv) int argc; char *argv[]; { | 795 | int main (argc, argv) int argc; char *argv[]; { |
| @@ -739,6 +805,8 @@ EOF | |||
| 739 | EOF | 805 | EOF |
| 740 | $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null && ./$dummy "${UNAME_MACHINE}" && rm $dummy.c $dummy && exit 0 | 806 | $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null && ./$dummy "${UNAME_MACHINE}" && rm $dummy.c $dummy && exit 0 |
| 741 | rm -f $dummy.c $dummy | 807 | rm -f $dummy.c $dummy |
| 808 | elif test "${UNAME_MACHINE}" = "s390"; then | ||
| 809 | echo s390-ibm-linux && exit 0 | ||
| 742 | else | 810 | else |
| 743 | # Either a pre-BFD a.out linker (linux-gnuoldld) | 811 | # Either a pre-BFD a.out linker (linux-gnuoldld) |
| 744 | # or one that does not give us useful --help. | 812 | # or one that does not give us useful --help. |
| @@ -760,6 +828,7 @@ EOF | |||
| 760 | cat >$dummy.c <<EOF | 828 | cat >$dummy.c <<EOF |
| 761 | #include <features.h> | 829 | #include <features.h> |
| 762 | #ifdef __cplusplus | 830 | #ifdef __cplusplus |
| 831 | #include <stdio.h> /* for printf() prototype */ | ||
| 763 | int main (int argc, char *argv[]) { | 832 | int main (int argc, char *argv[]) { |
| 764 | #else | 833 | #else |
| 765 | int main (argc, argv) int argc; char *argv[]; { | 834 | int main (argc, argv) int argc; char *argv[]; { |
| @@ -797,19 +866,21 @@ EOF | |||
| 797 | echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} | 866 | echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} |
| 798 | exit 0 ;; | 867 | exit 0 ;; |
| 799 | i?86:*:4.*:* | i?86:SYSTEM_V:4.*:*) | 868 | i?86:*:4.*:* | i?86:SYSTEM_V:4.*:*) |
| 869 | UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` | ||
| 800 | if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then | 870 | if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then |
| 801 | echo ${UNAME_MACHINE}-univel-sysv${UNAME_RELEASE} | 871 | echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL} |
| 802 | else | 872 | else |
| 803 | echo ${UNAME_MACHINE}-pc-sysv${UNAME_RELEASE} | 873 | echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL} |
| 804 | fi | 874 | fi |
| 805 | exit 0 ;; | 875 | exit 0 ;; |
| 806 | i?86:*:5:7*) | 876 | i?86:*:5:7*) |
| 807 | UNAME_REL=`(/bin/uname -X|egrep Release|sed -e 's/.*= //')` | 877 | # Fixed at (any) Pentium or better |
| 808 | (/bin/uname -X|egrep i80486 >/dev/null) && UNAME_MACHINE=i486 | 878 | UNAME_MACHINE=i586 |
| 809 | (/bin/uname -X|egrep '^Machine.*Pentium' >/dev/null) && UNAME_MACHINE=i586 | 879 | if [ ${UNAME_SYSTEM} = "UnixWare" ] ; then |
| 810 | (/bin/uname -X|egrep '^Machine.*Pent.*II' >/dev/null) && UNAME_MACHINE=i686 | 880 | echo ${UNAME_MACHINE}-sco-sysv${UNAME_RELEASE}uw${UNAME_VERSION} |
| 811 | (/bin/uname -X|egrep '^Machine.*Pentium Pro' >/dev/null) && UNAME_MACHINE=i585 | 881 | else |
| 812 | echo ${UNAME_MACHINE}-${UNAME_SYSTEM}${UNAME_VERSION}-sysv${UNAME_RELEASE} | 882 | echo ${UNAME_MACHINE}-pc-sysv${UNAME_RELEASE} |
| 883 | fi | ||
| 813 | exit 0 ;; | 884 | exit 0 ;; |
| 814 | i?86:*:3.2:*) | 885 | i?86:*:3.2:*) |
| 815 | if test -f /usr/options/cb.name; then | 886 | if test -f /usr/options/cb.name; then |
| @@ -829,7 +900,11 @@ EOF | |||
| 829 | echo ${UNAME_MACHINE}-pc-sysv32 | 900 | echo ${UNAME_MACHINE}-pc-sysv32 |
| 830 | fi | 901 | fi |
| 831 | exit 0 ;; | 902 | exit 0 ;; |
| 903 | i?86:*DOS:*:*) | ||
| 904 | echo ${UNAME_MACHINE}-pc-msdosdjgpp | ||
| 905 | exit 0 ;; | ||
| 832 | pc:*:*:*) | 906 | pc:*:*:*) |
| 907 | # Left here for compatibility: | ||
| 833 | # uname -m prints for DJGPP always 'pc', but it prints nothing about | 908 | # uname -m prints for DJGPP always 'pc', but it prints nothing about |
| 834 | # the processor, so we play safe by assuming i386. | 909 | # the processor, so we play safe by assuming i386. |
| 835 | echo i386-pc-msdosdjgpp | 910 | echo i386-pc-msdosdjgpp |
| @@ -943,6 +1018,15 @@ EOF | |||
| 943 | *:Rhapsody:*:*) | 1018 | *:Rhapsody:*:*) |
| 944 | echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} | 1019 | echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} |
| 945 | exit 0 ;; | 1020 | exit 0 ;; |
| 1021 | Power*:Mac*OS:*:*) | ||
| 1022 | echo powerpc-apple-macos${UNAME_RELEASE} | ||
| 1023 | exit 0 ;; | ||
| 1024 | *:Mac*OS:*:*) | ||
| 1025 | echo ${UNAME_MACHINE}-apple-macos${UNAME_RELEASE} | ||
| 1026 | exit 0 ;; | ||
| 1027 | *:QNX:*:4*) | ||
| 1028 | echo i386-qnx-qnx${UNAME_VERSION} | ||
| 1029 | exit 0 ;; | ||
| 946 | esac | 1030 | esac |
| 947 | 1031 | ||
| 948 | #echo '(No uname command or uname output not recognized.)' 1>&2 | 1032 | #echo '(No uname command or uname output not recognized.)' 1>&2 |
diff --git a/config.sub b/config.sub index 2436b45347a..00b90f8841c 100755 --- a/config.sub +++ b/config.sub | |||
| @@ -1,6 +1,8 @@ | |||
| 1 | #! /bin/sh | 1 | #! /bin/sh |
| 2 | # Configuration validation subroutine script, version 1.1. | 2 | # Configuration validation subroutine script, version 1.1. |
| 3 | # Copyright (C) 1991, 92-97, 1998, 1999 Free Software Foundation, Inc. | 3 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000 |
| 4 | # Free Software Foundation, Inc. | ||
| 5 | # | ||
| 4 | # This file is (in principle) common to ALL GNU software. | 6 | # This file is (in principle) common to ALL GNU software. |
| 5 | # The presence of a machine in this file suggests that SOME GNU software | 7 | # 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. | 8 | # can handle that machine. It does not imply ALL GNU software can. |
| @@ -25,6 +27,9 @@ | |||
| 25 | # configuration script generated by Autoconf, you may include it under | 27 | # configuration script generated by Autoconf, you may include it under |
| 26 | # the same distribution terms that you use for the rest of that program. | 28 | # the same distribution terms that you use for the rest of that program. |
| 27 | 29 | ||
| 30 | # Written by Per Bothner <bothner@cygnus.com>. | ||
| 31 | # Please send patches to <config-patches@gnu.org>. | ||
| 32 | # | ||
| 28 | # Configuration subroutine to validate and canonicalize a configuration type. | 33 | # Configuration subroutine to validate and canonicalize a configuration type. |
| 29 | # Supply the specified configuration type as an argument. | 34 | # 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. | 35 | # If it is invalid, we print an error message on stderr and exit with code 1. |
| @@ -105,7 +110,7 @@ case $os in | |||
| 105 | -scout) | 110 | -scout) |
| 106 | ;; | 111 | ;; |
| 107 | -wrs) | 112 | -wrs) |
| 108 | os=vxworks | 113 | os=-vxworks |
| 109 | basic_machine=$1 | 114 | basic_machine=$1 |
| 110 | ;; | 115 | ;; |
| 111 | -hiux*) | 116 | -hiux*) |
| @@ -156,27 +161,32 @@ case $os in | |||
| 156 | -psos*) | 161 | -psos*) |
| 157 | os=-psos | 162 | os=-psos |
| 158 | ;; | 163 | ;; |
| 164 | -mint | -mint[0-9]*) | ||
| 165 | basic_machine=m68k-atari | ||
| 166 | os=-mint | ||
| 167 | ;; | ||
| 159 | esac | 168 | esac |
| 160 | 169 | ||
| 161 | # Decode aliases for certain CPU-COMPANY combinations. | 170 | # Decode aliases for certain CPU-COMPANY combinations. |
| 162 | case $basic_machine in | 171 | case $basic_machine in |
| 163 | # Recognize the basic CPU types without company name. | 172 | # Recognize the basic CPU types without company name. |
| 164 | # Some are omitted here because they have special meanings below. | 173 | # Some are omitted here because they have special meanings below. |
| 165 | tahoe | i860 | m32r | m68k | m68000 | m88k | ns32k | arc | arm \ | 174 | tahoe | i860 | ia64 | m32r | m68k | m68000 | m88k | ns32k | arc | arm \ |
| 166 | | arme[lb] | pyramid | mn10200 | mn10300 | tron | a29k \ | 175 | | arme[lb] | pyramid | mn10200 | mn10300 | tron | a29k \ |
| 167 | | 580 | i960 | h8300 \ | 176 | | 580 | i960 | h8300 \ |
| 168 | | hppa | hppa1.0 | hppa1.1 | hppa2.0 | hppa2.0w | hppa2.0n \ | 177 | | hppa | hppa1.0 | hppa1.1 | hppa2.0 | hppa2.0w | hppa2.0n \ |
| 169 | | alpha | alphaev[4-7] | alphaev56 | alphapca5[67] \ | 178 | | alpha | alphaev[4-8] | alphaev56 | alphapca5[67] \ |
| 179 | | alphaev6[78] \ | ||
| 170 | | we32k | ns16k | clipper | i370 | sh | powerpc | powerpcle \ | 180 | | we32k | ns16k | clipper | i370 | sh | powerpc | powerpcle \ |
| 171 | | 1750a | dsp16xx | pdp11 | mips16 | mips64 | mipsel | mips64el \ | 181 | | 1750a | dsp16xx | pdp11 | mips16 | mips64 | mipsel | mips64el \ |
| 172 | | mips64orion | mips64orionel | mipstx39 | mipstx39el \ | 182 | | mips64orion | mips64orionel | mipstx39 | mipstx39el \ |
| 173 | | mips64vr4300 | mips64vr4300el | mips64vr4100 | mips64vr4100el \ | 183 | | mips64vr4300 | mips64vr4300el | mips64vr4100 | mips64vr4100el \ |
| 174 | | mips64vr5000 | miprs64vr5000el \ | 184 | | mips64vr5000 | miprs64vr5000el | mcore \ |
| 175 | | sparc | sparclet | sparclite | sparc64 | sparcv9 | v850 | c4x \ | 185 | | sparc | sparclet | sparclite | sparc64 | sparcv9 | v850 | c4x \ |
| 176 | | thumb | d10v) | 186 | | thumb | d10v | fr30 | avr) |
| 177 | basic_machine=$basic_machine-unknown | 187 | basic_machine=$basic_machine-unknown |
| 178 | ;; | 188 | ;; |
| 179 | m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | z8k | v70 | h8500 | w65) | 189 | m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | z8k | v70 | h8500 | w65 | pj | pjl) |
| 180 | ;; | 190 | ;; |
| 181 | 191 | ||
| 182 | # We use `pc' rather than `unknown' | 192 | # We use `pc' rather than `unknown' |
| @@ -191,23 +201,25 @@ case $basic_machine in | |||
| 191 | exit 1 | 201 | exit 1 |
| 192 | ;; | 202 | ;; |
| 193 | # Recognize the basic CPU types with company name. | 203 | # Recognize the basic CPU types with company name. |
| 194 | vax-* | tahoe-* | i[34567]86-* | i860-* | m32r-* | m68k-* | m68000-* \ | 204 | # FIXME: clean up the formatting here. |
| 205 | vax-* | tahoe-* | i[34567]86-* | i860-* | ia64-* | m32r-* | m68k-* | m68000-* \ | ||
| 195 | | m88k-* | sparc-* | ns32k-* | fx80-* | arc-* | arm-* | c[123]* \ | 206 | | m88k-* | sparc-* | ns32k-* | fx80-* | arc-* | arm-* | c[123]* \ |
| 196 | | mips-* | pyramid-* | tron-* | a29k-* | romp-* | rs6000-* \ | 207 | | mips-* | pyramid-* | tron-* | a29k-* | romp-* | rs6000-* \ |
| 197 | | power-* | none-* | 580-* | cray2-* | h8300-* | h8500-* | i960-* \ | 208 | | power-* | none-* | 580-* | cray2-* | h8300-* | h8500-* | i960-* \ |
| 198 | | xmp-* | ymp-* \ | 209 | | xmp-* | ymp-* \ |
| 199 | | hppa-* | hppa1.0-* | hppa1.1-* | hppa2.0-* | hppa2.0w-* | hppa2.0n-* \ | 210 | | hppa-* | hppa1.0-* | hppa1.1-* | hppa2.0-* | hppa2.0w-* | hppa2.0n-* \ |
| 200 | | alpha-* | alphaev[4-7]-* | alphaev56-* | alphapca5[67]-* \ | 211 | | alpha-* | alphaev[4-8]-* | alphaev56-* | alphapca5[67]-* \ |
| 212 | | alphaev6[78]-* \ | ||
| 201 | | we32k-* | cydra-* | ns16k-* | pn-* | np1-* | xps100-* \ | 213 | | we32k-* | cydra-* | ns16k-* | pn-* | np1-* | xps100-* \ |
| 202 | | clipper-* | orion-* \ | 214 | | clipper-* | orion-* \ |
| 203 | | sparclite-* | pdp11-* | sh-* | powerpc-* | powerpcle-* \ | 215 | | sparclite-* | pdp11-* | sh-* | powerpc-* | powerpcle-* \ |
| 204 | | sparc64-* | sparcv9-* | sparc86x-* | mips16-* | mips64-* | mipsel-* \ | 216 | | sparc64-* | sparcv9-* | sparc86x-* | mips16-* | mips64-* | mipsel-* \ |
| 205 | | mips64el-* | mips64orion-* | mips64orionel-* \ | 217 | | mips64el-* | mips64orion-* | mips64orionel-* \ |
| 206 | | mips64vr4100-* | mips64vr4100el-* | mips64vr4300-* | mips64vr4300el-* \ | 218 | | mips64vr4100-* | mips64vr4100el-* | mips64vr4300-* | mips64vr4300el-* \ |
| 207 | | mipstx39-* | mipstx39el-* \ | 219 | | mipstx39-* | mipstx39el-* | mcore-* \ |
| 208 | | f301-* | armv*-* | t3e-* \ | 220 | | f301-* | armv*-* | s390-* | sv1-* | t3e-* \ |
| 209 | | m88110-* | m680[01234]0-* | m683?2-* | m68360-* | z8k-* | d10v-* \ | 221 | | m88110-* | m680[01234]0-* | m683?2-* | m68360-* | z8k-* | d10v-* \ |
| 210 | | thumb-* | v850-* | d30v-* | tic30-* | c30-* ) | 222 | | thumb-* | v850-* | d30v-* | tic30-* | c30-* | fr30-* ) |
| 211 | ;; | 223 | ;; |
| 212 | # Recognize the various machine names and aliases which stand | 224 | # Recognize the various machine names and aliases which stand |
| 213 | # for a CPU type and a company and sometimes even an OS. | 225 | # for a CPU type and a company and sometimes even an OS. |
| @@ -425,7 +437,6 @@ case $basic_machine in | |||
| 425 | ;; | 437 | ;; |
| 426 | i370-ibm* | ibm*) | 438 | i370-ibm* | ibm*) |
| 427 | basic_machine=i370-ibm | 439 | basic_machine=i370-ibm |
| 428 | os=-mvs | ||
| 429 | ;; | 440 | ;; |
| 430 | # I'm not sure what "Sysv32" means. Should this be sysv3.2? | 441 | # I'm not sure what "Sysv32" means. Should this be sysv3.2? |
| 431 | i[34567]86v32) | 442 | i[34567]86v32) |
| @@ -460,6 +471,9 @@ case $basic_machine in | |||
| 460 | basic_machine=i386-unknown | 471 | basic_machine=i386-unknown |
| 461 | os=-mingw32 | 472 | os=-mingw32 |
| 462 | ;; | 473 | ;; |
| 474 | i386-qnx | qnx) | ||
| 475 | basic_machine=i386-qnx | ||
| 476 | ;; | ||
| 463 | iris | iris4d) | 477 | iris | iris4d) |
| 464 | basic_machine=mips-sgi | 478 | basic_machine=mips-sgi |
| 465 | case $os in | 479 | case $os in |
| @@ -488,7 +502,7 @@ case $basic_machine in | |||
| 488 | miniframe) | 502 | miniframe) |
| 489 | basic_machine=m68000-convergent | 503 | basic_machine=m68000-convergent |
| 490 | ;; | 504 | ;; |
| 491 | *mint | *MiNT) | 505 | *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*) |
| 492 | basic_machine=m68k-atari | 506 | basic_machine=m68k-atari |
| 493 | os=-mint | 507 | os=-mint |
| 494 | ;; | 508 | ;; |
| @@ -506,6 +520,10 @@ case $basic_machine in | |||
| 506 | mips3*) | 520 | mips3*) |
| 507 | basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown | 521 | basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown |
| 508 | ;; | 522 | ;; |
| 523 | mmix*) | ||
| 524 | basic_machine=mmix-knuth | ||
| 525 | os=-mmixware | ||
| 526 | ;; | ||
| 509 | monitor) | 527 | monitor) |
| 510 | basic_machine=m68k-rom68k | 528 | basic_machine=m68k-rom68k |
| 511 | os=-coff | 529 | os=-coff |
| @@ -514,6 +532,10 @@ case $basic_machine in | |||
| 514 | basic_machine=i386-unknown | 532 | basic_machine=i386-unknown |
| 515 | os=-msdos | 533 | os=-msdos |
| 516 | ;; | 534 | ;; |
| 535 | mvs) | ||
| 536 | basic_machine=i370-ibm | ||
| 537 | os=-mvs | ||
| 538 | ;; | ||
| 517 | ncr3000) | 539 | ncr3000) |
| 518 | basic_machine=i486-ncr | 540 | basic_machine=i486-ncr |
| 519 | os=-sysv4 | 541 | os=-sysv4 |
| @@ -523,7 +545,7 @@ case $basic_machine in | |||
| 523 | os=-netbsd | 545 | os=-netbsd |
| 524 | ;; | 546 | ;; |
| 525 | netwinder) | 547 | netwinder) |
| 526 | basic_machine=armv4l-corel | 548 | basic_machine=armv4l-rebel |
| 527 | os=-linux | 549 | os=-linux |
| 528 | ;; | 550 | ;; |
| 529 | news | news700 | news800 | news900) | 551 | news | news700 | news800 | news900) |
| @@ -718,6 +740,10 @@ case $basic_machine in | |||
| 718 | sun386 | sun386i | roadrunner) | 740 | sun386 | sun386i | roadrunner) |
| 719 | basic_machine=i386-sun | 741 | basic_machine=i386-sun |
| 720 | ;; | 742 | ;; |
| 743 | sv1) | ||
| 744 | basic_machine=sv1-cray | ||
| 745 | os=-unicos | ||
| 746 | ;; | ||
| 721 | symmetry) | 747 | symmetry) |
| 722 | basic_machine=i386-sequent | 748 | basic_machine=i386-sequent |
| 723 | os=-dynix | 749 | os=-dynix |
| @@ -907,12 +933,12 @@ case $os in | |||
| 907 | | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ | 933 | | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ |
| 908 | | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ | 934 | | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ |
| 909 | | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \ | 935 | | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \ |
| 910 | | -interix* | -uwin* | -rhapsody* | -openstep* | -oskit*) | 936 | | -interix* | -uwin* | -rhapsody* | -opened* | -openstep* | -oskit*) |
| 911 | # Remember, each alternative MUST END IN *, to match a version number. | 937 | # Remember, each alternative MUST END IN *, to match a version number. |
| 912 | ;; | 938 | ;; |
| 913 | -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ | 939 | -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ |
| 914 | | -windows* | -osx | -abug | -netware* | -os9* | -beos* \ | 940 | | -windows* | -osx | -abug | -netware* | -os9* | -beos* \ |
| 915 | | -macos* | -mpw* | -magic* | -mon960* | -lnews*) | 941 | | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) |
| 916 | ;; | 942 | ;; |
| 917 | -mac*) | 943 | -mac*) |
| 918 | os=`echo $os | sed -e 's|mac|macos|'` | 944 | os=`echo $os | sed -e 's|mac|macos|'` |
| @@ -926,6 +952,12 @@ case $os in | |||
| 926 | -sunos6*) | 952 | -sunos6*) |
| 927 | os=`echo $os | sed -e 's|sunos6|solaris3|'` | 953 | os=`echo $os | sed -e 's|sunos6|solaris3|'` |
| 928 | ;; | 954 | ;; |
| 955 | -opened*) | ||
| 956 | os=-openedition | ||
| 957 | ;; | ||
| 958 | -wince*) | ||
| 959 | os=-wince | ||
| 960 | ;; | ||
| 929 | -osfrose*) | 961 | -osfrose*) |
| 930 | os=-osfrose | 962 | os=-osfrose |
| 931 | ;; | 963 | ;; |
| @@ -963,6 +995,9 @@ case $os in | |||
| 963 | -oss*) | 995 | -oss*) |
| 964 | os=-sysv3 | 996 | os=-sysv3 |
| 965 | ;; | 997 | ;; |
| 998 | -qnx) | ||
| 999 | os=-qnx4 | ||
| 1000 | ;; | ||
| 966 | -svr4) | 1001 | -svr4) |
| 967 | os=-sysv4 | 1002 | os=-sysv4 |
| 968 | ;; | 1003 | ;; |
| @@ -987,6 +1022,9 @@ case $os in | |||
| 987 | -*mint | -*MiNT) | 1022 | -*mint | -*MiNT) |
| 988 | os=-mint | 1023 | os=-mint |
| 989 | ;; | 1024 | ;; |
| 1025 | -neutrino* | -nto*) | ||
| 1026 | os=-neutrino | ||
| 1027 | ;; | ||
| 990 | -none) | 1028 | -none) |
| 991 | ;; | 1029 | ;; |
| 992 | *) | 1030 | *) |
| @@ -1012,7 +1050,7 @@ case $basic_machine in | |||
| 1012 | *-acorn) | 1050 | *-acorn) |
| 1013 | os=-riscix1.2 | 1051 | os=-riscix1.2 |
| 1014 | ;; | 1052 | ;; |
| 1015 | arm*-corel) | 1053 | arm*-rebel) |
| 1016 | os=-linux | 1054 | os=-linux |
| 1017 | ;; | 1055 | ;; |
| 1018 | arm*-semi) | 1056 | arm*-semi) |
| @@ -1186,7 +1224,7 @@ case $basic_machine in | |||
| 1186 | -genix*) | 1224 | -genix*) |
| 1187 | vendor=ns | 1225 | vendor=ns |
| 1188 | ;; | 1226 | ;; |
| 1189 | -mvs*) | 1227 | -mvs* | -opened*) |
| 1190 | vendor=ibm | 1228 | vendor=ibm |
| 1191 | ;; | 1229 | ;; |
| 1192 | -ptx*) | 1230 | -ptx*) |
| @@ -1207,6 +1245,9 @@ case $basic_machine in | |||
| 1207 | -*mint | -*MiNT) | 1245 | -*mint | -*MiNT) |
| 1208 | vendor=atari | 1246 | vendor=atari |
| 1209 | ;; | 1247 | ;; |
| 1248 | -neutrino* | -nto*) | ||
| 1249 | vendor=qnx | ||
| 1250 | ;; | ||
| 1210 | esac | 1251 | esac |
| 1211 | basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` | 1252 | basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` |
| 1212 | ;; | 1253 | ;; |