source:
patches/file-4.17-config_update-1.patch@
ea24374
Last change on this file since ea24374 was dd04f68, checked in by , 19 years ago | |
---|---|
|
|
File size: 35.4 KB |
-
config.guess
Submitted By: Jim Gifford (patches at jg555 dot com) Date: 2005-10-01 Initial Package Version: 4.15 Origin: Jim Gifford Upstream Status: Unknown Description: Updates config.sub and config.guess diff -Naur file-4.15.orig/config.guess file-4.15/config.guess
old new 1 1 #! /bin/sh 2 2 # Attempt to guess a canonical system name. 3 3 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 4 # 2000, 2001, 2002 Free Software Foundation, Inc.4 # 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc. 5 5 6 timestamp='200 2-07-23'6 timestamp='2004-11-12' 7 7 8 8 # This file is free software; you can redistribute it and/or modify it 9 9 # under the terms of the GNU General Public License as published by … … 53 53 GNU config.guess ($timestamp) 54 54 55 55 Originally written by Per Bothner. 56 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001 56 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004 57 57 Free Software Foundation, Inc. 58 58 59 59 This is free software; see the source for copying conditions. There is NO … … 98 98 # Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still 99 99 # use `HOST_CC' if defined, but it is deprecated. 100 100 101 # This shell variable is my proudest work .. or something. --bje101 # Portable tmp directory creation inspired by the Autoconf team. 102 102 103 set_cc_for_build='tmpdir=${TMPDIR-/tmp}/config-guess-$$ ; 104 (old=`umask` && umask 077 && mkdir $tmpdir && umask $old && unset old) 105 || (echo "$me: cannot create $tmpdir" >&2 && exit 1) ; 106 dummy=$tmpdir/dummy ; 107 files="$dummy.c $dummy.o $dummy.rel $dummy" ; 108 trap '"'"'rm -f $files; rmdir $tmpdir; exit 1'"'"' 1 2 15 ; 103 set_cc_for_build=' 104 trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ; 105 trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; 106 : ${TMPDIR=/tmp} ; 107 { tmp=`(umask 077 && mktemp -d -q "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || 108 { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || 109 { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } || 110 { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ; 111 dummy=$tmp/dummy ; 112 tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ; 109 113 case $CC_FOR_BUILD,$HOST_CC,$CC in 110 114 ,,) echo "int x;" > $dummy.c ; 111 115 for c in cc gcc c89 c99 ; do 112 if ($c $dummy.c -c -o $dummy.o) >/dev/null 2>&1 ; then116 if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then 113 117 CC_FOR_BUILD="$c"; break ; 114 118 fi ; 115 119 done ; 116 rm -f $files ;117 120 if test x"$CC_FOR_BUILD" = x ; then 118 121 CC_FOR_BUILD=no_compiler_found ; 119 122 fi 120 123 ;; 121 124 ,,*) CC_FOR_BUILD=$CC ;; 122 125 ,*,*) CC_FOR_BUILD=$HOST_CC ;; 123 esac ; 124 unset files' 126 esac ;' 125 127 126 128 # This is needed to find uname on a Pyramid OSx when run in the BSD universe. 127 129 # (ghazi@noc.rutgers.edu 1994-08-24) … … 178 180 ;; 179 181 esac 180 182 # The OS release 181 release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` 183 # Debian GNU/NetBSD machines have a different userland, and 184 # thus, need a distinct triplet. However, they do not need 185 # kernel version information, so it can be replaced with a 186 # suitable tag, in the style of linux-gnu. 187 case "${UNAME_VERSION}" in 188 Debian*) 189 release='-gnu' 190 ;; 191 *) 192 release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` 193 ;; 194 esac 182 195 # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: 183 196 # contains redundant information, the shorter form: 184 197 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. 185 198 echo "${machine}-${os}${release}" 186 199 exit 0 ;; 200 amd64:OpenBSD:*:*) 201 echo x86_64-unknown-openbsd${UNAME_RELEASE} 202 exit 0 ;; 187 203 amiga:OpenBSD:*:*) 188 204 echo m68k-unknown-openbsd${UNAME_RELEASE} 189 205 exit 0 ;; 190 arc:OpenBSD:*:*)191 echo mipsel-unknown-openbsd${UNAME_RELEASE}206 cats:OpenBSD:*:*) 207 echo arm-unknown-openbsd${UNAME_RELEASE} 192 208 exit 0 ;; 193 209 hp300:OpenBSD:*:*) 194 210 echo m68k-unknown-openbsd${UNAME_RELEASE} 195 211 exit 0 ;; 212 luna88k:OpenBSD:*:*) 213 echo m88k-unknown-openbsd${UNAME_RELEASE} 214 exit 0 ;; 196 215 mac68k:OpenBSD:*:*) 197 216 echo m68k-unknown-openbsd${UNAME_RELEASE} 198 217 exit 0 ;; … … 208 227 mvmeppc:OpenBSD:*:*) 209 228 echo powerpc-unknown-openbsd${UNAME_RELEASE} 210 229 exit 0 ;; 211 pmax:OpenBSD:*:*)212 echo mipsel-unknown-openbsd${UNAME_RELEASE}213 exit 0 ;;214 230 sgi:OpenBSD:*:*) 215 echo mips eb-unknown-openbsd${UNAME_RELEASE}231 echo mips64-unknown-openbsd${UNAME_RELEASE} 216 232 exit 0 ;; 217 233 sun3:OpenBSD:*:*) 218 234 echo m68k-unknown-openbsd${UNAME_RELEASE} 219 235 exit 0 ;; 220 wgrisc:OpenBSD:*:*)221 echo mipsel-unknown-openbsd${UNAME_RELEASE}222 exit 0 ;;223 236 *:OpenBSD:*:*) 224 237 echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE} 225 238 exit 0 ;; 239 *:ekkoBSD:*:*) 240 echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} 241 exit 0 ;; 242 macppc:MirBSD:*:*) 243 echo powerppc-unknown-mirbsd${UNAME_RELEASE} 244 exit 0 ;; 245 *:MirBSD:*:*) 246 echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} 247 exit 0 ;; 226 248 alpha:OSF1:*:*) 227 if test $UNAME_RELEASE = "V4.0"; then 249 case $UNAME_RELEASE in 250 *4.0) 228 251 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` 229 fi 252 ;; 253 *5.*) 254 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` 255 ;; 256 esac 257 # According to Compaq, /usr/sbin/psrinfo has been available on 258 # OSF/1 and Tru64 systems produced since 1995. I hope that 259 # covers most systems running today. This code pipes the CPU 260 # types through head -n 1, so we only detect the type of CPU 0. 261 ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1` 262 case "$ALPHA_CPU_TYPE" in 263 "EV4 (21064)") 264 UNAME_MACHINE="alpha" ;; 265 "EV4.5 (21064)") 266 UNAME_MACHINE="alpha" ;; 267 "LCA4 (21066/21068)") 268 UNAME_MACHINE="alpha" ;; 269 "EV5 (21164)") 270 UNAME_MACHINE="alphaev5" ;; 271 "EV5.6 (21164A)") 272 UNAME_MACHINE="alphaev56" ;; 273 "EV5.6 (21164PC)") 274 UNAME_MACHINE="alphapca56" ;; 275 "EV5.7 (21164PC)") 276 UNAME_MACHINE="alphapca57" ;; 277 "EV6 (21264)") 278 UNAME_MACHINE="alphaev6" ;; 279 "EV6.7 (21264A)") 280 UNAME_MACHINE="alphaev67" ;; 281 "EV6.8CB (21264C)") 282 UNAME_MACHINE="alphaev68" ;; 283 "EV6.8AL (21264B)") 284 UNAME_MACHINE="alphaev68" ;; 285 "EV6.8CX (21264D)") 286 UNAME_MACHINE="alphaev68" ;; 287 "EV6.9A (21264/EV69A)") 288 UNAME_MACHINE="alphaev69" ;; 289 "EV7 (21364)") 290 UNAME_MACHINE="alphaev7" ;; 291 "EV7.9 (21364A)") 292 UNAME_MACHINE="alphaev79" ;; 293 esac 294 # A Pn.n version is a patched version. 230 295 # A Vn.n version is a released version. 231 296 # A Tn.n version is a released field test version. 232 297 # A Xn.n version is an unreleased experimental baselevel. 233 298 # 1.2 uses "1.2" for uname -r. 234 eval $set_cc_for_build 235 cat <<EOF >$dummy.s 236 .data 237 \$Lformat: 238 .byte 37,100,45,37,120,10,0 # "%d-%x\n" 239 240 .text 241 .globl main 242 .align 4 243 .ent main 244 main: 245 .frame \$30,16,\$26,0 246 ldgp \$29,0(\$27) 247 .prologue 1 248 .long 0x47e03d80 # implver \$0 249 lda \$2,-1 250 .long 0x47e20c21 # amask \$2,\$1 251 lda \$16,\$Lformat 252 mov \$0,\$17 253 not \$1,\$18 254 jsr \$26,printf 255 ldgp \$29,0(\$26) 256 mov 0,\$16 257 jsr \$26,exit 258 .end main 259 EOF 260 $CC_FOR_BUILD $dummy.s -o $dummy 2>/dev/null 261 if test "$?" = 0 ; then 262 case `$dummy` in 263 0-0) 264 UNAME_MACHINE="alpha" 265 ;; 266 1-0) 267 UNAME_MACHINE="alphaev5" 268 ;; 269 1-1) 270 UNAME_MACHINE="alphaev56" 271 ;; 272 1-101) 273 UNAME_MACHINE="alphapca56" 274 ;; 275 2-303) 276 UNAME_MACHINE="alphaev6" 277 ;; 278 2-307) 279 UNAME_MACHINE="alphaev67" 280 ;; 281 2-1307) 282 UNAME_MACHINE="alphaev68" 283 ;; 284 3-1307) 285 UNAME_MACHINE="alphaev7" 286 ;; 287 esac 288 fi 289 rm -f $dummy.s $dummy && rmdir $tmpdir 290 echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 299 echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 291 300 exit 0 ;; 292 301 Alpha\ *:Windows_NT*:*) 293 302 # How do we know it's Interix rather than the generic POSIX subsystem? … … 310 319 *:OS/390:*:*) 311 320 echo i370-ibm-openedition 312 321 exit 0 ;; 322 *:z/VM:*:*) 323 echo s390-ibm-zvmoe 324 exit 0 ;; 325 *:OS400:*:*) 326 echo powerpc-ibm-os400 327 exit 0 ;; 313 328 arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) 314 329 echo arm-acorn-riscix${UNAME_RELEASE} 315 330 exit 0;; … … 327 342 NILE*:*:*:dcosx) 328 343 echo pyramid-pyramid-svr4 329 344 exit 0 ;; 330 DRS?6000:UNIX_SV:4.2*:7*) 345 DRS?6000:unix:4.0:6*) 346 echo sparc-icl-nx6 347 exit 0 ;; 348 DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) 331 349 case `/usr/bin/uname -p` in 332 350 sparc) echo sparc-icl-nx7 && exit 0 ;; 333 351 esac ;; … … 399 417 *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) 400 418 echo m68k-unknown-mint${UNAME_RELEASE} 401 419 exit 0 ;; 420 m68k:machten:*:*) 421 echo m68k-apple-machten${UNAME_RELEASE} 422 exit 0 ;; 402 423 powerpc:machten:*:*) 403 424 echo powerpc-apple-machten${UNAME_RELEASE} 404 425 exit 0 ;; … … 437 458 exit (-1); 438 459 } 439 460 EOF 440 $CC_FOR_BUILD $dummy.c -o $dummy\461 $CC_FOR_BUILD -o $dummy $dummy.c \ 441 462 && $dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \ 442 && rm -f $dummy.c $dummy && rmdir $tmpdir && exit 0 443 rm -f $dummy.c $dummy && rmdir $tmpdir 463 && exit 0 444 464 echo mips-mips-riscos${UNAME_RELEASE} 445 465 exit 0 ;; 446 466 Motorola:PowerMAX_OS:*:*) 447 467 echo powerpc-motorola-powermax 448 468 exit 0 ;; 449 Night_Hawk:*:*:PowerMAX_OS) 469 Motorola:*:4.3:PL8-*) 470 echo powerpc-harris-powermax 471 exit 0 ;; 472 Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) 450 473 echo powerpc-harris-powermax 451 474 exit 0 ;; 452 475 Night_Hawk:Power_UNIX:*:*) … … 521 544 exit(0); 522 545 } 523 546 EOF 524 $CC_FOR_BUILD $dummy.c -o $dummy && $dummy && rm -f $dummy.c $dummy && rmdir $tmpdir && exit 0 525 rm -f $dummy.c $dummy && rmdir $tmpdir 547 $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0 526 548 echo rs6000-ibm-aix3.2.5 527 549 elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then 528 550 echo rs6000-ibm-aix3.2.4 … … 620 642 exit (0); 621 643 } 622 644 EOF 623 (CCOPTS= $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null) && HP_ARCH=`$dummy` 624 if test -z "$HP_ARCH"; then HP_ARCH=hppa; fi 625 rm -f $dummy.c $dummy && rmdir $tmpdir 645 (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` 646 test -z "$HP_ARCH" && HP_ARCH=hppa 626 647 fi ;; 627 648 esac 649 if [ ${HP_ARCH} = "hppa2.0w" ] 650 then 651 # avoid double evaluation of $set_cc_for_build 652 test -n "$CC_FOR_BUILD" || eval $set_cc_for_build 653 if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E -) | grep __LP64__ >/dev/null 654 then 655 HP_ARCH="hppa2.0w" 656 else 657 HP_ARCH="hppa64" 658 fi 659 fi 628 660 echo ${HP_ARCH}-hp-hpux${HPUX_REV} 629 661 exit 0 ;; 630 662 ia64:HP-UX:*:*) … … 658 690 exit (0); 659 691 } 660 692 EOF 661 $CC_FOR_BUILD $dummy.c -o $dummy && $dummy && rm -f $dummy.c $dummy && rmdir $tmpdir && exit 0 662 rm -f $dummy.c $dummy && rmdir $tmpdir 693 $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0 663 694 echo unknown-hitachi-hiuxwe2 664 695 exit 0 ;; 665 696 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) … … 717 748 CRAY*TS:*:*:*) 718 749 echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 719 750 exit 0 ;; 720 CRAY*T3D:*:*:*)721 echo alpha-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'722 exit 0 ;;723 751 CRAY*T3E:*:*:*) 724 752 echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 725 753 exit 0 ;; 726 754 CRAY*SV1:*:*:*) 727 755 echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 728 756 exit 0 ;; 757 *:UNICOS/mp:*:*) 758 echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 759 exit 0 ;; 729 760 F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) 730 761 FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 731 762 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` 732 763 FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` 733 764 echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" 734 765 exit 0 ;; 766 5000:UNIX_System_V:4.*:*) 767 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` 768 FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'` 769 echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" 770 exit 0 ;; 735 771 i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) 736 772 echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} 737 773 exit 0 ;; … … 742 778 echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} 743 779 exit 0 ;; 744 780 *:FreeBSD:*:*) 745 # Determine whether the default compiler uses glibc. 746 eval $set_cc_for_build 747 sed 's/^ //' << EOF >$dummy.c 748 #include <features.h> 749 #if __GLIBC__ >= 2 750 LIBC=gnu 751 #else 752 LIBC= 753 #endif 754 EOF 755 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=` 756 rm -f $dummy.c && rmdir $tmpdir 757 echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`${LIBC:+-$LIBC} 781 echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` 758 782 exit 0 ;; 759 783 i*:CYGWIN*:*) 760 784 echo ${UNAME_MACHINE}-pc-cygwin … … 765 789 i*:PW*:*) 766 790 echo ${UNAME_MACHINE}-pc-pw32 767 791 exit 0 ;; 768 x86:Interix*:3*) 769 echo i386-pc-interix3 792 x86:Interix*:[34]*) 793 echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//' 794 exit 0 ;; 795 [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) 796 echo i${UNAME_MACHINE}-pc-mks 770 797 exit 0 ;; 771 798 i*:Windows_NT*:* | Pentium*:Windows_NT*:*) 772 799 # How do we know it's Interix rather than the generic POSIX subsystem? 773 800 # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we 774 801 # UNAME_MACHINE based on the output of uname instead of i386? 775 echo i 386-pc-interix802 echo i586-pc-interix 776 803 exit 0 ;; 777 804 i*:UWIN*:*) 778 805 echo ${UNAME_MACHINE}-pc-uwin … … 784 811 echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 785 812 exit 0 ;; 786 813 *:GNU:*:*) 814 # the GNU system 787 815 echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` 788 816 exit 0 ;; 817 *:GNU/*:*:*) 818 # other systems with GNU libc and userland 819 echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu 820 exit 0 ;; 789 821 i*86:Minix:*:*) 790 822 echo ${UNAME_MACHINE}-pc-minix 791 823 exit 0 ;; 792 824 arm*:Linux:*:*) 793 825 echo ${UNAME_MACHINE}-unknown-linux-gnu 794 826 exit 0 ;; 827 cris:Linux:*:*) 828 echo cris-axis-linux-gnu 829 exit 0 ;; 830 crisv32:Linux:*:*) 831 echo crisv32-axis-linux-gnu 832 exit 0 ;; 833 frv:Linux:*:*) 834 echo frv-unknown-linux-gnu 835 exit 0 ;; 795 836 ia64:Linux:*:*) 796 837 echo ${UNAME_MACHINE}-unknown-linux-gnu 797 838 exit 0 ;; 839 m32r*:Linux:*:*) 840 echo ${UNAME_MACHINE}-unknown-linux-gnu 841 exit 0 ;; 798 842 m68*:Linux:*:*) 799 843 echo ${UNAME_MACHINE}-unknown-linux-gnu 800 844 exit 0 ;; … … 815 859 #endif 816 860 EOF 817 861 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=` 818 rm -f $dummy.c && rmdir $tmpdir 819 test x"${CPU}" != x && echo "${CPU}-pc-linux-gnu" && exit 0 862 test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0 863 ;; 864 mips64:Linux:*:*) 865 eval $set_cc_for_build 866 sed 's/^ //' << EOF >$dummy.c 867 #undef CPU 868 #undef mips64 869 #undef mips64el 870 #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) 871 CPU=mips64el 872 #else 873 #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) 874 CPU=mips64 875 #else 876 CPU= 877 #endif 878 #endif 879 EOF 880 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=` 881 test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0 820 882 ;; 821 883 ppc:Linux:*:*) 822 884 echo powerpc-unknown-linux-gnu … … 852 914 s390:Linux:*:* | s390x:Linux:*:*) 853 915 echo ${UNAME_MACHINE}-ibm-linux 854 916 exit 0 ;; 917 sh64*:Linux:*:*) 918 echo ${UNAME_MACHINE}-unknown-linux-gnu 919 exit 0 ;; 855 920 sh*:Linux:*:*) 856 921 echo ${UNAME_MACHINE}-unknown-linux-gnu 857 922 exit 0 ;; … … 909 974 LIBC=gnuaout 910 975 #endif 911 976 #endif 977 #ifdef __dietlibc__ 978 LIBC=dietlibc 979 #endif 912 980 EOF 913 981 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=` 914 rm -f $dummy.c && rmdir $tmpdir915 982 test x"${LIBC}" != x && echo "${UNAME_MACHINE}-pc-linux-${LIBC}" && exit 0 916 983 test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0 917 984 ;; … … 929 996 # Use sysv4.2uw... so that sysv4* matches it. 930 997 echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} 931 998 exit 0 ;; 999 i*86:OS/2:*:*) 1000 # If we were able to find `uname', then EMX Unix compatibility 1001 # is probably installed. 1002 echo ${UNAME_MACHINE}-pc-os2-emx 1003 exit 0 ;; 1004 i*86:XTS-300:*:STOP) 1005 echo ${UNAME_MACHINE}-unknown-stop 1006 exit 0 ;; 1007 i*86:atheos:*:*) 1008 echo ${UNAME_MACHINE}-unknown-atheos 1009 exit 0 ;; 1010 i*86:syllable:*:*) 1011 echo ${UNAME_MACHINE}-pc-syllable 1012 exit 0 ;; 1013 i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*) 1014 echo i386-unknown-lynxos${UNAME_RELEASE} 1015 exit 0 ;; 1016 i*86:*DOS:*:*) 1017 echo ${UNAME_MACHINE}-pc-msdosdjgpp 1018 exit 0 ;; 932 1019 i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*) 933 1020 UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` 934 1021 if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then … … 963 1050 echo ${UNAME_MACHINE}-pc-sysv32 964 1051 fi 965 1052 exit 0 ;; 966 i*86:*DOS:*:*)967 echo ${UNAME_MACHINE}-pc-msdosdjgpp968 exit 0 ;;969 1053 pc:*:*:*) 970 1054 # Left here for compatibility: 971 1055 # uname -m prints for DJGPP always 'pc', but it prints nothing about … … 989 1073 # "miniframe" 990 1074 echo m68010-convergent-sysv 991 1075 exit 0 ;; 992 M68*:*:R3V[567]*:*) 1076 mc68k:UNIX:SYSTEM5:3.51m) 1077 echo m68k-convergent-sysv 1078 exit 0 ;; 1079 M680?0:D-NIX:5.3:*) 1080 echo m68k-diab-dnix 1081 exit 0 ;; 1082 M68*:*:R3V[5678]*:*) 993 1083 test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;; 994 3[34 ]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0)1084 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0) 995 1085 OS_REL='' 996 1086 test -r /etc/.relid \ 997 1087 && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` … … 1008 1098 mc68030:UNIX_System_V:4.*:*) 1009 1099 echo m68k-atari-sysv4 1010 1100 exit 0 ;; 1011 i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)1012 echo i386-unknown-lynxos${UNAME_RELEASE}1013 exit 0 ;;1014 1101 TSUNAMI:LynxOS:2.*:*) 1015 1102 echo sparc-unknown-lynxos${UNAME_RELEASE} 1016 1103 exit 0 ;; … … 1082 1169 SX-5:SUPER-UX:*:*) 1083 1170 echo sx5-nec-superux${UNAME_RELEASE} 1084 1171 exit 0 ;; 1172 SX-6:SUPER-UX:*:*) 1173 echo sx6-nec-superux${UNAME_RELEASE} 1174 exit 0 ;; 1085 1175 Power*:Rhapsody:*:*) 1086 1176 echo powerpc-apple-rhapsody${UNAME_RELEASE} 1087 1177 exit 0 ;; … … 1089 1179 echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} 1090 1180 exit 0 ;; 1091 1181 *:Darwin:*:*) 1092 echo `uname -p`-apple-darwin${UNAME_RELEASE} 1182 UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown 1183 case $UNAME_PROCESSOR in 1184 *86) UNAME_PROCESSOR=i686 ;; 1185 unknown) UNAME_PROCESSOR=powerpc ;; 1186 esac 1187 echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} 1093 1188 exit 0 ;; 1094 1189 *:procnto*:*:* | *:QNX:[0123456789]*:*) 1095 1190 UNAME_PROCESSOR=`uname -p` … … 1102 1197 *:QNX:*:4*) 1103 1198 echo i386-pc-qnx 1104 1199 exit 0 ;; 1105 NSR- [GKLNPTVW]:NONSTOP_KERNEL:*:*)1200 NSR-?:NONSTOP_KERNEL:*:*) 1106 1201 echo nsr-tandem-nsk${UNAME_RELEASE} 1107 1202 exit 0 ;; 1108 1203 *:NonStop-UX:*:*) … … 1125 1220 fi 1126 1221 echo ${UNAME_MACHINE}-unknown-plan9 1127 1222 exit 0 ;; 1128 i*86:OS/2:*:*)1129 # If we were able to find `uname', then EMX Unix compatibility1130 # is probably installed.1131 echo ${UNAME_MACHINE}-pc-os2-emx1132 exit 0 ;;1133 1223 *:TOPS-10:*:*) 1134 1224 echo pdp10-unknown-tops10 1135 1225 exit 0 ;; … … 1148 1238 *:ITS:*:*) 1149 1239 echo pdp10-unknown-its 1150 1240 exit 0 ;; 1151 i*86:XTS-300:*:STOP)1152 echo ${UNAME_MACHINE}-unknown-stop 1241 SEI:*:*:SEIUX) 1242 echo mips-sei-seiux${UNAME_RELEASE} 1153 1243 exit 0 ;; 1154 i*86:atheos:*:*) 1155 echo ${UNAME_MACHINE}-unknown-atheos 1244 *:DragonFly:*:*) 1245 echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` 1246 exit 0 ;; 1247 *:*VMS:*:*) 1248 UNAME_MACHINE=`(uname -p) 2>/dev/null` 1249 case "${UNAME_MACHINE}" in 1250 A*) echo alpha-dec-vms && exit 0 ;; 1251 I*) echo ia64-dec-vms && exit 0 ;; 1252 V*) echo vax-dec-vms && exit 0 ;; 1253 esac ;; 1254 *:XENIX:*:SysV) 1255 echo i386-pc-xenix 1156 1256 exit 0 ;; 1157 1257 esac 1158 1258 … … 1274 1374 } 1275 1375 EOF 1276 1376 1277 $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null && $dummy && rm -f $dummy.c $dummy && rmdir $tmpdir && exit 0 1278 rm -f $dummy.c $dummy && rmdir $tmpdir 1377 $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && $dummy && exit 0 1279 1378 1280 1379 # Apollos put the system type in the environment. 1281 1380 -
config.sub
diff -Naur file-4.15.orig/config.sub file-4.15/config.sub
old new 1 1 #! /bin/sh 2 2 # Configuration validation subroutine script. 3 3 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 4 # 2000, 2001, 2002 Free Software Foundation, Inc.4 # 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc. 5 5 6 timestamp='200 2-07-03'6 timestamp='2004-11-30' 7 7 8 8 # This file is (in principle) common to ALL GNU software. 9 9 # The presence of a machine in this file suggests that SOME GNU software … … 70 70 version="\ 71 71 GNU config.sub ($timestamp) 72 72 73 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001 73 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004 74 74 Free Software Foundation, Inc. 75 75 76 76 This is free software; see the source for copying conditions. There is NO … … 118 118 # Here we must recognize all the valid KERNEL-OS combinations. 119 119 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` 120 120 case $maybe_os in 121 nto-qnx* | linux-gnu* | freebsd*-gnu* | storm-chaos* | os2-emx* | windows32-* | rtmk-nova*) 121 nto-qnx* | linux-gnu* | linux-dietlibc | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | \ 122 kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*) 122 123 os=-$maybe_os 123 124 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` 124 125 ;; … … 144 145 -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ 145 146 -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ 146 147 -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ 147 -apple | -axis )148 -apple | -axis | -knuth | -cray) 148 149 os= 149 150 basic_machine=$1 150 151 ;; … … 228 229 | a29k \ 229 230 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ 230 231 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ 232 | am33_2.0 \ 231 233 | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \ 232 234 | c4x | clipper \ 233 235 | d10v | d30v | dlx | dsp16xx \ 234 236 | fr30 | frv \ 235 237 | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ 236 238 | i370 | i860 | i960 | ia64 \ 237 | ip2k \238 | m32r | m 68000 | m68k | m88k| mcore \239 | ip2k | iq2000 \ 240 | m32r | m32rle | m68000 | m68k | m88k | maxq | mcore \ 239 241 | mips | mipsbe | mipseb | mipsel | mipsle \ 240 242 | mips16 \ 241 243 | mips64 | mips64el \ 244 | mips64vr | mips64vrel \ 242 245 | mips64orion | mips64orionel \ 243 246 | mips64vr4100 | mips64vr4100el \ 244 247 | mips64vr4300 | mips64vr4300el \ 245 248 | mips64vr5000 | mips64vr5000el \ 246 249 | mipsisa32 | mipsisa32el \ 250 | mipsisa32r2 | mipsisa32r2el \ 247 251 | mipsisa64 | mipsisa64el \ 252 | mipsisa64r2 | mipsisa64r2el \ 248 253 | mipsisa64sb1 | mipsisa64sb1el \ 254 | mipsisa64sr71k | mipsisa64sr71kel \ 249 255 | mipstx39 | mipstx39el \ 250 256 | mn10200 | mn10300 \ 257 | msp430 \ 251 258 | ns16k | ns32k \ 252 259 | openrisc | or32 \ 253 260 | pdp10 | pdp11 | pj | pjl \ 254 261 | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ 255 262 | pyramid \ 256 | sh | sh[1234] | sh 3e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \263 | sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \ 257 264 | sh64 | sh64le \ 258 | sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv 9 | sparcv9b \265 | sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv8 | sparcv9 | sparcv9b \ 259 266 | strongarm \ 260 | tahoe | thumb | tic 80 | tron \267 | tahoe | thumb | tic4x | tic80 | tron \ 261 268 | v850 | v850e \ 262 269 | we32k \ 263 | x86 | xscale | xs tormy16 | xtensa \270 | x86 | xscale | xscalee[bl] | xstormy16 | xtensa \ 264 271 | z8k) 265 272 basic_machine=$basic_machine-unknown 266 273 ;; … … 292 299 | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ 293 300 | avr-* \ 294 301 | bs2000-* \ 295 | c[123]* | c30-* | [cjt]90-* | c 54x-* \296 | clipper-* | c ydra-* \302 | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \ 303 | clipper-* | craynv-* | cydra-* \ 297 304 | d10v-* | d30v-* | dlx-* \ 298 305 | elxsi-* \ 299 306 | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \ 300 307 | h8300-* | h8500-* \ 301 308 | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ 302 309 | i*86-* | i860-* | i960-* | ia64-* \ 303 | ip2k-* \304 | m32r-* \310 | ip2k-* | iq2000-* \ 311 | m32r-* | m32rle-* \ 305 312 | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ 306 | m88110-* | m88k-* | m core-* \313 | m88110-* | m88k-* | maxq-* | mcore-* \ 307 314 | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ 308 315 | mips16-* \ 309 316 | mips64-* | mips64el-* \ 317 | mips64vr-* | mips64vrel-* \ 310 318 | mips64orion-* | mips64orionel-* \ 311 319 | mips64vr4100-* | mips64vr4100el-* \ 312 320 | mips64vr4300-* | mips64vr4300el-* \ 313 321 | mips64vr5000-* | mips64vr5000el-* \ 314 322 | mipsisa32-* | mipsisa32el-* \ 323 | mipsisa32r2-* | mipsisa32r2el-* \ 315 324 | mipsisa64-* | mipsisa64el-* \ 325 | mipsisa64r2-* | mipsisa64r2el-* \ 316 326 | mipsisa64sb1-* | mipsisa64sb1el-* \ 317 | mipstx39 | mipstx39el \ 327 | mipsisa64sr71k-* | mipsisa64sr71kel-* \ 328 | mipstx39-* | mipstx39el-* \ 329 | mmix-* \ 330 | msp430-* \ 318 331 | none-* | np1-* | ns16k-* | ns32k-* \ 319 332 | orion-* \ 320 333 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ 321 334 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ 322 335 | pyramid-* \ 323 336 | romp-* | rs6000-* \ 324 | sh-* | sh[1234]-* | sh 3e-* | sh[34]eb-* | shbe-* \337 | sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \ 325 338 | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ 326 339 | sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \ 327 | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \ 328 | tahoe-* | thumb-* | tic30-* | tic54x-* | tic80-* | tron-* \ 340 | sparcv8-* | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \ 341 | tahoe-* | thumb-* \ 342 | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ 343 | tron-* \ 329 344 | v850-* | v850e-* | vax-* \ 330 345 | we32k-* \ 331 | x86-* | x86_64-* | xps100-* | xscale-* | xs tormy16-* \332 | x tensa-* \346 | x86-* | x86_64-* | xps100-* | xscale-* | xscalee[bl]-* \ 347 | xstormy16-* | xtensa-* \ 333 348 | ymp-* \ 334 349 | z8k-*) 335 350 ;; … … 349 364 basic_machine=a29k-amd 350 365 os=-udi 351 366 ;; 367 abacus) 368 basic_machine=abacus-unknown 369 ;; 352 370 adobe68k) 353 371 basic_machine=m68010-adobe 354 372 os=-scout … … 363 381 basic_machine=a29k-none 364 382 os=-bsd 365 383 ;; 384 amd64) 385 basic_machine=x86_64-pc 386 ;; 387 amd64-*) 388 basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'` 389 ;; 366 390 amdahl) 367 391 basic_machine=580-amdahl 368 392 os=-sysv … … 422 446 basic_machine=j90-cray 423 447 os=-unicos 424 448 ;; 449 craynv) 450 basic_machine=craynv-cray 451 os=-unicosmp 452 ;; 453 cr16c) 454 basic_machine=cr16c-unknown 455 os=-elf 456 ;; 425 457 crds | unos) 426 458 basic_machine=m68k-crds 427 459 ;; 460 crisv32 | crisv32-* | etraxfs*) 461 basic_machine=crisv32-axis 462 ;; 428 463 cris | cris-* | etrax*) 429 464 basic_machine=cris-axis 430 465 ;; 466 crx) 467 basic_machine=crx-unknown 468 os=-elf 469 ;; 431 470 da30 | da30-*) 432 471 basic_machine=m68k-da30 433 472 ;; … … 450 489 basic_machine=m88k-motorola 451 490 os=-sysv3 452 491 ;; 492 djgpp) 493 basic_machine=i586-pc 494 os=-msdosdjgpp 495 ;; 453 496 dpx20 | dpx20-*) 454 497 basic_machine=rs6000-bull 455 498 os=-bosx … … 628 671 mips3*) 629 672 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown 630 673 ;; 631 mmix*)632 basic_machine=mmix-knuth633 os=-mmixware634 ;;635 674 monitor) 636 675 basic_machine=m68k-rom68k 637 676 os=-coff … … 723 762 basic_machine=or32-unknown 724 763 os=-coff 725 764 ;; 765 os400) 766 basic_machine=powerpc-ibm 767 os=-os400 768 ;; 726 769 OSE68000 | ose68000) 727 770 basic_machine=m68000-ericsson 728 771 os=-ose … … 745 788 pbb) 746 789 basic_machine=m68k-tti 747 790 ;; 748 791 pc532 | pc532-*) 749 792 basic_machine=ns32k-pc532 750 793 ;; 751 794 pentium | p5 | k5 | k6 | nexgen | viac3) 752 795 basic_machine=i586-pc 753 796 ;; 754 pentiumpro | p6 | 6x86 | athlon )797 pentiumpro | p6 | 6x86 | athlon | athlon_*) 755 798 basic_machine=i686-pc 756 799 ;; 757 pentiumii | pentium2 )800 pentiumii | pentium2 | pentiumiii | pentium3) 758 801 basic_machine=i686-pc 759 802 ;; 803 pentium4) 804 basic_machine=i786-pc 805 ;; 760 806 pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) 761 807 basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` 762 808 ;; 763 809 pentiumpro-* | p6-* | 6x86-* | athlon-*) 764 810 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` 765 811 ;; 766 pentiumii-* | pentium2-* )812 pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*) 767 813 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` 768 814 ;; 815 pentium4-*) 816 basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'` 817 ;; 769 818 pn) 770 819 basic_machine=pn-gould 771 820 ;; 772 821 power) basic_machine=power-ibm 773 822 ;; 774 823 ppc) basic_machine=powerpc-unknown 775 824 ;; 776 825 ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` 777 826 ;; 778 827 ppcle | powerpclittle | ppc-le | powerpc-little) 779 828 basic_machine=powerpcle-unknown 780 829 ;; 781 830 ppcle-* | powerpclittle-*) 782 831 basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` 783 832 ;; 784 833 ppc64) basic_machine=powerpc64-unknown 785 834 ;; 786 835 ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'` 787 836 ;; 788 837 ppc64le | powerpc64little | ppc64-le | powerpc64-little) 789 838 basic_machine=powerpc64le-unknown 790 839 ;; 791 840 ppc64le-* | powerpc64little-*) 792 841 basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'` 793 842 ;; … … 818 867 basic_machine=a29k-amd 819 868 os=-udi 820 869 ;; 870 sb1) 871 basic_machine=mipsisa64sb1-unknown 872 ;; 873 sb1el) 874 basic_machine=mipsisa64sb1el-unknown 875 ;; 876 sei) 877 basic_machine=mips-sei 878 os=-seiux 879 ;; 821 880 sequent) 822 881 basic_machine=i386-sequent 823 882 ;; … … 825 884 basic_machine=sh-hitachi 826 885 os=-hms 827 886 ;; 887 sh64) 888 basic_machine=sh64-unknown 889 ;; 828 890 sparclite-wrs | simso-wrs) 829 891 basic_machine=sparclite-wrs 830 892 os=-vxworks … … 883 945 sun386 | sun386i | roadrunner) 884 946 basic_machine=i386-sun 885 947 ;; 886 948 sv1) 887 949 basic_machine=sv1-cray 888 950 os=-unicos 889 951 ;; … … 891 953 basic_machine=i386-sequent 892 954 os=-dynix 893 955 ;; 894 t3d)895 basic_machine=alpha-cray896 os=-unicos897 ;;898 956 t3e) 899 957 basic_machine=alphaev5-cray 900 958 os=-unicos … … 907 965 basic_machine=tic54x-unknown 908 966 os=-coff 909 967 ;; 968 tic55x | c55x*) 969 basic_machine=tic55x-unknown 970 os=-coff 971 ;; 972 tic6x | c6x*) 973 basic_machine=tic6x-unknown 974 os=-coff 975 ;; 910 976 tx39) 911 977 basic_machine=mipstx39-unknown 912 978 ;; … … 920 986 tower | tower-32) 921 987 basic_machine=m68k-ncr 922 988 ;; 989 tpf) 990 basic_machine=s390x-ibm 991 os=-tpf 992 ;; 923 993 udi29k) 924 994 basic_machine=a29k-amd 925 995 os=-udi … … 941 1011 os=-vms 942 1012 ;; 943 1013 vpp*|vx|vx-*) 944 945 1014 basic_machine=f301-fujitsu 1015 ;; 946 1016 vxworks960) 947 1017 basic_machine=i960-wrs 948 1018 os=-vxworks … … 963 1033 basic_machine=hppa1.1-winbond 964 1034 os=-proelf 965 1035 ;; 966 windows32)967 basic_machine=i 386-pc968 os=- windows32-msvcrt1036 xbox) 1037 basic_machine=i686-pc 1038 os=-mingw32 969 1039 ;; 970 1040 xps | xps100) 971 1041 basic_machine=xps100-honeywell 972 1042 ;; 973 1043 ymp) … … 997 1067 romp) 998 1068 basic_machine=romp-ibm 999 1069 ;; 1070 mmix) 1071 basic_machine=mmix-knuth 1072 ;; 1000 1073 rs6000) 1001 1074 basic_machine=rs6000-ibm 1002 1075 ;; … … 1013 1086 we32k) 1014 1087 basic_machine=we32k-att 1015 1088 ;; 1016 sh3 | sh4 | sh 3eb | sh4eb | sh[1234]le | sh3ele)1089 sh3 | sh4 | sh[34]eb | sh[1234]le | sh[23]ele) 1017 1090 basic_machine=sh-unknown 1018 1091 ;; 1019 1092 sh64) 1020 1093 basic_machine=sh64-unknown 1021 1094 ;; 1022 sparc | sparcv 9 | sparcv9b)1095 sparc | sparcv8 | sparcv9 | sparcv9b) 1023 1096 basic_machine=sparc-sun 1024 1097 ;; 1025 1098 cydra) 1026 1099 basic_machine=cydra-cydrome 1027 1100 ;; 1028 1101 orion) … … 1037 1110 pmac | pmac-mpw) 1038 1111 basic_machine=powerpc-apple 1039 1112 ;; 1040 c4x*)1041 basic_machine=c4x-none1042 os=-coff1043 ;;1044 1113 *-unknown) 1045 1114 # Make sure to match an already-canonicalized machine name. 1046 1115 ;; … … 1096 1165 | -aos* \ 1097 1166 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ 1098 1167 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ 1099 | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \ 1100 | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ 1168 | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* | -openbsd* \ 1169 | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ 1170 | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ 1101 1171 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ 1102 1172 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ 1103 1173 | -chorusos* | -chorusrdb* \ 1104 1174 | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ 1105 | -mingw32* | -linux-gnu* | - uxpv* | -beos* | -mpeix* | -udk* \1106 | -interix* | -uwin* | - rhapsody* | -darwin* | -opened* \1175 | -mingw32* | -linux-gnu* | -linux-uclibc* | -uxpv* | -beos* | -mpeix* | -udk* \ 1176 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ 1107 1177 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ 1108 1178 | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ 1109 1179 | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ 1110 | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* | -powermax*) 1180 | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ 1181 | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly*) 1111 1182 # Remember, each alternative MUST END IN *, to match a version number. 1112 1183 ;; 1113 1184 -qnx*) … … 1119 1190 ;; 1120 1191 esac 1121 1192 ;; 1193 -nto-qnx*) 1194 ;; 1122 1195 -nto*) 1123 os= -nto-qnx1196 os=`echo $os | sed -e 's|nto|nto-qnx|'` 1124 1197 ;; 1125 1198 -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ 1126 1199 | -windows* | -osx | -abug | -netware* | -os9* | -beos* \ … … 1129 1202 -mac*) 1130 1203 os=`echo $os | sed -e 's|mac|macos|'` 1131 1204 ;; 1205 -linux-dietlibc) 1206 os=-linux-dietlibc 1207 ;; 1132 1208 -linux*) 1133 1209 os=`echo $os | sed -e 's|linux|linux-gnu|'` 1134 1210 ;; … … 1141 1217 -opened*) 1142 1218 os=-openedition 1143 1219 ;; 1220 -os400*) 1221 os=-os400 1222 ;; 1144 1223 -wince*) 1145 1224 os=-wince 1146 1225 ;; … … 1162 1241 -atheos*) 1163 1242 os=-atheos 1164 1243 ;; 1244 -syllable*) 1245 os=-syllable 1246 ;; 1165 1247 -386bsd) 1166 1248 os=-bsd 1167 1249 ;; … … 1172 1254 os=-rtmk-nova 1173 1255 ;; 1174 1256 -ns2 ) 1175 1257 os=-nextstep2 1176 1258 ;; 1177 1259 -nsk*) 1178 1260 os=-nsk … … 1184 1266 -sinix*) 1185 1267 os=-sysv4 1186 1268 ;; 1269 -tpf*) 1270 os=-tpf 1271 ;; 1187 1272 -triton*) 1188 1273 os=-sysv3 1189 1274 ;; … … 1211 1296 -xenix) 1212 1297 os=-xenix 1213 1298 ;; 1214 -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) 1215 os=-mint 1299 -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) 1300 os=-mint 1301 ;; 1302 -aros*) 1303 os=-aros 1304 ;; 1305 -kaos*) 1306 os=-kaos 1307 ;; 1308 -zvmoe) 1309 os=-zvmoe 1216 1310 ;; 1217 1311 -none) 1218 1312 ;; … … 1245 1339 arm*-semi) 1246 1340 os=-aout 1247 1341 ;; 1342 c4x-* | tic4x-*) 1343 os=-coff 1344 ;; 1248 1345 # This must come before the *-dec entry. 1249 1346 pdp10-*) 1250 1347 os=-tops20 1251 1348 ;; 1252 1349 pdp11-*) 1253 1350 os=-none 1254 1351 ;; 1255 1352 *-dec | vax-*) … … 1291 1388 *-ibm) 1292 1389 os=-aix 1293 1390 ;; 1391 *-knuth) 1392 os=-mmixware 1393 ;; 1294 1394 *-wec) 1295 1395 os=-proelf 1296 1396 ;; … … 1342 1442 *-next) 1343 1443 os=-nextstep3 1344 1444 ;; 1345 1445 *-gould) 1346 1446 os=-sysv 1347 1447 ;; 1348 1448 *-highlevel) 1349 1449 os=-bsd 1350 1450 ;; 1351 1451 *-encore) 1352 1452 os=-bsd 1353 1453 ;; 1354 1454 *-sgi) 1355 1455 os=-irix 1356 1456 ;; 1357 1457 *-siemens) 1358 1458 os=-sysv4 1359 1459 ;; 1360 1460 *-masscomp) … … 1423 1523 -mvs* | -opened*) 1424 1524 vendor=ibm 1425 1525 ;; 1526 -os400*) 1527 vendor=ibm 1528 ;; 1426 1529 -ptx*) 1427 1530 vendor=sequent 1428 1531 ;; 1532 -tpf*) 1533 vendor=ibm 1534 ;; 1429 1535 -vxsim* | -vxworks* | -windiss*) 1430 1536 vendor=wrs 1431 1537 ;;
Note:
See TracBrowser
for help on using the repository browser.