Changeset baedcbb in rtems
- Timestamp:
- 11/27/00 14:18:32 (23 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- 86ec6ed
- Parents:
- 85a0f07
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
ChangeLog
r85a0f07 rbaedcbb 1 2000-11-27 Ralf Corsepius <corsepiu@faw.uni-ulm.de> 2 3 * config.guess, config.sub: Update from CVS-autoconf to pick 4 up new features (e.g. CC_FOR_BUILD in config.guess) but is 5 necessary anyway to use autoconf-versions > 2.13. 6 1 7 2000-11-13 Ralf Corsepius <corsepiu@faw.uni-ulm.de> 2 8 -
config.guess
r85a0f07 rbaedcbb 1 1 #! /bin/sh 2 2 # Attempt to guess a canonical system name. 3 # Copyright (C) 1992, 93, 94, 95, 1996 Free Software Foundation, Inc. 4 # 3 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000 4 # Free Software Foundation, Inc. 5 6 version='2000-10-03' 7 5 8 # This file is free software; you can redistribute it and/or modify it 6 9 # under the terms of the GNU General Public License as published by … … 23 26 24 27 # Written by Per Bothner <bothner@cygnus.com>. 25 # The master version of this file is at the FSF in /home/gd/gnu/lib.28 # Please send patches to <config-patches@gnu.org>. 26 29 # 27 30 # This script attempts to guess a canonical system name similar to … … 35 38 # (but try to keep the structure clean). 36 39 # 37 # $Id$ 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 81 # Use $HOST_CC if defined. $CC may point to a cross-compiler 82 if test x"$CC_FOR_BUILD" = x; then 83 if test x"$HOST_CC" != x; then 84 CC_FOR_BUILD="$HOST_CC" 85 else 86 if test x"$CC" != x; then 87 CC_FOR_BUILD="$CC" 88 else 89 CC_FOR_BUILD=cc 90 fi 91 fi 92 fi 93 39 94 40 95 # This is needed to find uname on a Pyramid OSx when run in the BSD universe. … … 49 104 UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown 50 105 51 trap 'rm -f dummy.c dummy.o dummy; exit 1' 1 2 15 106 dummy=dummy-$$ 107 trap 'rm -f $dummy.c $dummy.o $dummy; exit 1' 1 2 15 52 108 53 109 # Note: order is significant - the case branches are not exclusive. 54 110 55 111 case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in 112 *:NetBSD:*:*) 113 # Netbsd (nbsd) targets should (where applicable) match one or 114 # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*, 115 # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently 116 # switched to ELF, *-*-netbsd* would select the old 117 # object file format. This provides both forward 118 # compatibility and a consistent mechanism for selecting the 119 # object file format. 120 # Determine the machine/vendor (is the vendor relevant). 121 case "${UNAME_MACHINE}" in 122 amiga) machine=m68k-unknown ;; 123 arm32) machine=arm-unknown ;; 124 atari*) machine=m68k-atari ;; 125 sun3*) machine=m68k-sun ;; 126 mac68k) machine=m68k-apple ;; 127 macppc) machine=powerpc-apple ;; 128 hp3[0-9][05]) machine=m68k-hp ;; 129 ibmrt|romp-ibm) machine=romp-ibm ;; 130 *) machine=${UNAME_MACHINE}-unknown ;; 131 esac 132 # The Operating System including object format. 133 if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ 134 | grep __ELF__ >/dev/null 135 then 136 # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). 137 # Return netbsd for either. FIX? 138 os=netbsd 139 else 140 os=netbsdelf 141 fi 142 # The OS release 143 release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` 144 # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: 145 # contains redundant information, the shorter form: 146 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. 147 echo "${machine}-${os}${release}" 148 exit 0 ;; 56 149 alpha:OSF1:*:*) 150 if test $UNAME_RELEASE = "V4.0"; then 151 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` 152 fi 57 153 # A Vn.n version is a released version. 58 154 # A Tn.n version is a released field test version. 59 155 # A Xn.n version is an unreleased experimental baselevel. 60 156 # 1.2 uses "1.2" for uname -r. 61 echo alpha-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//'` 157 cat <<EOF >$dummy.s 158 .data 159 \$Lformat: 160 .byte 37,100,45,37,120,10,0 # "%d-%x\n" 161 162 .text 163 .globl main 164 .align 4 165 .ent main 166 main: 167 .frame \$30,16,\$26,0 168 ldgp \$29,0(\$27) 169 .prologue 1 170 .long 0x47e03d80 # implver \$0 171 lda \$2,-1 172 .long 0x47e20c21 # amask \$2,\$1 173 lda \$16,\$Lformat 174 mov \$0,\$17 175 not \$1,\$18 176 jsr \$26,printf 177 ldgp \$29,0(\$26) 178 mov 0,\$16 179 jsr \$26,exit 180 .end main 181 EOF 182 $CC_FOR_BUILD $dummy.s -o $dummy 2>/dev/null 183 if test "$?" = 0 ; then 184 case `./$dummy` in 185 0-0) 186 UNAME_MACHINE="alpha" 187 ;; 188 1-0) 189 UNAME_MACHINE="alphaev5" 190 ;; 191 1-1) 192 UNAME_MACHINE="alphaev56" 193 ;; 194 1-101) 195 UNAME_MACHINE="alphapca56" 196 ;; 197 2-303) 198 UNAME_MACHINE="alphaev6" 199 ;; 200 2-307) 201 UNAME_MACHINE="alphaev67" 202 ;; 203 esac 204 fi 205 rm -f $dummy.s $dummy 206 echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 207 exit 0 ;; 208 Alpha\ *:Windows_NT*:*) 209 # How do we know it's Interix rather than the generic POSIX subsystem? 210 # Should we change UNAME_MACHINE based on the output of uname instead 211 # of the specific Alpha model? 212 echo alpha-pc-interix 62 213 exit 0 ;; 63 214 21064:Windows_NT:50:3) … … 65 216 exit 0 ;; 66 217 Amiga*:UNIX_System_V:4.0:*) 67 echo m68k- cbm-sysv4218 echo m68k-unknown-sysv4 68 219 exit 0;; 69 amiga:NetBSD:*:*)70 echo m68k-cbm-netbsd${UNAME_RELEASE}71 exit 0 ;;72 220 amiga:OpenBSD:*:*) 73 echo m68k-cbm-openbsd${UNAME_RELEASE} 74 exit 0 ;; 221 echo m68k-unknown-openbsd${UNAME_RELEASE} 222 exit 0 ;; 223 *:[Aa]miga[Oo][Ss]:*:*) 224 echo ${UNAME_MACHINE}-unknown-amigaos 225 exit 0 ;; 226 arc64:OpenBSD:*:*) 227 echo mips64el-unknown-openbsd${UNAME_RELEASE} 228 exit 0 ;; 229 arc:OpenBSD:*:*) 230 echo mipsel-unknown-openbsd${UNAME_RELEASE} 231 exit 0 ;; 232 hkmips:OpenBSD:*:*) 233 echo mips-unknown-openbsd${UNAME_RELEASE} 234 exit 0 ;; 235 pmax:OpenBSD:*:*) 236 echo mipsel-unknown-openbsd${UNAME_RELEASE} 237 exit 0 ;; 238 sgi:OpenBSD:*:*) 239 echo mips-unknown-openbsd${UNAME_RELEASE} 240 exit 0 ;; 241 wgrisc:OpenBSD:*:*) 242 echo mipsel-unknown-openbsd${UNAME_RELEASE} 243 exit 0 ;; 244 *:OS/390:*:*) 245 echo i370-ibm-openedition 246 exit 0 ;; 75 247 arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) 76 248 echo arm-acorn-riscix${UNAME_RELEASE} 77 249 exit 0;; 78 Pyramid*:OSx*:*:*|MIS*:OSx*:*:*) 250 SR2?01:HI-UX/MPP:*:*) 251 echo hppa1.1-hitachi-hiuxmpp 252 exit 0;; 253 Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) 79 254 # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. 80 255 if test "`(/bin/universe) 2>/dev/null`" = att ; then … … 84 259 fi 85 260 exit 0 ;; 86 NILE :*:*:dcosx)261 NILE*:*:*:dcosx) 87 262 echo pyramid-pyramid-svr4 263 exit 0 ;; 264 sun4H:SunOS:5.*:*) 265 echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 88 266 exit 0 ;; 89 267 sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) … … 111 289 echo m68k-sun-sunos${UNAME_RELEASE} 112 290 exit 0 ;; 291 sun*:*:4.2BSD:*) 292 UNAME_RELEASE=`(head -1 /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` 293 test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3 294 case "`/bin/arch`" in 295 sun3) 296 echo m68k-sun-sunos${UNAME_RELEASE} 297 ;; 298 sun4) 299 echo sparc-sun-sunos${UNAME_RELEASE} 300 ;; 301 esac 302 exit 0 ;; 113 303 aushp:SunOS:*:*) 114 304 echo sparc-auspex-sunos${UNAME_RELEASE} 115 305 exit 0 ;; 116 atari*:NetBSD:*:*)117 echo m68k-atari-netbsd${UNAME_RELEASE}118 exit 0 ;;119 306 atari*:OpenBSD:*:*) 120 echo m68k-atari-openbsd${UNAME_RELEASE} 121 exit 0 ;; 122 sun3*:NetBSD:*:*) 123 echo m68k-sun-netbsd${UNAME_RELEASE} 124 exit 0 ;; 307 echo m68k-unknown-openbsd${UNAME_RELEASE} 308 exit 0 ;; 309 # The situation for MiNT is a little confusing. The machine name 310 # can be virtually everything (everything which is not 311 # "atarist" or "atariste" at least should have a processor 312 # > m68000). The system name ranges from "MiNT" over "FreeMiNT" 313 # to the lowercase version "mint" (or "freemint"). Finally 314 # the system name "TOS" denotes a system which is actually not 315 # MiNT. But MiNT is downward compatible to TOS, so this should 316 # be no problem. 317 atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) 318 echo m68k-atari-mint${UNAME_RELEASE} 319 exit 0 ;; 320 atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) 321 echo m68k-atari-mint${UNAME_RELEASE} 322 exit 0 ;; 323 *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) 324 echo m68k-atari-mint${UNAME_RELEASE} 325 exit 0 ;; 326 milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) 327 echo m68k-milan-mint${UNAME_RELEASE} 328 exit 0 ;; 329 hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) 330 echo m68k-hades-mint${UNAME_RELEASE} 331 exit 0 ;; 332 *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) 333 echo m68k-unknown-mint${UNAME_RELEASE} 334 exit 0 ;; 125 335 sun3*:OpenBSD:*:*) 126 echo m68k-sun-openbsd${UNAME_RELEASE} 127 exit 0 ;; 128 mac68k:NetBSD:*:*) 129 echo m68k-apple-netbsd${UNAME_RELEASE} 336 echo m68k-unknown-openbsd${UNAME_RELEASE} 130 337 exit 0 ;; 131 338 mac68k:OpenBSD:*:*) 132 echo m68k-apple-openbsd${UNAME_RELEASE} 339 echo m68k-unknown-openbsd${UNAME_RELEASE} 340 exit 0 ;; 341 mvme68k:OpenBSD:*:*) 342 echo m68k-unknown-openbsd${UNAME_RELEASE} 343 exit 0 ;; 344 mvme88k:OpenBSD:*:*) 345 echo m88k-unknown-openbsd${UNAME_RELEASE} 133 346 exit 0 ;; 134 347 powerpc:machten:*:*) … … 144 357 echo vax-dec-ultrix${UNAME_RELEASE} 145 358 exit 0 ;; 359 2020:CLIX:*:* | 2430:CLIX:*:*) 360 echo clipper-intergraph-clix${UNAME_RELEASE} 361 exit 0 ;; 146 362 mips:*:*:UMIPS | mips:*:*:RISCos) 147 sed 's/^ //' << EOF >dummy.c 148 int main (argc, argv) int argc; char **argv; { 363 sed 's/^ //' << EOF >$dummy.c 364 #ifdef __cplusplus 365 #include <stdio.h> /* for printf() prototype */ 366 int main (int argc, char *argv[]) { 367 #else 368 int main (argc, argv) int argc; char *argv[]; { 369 #endif 149 370 #if defined (host_mips) && defined (MIPSEB) 150 371 #if defined (SYSTYPE_SYSV) … … 161 382 } 162 383 EOF 163 $ {CC-cc} dummy.c -odummy \164 && ./ dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \165 && rm dummy.cdummy && exit 0166 rm -f dummy.cdummy384 $CC_FOR_BUILD $dummy.c -o $dummy \ 385 && ./$dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \ 386 && rm $dummy.c $dummy && exit 0 387 rm -f $dummy.c $dummy 167 388 echo mips-mips-riscos${UNAME_RELEASE} 168 389 exit 0 ;; … … 182 403 # DG/UX returns AViiON for all architectures 183 404 UNAME_PROCESSOR=`/usr/bin/uname -p` 184 if [ $UNAME_PROCESSOR = mc88100 -o $UNAME_PROCESSOR = mc88110 ] ; then 185 if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx \ 186 -o ${TARGET_BINARY_INTERFACE}x = x ] ; then 405 if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ] 406 then 407 if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \ 408 [ ${TARGET_BINARY_INTERFACE}x = x ] 409 then 187 410 echo m88k-dg-dgux${UNAME_RELEASE} 188 else411 else 189 412 echo m88k-dg-dguxbcs${UNAME_RELEASE} 190 fi 191 else echo i586-dg-dgux${UNAME_RELEASE} 192 fi 413 fi 414 else 415 echo i586-dg-dgux${UNAME_RELEASE} 416 fi 193 417 exit 0 ;; 194 418 M88*:DolphinOS:*:*) # DolphinOS (SVR3) … … 216 440 *:AIX:2:3) 217 441 if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then 218 sed 's/^ //' << EOF > dummy.c442 sed 's/^ //' << EOF >$dummy.c 219 443 #include <sys/systemcfg.h> 220 444 … … 227 451 } 228 452 EOF 229 $ {CC-cc} dummy.c -o dummy && ./dummy && rm dummy.cdummy && exit 0230 rm -f dummy.cdummy453 $CC_FOR_BUILD $dummy.c -o $dummy && ./$dummy && rm $dummy.c $dummy && exit 0 454 rm -f $dummy.c $dummy 231 455 echo rs6000-ibm-aix3.2.5 232 456 elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then … … 237 461 exit 0 ;; 238 462 *:AIX:*:4) 239 if /usr/sbin/lsattr -EHl proc0 | grep POWER >/dev/null 2>&1; then 463 IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | head -1 | awk '{ print $1 }'` 464 if /usr/sbin/lsattr -EHl ${IBM_CPU_ID} | grep POWER >/dev/null 2>&1; then 240 465 IBM_ARCH=rs6000 241 466 else … … 255 480 echo romp-ibm-bsd4.4 256 481 exit 0 ;; 257 ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC NetBSD and482 ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and 258 483 echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to 259 484 exit 0 ;; # report: romp-ibm BSD 4.3 … … 270 495 echo m68k-hp-bsd4.4 271 496 exit 0 ;; 272 9000/[34 78]??:HP-UX:*:*)497 9000/[34678]??:HP-UX:*:*) 273 498 case "${UNAME_MACHINE}" in 274 499 9000/31? ) HP_ARCH=m68000 ;; 275 500 9000/[34]?? ) HP_ARCH=m68k ;; 276 9000/7?? | 9000/8?[1679] ) HP_ARCH=hppa1.1 ;; 277 9000/8?? ) HP_ARCH=hppa1.0 ;; 501 9000/[678][0-9][0-9]) 502 sed 's/^ //' << EOF >$dummy.c 503 504 #define _HPUX_SOURCE 505 #include <stdlib.h> 506 #include <unistd.h> 507 508 int main () 509 { 510 #if defined(_SC_KERNEL_BITS) 511 long bits = sysconf(_SC_KERNEL_BITS); 512 #endif 513 long cpu = sysconf (_SC_CPU_VERSION); 514 515 switch (cpu) 516 { 517 case CPU_PA_RISC1_0: puts ("hppa1.0"); break; 518 case CPU_PA_RISC1_1: puts ("hppa1.1"); break; 519 case CPU_PA_RISC2_0: 520 #if defined(_SC_KERNEL_BITS) 521 switch (bits) 522 { 523 case 64: puts ("hppa2.0w"); break; 524 case 32: puts ("hppa2.0n"); break; 525 default: puts ("hppa2.0"); break; 526 } break; 527 #else /* !defined(_SC_KERNEL_BITS) */ 528 puts ("hppa2.0"); break; 529 #endif 530 default: puts ("hppa1.0"); break; 531 } 532 exit (0); 533 } 534 EOF 535 (CCOPTS= $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null ) && HP_ARCH=`./$dummy` 536 rm -f $dummy.c $dummy 278 537 esac 279 538 HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` … … 281 540 exit 0 ;; 282 541 3050*:HI-UX:*:*) 283 sed 's/^ //' << EOF > dummy.c542 sed 's/^ //' << EOF >$dummy.c 284 543 #include <unistd.h> 285 544 int … … 306 565 } 307 566 EOF 308 $ {CC-cc} dummy.c -o dummy && ./dummy && rm dummy.cdummy && exit 0309 rm -f dummy.cdummy567 $CC_FOR_BUILD $dummy.c -o $dummy && ./$dummy && rm $dummy.c $dummy && exit 0 568 rm -f $dummy.c $dummy 310 569 echo unknown-hitachi-hiuxwe2 311 570 exit 0 ;; … … 315 574 9000/8??:4.3bsd:*:*) 316 575 echo hppa1.0-hp-bsd 576 exit 0 ;; 577 *9??*:MPE/iX:*:*) 578 echo hppa1.0-hp-mpeix 317 579 exit 0 ;; 318 580 hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) … … 331 593 parisc*:Lites*:*:*) 332 594 echo hppa1.1-hp-lites 595 exit 0 ;; 596 hppa*:OpenBSD:*:*) 597 echo hppa-unknown-openbsd 333 598 exit 0 ;; 334 599 C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) … … 362 627 exit 0 ;; 363 628 CRAY*TS:*:*:*) 364 echo t90-cray-unicos${UNAME_RELEASE} 629 echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 630 exit 0 ;; 631 CRAY*T3E:*:*:*) 632 echo alpha-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 633 exit 0 ;; 634 CRAY*SV1:*:*:*) 635 echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 365 636 exit 0 ;; 366 637 CRAY-2:*:*:*) … … 368 639 exit 0 ;; 369 640 F300:UNIX_System_V:*:*) 370 FUJITSU_SYS=`uname -p | tr [A-Z] [a-z]| sed -e 's/\///'`641 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` 371 642 FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` 372 643 echo "f300-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" … … 375 646 echo f301-fujitsu-uxpv`echo $UNAME_RELEASE | sed 's/ .*//'` 376 647 exit 0 ;; 377 hp3[0-9][05]:NetBSD:*:*) 378 echo m68k-hp-netbsd${UNAME_RELEASE} 379 exit 0 ;; 380 hp3[0-9][05]:OpenBSD:*:*) 381 echo m68k-hp-openbsd${UNAME_RELEASE} 382 exit 0 ;; 383 i?86:BSD/386:*:* | *:BSD/OS:*:*) 648 hp300:OpenBSD:*:*) 649 echo m68k-unknown-openbsd${UNAME_RELEASE} 650 exit 0 ;; 651 i?86:BSD/386:*:* | i?86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) 384 652 echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} 653 exit 0 ;; 654 sparc*:BSD/OS:*:*) 655 echo sparc-unknown-bsdi${UNAME_RELEASE} 656 exit 0 ;; 657 *:BSD/OS:*:*) 658 echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} 385 659 exit 0 ;; 386 660 *:FreeBSD:*:*) 387 661 echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` 388 662 exit 0 ;; 389 *:NetBSD:*:*)390 echo ${UNAME_MACHINE}-unknown-netbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`391 exit 0 ;;392 663 *:OpenBSD:*:*) 393 664 echo ${UNAME_MACHINE}-unknown-openbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` 394 665 exit 0 ;; 395 666 i*:CYGWIN*:*) 396 echo i386-pc-cygwin32 667 echo ${UNAME_MACHINE}-pc-cygwin 668 exit 0 ;; 669 i*:MINGW*:*) 670 echo ${UNAME_MACHINE}-pc-mingw32 671 exit 0 ;; 672 i*:PW*:*) 673 echo ${UNAME_MACHINE}-pc-pw32 674 exit 0 ;; 675 i*:Windows_NT*:* | Pentium*:Windows_NT*:*) 676 # How do we know it's Interix rather than the generic POSIX subsystem? 677 # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we 678 # UNAME_MACHINE based on the output of uname instead of i386? 679 echo i386-pc-interix 680 exit 0 ;; 681 i*:UWIN*:*) 682 echo ${UNAME_MACHINE}-pc-uwin 397 683 exit 0 ;; 398 684 p*:CYGWIN*:*) 399 echo powerpcle-unknown-cygwin 32685 echo powerpcle-unknown-cygwin 400 686 exit 0 ;; 401 687 prep*:SunOS:5.*:*) … … 403 689 exit 0 ;; 404 690 *:GNU:*:*) 405 echo `echo ${UNAME_MACHINE}|sed -e 's,/.*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` 691 echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` 692 exit 0 ;; 693 i*86:Minix:*:*) 694 echo ${UNAME_MACHINE}-pc-minix 406 695 exit 0 ;; 407 696 *:Linux:*:*) 697 408 698 # The BFD linker knows what the default object file format is, so 409 # first see if it will tell us. 410 ld_help_string=`ld --help 2>&1` 411 if echo "$ld_help_string" | grep >/dev/null 2>&1 "supported emulations: elf_i.86"; then 412 echo "${UNAME_MACHINE}-pc-linux-gnu" ; exit 0 413 elif echo "$ld_help_string" | grep >/dev/null 2>&1 "supported emulations: i.86linux"; then 414 echo "${UNAME_MACHINE}-pc-linux-gnuaout" ; exit 0 415 elif echo "$ld_help_string" | grep >/dev/null 2>&1 "supported emulations: i.86coff"; then 416 echo "${UNAME_MACHINE}-pc-linux-gnucoff" ; exit 0 417 elif echo "$ld_help_string" | grep >/dev/null 2>&1 "supported emulations: m68kelf"; then 418 echo "${UNAME_MACHINE}-unknown-linux-gnu" ; exit 0 419 elif echo "$ld_help_string" | grep >/dev/null 2>&1 "supported emulations: m68klinux"; then 420 echo "${UNAME_MACHINE}-unknown-linux-gnuaout" ; exit 0 421 elif echo "$ld_help_string" | grep >/dev/null 2>&1 "supported emulations: elf32ppc"; then 422 echo "powerpc-unknown-linux-gnu" ; exit 0 423 elif test "${UNAME_MACHINE}" = "alpha" ; then 424 echo alpha-unknown-linux-gnu ; exit 0 425 elif test "${UNAME_MACHINE}" = "sparc" ; then 426 echo sparc-unknown-linux-gnu ; exit 0 427 else 428 # Either a pre-BFD a.out linker (linux-gnuoldld) or one that does not give us 429 # useful --help. Gcc wants to distinguish between linux-gnuoldld and linux-gnuaout. 430 test ! -d /usr/lib/ldscripts/. \ 431 && echo "${UNAME_MACHINE}-pc-linux-gnuoldld" && exit 0 432 # Determine whether the default compiler is a.out or elf 433 cat >dummy.c <<EOF 699 # first see if it will tell us. cd to the root directory to prevent 700 # problems with other programs or directories called `ld' in the path. 701 ld_supported_emulations=`cd /; ld --help 2>&1 \ 702 | sed -ne '/supported emulations:/!d 703 s/[ ][ ]*/ /g 704 s/.*supported emulations: *// 705 s/ .*// 706 p'` 707 case "$ld_supported_emulations" in 708 *ia64) 709 echo "${UNAME_MACHINE}-unknown-linux" 710 exit 0 711 ;; 712 i?86linux) 713 echo "${UNAME_MACHINE}-pc-linux-gnuaout" 714 exit 0 715 ;; 716 elf_i?86) 717 TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu" 718 ;; 719 i?86coff) 720 echo "${UNAME_MACHINE}-pc-linux-gnucoff" 721 exit 0 722 ;; 723 sparclinux) 724 echo "${UNAME_MACHINE}-unknown-linux-gnuaout" 725 exit 0 726 ;; 727 armlinux) 728 echo "${UNAME_MACHINE}-unknown-linux-gnuaout" 729 exit 0 730 ;; 731 elf32arm*) 732 echo "${UNAME_MACHINE}-unknown-linux-gnuoldld" 733 exit 0 734 ;; 735 armelf_linux*) 736 echo "${UNAME_MACHINE}-unknown-linux-gnu" 737 exit 0 738 ;; 739 m68klinux) 740 echo "${UNAME_MACHINE}-unknown-linux-gnuaout" 741 exit 0 742 ;; 743 elf32ppc | elf32ppclinux) 744 # Determine Lib Version 745 cat >$dummy.c <<EOF 746 #include <features.h> 747 #if defined(__GLIBC__) 748 extern char __libc_version[]; 749 extern char __libc_release[]; 750 #endif 434 751 main(argc, argv) 435 int argc;436 char *argv[];752 int argc; 753 char *argv[]; 437 754 { 438 #if def __ELF__439 printf ("%s-pc-linux-gnu\n", argv[1]);755 #if defined(__GLIBC__) 756 printf("%s %s\n", __libc_version, __libc_release); 440 757 #else 441 printf ("%s-pc-linux-gnuaout\n", argv[1]);758 printf("unkown\n"); 442 759 #endif 443 760 return 0; 444 761 } 445 762 EOF 446 ${CC-cc} dummy.c -o dummy 2>/dev/null && ./dummy "${UNAME_MACHINE}" && rm dummy.c dummy && exit 0 447 rm -f dummy.c dummy 763 LIBC="" 764 $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null 765 if test "$?" = 0 ; then 766 ./$dummy | grep 1\.99 > /dev/null 767 if test "$?" = 0 ; then 768 LIBC="libc1" 769 fi 770 fi 771 rm -f $dummy.c $dummy 772 echo powerpc-unknown-linux-gnu${LIBC} 773 exit 0 774 ;; 775 shelf_linux) 776 echo "${UNAME_MACHINE}-unknown-linux-gnu" 777 exit 0 778 ;; 779 esac 780 781 if test "${UNAME_MACHINE}" = "alpha" ; then 782 cat <<EOF >$dummy.s 783 .data 784 \$Lformat: 785 .byte 37,100,45,37,120,10,0 # "%d-%x\n" 786 787 .text 788 .globl main 789 .align 4 790 .ent main 791 main: 792 .frame \$30,16,\$26,0 793 ldgp \$29,0(\$27) 794 .prologue 1 795 .long 0x47e03d80 # implver \$0 796 lda \$2,-1 797 .long 0x47e20c21 # amask \$2,\$1 798 lda \$16,\$Lformat 799 mov \$0,\$17 800 not \$1,\$18 801 jsr \$26,printf 802 ldgp \$29,0(\$26) 803 mov 0,\$16 804 jsr \$26,exit 805 .end main 806 EOF 807 LIBC="" 808 $CC_FOR_BUILD $dummy.s -o $dummy 2>/dev/null 809 if test "$?" = 0 ; then 810 case `./$dummy` in 811 0-0) 812 UNAME_MACHINE="alpha" 813 ;; 814 1-0) 815 UNAME_MACHINE="alphaev5" 816 ;; 817 1-1) 818 UNAME_MACHINE="alphaev56" 819 ;; 820 1-101) 821 UNAME_MACHINE="alphapca56" 822 ;; 823 2-303) 824 UNAME_MACHINE="alphaev6" 825 ;; 826 2-307) 827 UNAME_MACHINE="alphaev67" 828 ;; 829 esac 830 831 objdump --private-headers $dummy | \ 832 grep ld.so.1 > /dev/null 833 if test "$?" = 0 ; then 834 LIBC="libc1" 835 fi 836 fi 837 rm -f $dummy.s $dummy 838 echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} ; exit 0 839 elif test "${UNAME_MACHINE}" = "mips" ; then 840 cat >$dummy.c <<EOF 841 #ifdef __cplusplus 842 #include <stdio.h> /* for printf() prototype */ 843 int main (int argc, char *argv[]) { 844 #else 845 int main (argc, argv) int argc; char *argv[]; { 846 #endif 847 #ifdef __MIPSEB__ 848 printf ("%s-unknown-linux-gnu\n", argv[1]); 849 #endif 850 #ifdef __MIPSEL__ 851 printf ("%sel-unknown-linux-gnu\n", argv[1]); 852 #endif 853 return 0; 854 } 855 EOF 856 $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null && ./$dummy "${UNAME_MACHINE}" && rm $dummy.c $dummy && exit 0 857 rm -f $dummy.c $dummy 858 elif test "${UNAME_MACHINE}" = "s390"; then 859 echo s390-ibm-linux && exit 0 860 elif test "${UNAME_MACHINE}" = "x86_64"; then 861 echo x86_64-unknown-linux-gnu && exit 0 862 else 863 # Either a pre-BFD a.out linker (linux-gnuoldld) 864 # or one that does not give us useful --help. 865 # GCC wants to distinguish between linux-gnuoldld and linux-gnuaout. 866 # If ld does not provide *any* "supported emulations:" 867 # that means it is gnuoldld. 868 test -z "$ld_supported_emulations" \ 869 && echo "${UNAME_MACHINE}-pc-linux-gnuoldld" && exit 0 870 871 case "${UNAME_MACHINE}" in 872 i?86) 873 VENDOR=pc; 874 ;; 875 *) 876 VENDOR=unknown; 877 ;; 878 esac 879 # Determine whether the default compiler is a.out or elf 880 cat >$dummy.c <<EOF 881 #include <features.h> 882 #ifdef __cplusplus 883 #include <stdio.h> /* for printf() prototype */ 884 int main (int argc, char *argv[]) { 885 #else 886 int main (argc, argv) int argc; char *argv[]; { 887 #endif 888 #ifdef __ELF__ 889 # ifdef __GLIBC__ 890 # if __GLIBC__ >= 2 891 printf ("%s-${VENDOR}-linux-gnu\n", argv[1]); 892 # else 893 printf ("%s-${VENDOR}-linux-gnulibc1\n", argv[1]); 894 # endif 895 # else 896 printf ("%s-${VENDOR}-linux-gnulibc1\n", argv[1]); 897 # endif 898 #else 899 printf ("%s-${VENDOR}-linux-gnuaout\n", argv[1]); 900 #endif 901 return 0; 902 } 903 EOF 904 $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null && ./$dummy "${UNAME_MACHINE}" && rm $dummy.c $dummy && exit 0 905 rm -f $dummy.c $dummy 906 test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0 448 907 fi ;; 449 908 # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. earlier versions … … 452 911 echo i386-sequent-sysv4 453 912 exit 0 ;; 913 i?86:UNIX_SV:4.2MP:2.*) 914 # Unixware is an offshoot of SVR4, but it has its own version 915 # number series starting with 2... 916 # I am not positive that other SVR4 systems won't match this, 917 # I just have to hope. -- rms. 918 # Use sysv4.2uw... so that sysv4* matches it. 919 echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} 920 exit 0 ;; 454 921 i?86:*:4.*:* | i?86:SYSTEM_V:4.*:*) 922 UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` 455 923 if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then 456 echo ${UNAME_MACHINE}-univel-sysv${UNAME_RELEASE} 457 else 458 echo ${UNAME_MACHINE}-pc-sysv${UNAME_RELEASE} 924 echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL} 925 else 926 echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL} 927 fi 928 exit 0 ;; 929 i?86:*:5:7*) 930 # Fixed at (any) Pentium or better 931 UNAME_MACHINE=i586 932 if [ ${UNAME_SYSTEM} = "UnixWare" ] ; then 933 echo ${UNAME_MACHINE}-sco-sysv${UNAME_RELEASE}uw${UNAME_VERSION} 934 else 935 echo ${UNAME_MACHINE}-pc-sysv${UNAME_RELEASE} 459 936 fi 460 937 exit 0 ;; … … 468 945 (/bin/uname -X|egrep '^Machine.*Pentium' >/dev/null) \ 469 946 && UNAME_MACHINE=i586 947 (/bin/uname -X|egrep '^Machine.*Pent ?II' >/dev/null) \ 948 && UNAME_MACHINE=i686 949 (/bin/uname -X|egrep '^Machine.*Pentium Pro' >/dev/null) \ 950 && UNAME_MACHINE=i686 470 951 echo ${UNAME_MACHINE}-pc-sco$UNAME_REL 471 952 else … … 473 954 fi 474 955 exit 0 ;; 956 i?86:*DOS:*:*) 957 echo ${UNAME_MACHINE}-pc-msdosdjgpp 958 exit 0 ;; 959 pc:*:*:*) 960 # Left here for compatibility: 961 # uname -m prints for DJGPP always 'pc', but it prints nothing about 962 # the processor, so we play safe by assuming i386. 963 echo i386-pc-msdosdjgpp 964 exit 0 ;; 475 965 Intel:Mach:3*:*) 476 966 echo i386-pc-mach3 … … 509 999 echo m68k-atari-sysv4 510 1000 exit 0 ;; 511 i?86:LynxOS:2.*:* )1001 i?86:LynxOS:2.*:* | i?86:LynxOS:3.[01]*:*) 512 1002 echo i386-unknown-lynxos${UNAME_RELEASE} 513 1003 exit 0 ;; … … 520 1010 SM[BE]S:UNIX_SV:*:*) 521 1011 echo mips-dde-sysv${UNAME_RELEASE} 1012 exit 0 ;; 1013 RM*:ReliantUNIX-*:*:*) 1014 echo mips-sni-sysv4 522 1015 exit 0 ;; 523 1016 RM*:SINIX-*:*:*) … … 532 1025 fi 533 1026 exit 0 ;; 1027 PENTIUM:CPunix:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort 1028 # says <Richard.M.Bartel@ccMail.Census.GOV> 1029 echo i586-unisys-sysv4 1030 exit 0 ;; 534 1031 *:UNIX_System_V:4*:FTX*) 535 1032 # From Gerald Hewes <hewes@openmarket.com>. … … 544 1041 echo m68k-apple-aux${UNAME_RELEASE} 545 1042 exit 0 ;; 546 R3000:*System_V*:*:* | R4000:UNIX_SYSV:*:*) 1043 news*:NEWS-OS:6*:*) 1044 echo mips-sony-newsos6 1045 exit 0 ;; 1046 R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) 547 1047 if [ -d /usr/nec ]; then 548 1048 echo mips-nec-sysv${UNAME_RELEASE} … … 551 1051 fi 552 1052 exit 0 ;; 553 PENTIUM:CPunix:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort 554 # says <Richard.M.Bartel@ccMail.Census.GOV> 555 echo i586-unisys-sysv4 556 exit 0 ;; 1053 BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. 1054 echo powerpc-be-beos 1055 exit 0 ;; 1056 BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. 1057 echo powerpc-apple-beos 1058 exit 0 ;; 1059 BePC:BeOS:*:*) # BeOS running on Intel PC compatible. 1060 echo i586-pc-beos 1061 exit 0 ;; 1062 SX-4:SUPER-UX:*:*) 1063 echo sx4-nec-superux${UNAME_RELEASE} 1064 exit 0 ;; 1065 SX-5:SUPER-UX:*:*) 1066 echo sx5-nec-superux${UNAME_RELEASE} 1067 exit 0 ;; 1068 Power*:Rhapsody:*:*) 1069 echo powerpc-apple-rhapsody${UNAME_RELEASE} 1070 exit 0 ;; 1071 *:Rhapsody:*:*) 1072 echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} 1073 exit 0 ;; 1074 *:Darwin:*:*) 1075 echo `uname -p`-apple-darwin${UNAME_RELEASE} 1076 exit 0 ;; 1077 *:procnto*:*:* | *:QNX:[0123456789]*:*) 1078 if test "${UNAME_MACHINE}" = "x86pc"; then 1079 UNAME_MACHINE=pc 1080 fi 1081 echo `uname -p`-${UNAME_MACHINE}-nto-qnx 1082 exit 0 ;; 1083 *:QNX:*:4*) 1084 echo i386-pc-qnx 1085 exit 0 ;; 1086 NSR-[KW]:NONSTOP_KERNEL:*:*) 1087 echo nsr-tandem-nsk${UNAME_RELEASE} 1088 exit 0 ;; 1089 BS2000:POSIX*:*:*) 1090 echo bs2000-siemens-sysv 1091 exit 0 ;; 1092 DS/*:UNIX_System_V:*:*) 1093 echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE} 1094 exit 0 ;; 1095 *:Plan9:*:*) 1096 # "uname -m" is not consistent, so use $cputype instead. 386 1097 # is converted to i386 for consistency with other x86 1098 # operating systems. 1099 if test "$cputype" = "386"; then 1100 UNAME_MACHINE=i386 1101 else 1102 UNAME_MACHINE="$cputype" 1103 fi 1104 echo ${UNAME_MACHINE}-unknown-plan9 1105 exit 0 ;; 557 1106 esac 558 1107 … … 560 1109 #echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2 561 1110 562 cat > dummy.c <<EOF1111 cat >$dummy.c <<EOF 563 1112 #ifdef _SEQUENT_ 564 1113 # include <sys/types.h> … … 598 1147 int version; 599 1148 version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`; 600 printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version); 1149 if (version < 4) 1150 printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version); 1151 else 1152 printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version); 601 1153 exit (0); 602 1154 #endif … … 658 1210 EOF 659 1211 660 $ {CC-cc} dummy.c -o dummy 2>/dev/null && ./dummy && rm dummy.cdummy && exit 0661 rm -f dummy.cdummy1212 $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null && ./$dummy && rm $dummy.c $dummy && exit 0 1213 rm -f $dummy.c $dummy 662 1214 663 1215 # Apollos put the system type in the environment. … … 691 1243 fi 692 1244 693 #echo '(Unable to guess system type)' 1>&2 1245 cat >&2 <<EOF 1246 $0: unable to guess system type 1247 1248 The $version version of this script cannot recognize your system type. 1249 Please download the most up to date version of the config scripts: 1250 1251 ftp://ftp.gnu.org/pub/gnu/config/ 1252 1253 If the version you run ($0) is already up to date, please 1254 send the following data and any information you think might be 1255 pertinent to <config-patches@gnu.org> in order to provide the needed 1256 information to handle your system. 1257 1258 config.guess version = $version 1259 1260 uname -m = `(uname -m) 2>/dev/null || echo unknown` 1261 uname -r = `(uname -r) 2>/dev/null || echo unknown` 1262 uname -s = `(uname -s) 2>/dev/null || echo unknown` 1263 uname -v = `(uname -v) 2>/dev/null || echo unknown` 1264 1265 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null` 1266 /bin/uname -X = `(/bin/uname -X) 2>/dev/null` 1267 1268 hostinfo = `(hostinfo) 2>/dev/null` 1269 /bin/universe = `(/bin/universe) 2>/dev/null` 1270 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null` 1271 /bin/arch = `(/bin/arch) 2>/dev/null` 1272 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null` 1273 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null` 1274 1275 UNAME_MACHINE = ${UNAME_MACHINE} 1276 UNAME_RELEASE = ${UNAME_RELEASE} 1277 UNAME_SYSTEM = ${UNAME_SYSTEM} 1278 UNAME_VERSION = ${UNAME_VERSION} 1279 EOF 694 1280 695 1281 exit 1 1282 1283 # Local variables: 1284 # eval: (add-hook 'write-file-hooks 'time-stamp) 1285 # time-stamp-start: "version='" 1286 # time-stamp-format: "%:y-%02m-%02d" 1287 # time-stamp-end: "'" 1288 # End: -
config.sub
r85a0f07 rbaedcbb 1 1 #! /bin/sh 2 2 # Configuration validation subroutine script, version 1.1. 3 # Copyright (C) 1991, 92, 93, 94, 95, 96, 1997 Free Software Foundation, Inc. 3 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000 4 # Free Software Foundation, Inc. 5 6 version='2000-09-11' 7 4 8 # This file is (in principle) common to ALL GNU software. 5 9 # The presence of a machine in this file suggests that SOME GNU software … … 26 30 # the same distribution terms that you use for the rest of that program. 27 31 32 # Please send patches to <config-patches@gnu.org>. 33 # 28 34 # Configuration subroutine to validate and canonicalize a configuration type. 29 35 # Supply the specified configuration type as an argument. … … 46 52 # It is wrong to echo any other type of specification. 47 53 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 ;; 54 me=`echo "$0" | sed -e 's,.*/,,'` 55 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;; 65 102 esac 66 103 … … 69 106 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` 70 107 case $maybe_os in 71 linux-gnu*)108 nto-qnx* | linux-gnu*) 72 109 os=-$maybe_os 73 110 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` … … 95 132 -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ 96 133 -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ 97 -apple )134 -apple | -axis) 98 135 os= 99 136 basic_machine=$1 100 137 ;; 101 -sim | -cisco | -oki | -wec | -winbond ) # CYGNUS LOCAL138 -sim | -cisco | -oki | -wec | -winbond) 102 139 os= 103 140 basic_machine=$1 104 141 ;; 105 -scout) # CYGNUS LOCAL106 ;; 107 -wrs) # CYGNUS LOCAL108 os= vxworks142 -scout) 143 ;; 144 -wrs) 145 os=-vxworks 109 146 basic_machine=$1 110 147 ;; … … 113 150 ;; 114 151 -sco5) 115 os= sco3.2v5152 os=-sco3.2v5 116 153 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 117 154 ;; … … 132 169 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 133 170 ;; 171 -udk*) 172 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 173 ;; 134 174 -isc) 135 175 os=-isc2.2 … … 153 193 -psos*) 154 194 os=-psos 195 ;; 196 -mint | -mint[0-9]*) 197 basic_machine=m68k-atari 198 os=-mint 155 199 ;; 156 200 esac … … 160 204 # Recognize the basic CPU types without company name. 161 205 # Some are omitted here because they have special meanings below. 162 tahoe | i860 | m32r | m68k | m68000 | m88k | ns32k | arc | arm \ 163 | arme[lb] | pyramid | mn10200 | mn10300 \ 164 | tron | a29k | 580 | i960 | h8300 | hppa | hppa1.0 | hppa1.1 \ 165 | alpha | alphaev5 | alphaev56 | we32k | ns16k | clipper \ 166 | i370 | sh | powerpc | powerpcle | 1750a | dsp16xx | pdp11 \ 167 | mips64 | mipsel | mips64el | mips64orion | mips64orionel \ 168 | mipstx39 | mipstx39el \ 169 | sparc | sparclet | sparclite | sparc64 | v850 | c4x \ 170 | or16 | or32) 206 tahoe | i860 | ia64 | m32r | m68k | m68000 | m88k | ns32k | arc | arm \ 207 | arme[lb] | armv[2345] | armv[345][lb] | pyramid | mn10200 | mn10300 | tron | a29k \ 208 | 580 | i960 | h8300 \ 209 | x86 | ppcbe | mipsbe | mipsle | shbe | shle | armbe | armle \ 210 | hppa | hppa1.0 | hppa1.1 | hppa2.0 | hppa2.0w | hppa2.0n \ 211 | hppa64 \ 212 | alpha | alphaev[4-8] | alphaev56 | alphapca5[67] \ 213 | alphaev6[78] \ 214 | we32k | ns16k | clipper | i370 | sh | sh[34] \ 215 | powerpc | powerpcle \ 216 | 1750a | dsp16xx | pdp11 | mips16 | mips64 | mipsel | mips64el \ 217 | mips64orion | mips64orionel | mipstx39 | mipstx39el \ 218 | mips64vr4300 | mips64vr4300el | mips64vr4100 | mips64vr4100el \ 219 | mips64vr5000 | miprs64vr5000el | mcore \ 220 | sparc | sparclet | sparclite | sparc64 | sparcv9 | v850 | c4x \ 221 | thumb | d10v | d30v | fr30 | avr) 171 222 basic_machine=$basic_machine-unknown 172 223 ;; 173 m88110 | m680[01234]0 | m683?2 | m68360 | z8k | v70 | h8500 | w65) # CYGNUS LOCAL 224 m6811 | m68hc11 | m6812 | m68hc12) 225 # Motorola 68HC11/12. 174 226 basic_machine=$basic_machine-unknown 175 ;; 176 mips64vr4300 | mips64vr4300el) # CYGNUS LOCAL jsmith/vr4300 177 basic_machine=$basic_machine-unknown 178 ;; 179 mips64vr4100 | mips64vr4100el) # CYGNUS LOCAL jsmith/vr4100 180 basic_machine=$basic_machine-unknown 181 ;; 182 mips64vr5000 | mips64vr5000el) # CYGNUS LOCAL ian/vr5000 183 basic_machine=$basic_machine-unknown 184 ;; 185 mips16) # CYGNUS LOCAL krk/mips16 186 basic_machine=$basic_machine-unknown 187 ;; 188 d10v) # CYGNUS LOCAL meissner/d10v 189 basic_machine=$basic_machine-unknown 190 ;; 227 os=-none 228 ;; 229 m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | z8k | v70 | h8500 | w65 | pj | pjl) 230 ;; 231 191 232 # We use `pc' rather than `unknown' 192 233 # because (1) that's what they normally are, and 193 234 # (2) the word "unknown" tends to confuse beginning users. 194 i[ 3456]86)235 i[234567]86 | x86_64) 195 236 basic_machine=$basic_machine-pc 196 237 ;; … … 201 242 ;; 202 243 # Recognize the basic CPU types with company name. 203 vax-* | tahoe-* | i[3456]86-* | i860-* | m32r-* | m68k-* | m68000-* \ 244 # FIXME: clean up the formatting here. 245 vax-* | tahoe-* | i[234567]86-* | i860-* | ia64-* | m32r-* | m68k-* | m68000-* \ 204 246 | m88k-* | sparc-* | ns32k-* | fx80-* | arc-* | arm-* | c[123]* \ 205 247 | mips-* | pyramid-* | tron-* | a29k-* | romp-* | rs6000-* \ 206 | power-* | none-* | 580-* | cray2-* | h8300-* | i960-* \ 207 | xmp-* | ymp-* | hppa-* | hppa1.0-* | hppa1.1-* \ 208 | alpha-* | alphaev5-* | alphaev56-* | we32k-* | cydra-* \ 209 | ns16k-* | pn-* | np1-* | xps100-* | clipper-* | orion-* \ 248 | power-* | none-* | 580-* | cray2-* | h8300-* | h8500-* | i960-* \ 249 | xmp-* | ymp-* \ 250 | x86-* | ppcbe-* | mipsbe-* | mipsle-* | shbe-* | shle-* | armbe-* | armle-* \ 251 | hppa-* | hppa1.0-* | hppa1.1-* | hppa2.0-* | hppa2.0w-* \ 252 | hppa2.0n-* | hppa64-* \ 253 | alpha-* | alphaev[4-8]-* | alphaev56-* | alphapca5[67]-* \ 254 | alphaev6[78]-* \ 255 | we32k-* | cydra-* | ns16k-* | pn-* | np1-* | xps100-* \ 256 | clipper-* | orion-* \ 210 257 | sparclite-* | pdp11-* | sh-* | powerpc-* | powerpcle-* \ 211 | sparc64-* | mips64-* | mipsel-* \258 | sparc64-* | sparcv9-* | sparc86x-* | mips16-* | mips64-* | mipsel-* \ 212 259 | mips64el-* | mips64orion-* | mips64orionel-* \ 213 | mipstx39-* | mipstx39el-* \ 214 | f301-*) 215 ;; 216 m88110-* | m680[01234]0-* | m683?2-* | m68360-* | z8k-* | h8500-* | d10v-*) # CYGNUS LOCAL 217 ;; 218 mips64vr4300-* | mips64vr4300el-*) # CYGNUS LOCAL jsmith/vr4300 219 ;; 220 mips64vr4100-* | mips64vr4100el-*) # CYGNUS LOCAL jsmith/vr4100 221 ;; 222 mips16-*) # CYGNUS LOCAL krk/mips16 260 | mips64vr4100-* | mips64vr4100el-* | mips64vr4300-* | mips64vr4300el-* \ 261 | mipstx39-* | mipstx39el-* | mcore-* \ 262 | f301-* | armv*-* | s390-* | sv1-* | t3e-* \ 263 | m88110-* | m680[01234]0-* | m683?2-* | m68360-* | z8k-* | d10v-* \ 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. 226 386bsd) # CYGNUS LOCAL269 386bsd) 227 270 basic_machine=i386-unknown 228 271 os=-bsd … … 234 277 basic_machine=we32k-att 235 278 ;; 236 a29khif) # CYGNUS LOCAL279 a29khif) 237 280 basic_machine=a29k-amd 238 281 os=-udi 239 282 ;; 240 adobe68k) # CYGNUS LOCAL283 adobe68k) 241 284 basic_machine=m68010-adobe 242 285 os=-scout … … 257 300 ;; 258 301 amiga | amiga-*) 259 basic_machine=m68k- cbm302 basic_machine=m68k-unknown 260 303 ;; 261 304 amigaos | amigados) 262 basic_machine=m68k- cbm305 basic_machine=m68k-unknown 263 306 os=-amigaos 264 307 ;; 265 308 amigaunix | amix) 266 basic_machine=m68k- cbm309 basic_machine=m68k-unknown 267 310 os=-sysv4 268 311 ;; … … 271 314 os=-sysv 272 315 ;; 273 apollo68bsd) # CYGNUS LOCAL316 apollo68bsd) 274 317 basic_machine=m68k-apollo 275 318 os=-bsd … … 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 … … 351 397 basic_machine=ns32k-encore 352 398 ;; 353 es1800 | OSE68k | ose68k | ose | OSE) # CYGNUS LOCAL399 es1800 | OSE68k | ose68k | ose | OSE) 354 400 basic_machine=m68k-ericsson 355 401 os=-ose … … 373 419 os=-hms 374 420 ;; 375 h8300xray) # CYGNUS LOCAL421 h8300xray) 376 422 basic_machine=h8300-hitachi 377 423 os=-xray 378 424 ;; 379 h8500hms) # CYGNUS LOCAL425 h8500hms) 380 426 basic_machine=h8500-hitachi 381 427 os=-hms … … 396 442 os=-hpux 397 443 ;; 398 w89k-*) # CYGNUS LOCAL 399 basic_machine=hppa1.1-winbond 400 os=-proelf 401 ;; 402 op50n-*) # CYGNUS LOCAL 403 basic_machine=hppa1.1-oki 404 os=-proelf 405 ;; 406 op60c-*) # CYGNUS LOCAL 407 basic_machine=hppa1.1-oki 408 os=-proelf 409 ;; 410 hppro) # CYGNUS LOCAL 411 basic_machine=hppa1.1-hp 412 os=-proelf 413 ;; 444 hp3k9[0-9][0-9] | hp9[0-9][0-9]) 445 basic_machine=hppa1.0-hp 446 ;; 414 447 hp9k2[0-9][0-9] | hp9k31[0-9]) 415 448 basic_machine=m68000-hp … … 418 451 basic_machine=m68k-hp 419 452 ;; 420 hp9k7[0-9][0-9] | hp7[0-9][0-9] | hp9k8[0-9]7 | hp8[0-9]7) 453 hp9k6[0-9][0-9] | hp6[0-9][0-9]) 454 basic_machine=hppa1.0-hp 455 ;; 456 hp9k7[0-79][0-9] | hp7[0-79][0-9]) 457 basic_machine=hppa1.1-hp 458 ;; 459 hp9k78[0-9] | hp78[0-9]) 460 # FIXME: really hppa2.0-hp 461 basic_machine=hppa1.1-hp 462 ;; 463 hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893) 464 # FIXME: really hppa2.0-hp 465 basic_machine=hppa1.1-hp 466 ;; 467 hp9k8[0-9][13679] | hp8[0-9][13679]) 421 468 basic_machine=hppa1.1-hp 422 469 ;; … … 427 474 os=-nextstep3 428 475 ;; 429 hppaosf) # CYGNUS LOCAL476 hppaosf) 430 477 basic_machine=hppa1.1-hp 431 478 os=-osf 432 479 ;; 480 hppro) 481 basic_machine=hppa1.1-hp 482 os=-proelf 483 ;; 433 484 i370-ibm* | ibm*) 434 485 basic_machine=i370-ibm 435 os=-mvs436 486 ;; 437 487 # I'm not sure what "Sysv32" means. Should this be sysv3.2? 438 i[3456 ]86v32)488 i[34567]86v32) 439 489 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` 440 490 os=-sysv32 441 491 ;; 442 i[3456 ]86v4*)492 i[34567]86v4*) 443 493 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` 444 494 os=-sysv4 445 495 ;; 446 i[3456 ]86v)496 i[34567]86v) 447 497 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` 448 498 os=-sysv 449 499 ;; 450 i[3456 ]86sol2)500 i[34567]86sol2) 451 501 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` 452 502 os=-solaris2 453 503 ;; 454 i386mach) # CYGNUS LOCAL504 i386mach) 455 505 basic_machine=i386-mach 456 506 os=-mach 457 507 ;; 458 i386-vsta | vsta) # CYGNUS LOCAL508 i386-vsta | vsta) 459 509 basic_machine=i386-unknown 460 510 os=-vsta 461 511 ;; 462 i386-go32 | go32) # CYGNUS LOCAL512 i386-go32 | go32) 463 513 basic_machine=i386-unknown 464 514 os=-go32 515 ;; 516 i386-mingw32 | mingw32) 517 basic_machine=i386-unknown 518 os=-mingw32 519 ;; 520 i[34567]86-pw32 | pw32) 521 basic_machine=i586-unknown 522 os=-pw32 465 523 ;; 466 524 iris | iris4d) … … 492 550 basic_machine=m68000-convergent 493 551 ;; 552 *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*) 553 basic_machine=m68k-atari 554 os=-mint 555 ;; 494 556 mipsel*-linux*) 495 557 basic_machine=mipsel-unknown … … 506 568 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown 507 569 ;; 508 monitor) # CYGNUS LOCAL 570 mmix*) 571 basic_machine=mmix-knuth 572 os=-mmixware 573 ;; 574 monitor) 509 575 basic_machine=m68k-rom68k 510 576 os=-coff 511 577 ;; 512 msdos) # CYGNUS LOCAL513 basic_machine=i386-unknown 578 msdos) 579 basic_machine=i386-unknown 514 580 os=-msdos 581 ;; 582 mvs) 583 basic_machine=i370-ibm 584 os=-mvs 515 585 ;; 516 586 ncr3000) … … 519 589 ;; 520 590 netbsd386) 521 basic_machine=i386-unknown # CYGNUS LOCAL591 basic_machine=i386-unknown 522 592 os=-netbsd 593 ;; 594 netwinder) 595 basic_machine=armv4l-rebel 596 os=-linux 523 597 ;; 524 598 news | news700 | news800 | news900) … … 534 608 os=-newsos 535 609 ;; 536 necv70) # CYGNUS LOCAL610 necv70) 537 611 basic_machine=v70-nec 538 612 os=-sysv … … 563 637 os=-nindy 564 638 ;; 565 mon960) # CYGNUS LOCAL639 mon960) 566 640 basic_machine=i960-intel 567 641 os=-mon960 … … 570 644 basic_machine=np1-gould 571 645 ;; 572 OSE68000 | ose68000) # CYGNUS LOCAL 646 nsr-tandem) 647 basic_machine=nsr-tandem 648 ;; 649 op50n-* | op60c-*) 650 basic_machine=hppa1.1-oki 651 os=-proelf 652 ;; 653 OSE68000 | ose68000) 573 654 basic_machine=m68000-ericsson 574 655 os=-ose 575 656 ;; 576 os68k) # CYGNUS LOCAL657 os68k) 577 658 basic_machine=m68k-none 578 659 os=-os68k … … 595 676 basic_machine=ns32k-pc532 596 677 ;; 597 pentium | p5) 598 basic_machine=i586-intel 599 ;; 600 pentiumpro | p6) 601 basic_machine=i686-intel 602 ;; 603 pentium-* | p5-*) 678 pentium | p5 | k5 | k6 | nexen) 679 basic_machine=i586-pc 680 ;; 681 pentiumpro | p6 | 6x86 | athlon) 682 basic_machine=i686-pc 683 ;; 684 pentiumii | pentium2) 685 basic_machine=i786-pc 686 ;; 687 pentium-* | p5-* | k5-* | k6-* | nexen-*) 604 688 basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` 605 689 ;; 606 pentiumpro-* | p6-* )690 pentiumpro-* | p6-* | 6x86-* | athlon-*) 607 691 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` 608 692 ;; 609 k5) 610 # We don't have specific support for AMD's K5 yet, so just call it a Pentium 611 basic_machine=i586-amd 612 ;; 613 nexen) 614 # We don't have specific support for Nexgen yet, so just call it a Pentium 615 basic_machine=i586-nexgen 693 pentiumii-* | pentium2-*) 694 basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'` 616 695 ;; 617 696 pn) … … 633 712 basic_machine=i386-ibm 634 713 ;; 635 rom68k) # CYGNUS LOCAL714 rom68k) 636 715 basic_machine=m68k-rom68k 637 716 os=-coff … … 643 722 basic_machine=romp-ibm 644 723 ;; 645 sa29200) # CYGNUS LOCAL724 sa29200) 646 725 basic_machine=a29k-amd 647 726 os=-udi … … 654 733 os=-hms 655 734 ;; 656 sparclite-wrs) # CYGNUS LOCAL735 sparclite-wrs) 657 736 basic_machine=sparclite-wrs 658 737 os=-vxworks … … 665 744 basic_machine=spur-unknown 666 745 ;; 667 st2000) # CYGNUS LOCAL746 st2000) 668 747 basic_machine=m68k-tandem 669 748 ;; 670 stratus) # CYGNUS LOCAL749 stratus) 671 750 basic_machine=i860-stratus 672 751 os=-sysv4 … … 712 791 basic_machine=i386-sun 713 792 ;; 793 sv1) 794 basic_machine=sv1-cray 795 os=-unicos 796 ;; 714 797 symmetry) 715 798 basic_machine=i386-sequent 716 799 os=-dynix 717 800 ;; 801 t3e) 802 basic_machine=t3e-cray 803 os=-unicos 804 ;; 805 tic54x | c54x*) 806 basic_machine=tic54x-unknown 807 os=-coff 808 ;; 718 809 tx39) 719 810 basic_machine=mipstx39-unknown … … 733 824 os=-sym1 734 825 ;; 735 v810 | necv810) # CYGNUS LOCAL826 v810 | necv810) 736 827 basic_machine=v810-nec 737 828 os=-none … … 760 851 os=-vxworks 761 852 ;; 762 w65*) # CYGNUS LOCAL 763 basic_machine=w65-wdc 764 os=-none 853 w65*) 854 basic_machine=w65-wdc 855 os=-none 856 ;; 857 w89k-*) 858 basic_machine=hppa1.1-winbond 859 os=-proelf 765 860 ;; 766 861 xmp) … … 771 866 basic_machine=xps100-honeywell 772 867 ;; 773 z8k-*-coff) # CYGNUS LOCAL868 z8k-*-coff) 774 869 basic_machine=z8k-unknown 775 870 os=-sim … … 782 877 # Here we handle the default manufacturer of certain CPU types. It is in 783 878 # some cases the only manufacturer, in others, it is the most popular. 784 w89k) # CYGNUS LOCAL879 w89k) 785 880 basic_machine=hppa1.1-winbond 786 881 ;; 787 op50n) # CYGNUS LOCAL882 op50n) 788 883 basic_machine=hppa1.1-oki 789 884 ;; 790 op60c) # CYGNUS LOCAL885 op60c) 791 886 basic_machine=hppa1.1-oki 792 887 ;; … … 813 908 basic_machine=we32k-att 814 909 ;; 815 sparc) 910 sh3 | sh4) 911 base_machine=sh-unknown 912 ;; 913 sparc | sparcv9) 816 914 basic_machine=sparc-sun 817 915 ;; … … 825 923 basic_machine=clipper-highlevel 826 924 ;; 827 mac | mpw | mac-mpw) # CYGNUS LOCAL925 mac | mpw | mac-mpw) 828 926 basic_machine=m68k-apple 829 927 ;; 830 pmac | pmac-mpw) # CYGNUS LOCAL928 pmac | pmac-mpw) 831 929 basic_machine=powerpc-apple 930 ;; 931 c4x*) 932 basic_machine=c4x-none 933 os=-coff 832 934 ;; 833 935 *) … … 863 965 os=-solaris2 864 966 ;; 865 - unixware* |svr4*)967 -svr4*) 866 968 os=-sysv4 969 ;; 970 -unixware*) 971 os=-sysv4.2uw 867 972 ;; 868 973 -gnu/linux*) … … 881 986 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ 882 987 | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \ 883 | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* \988 | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ 884 989 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ 885 990 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ 886 | -cygwin32* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ 887 | -mingw32* | -linux-gnu* | -uxpv*) 991 | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ 992 | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \ 993 | -interix* | -uwin* | -rhapsody* | -darwin* | -opened* \ 994 | -openstep* | -oskit* | -conix* | -pw32*) 888 995 # Remember, each alternative MUST END IN *, to match a version number. 889 996 ;; 890 # CYGNUS LOCAL 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 ;; 891 1009 -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ 892 | -windows* | -osx | -abug | 893 | -macos* | -mpw* | -magic* | -m on960* | -lnews*)1010 | -windows* | -osx | -abug | -netware* | -os9* | -beos* \ 1011 | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) 894 1012 ;; 895 1013 -mac*) 896 1014 os=`echo $os | sed -e 's|mac|macos|'` 897 1015 ;; 898 # END CYGNUS LOCAL899 1016 -linux*) 900 1017 os=`echo $os | sed -e 's|linux|linux-gnu|'` … … 906 1023 os=`echo $os | sed -e 's|sunos6|solaris3|'` 907 1024 ;; 1025 -opened*) 1026 os=-openedition 1027 ;; 1028 -wince*) 1029 os=-wince 1030 ;; 908 1031 -osfrose*) 909 1032 os=-osfrose … … 921 1044 os=-aos 922 1045 ;; 923 -386bsd) # CYGNUS LOCAL1046 -386bsd) 924 1047 os=-bsd 925 1048 ;; … … 929 1052 -ns2 ) 930 1053 os=-nextstep2 1054 ;; 1055 -nsk*) 1056 os=-nsk 931 1057 ;; 932 1058 # Preserve the version number of sinix5. … … 955 1081 -sysv*) 956 1082 ;; 957 -ose*) # CYGNUS LOCAL1083 -ose*) 958 1084 os=-ose 959 1085 ;; 960 -es1800*) # CYGNUS LOCAL1086 -es1800*) 961 1087 os=-ose 962 1088 ;; 963 1089 -xenix) 964 1090 os=-xenix 1091 ;; 1092 -*mint | -*MiNT) 1093 os=-mint 965 1094 ;; 966 1095 -none) … … 989 1118 os=-riscix1.2 990 1119 ;; 1120 arm*-rebel) 1121 os=-linux 1122 ;; 991 1123 arm*-semi) 992 1124 os=-aout … … 1010 1142 # os=-sunos4 1011 1143 ;; 1012 m68*-cisco) # CYGNUS LOCAL1144 m68*-cisco) 1013 1145 os=-aout 1014 1146 ;; 1015 mips*-cisco) # CYGNUS LOCAL1147 mips*-cisco) 1016 1148 os=-elf 1017 1149 ;; 1018 mips*-*) # CYGNUS LOCAL 1019 1020 1150 mips*-*) 1151 os=-elf 1152 ;; 1021 1153 *-tti) # must be before sparc entry or we get the wrong os. 1022 1154 os=-sysv3 … … 1025 1157 os=-sunos4.1.1 1026 1158 ;; 1027 *-be) # CYGNUS LOCAL1159 *-be) 1028 1160 os=-beos 1029 1161 ;; … … 1031 1163 os=-aix 1032 1164 ;; 1033 *-wec) # CYGNUS LOCAL1165 *-wec) 1034 1166 os=-proelf 1035 1167 ;; 1036 *-winbond) # CYGNUS LOCAL1168 *-winbond) 1037 1169 os=-proelf 1038 1170 ;; 1039 *-oki) # CYGNUS LOCAL1171 *-oki) 1040 1172 os=-proelf 1041 1173 ;; … … 1103 1235 os=-uxpv 1104 1236 ;; 1105 *-rom68k) # CYGNUS LOCAL1237 *-rom68k) 1106 1238 os=-coff 1107 1239 ;; 1108 *-*bug) # CYGNUS LOCAL1240 *-*bug) 1109 1241 os=-coff 1110 1242 ;; 1111 *-apple) # CYGNUS LOCAL1243 *-apple) 1112 1244 os=-macos 1245 ;; 1246 *-atari*) 1247 os=-mint 1113 1248 ;; 1114 1249 *) … … 1133 1268 vendor=ibm 1134 1269 ;; 1135 -beos*) # CYGNUS LOCAL1270 -beos*) 1136 1271 vendor=be 1137 1272 ;; … … 1139 1274 vendor=hp 1140 1275 ;; 1276 -mpeix*) 1277 vendor=hp 1278 ;; 1141 1279 -hiux*) 1142 1280 vendor=hitachi … … 1154 1292 vendor=ns 1155 1293 ;; 1156 -mvs* )1294 -mvs* | -opened*) 1157 1295 vendor=ibm 1158 1296 ;; … … 1166 1304 vendor=apple 1167 1305 ;; 1168 -hms*) # CYGNUS LOCAL1306 -hms*) 1169 1307 vendor=hitachi 1170 1308 ;; 1171 -mpw* | -macos*) # CYGNUS LOCAL1309 -mpw* | -macos*) 1172 1310 vendor=apple 1311 ;; 1312 -*mint | -*MiNT) 1313 vendor=atari 1173 1314 ;; 1174 1315 esac … … 1178 1319 1179 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:
Note: See TracChangeset
for help on using the changeset viewer.