source:
patches/expect-5.43.0-config_update-1.patch@
0fc919d
Last change on this file since 0fc919d was dd04f68, checked in by , 18 years ago | |
---|---|
|
|
File size: 50.4 KB |
-
config.guess
Submitted By: Jim Gifford (patches at jg555 dot com) Date: 2005-12-26 Initial Package Version: 5.4.3 Origin: Jim Gifford Upstream Status: Unknown Description: Updates config.sub and config.guess diff -Naur expect-5.43.orig/config.guess expect-5.43/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-03-04'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 … … 88 88 exit 1 89 89 fi 90 90 91 trap 'exit 1' 1 2 15 91 92 92 dummy=dummy-$$ 93 trap 'rm -f $dummy.c $dummy.o $dummy.rel $dummy; exit 1' 1 2 15 93 # CC_FOR_BUILD -- compiler used by this script. Note that the use of a 94 # compiler to aid in system detection is discouraged as it requires 95 # temporary files to be created and, as you can see below, it is a 96 # headache to deal with in a portable fashion. 94 97 95 # CC_FOR_BUILD -- compiler used by this script.96 98 # Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still 97 99 # use `HOST_CC' if defined, but it is deprecated. 98 100 99 set_cc_for_build='case $CC_FOR_BUILD,$HOST_CC,$CC in 100 ,,) echo "int dummy(){}" > $dummy.c ; 101 for c in cc gcc c89 ; do 102 ($c $dummy.c -c -o $dummy.o) >/dev/null 2>&1 ; 103 if test $? = 0 ; then 101 # Portable tmp directory creation inspired by the Autoconf team. 102 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" ; 113 case $CC_FOR_BUILD,$HOST_CC,$CC in 114 ,,) echo "int x;" > $dummy.c ; 115 for c in cc gcc c89 c99 ; do 116 if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then 104 117 CC_FOR_BUILD="$c"; break ; 105 118 fi ; 106 119 done ; 107 rm -f $dummy.c $dummy.o $dummy.rel ;108 120 if test x"$CC_FOR_BUILD" = x ; then 109 121 CC_FOR_BUILD=no_compiler_found ; 110 122 fi 111 123 ;; 112 124 ,,*) CC_FOR_BUILD=$CC ;; 113 125 ,*,*) CC_FOR_BUILD=$HOST_CC ;; 114 esac '126 esac ;' 115 127 116 128 # This is needed to find uname on a Pyramid OSx when run in the BSD universe. 117 129 # (ghazi@noc.rutgers.edu 1994-08-24) … … 142 154 UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \ 143 155 /usr/sbin/$sysctl 2>/dev/null || echo unknown)` 144 156 case "${UNAME_MACHINE_ARCH}" in 157 armeb) machine=armeb-unknown ;; 145 158 arm*) machine=arm-unknown ;; 146 159 sh3el) machine=shl-unknown ;; 147 160 sh3eb) machine=sh-unknown ;; … … 167 180 ;; 168 181 esac 169 182 # The OS release 170 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 171 195 # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: 172 196 # contains redundant information, the shorter form: 173 197 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. 174 198 echo "${machine}-${os}${release}" 175 199 exit 0 ;; 200 amd64:OpenBSD:*:*) 201 echo x86_64-unknown-openbsd${UNAME_RELEASE} 202 exit 0 ;; 176 203 amiga:OpenBSD:*:*) 177 204 echo m68k-unknown-openbsd${UNAME_RELEASE} 178 205 exit 0 ;; 179 arc:OpenBSD:*:*)180 echo mipsel-unknown-openbsd${UNAME_RELEASE}206 cats:OpenBSD:*:*) 207 echo arm-unknown-openbsd${UNAME_RELEASE} 181 208 exit 0 ;; 182 209 hp300:OpenBSD:*:*) 183 210 echo m68k-unknown-openbsd${UNAME_RELEASE} 184 211 exit 0 ;; 212 luna88k:OpenBSD:*:*) 213 echo m88k-unknown-openbsd${UNAME_RELEASE} 214 exit 0 ;; 185 215 mac68k:OpenBSD:*:*) 186 216 echo m68k-unknown-openbsd${UNAME_RELEASE} 187 217 exit 0 ;; … … 197 227 mvmeppc:OpenBSD:*:*) 198 228 echo powerpc-unknown-openbsd${UNAME_RELEASE} 199 229 exit 0 ;; 200 pmax:OpenBSD:*:*)201 echo mipsel-unknown-openbsd${UNAME_RELEASE}202 exit 0 ;;203 230 sgi:OpenBSD:*:*) 204 echo mips eb-unknown-openbsd${UNAME_RELEASE}231 echo mips64-unknown-openbsd${UNAME_RELEASE} 205 232 exit 0 ;; 206 233 sun3:OpenBSD:*:*) 207 234 echo m68k-unknown-openbsd${UNAME_RELEASE} 208 235 exit 0 ;; 209 wgrisc:OpenBSD:*:*)210 echo mipsel-unknown-openbsd${UNAME_RELEASE}211 exit 0 ;;212 236 *:OpenBSD:*:*) 213 237 echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE} 214 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 ;; 215 248 alpha:OSF1:*:*) 216 if test $UNAME_RELEASE = "V4.0"; then 249 case $UNAME_RELEASE in 250 *4.0) 217 251 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` 218 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. 219 295 # A Vn.n version is a released version. 220 296 # A Tn.n version is a released field test version. 221 297 # A Xn.n version is an unreleased experimental baselevel. 222 298 # 1.2 uses "1.2" for uname -r. 223 cat <<EOF >$dummy.s 224 .data 225 \$Lformat: 226 .byte 37,100,45,37,120,10,0 # "%d-%x\n" 227 228 .text 229 .globl main 230 .align 4 231 .ent main 232 main: 233 .frame \$30,16,\$26,0 234 ldgp \$29,0(\$27) 235 .prologue 1 236 .long 0x47e03d80 # implver \$0 237 lda \$2,-1 238 .long 0x47e20c21 # amask \$2,\$1 239 lda \$16,\$Lformat 240 mov \$0,\$17 241 not \$1,\$18 242 jsr \$26,printf 243 ldgp \$29,0(\$26) 244 mov 0,\$16 245 jsr \$26,exit 246 .end main 247 EOF 248 eval $set_cc_for_build 249 $CC_FOR_BUILD $dummy.s -o $dummy 2>/dev/null 250 if test "$?" = 0 ; then 251 case `./$dummy` in 252 0-0) 253 UNAME_MACHINE="alpha" 254 ;; 255 1-0) 256 UNAME_MACHINE="alphaev5" 257 ;; 258 1-1) 259 UNAME_MACHINE="alphaev56" 260 ;; 261 1-101) 262 UNAME_MACHINE="alphapca56" 263 ;; 264 2-303) 265 UNAME_MACHINE="alphaev6" 266 ;; 267 2-307) 268 UNAME_MACHINE="alphaev67" 269 ;; 270 2-1307) 271 UNAME_MACHINE="alphaev68" 272 ;; 273 esac 274 fi 275 rm -f $dummy.s $dummy 276 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'` 277 300 exit 0 ;; 278 301 Alpha\ *:Windows_NT*:*) 279 302 # How do we know it's Interix rather than the generic POSIX subsystem? … … 296 319 *:OS/390:*:*) 297 320 echo i370-ibm-openedition 298 321 exit 0 ;; 322 *:z/VM:*:*) 323 echo s390-ibm-zvmoe 324 exit 0 ;; 325 *:OS400:*:*) 326 echo powerpc-ibm-os400 327 exit 0 ;; 299 328 arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) 300 329 echo arm-acorn-riscix${UNAME_RELEASE} 301 330 exit 0;; … … 313 342 NILE*:*:*:dcosx) 314 343 echo pyramid-pyramid-svr4 315 344 exit 0 ;; 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*) 349 case `/usr/bin/uname -p` in 350 sparc) echo sparc-icl-nx7 && exit 0 ;; 351 esac ;; 316 352 sun4H:SunOS:5.*:*) 317 353 echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 318 354 exit 0 ;; … … 381 417 *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) 382 418 echo m68k-unknown-mint${UNAME_RELEASE} 383 419 exit 0 ;; 420 m68k:machten:*:*) 421 echo m68k-apple-machten${UNAME_RELEASE} 422 exit 0 ;; 384 423 powerpc:machten:*:*) 385 424 echo powerpc-apple-machten${UNAME_RELEASE} 386 425 exit 0 ;; … … 419 458 exit (-1); 420 459 } 421 460 EOF 422 $CC_FOR_BUILD $dummy.c -o $dummy \ 423 && ./$dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \ 424 && rm -f $dummy.c $dummy && exit 0 425 rm -f $dummy.c $dummy 461 $CC_FOR_BUILD -o $dummy $dummy.c \ 462 && $dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \ 463 && exit 0 426 464 echo mips-mips-riscos${UNAME_RELEASE} 427 465 exit 0 ;; 428 466 Motorola:PowerMAX_OS:*:*) 429 467 echo powerpc-motorola-powermax 430 468 exit 0 ;; 469 Motorola:*:4.3:PL8-*) 470 echo powerpc-harris-powermax 471 exit 0 ;; 472 Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) 473 echo powerpc-harris-powermax 474 exit 0 ;; 431 475 Night_Hawk:Power_UNIX:*:*) 432 476 echo powerpc-harris-powerunix 433 477 exit 0 ;; … … 500 544 exit(0); 501 545 } 502 546 EOF 503 $CC_FOR_BUILD $dummy.c -o $dummy && ./$dummy && rm -f $dummy.c $dummy && exit 0 504 rm -f $dummy.c $dummy 547 $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0 505 548 echo rs6000-ibm-aix3.2.5 506 549 elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then 507 550 echo rs6000-ibm-aix3.2.4 … … 599 642 exit (0); 600 643 } 601 644 EOF 602 (CCOPTS= $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null) && HP_ARCH=`./$dummy` 603 if test -z "$HP_ARCH"; then HP_ARCH=hppa; fi 604 rm -f $dummy.c $dummy 645 (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` 646 test -z "$HP_ARCH" && HP_ARCH=hppa 605 647 fi ;; 606 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 607 660 echo ${HP_ARCH}-hp-hpux${HPUX_REV} 608 661 exit 0 ;; 609 662 ia64:HP-UX:*:*) … … 637 690 exit (0); 638 691 } 639 692 EOF 640 $CC_FOR_BUILD $dummy.c -o $dummy && ./$dummy && rm -f $dummy.c $dummy && exit 0 641 rm -f $dummy.c $dummy 693 $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0 642 694 echo unknown-hitachi-hiuxwe2 643 695 exit 0 ;; 644 696 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) … … 696 748 CRAY*TS:*:*:*) 697 749 echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 698 750 exit 0 ;; 699 CRAY*T3D:*:*:*)700 echo alpha-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'701 exit 0 ;;702 751 CRAY*T3E:*:*:*) 703 752 echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 704 753 exit 0 ;; 705 754 CRAY*SV1:*:*:*) 706 755 echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 707 756 exit 0 ;; 757 *:UNICOS/mp:*:*) 758 echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 759 exit 0 ;; 708 760 F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) 709 761 FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 710 762 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` 711 763 FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` 712 764 echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" 713 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 ;; 714 771 i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) 715 772 echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} 716 773 exit 0 ;; … … 732 789 i*:PW*:*) 733 790 echo ${UNAME_MACHINE}-pc-pw32 734 791 exit 0 ;; 735 x86:Interix*:3*) 736 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 737 797 exit 0 ;; 738 798 i*:Windows_NT*:* | Pentium*:Windows_NT*:*) 739 799 # How do we know it's Interix rather than the generic POSIX subsystem? 740 800 # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we 741 801 # UNAME_MACHINE based on the output of uname instead of i386? 742 echo i 386-pc-interix802 echo i586-pc-interix 743 803 exit 0 ;; 744 804 i*:UWIN*:*) 745 805 echo ${UNAME_MACHINE}-pc-uwin … … 751 811 echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 752 812 exit 0 ;; 753 813 *:GNU:*:*) 814 # the GNU system 754 815 echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` 755 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 ;; 756 821 i*86:Minix:*:*) 757 822 echo ${UNAME_MACHINE}-pc-minix 758 823 exit 0 ;; 759 824 arm*:Linux:*:*) 760 825 echo ${UNAME_MACHINE}-unknown-linux-gnu 761 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 ;; 762 836 ia64:Linux:*:*) 763 echo ${UNAME_MACHINE}-unknown-linux 837 echo ${UNAME_MACHINE}-unknown-linux-gnu 838 exit 0 ;; 839 m32r*:Linux:*:*) 840 echo ${UNAME_MACHINE}-unknown-linux-gnu 764 841 exit 0 ;; 765 842 m68*:Linux:*:*) 766 843 echo ${UNAME_MACHINE}-unknown-linux-gnu … … 771 848 #undef CPU 772 849 #undef mips 773 850 #undef mipsel 774 #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) 775 CPU=mipsel 851 #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) 852 CPU=mipsel 776 853 #else 777 #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) 854 #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) 778 855 CPU=mips 779 856 #else 780 857 CPU= 781 858 #endif 782 #endif 859 #endif 860 EOF 861 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=` 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 783 879 EOF 784 880 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=` 785 rm -f $dummy.c 786 test x"${CPU}" != x && echo "${CPU}-pc-linux-gnu" && exit 0 881 test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0 787 882 ;; 788 883 ppc:Linux:*:*) 789 884 echo powerpc-unknown-linux-gnu … … 819 914 s390:Linux:*:* | s390x:Linux:*:*) 820 915 echo ${UNAME_MACHINE}-ibm-linux 821 916 exit 0 ;; 917 sh64*:Linux:*:*) 918 echo ${UNAME_MACHINE}-unknown-linux-gnu 919 exit 0 ;; 822 920 sh*:Linux:*:*) 823 921 echo ${UNAME_MACHINE}-unknown-linux-gnu 824 922 exit 0 ;; … … 845 943 ;; 846 944 a.out-i386-linux) 847 945 echo "${UNAME_MACHINE}-pc-linux-gnuaout" 848 exit 0 ;; 946 exit 0 ;; 849 947 coff-i386) 850 948 echo "${UNAME_MACHINE}-pc-linux-gnucoff" 851 949 exit 0 ;; … … 876 974 LIBC=gnuaout 877 975 #endif 878 976 #endif 977 #ifdef __dietlibc__ 978 LIBC=dietlibc 979 #endif 879 980 EOF 880 981 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=` 881 rm -f $dummy.c882 982 test x"${LIBC}" != x && echo "${UNAME_MACHINE}-pc-linux-${LIBC}" && exit 0 883 983 test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0 884 984 ;; … … 896 996 # Use sysv4.2uw... so that sysv4* matches it. 897 997 echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} 898 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 ;; 899 1019 i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*) 900 1020 UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` 901 1021 if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then … … 917 1037 UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name` 918 1038 echo ${UNAME_MACHINE}-pc-isc$UNAME_REL 919 1039 elif /bin/uname -X 2>/dev/null >/dev/null ; then 920 UNAME_REL=`(/bin/uname -X| egrep Release|sed -e 's/.*= //')`921 (/bin/uname -X| egrep i80486 >/dev/null) && UNAME_MACHINE=i486922 (/bin/uname -X| egrep '^Machine.*Pentium' >/dev/null) \1040 UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')` 1041 (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486 1042 (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \ 923 1043 && UNAME_MACHINE=i586 924 (/bin/uname -X| egrep '^Machine.*Pent ?II' >/dev/null) \1044 (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \ 925 1045 && UNAME_MACHINE=i686 926 (/bin/uname -X| egrep '^Machine.*Pentium Pro' >/dev/null) \1046 (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \ 927 1047 && UNAME_MACHINE=i686 928 1048 echo ${UNAME_MACHINE}-pc-sco$UNAME_REL 929 1049 else 930 1050 echo ${UNAME_MACHINE}-pc-sysv32 931 1051 fi 932 1052 exit 0 ;; 933 i*86:*DOS:*:*)934 echo ${UNAME_MACHINE}-pc-msdosdjgpp935 exit 0 ;;936 1053 pc:*:*:*) 937 1054 # Left here for compatibility: 938 1055 # uname -m prints for DJGPP always 'pc', but it prints nothing about … … 956 1073 # "miniframe" 957 1074 echo m68010-convergent-sysv 958 1075 exit 0 ;; 959 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]*:*) 960 1083 test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;; 961 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 | 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) 962 1085 OS_REL='' 963 1086 test -r /etc/.relid \ 964 1087 && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` … … 975 1098 mc68030:UNIX_System_V:4.*:*) 976 1099 echo m68k-atari-sysv4 977 1100 exit 0 ;; 978 i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)979 echo i386-unknown-lynxos${UNAME_RELEASE}980 exit 0 ;;981 1101 TSUNAMI:LynxOS:2.*:*) 982 1102 echo sparc-unknown-lynxos${UNAME_RELEASE} 983 1103 exit 0 ;; … … 1049 1169 SX-5:SUPER-UX:*:*) 1050 1170 echo sx5-nec-superux${UNAME_RELEASE} 1051 1171 exit 0 ;; 1172 SX-6:SUPER-UX:*:*) 1173 echo sx6-nec-superux${UNAME_RELEASE} 1174 exit 0 ;; 1052 1175 Power*:Rhapsody:*:*) 1053 1176 echo powerpc-apple-rhapsody${UNAME_RELEASE} 1054 1177 exit 0 ;; … … 1056 1179 echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} 1057 1180 exit 0 ;; 1058 1181 *:Darwin:*:*) 1059 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} 1060 1188 exit 0 ;; 1061 1189 *:procnto*:*:* | *:QNX:[0123456789]*:*) 1062 if test "${UNAME_MACHINE}" = "x86pc"; then 1190 UNAME_PROCESSOR=`uname -p` 1191 if test "$UNAME_PROCESSOR" = "x86"; then 1192 UNAME_PROCESSOR=i386 1063 1193 UNAME_MACHINE=pc 1064 echo i386-${UNAME_MACHINE}-nto-qnx1065 else1066 echo `uname -p`-${UNAME_MACHINE}-nto-qnx1067 1194 fi 1195 echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} 1068 1196 exit 0 ;; 1069 1197 *:QNX:*:4*) 1070 1198 echo i386-pc-qnx 1071 1199 exit 0 ;; 1072 NSR- [GKLNPTVW]:NONSTOP_KERNEL:*:*)1200 NSR-?:NONSTOP_KERNEL:*:*) 1073 1201 echo nsr-tandem-nsk${UNAME_RELEASE} 1074 1202 exit 0 ;; 1075 1203 *:NonStop-UX:*:*) … … 1092 1220 fi 1093 1221 echo ${UNAME_MACHINE}-unknown-plan9 1094 1222 exit 0 ;; 1095 i*86:OS/2:*:*)1096 # If we were able to find `uname', then EMX Unix compatibility1097 # is probably installed.1098 echo ${UNAME_MACHINE}-pc-os2-emx1099 exit 0 ;;1100 1223 *:TOPS-10:*:*) 1101 1224 echo pdp10-unknown-tops10 1102 1225 exit 0 ;; … … 1115 1238 *:ITS:*:*) 1116 1239 echo pdp10-unknown-its 1117 1240 exit 0 ;; 1118 i*86:XTS-300:*:STOP)1119 echo ${UNAME_MACHINE}-unknown-stop 1241 SEI:*:*:SEIUX) 1242 echo mips-sei-seiux${UNAME_RELEASE} 1120 1243 exit 0 ;; 1121 i*86:atheos:*:*) 1122 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 1123 1256 exit 0 ;; 1124 1257 esac 1125 1258 … … 1241 1374 } 1242 1375 EOF 1243 1376 1244 $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null && ./$dummy && rm -f $dummy.c $dummy && exit 0 1245 rm -f $dummy.c $dummy 1377 $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && $dummy && exit 0 1246 1378 1247 1379 # Apollos put the system type in the environment. 1248 1380 -
config.sub
diff -Naur expect-5.43.orig/config.sub expect-5.43/config.sub
old new 1 1 #! /bin/sh 2 # Configuration validation subroutine script, version 1.1. 3 # Copyright (C) 1991, 92, 93, 94, 95, 1996 Free Software Foundation, Inc. 2 # Configuration validation subroutine script. 3 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 4 # 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc. 5 6 timestamp='2004-11-30' 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 6 10 # can handle that machine. It does not imply ALL GNU software can. … … 25 29 # configuration script generated by Autoconf, you may include it under 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>. Submit a context 33 # diff and a properly formatted ChangeLog entry. 34 # 28 35 # Configuration subroutine to validate and canonicalize a configuration type. 29 36 # Supply the specified configuration type as an argument. 30 37 # If it is invalid, we print an error message on stderr and exit with code 1. … … 45 52 # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM 46 53 # It is wrong to echo any other type of specification. 47 54 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 55 me=`echo "$0" | sed -e 's,.*/,,'` 56 56 57 # First pass through any local machine types. 58 case $1 in 59 *local*) 60 echo $1 61 exit 0 62 ;; 63 *) 64 ;; 57 usage="\ 58 Usage: $0 [OPTION] CPU-MFR-OPSYS 59 $0 [OPTION] ALIAS 60 61 Canonicalize a configuration name. 62 63 Operation modes: 64 -h, --help print this help, then exit 65 -t, --time-stamp print date of last modification, then exit 66 -v, --version print version number, then exit 67 68 Report bugs and patches to <config-patches@gnu.org>." 69 70 version="\ 71 GNU config.sub ($timestamp) 72 73 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004 74 Free Software Foundation, Inc. 75 76 This is free software; see the source for copying conditions. There is NO 77 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." 78 79 help=" 80 Try \`$me --help' for more information." 81 82 # Parse command line 83 while test $# -gt 0 ; do 84 case $1 in 85 --time-stamp | --time* | -t ) 86 echo "$timestamp" ; exit 0 ;; 87 --version | -v ) 88 echo "$version" ; exit 0 ;; 89 --help | --h* | -h ) 90 echo "$usage"; exit 0 ;; 91 -- ) # Stop option processing 92 shift; break ;; 93 - ) # Use stdin as input. 94 break ;; 95 -* ) 96 echo "$me: invalid option $1$help" 97 exit 1 ;; 98 99 *local*) 100 # First pass through any local machine types. 101 echo $1 102 exit 0;; 103 104 * ) 105 break ;; 106 esac 107 done 108 109 case $# in 110 0) echo "$me: missing argument$help" >&2 111 exit 1;; 112 1) ;; 113 *) echo "$me: too many arguments$help" >&2 114 exit 1;; 65 115 esac 66 116 67 117 # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). 68 118 # Here we must recognize all the valid KERNEL-OS combinations. 69 119 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` 70 120 case $maybe_os in 71 linux-gnu*) 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*) 72 123 os=-$maybe_os 73 124 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` 74 125 ;; … … 94 145 -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ 95 146 -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ 96 147 -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ 97 -apple) 148 -apple | -axis | -knuth | -cray) 149 os= 150 basic_machine=$1 151 ;; 152 -sim | -cisco | -oki | -wec | -winbond) 98 153 os= 99 154 basic_machine=$1 100 155 ;; 156 -scout) 157 ;; 158 -wrs) 159 os=-vxworks 160 basic_machine=$1 161 ;; 162 -chorusos*) 163 os=-chorusos 164 basic_machine=$1 165 ;; 166 -chorusrdb) 167 os=-chorusrdb 168 basic_machine=$1 169 ;; 101 170 -hiux*) 102 171 os=-hiuxwe2 103 172 ;; 104 173 -sco5) 105 os= sco3.2v5174 os=-sco3.2v5 106 175 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 107 176 ;; 108 177 -sco4) … … 121 190 os=-sco3.2v2 122 191 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 123 192 ;; 193 -udk*) 194 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 195 ;; 124 196 -isc) 125 197 os=-isc2.2 126 198 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` … … 143 215 -psos*) 144 216 os=-psos 145 217 ;; 218 -mint | -mint[0-9]*) 219 basic_machine=m68k-atari 220 os=-mint 221 ;; 146 222 esac 147 223 148 224 # Decode aliases for certain CPU-COMPANY combinations. 149 225 case $basic_machine in 150 226 # Recognize the basic CPU types without company name. 151 227 # Some are omitted here because they have special meanings below. 152 tahoe | i860 | m68k | m68000 | m88k | ns32k | arm \ 153 | arme[lb] | pyramid \ 154 | tron | a29k | 580 | i960 | h8300 | hppa | hppa1.0 | hppa1.1 \ 155 | alpha | we32k | ns16k | clipper | i370 | sh \ 156 | powerpc | powerpcle | 1750a | dsp16xx | mips64 | mipsel \ 157 | pdp11 | mips64el | mips64orion | mips64orionel \ 158 | sparc | sparclet | sparclite | sparc64) 228 1750a | 580 \ 229 | a29k \ 230 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ 231 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ 232 | am33_2.0 \ 233 | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \ 234 | c4x | clipper \ 235 | d10v | d30v | dlx | dsp16xx \ 236 | fr30 | frv \ 237 | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ 238 | i370 | i860 | i960 | ia64 \ 239 | ip2k | iq2000 \ 240 | m32r | m32rle | m68000 | m68k | m88k | maxq | mcore \ 241 | mips | mipsbe | mipseb | mipsel | mipsle \ 242 | mips16 \ 243 | mips64 | mips64el \ 244 | mips64vr | mips64vrel \ 245 | mips64orion | mips64orionel \ 246 | mips64vr4100 | mips64vr4100el \ 247 | mips64vr4300 | mips64vr4300el \ 248 | mips64vr5000 | mips64vr5000el \ 249 | mipsisa32 | mipsisa32el \ 250 | mipsisa32r2 | mipsisa32r2el \ 251 | mipsisa64 | mipsisa64el \ 252 | mipsisa64r2 | mipsisa64r2el \ 253 | mipsisa64sb1 | mipsisa64sb1el \ 254 | mipsisa64sr71k | mipsisa64sr71kel \ 255 | mipstx39 | mipstx39el \ 256 | mn10200 | mn10300 \ 257 | msp430 \ 258 | ns16k | ns32k \ 259 | openrisc | or32 \ 260 | pdp10 | pdp11 | pj | pjl \ 261 | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ 262 | pyramid \ 263 | sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \ 264 | sh64 | sh64le \ 265 | sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv8 | sparcv9 | sparcv9b \ 266 | strongarm \ 267 | tahoe | thumb | tic4x | tic80 | tron \ 268 | v850 | v850e \ 269 | we32k \ 270 | x86 | xscale | xscalee[bl] | xstormy16 | xtensa \ 271 | z8k) 159 272 basic_machine=$basic_machine-unknown 160 273 ;; 274 m6811 | m68hc11 | m6812 | m68hc12) 275 # Motorola 68HC11/12. 276 basic_machine=$basic_machine-unknown 277 os=-none 278 ;; 279 m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) 280 ;; 281 161 282 # We use `pc' rather than `unknown' 162 283 # because (1) that's what they normally are, and 163 284 # (2) the word "unknown" tends to confuse beginning users. 164 i [3456]86)285 i*86 | x86_64) 165 286 basic_machine=$basic_machine-pc 166 287 ;; 167 288 # Object if more than one company name word. … … 170 291 exit 1 171 292 ;; 172 293 # Recognize the basic CPU types with company name. 173 vax-* | tahoe-* | i[3456]86-* | i860-* | m68k-* | m68000-* | m88k-* \ 174 | sparc-* | ns32k-* | fx80-* | arm-* | c[123]* \ 175 | mips-* | pyramid-* | tron-* | a29k-* | romp-* | rs6000-* | power-* \ 176 | none-* | 580-* | cray2-* | h8300-* | i960-* | xmp-* | ymp-* \ 177 | hppa-* | hppa1.0-* | hppa1.1-* | alpha-* | we32k-* | cydra-* | ns16k-* \ 178 | pn-* | np1-* | xps100-* | clipper-* | orion-* | sparclite-* \ 179 | pdp11-* | sh-* | powerpc-* | powerpcle-* | sparc64-* | mips64-* | mipsel-* \ 180 | mips64el-* | mips64orion-* | mips64orionel-*) 294 580-* \ 295 | a29k-* \ 296 | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ 297 | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ 298 | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ 299 | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ 300 | avr-* \ 301 | bs2000-* \ 302 | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \ 303 | clipper-* | craynv-* | cydra-* \ 304 | d10v-* | d30v-* | dlx-* \ 305 | elxsi-* \ 306 | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \ 307 | h8300-* | h8500-* \ 308 | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ 309 | i*86-* | i860-* | i960-* | ia64-* \ 310 | ip2k-* | iq2000-* \ 311 | m32r-* | m32rle-* \ 312 | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ 313 | m88110-* | m88k-* | maxq-* | mcore-* \ 314 | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ 315 | mips16-* \ 316 | mips64-* | mips64el-* \ 317 | mips64vr-* | mips64vrel-* \ 318 | mips64orion-* | mips64orionel-* \ 319 | mips64vr4100-* | mips64vr4100el-* \ 320 | mips64vr4300-* | mips64vr4300el-* \ 321 | mips64vr5000-* | mips64vr5000el-* \ 322 | mipsisa32-* | mipsisa32el-* \ 323 | mipsisa32r2-* | mipsisa32r2el-* \ 324 | mipsisa64-* | mipsisa64el-* \ 325 | mipsisa64r2-* | mipsisa64r2el-* \ 326 | mipsisa64sb1-* | mipsisa64sb1el-* \ 327 | mipsisa64sr71k-* | mipsisa64sr71kel-* \ 328 | mipstx39-* | mipstx39el-* \ 329 | mmix-* \ 330 | msp430-* \ 331 | none-* | np1-* | ns16k-* | ns32k-* \ 332 | orion-* \ 333 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ 334 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ 335 | pyramid-* \ 336 | romp-* | rs6000-* \ 337 | sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \ 338 | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ 339 | sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \ 340 | sparcv8-* | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \ 341 | tahoe-* | thumb-* \ 342 | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ 343 | tron-* \ 344 | v850-* | v850e-* | vax-* \ 345 | we32k-* \ 346 | x86-* | x86_64-* | xps100-* | xscale-* | xscalee[bl]-* \ 347 | xstormy16-* | xtensa-* \ 348 | ymp-* \ 349 | z8k-*) 181 350 ;; 182 351 # Recognize the various machine names and aliases which stand 183 352 # for a CPU type and a company and sometimes even an OS. 353 386bsd) 354 basic_machine=i386-unknown 355 os=-bsd 356 ;; 184 357 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) 185 358 basic_machine=m68000-att 186 359 ;; 187 360 3b*) 188 361 basic_machine=we32k-att 189 362 ;; 363 a29khif) 364 basic_machine=a29k-amd 365 os=-udi 366 ;; 367 abacus) 368 basic_machine=abacus-unknown 369 ;; 370 adobe68k) 371 basic_machine=m68010-adobe 372 os=-scout 373 ;; 190 374 alliant | fx80) 191 375 basic_machine=fx80-alliant 192 376 ;; … … 197 381 basic_machine=a29k-none 198 382 os=-bsd 199 383 ;; 384 amd64) 385 basic_machine=x86_64-pc 386 ;; 387 amd64-*) 388 basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'` 389 ;; 200 390 amdahl) 201 391 basic_machine=580-amdahl 202 392 os=-sysv 203 393 ;; 204 394 amiga | amiga-*) 205 basic_machine=m68k- cbm395 basic_machine=m68k-unknown 206 396 ;; 207 amiga dos)208 basic_machine=m68k- cbm209 os=-amiga dos397 amigaos | amigados) 398 basic_machine=m68k-unknown 399 os=-amigaos 210 400 ;; 211 401 amigaunix | amix) 212 basic_machine=m68k- cbm402 basic_machine=m68k-unknown 213 403 os=-sysv4 214 404 ;; 215 405 apollo68) 216 406 basic_machine=m68k-apollo 217 407 os=-sysv 218 408 ;; 409 apollo68bsd) 410 basic_machine=m68k-apollo 411 os=-bsd 412 ;; 219 413 aux) 220 414 basic_machine=m68k-apple 221 415 os=-aux … … 224 418 basic_machine=ns32k-sequent 225 419 os=-dynix 226 420 ;; 421 c90) 422 basic_machine=c90-cray 423 os=-unicos 424 ;; 227 425 convex-c1) 228 426 basic_machine=c1-convex 229 427 os=-bsd … … 244 442 basic_machine=c38-convex 245 443 os=-bsd 246 444 ;; 247 cray | ymp) 248 basic_machine=ymp-cray 249 os=-unicos 250 ;; 251 cray2) 252 basic_machine=cray2-cray 445 cray | j90) 446 basic_machine=j90-cray 253 447 os=-unicos 254 448 ;; 255 [ctj]90-cray) 256 basic_machine=c90-cray 257 os=-unicos 449 craynv) 450 basic_machine=craynv-cray 451 os=-unicosmp 452 ;; 453 cr16c) 454 basic_machine=cr16c-unknown 455 os=-elf 258 456 ;; 259 457 crds | unos) 260 458 basic_machine=m68k-crds 261 459 ;; 460 crisv32 | crisv32-* | etraxfs*) 461 basic_machine=crisv32-axis 462 ;; 463 cris | cris-* | etrax*) 464 basic_machine=cris-axis 465 ;; 466 crx) 467 basic_machine=crx-unknown 468 os=-elf 469 ;; 262 470 da30 | da30-*) 263 471 basic_machine=m68k-da30 264 472 ;; 265 473 decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn) 266 474 basic_machine=mips-dec 267 475 ;; 476 decsystem10* | dec10*) 477 basic_machine=pdp10-dec 478 os=-tops10 479 ;; 480 decsystem20* | dec20*) 481 basic_machine=pdp10-dec 482 os=-tops20 483 ;; 268 484 delta | 3300 | motorola-3300 | motorola-delta \ 269 485 | 3300-motorola | delta-motorola) 270 486 basic_machine=m68k-motorola … … 273 489 basic_machine=m88k-motorola 274 490 os=-sysv3 275 491 ;; 492 djgpp) 493 basic_machine=i586-pc 494 os=-msdosdjgpp 495 ;; 276 496 dpx20 | dpx20-*) 277 497 basic_machine=rs6000-bull 278 498 os=-bosx … … 292 512 encore | umax | mmax) 293 513 basic_machine=ns32k-encore 294 514 ;; 515 es1800 | OSE68k | ose68k | ose | OSE) 516 basic_machine=m68k-ericsson 517 os=-ose 518 ;; 295 519 fx2800) 296 520 basic_machine=i860-alliant 297 521 ;; … … 302 526 basic_machine=tron-gmicro 303 527 os=-sysv 304 528 ;; 529 go32) 530 basic_machine=i386-pc 531 os=-go32 532 ;; 305 533 h3050r* | hiux*) 306 534 basic_machine=hppa1.1-hitachi 307 535 os=-hiuxwe2 … … 310 538 basic_machine=h8300-hitachi 311 539 os=-hms 312 540 ;; 541 h8300xray) 542 basic_machine=h8300-hitachi 543 os=-xray 544 ;; 545 h8500hms) 546 basic_machine=h8500-hitachi 547 os=-hms 548 ;; 313 549 harris) 314 550 basic_machine=m88k-harris 315 551 os=-sysv3 … … 325 561 basic_machine=m68k-hp 326 562 os=-hpux 327 563 ;; 564 hp3k9[0-9][0-9] | hp9[0-9][0-9]) 565 basic_machine=hppa1.0-hp 566 ;; 328 567 hp9k2[0-9][0-9] | hp9k31[0-9]) 329 568 basic_machine=m68000-hp 330 569 ;; 331 570 hp9k3[2-9][0-9]) 332 571 basic_machine=m68k-hp 333 572 ;; 334 hp9k7[0-9][0-9] | hp7[0-9][0-9] | hp9k8[0-9]7 | hp8[0-9]7) 573 hp9k6[0-9][0-9] | hp6[0-9][0-9]) 574 basic_machine=hppa1.0-hp 575 ;; 576 hp9k7[0-79][0-9] | hp7[0-79][0-9]) 577 basic_machine=hppa1.1-hp 578 ;; 579 hp9k78[0-9] | hp78[0-9]) 580 # FIXME: really hppa2.0-hp 581 basic_machine=hppa1.1-hp 582 ;; 583 hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893) 584 # FIXME: really hppa2.0-hp 585 basic_machine=hppa1.1-hp 586 ;; 587 hp9k8[0-9][13679] | hp8[0-9][13679]) 335 588 basic_machine=hppa1.1-hp 336 589 ;; 337 590 hp9k8[0-9][0-9] | hp8[0-9][0-9]) … … 340 593 hppa-next) 341 594 os=-nextstep3 342 595 ;; 596 hppaosf) 597 basic_machine=hppa1.1-hp 598 os=-osf 599 ;; 600 hppro) 601 basic_machine=hppa1.1-hp 602 os=-proelf 603 ;; 343 604 i370-ibm* | ibm*) 344 605 basic_machine=i370-ibm 345 os=-mvs346 606 ;; 347 607 # I'm not sure what "Sysv32" means. Should this be sysv3.2? 348 i [3456]86v32)608 i*86v32) 349 609 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` 350 610 os=-sysv32 351 611 ;; 352 i [3456]86v4*)612 i*86v4*) 353 613 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` 354 614 os=-sysv4 355 615 ;; 356 i [3456]86v)616 i*86v) 357 617 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` 358 618 os=-sysv 359 619 ;; 360 i [3456]86sol2)620 i*86sol2) 361 621 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` 362 622 os=-solaris2 363 623 ;; 624 i386mach) 625 basic_machine=i386-mach 626 os=-mach 627 ;; 628 i386-vsta | vsta) 629 basic_machine=i386-unknown 630 os=-vsta 631 ;; 364 632 iris | iris4d) 365 633 basic_machine=mips-sgi 366 634 case $os in … … 386 654 basic_machine=ns32k-utek 387 655 os=-sysv 388 656 ;; 657 mingw32) 658 basic_machine=i386-pc 659 os=-mingw32 660 ;; 389 661 miniframe) 390 662 basic_machine=m68000-convergent 391 663 ;; 664 *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*) 665 basic_machine=m68k-atari 666 os=-mint 667 ;; 392 668 mips3*-*) 393 669 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` 394 670 ;; 395 671 mips3*) 396 672 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown 397 673 ;; 674 monitor) 675 basic_machine=m68k-rom68k 676 os=-coff 677 ;; 678 morphos) 679 basic_machine=powerpc-unknown 680 os=-morphos 681 ;; 682 msdos) 683 basic_machine=i386-pc 684 os=-msdos 685 ;; 686 mvs) 687 basic_machine=i370-ibm 688 os=-mvs 689 ;; 398 690 ncr3000) 399 691 basic_machine=i486-ncr 400 692 os=-sysv4 401 693 ;; 694 netbsd386) 695 basic_machine=i386-unknown 696 os=-netbsd 697 ;; 698 netwinder) 699 basic_machine=armv4l-rebel 700 os=-linux 701 ;; 402 702 news | news700 | news800 | news900) 403 703 basic_machine=m68k-sony 404 704 os=-newsos … … 411 711 basic_machine=mips-sony 412 712 os=-newsos 413 713 ;; 714 necv70) 715 basic_machine=v70-nec 716 os=-sysv 717 ;; 414 718 next | m*-next ) 415 719 basic_machine=m68k-next 416 720 case $os in … … 436 740 basic_machine=i960-intel 437 741 os=-nindy 438 742 ;; 743 mon960) 744 basic_machine=i960-intel 745 os=-mon960 746 ;; 747 nonstopux) 748 basic_machine=mips-compaq 749 os=-nonstopux 750 ;; 439 751 np1) 440 752 basic_machine=np1-gould 441 753 ;; 754 nsr-tandem) 755 basic_machine=nsr-tandem 756 ;; 757 op50n-* | op60c-*) 758 basic_machine=hppa1.1-oki 759 os=-proelf 760 ;; 761 or32 | or32-*) 762 basic_machine=or32-unknown 763 os=-coff 764 ;; 765 os400) 766 basic_machine=powerpc-ibm 767 os=-os400 768 ;; 769 OSE68000 | ose68000) 770 basic_machine=m68000-ericsson 771 os=-ose 772 ;; 773 os68k) 774 basic_machine=m68k-none 775 os=-os68k 776 ;; 442 777 pa-hitachi) 443 778 basic_machine=hppa1.1-hitachi 444 779 os=-hiuxwe2 … … 453 788 pbb) 454 789 basic_machine=m68k-tti 455 790 ;; 456 791 pc532 | pc532-*) 457 792 basic_machine=ns32k-pc532 458 793 ;; 459 pentium | p5) 460 basic_machine=i586-intel 794 pentium | p5 | k5 | k6 | nexgen | viac3) 795 basic_machine=i586-pc 796 ;; 797 pentiumpro | p6 | 6x86 | athlon | athlon_*) 798 basic_machine=i686-pc 799 ;; 800 pentiumii | pentium2 | pentiumiii | pentium3) 801 basic_machine=i686-pc 461 802 ;; 462 pentium pro | p6)463 basic_machine=i 686-intel803 pentium4) 804 basic_machine=i786-pc 464 805 ;; 465 pentium-* | p5-* )806 pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) 466 807 basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` 467 808 ;; 468 pentiumpro-* | p6-* )809 pentiumpro-* | p6-* | 6x86-* | athlon-*) 469 810 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` 470 811 ;; 471 k5) 472 # We don't have specific support for AMD's K5 yet, so just call it a Pentium 473 basic_machine=i586-amd 474 ;; 475 nexen) 476 # We don't have specific support for Nexgen yet, so just call it a Pentium 477 basic_machine=i586-nexgen 812 pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*) 813 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` 814 ;; 815 pentium4-*) 816 basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'` 478 817 ;; 479 818 pn) 480 819 basic_machine=pn-gould 481 820 ;; 482 power) basic_machine= rs6000-ibm821 power) basic_machine=power-ibm 483 822 ;; 484 823 ppc) basic_machine=powerpc-unknown 485 824 ;; 486 825 ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` 487 826 ;; 488 827 ppcle | powerpclittle | ppc-le | powerpc-little) 489 828 basic_machine=powerpcle-unknown 490 829 ;; 491 830 ppcle-* | powerpclittle-*) 492 831 basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` 493 832 ;; 833 ppc64) basic_machine=powerpc64-unknown 834 ;; 835 ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'` 836 ;; 837 ppc64le | powerpc64little | ppc64-le | powerpc64-little) 838 basic_machine=powerpc64le-unknown 839 ;; 840 ppc64le-* | powerpc64little-*) 841 basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'` 842 ;; 494 843 ps2) 495 844 basic_machine=i386-ibm 496 845 ;; 846 pw32) 847 basic_machine=i586-unknown 848 os=-pw32 849 ;; 850 rom68k) 851 basic_machine=m68k-rom68k 852 os=-coff 853 ;; 497 854 rm[46]00) 498 855 basic_machine=mips-siemens 499 856 ;; 500 857 rtpc | rtpc-*) 501 858 basic_machine=romp-ibm 502 859 ;; 860 s390 | s390-*) 861 basic_machine=s390-ibm 862 ;; 863 s390x | s390x-*) 864 basic_machine=s390x-ibm 865 ;; 866 sa29200) 867 basic_machine=a29k-amd 868 os=-udi 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 ;; 503 880 sequent) 504 881 basic_machine=i386-sequent 505 882 ;; … … 507 884 basic_machine=sh-hitachi 508 885 os=-hms 509 886 ;; 887 sh64) 888 basic_machine=sh64-unknown 889 ;; 890 sparclite-wrs | simso-wrs) 891 basic_machine=sparclite-wrs 892 os=-vxworks 893 ;; 510 894 sps7) 511 895 basic_machine=m68k-bull 512 896 os=-sysv2 … … 514 898 spur) 515 899 basic_machine=spur-unknown 516 900 ;; 901 st2000) 902 basic_machine=m68k-tandem 903 ;; 904 stratus) 905 basic_machine=i860-stratus 906 os=-sysv4 907 ;; 517 908 sun2) 518 909 basic_machine=m68000-sun 519 910 ;; … … 554 945 sun386 | sun386i | roadrunner) 555 946 basic_machine=i386-sun 556 947 ;; 948 sv1) 949 basic_machine=sv1-cray 950 os=-unicos 951 ;; 557 952 symmetry) 558 953 basic_machine=i386-sequent 559 954 os=-dynix 560 955 ;; 956 t3e) 957 basic_machine=alphaev5-cray 958 os=-unicos 959 ;; 960 t90) 961 basic_machine=t90-cray 962 os=-unicos 963 ;; 964 tic54x | c54x*) 965 basic_machine=tic54x-unknown 966 os=-coff 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 ;; 976 tx39) 977 basic_machine=mipstx39-unknown 978 ;; 979 tx39el) 980 basic_machine=mipstx39el-unknown 981 ;; 982 toad1) 983 basic_machine=pdp10-xkl 984 os=-tops20 985 ;; 561 986 tower | tower-32) 562 987 basic_machine=m68k-ncr 563 988 ;; 989 tpf) 990 basic_machine=s390x-ibm 991 os=-tpf 992 ;; 564 993 udi29k) 565 994 basic_machine=a29k-amd 566 995 os=-udi … … 569 998 basic_machine=a29k-nyu 570 999 os=-sym1 571 1000 ;; 1001 v810 | necv810) 1002 basic_machine=v810-nec 1003 os=-none 1004 ;; 572 1005 vaxv) 573 1006 basic_machine=vax-dec 574 1007 os=-sysv … … 577 1010 basic_machine=vax-dec 578 1011 os=-vms 579 1012 ;; 1013 vpp*|vx|vx-*) 1014 basic_machine=f301-fujitsu 1015 ;; 580 1016 vxworks960) 581 1017 basic_machine=i960-wrs 582 1018 os=-vxworks … … 589 1025 basic_machine=a29k-wrs 590 1026 os=-vxworks 591 1027 ;; 592 xmp) 593 basic_machine=xmp-cray 594 os=-unicos 1028 w65*) 1029 basic_machine=w65-wdc 1030 os=-none 1031 ;; 1032 w89k-*) 1033 basic_machine=hppa1.1-winbond 1034 os=-proelf 1035 ;; 1036 xbox) 1037 basic_machine=i686-pc 1038 os=-mingw32 595 1039 ;; 596 1040 xps | xps100) 597 1041 basic_machine=xps100-honeywell 598 1042 ;; 1043 ymp) 1044 basic_machine=ymp-cray 1045 os=-unicos 1046 ;; 1047 z8k-*-coff) 1048 basic_machine=z8k-unknown 1049 os=-sim 1050 ;; 599 1051 none) 600 1052 basic_machine=none-none 601 1053 os=-none … … 603 1055 604 1056 # Here we handle the default manufacturer of certain CPU types. It is in 605 1057 # some cases the only manufacturer, in others, it is the most popular. 606 mips) 607 basic_machine=mips-mips 1058 w89k) 1059 basic_machine=hppa1.1-winbond 1060 ;; 1061 op50n) 1062 basic_machine=hppa1.1-oki 1063 ;; 1064 op60c) 1065 basic_machine=hppa1.1-oki 608 1066 ;; 609 1067 romp) 610 1068 basic_machine=romp-ibm 611 1069 ;; 1070 mmix) 1071 basic_machine=mmix-knuth 1072 ;; 612 1073 rs6000) 613 1074 basic_machine=rs6000-ibm 614 1075 ;; 615 1076 vax) 616 1077 basic_machine=vax-dec 617 1078 ;; 1079 pdp10) 1080 # there are many clones, so DEC is not a safe bet 1081 basic_machine=pdp10-unknown 1082 ;; 618 1083 pdp11) 619 1084 basic_machine=pdp11-dec 620 1085 ;; 621 1086 we32k) 622 1087 basic_machine=we32k-att 623 1088 ;; 624 sparc) 1089 sh3 | sh4 | sh[34]eb | sh[1234]le | sh[23]ele) 1090 basic_machine=sh-unknown 1091 ;; 1092 sh64) 1093 basic_machine=sh64-unknown 1094 ;; 1095 sparc | sparcv8 | sparcv9 | sparcv9b) 625 1096 basic_machine=sparc-sun 626 1097 ;; 627 1098 cydra) 628 1099 basic_machine=cydra-cydrome 629 1100 ;; 630 1101 orion) … … 633 1104 orion105) 634 1105 basic_machine=clipper-highlevel 635 1106 ;; 1107 mac | mpw | mac-mpw) 1108 basic_machine=m68k-apple 1109 ;; 1110 pmac | pmac-mpw) 1111 basic_machine=powerpc-apple 1112 ;; 1113 *-unknown) 1114 # Make sure to match an already-canonicalized machine name. 1115 ;; 636 1116 *) 637 1117 echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 638 1118 exit 1 … … 665 1145 -solaris) 666 1146 os=-solaris2 667 1147 ;; 668 - unixware* |svr4*)1148 -svr4*) 669 1149 os=-sysv4 670 1150 ;; 1151 -unixware*) 1152 os=-sysv4.2uw 1153 ;; 671 1154 -gnu/linux*) 672 1155 os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'` 673 1156 ;; … … 678 1161 -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ 679 1162 | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\ 680 1163 | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \ 681 | -amigados* | -msdos* | -newsos* | -unicos* | -aof* | -aos* \ 1164 | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ 1165 | -aos* \ 682 1166 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ 683 1167 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ 684 | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \ 685 | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* \ 1168 | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* | -openbsd* \ 1169 | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ 1170 | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ 686 1171 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ 687 1172 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ 688 | -cygwin32* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ 689 | -linux-gnu*) 1173 | -chorusos* | -chorusrdb* \ 1174 | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ 1175 | -mingw32* | -linux-gnu* | -linux-uclibc* | -uxpv* | -beos* | -mpeix* | -udk* \ 1176 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ 1177 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ 1178 | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ 1179 | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ 1180 | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ 1181 | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly*) 690 1182 # Remember, each alternative MUST END IN *, to match a version number. 691 1183 ;; 1184 -qnx*) 1185 case $basic_machine in 1186 x86-* | i*86-*) 1187 ;; 1188 *) 1189 os=-nto$os 1190 ;; 1191 esac 1192 ;; 1193 -nto-qnx*) 1194 ;; 1195 -nto*) 1196 os=`echo $os | sed -e 's|nto|nto-qnx|'` 1197 ;; 1198 -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ 1199 | -windows* | -osx | -abug | -netware* | -os9* | -beos* \ 1200 | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) 1201 ;; 1202 -mac*) 1203 os=`echo $os | sed -e 's|mac|macos|'` 1204 ;; 1205 -linux-dietlibc) 1206 os=-linux-dietlibc 1207 ;; 692 1208 -linux*) 693 1209 os=`echo $os | sed -e 's|linux|linux-gnu|'` 694 1210 ;; … … 698 1214 -sunos6*) 699 1215 os=`echo $os | sed -e 's|sunos6|solaris3|'` 700 1216 ;; 1217 -opened*) 1218 os=-openedition 1219 ;; 1220 -os400*) 1221 os=-os400 1222 ;; 1223 -wince*) 1224 os=-wince 1225 ;; 701 1226 -osfrose*) 702 1227 os=-osfrose 703 1228 ;; … … 713 1238 -acis*) 714 1239 os=-aos 715 1240 ;; 1241 -atheos*) 1242 os=-atheos 1243 ;; 1244 -syllable*) 1245 os=-syllable 1246 ;; 1247 -386bsd) 1248 os=-bsd 1249 ;; 716 1250 -ctix* | -uts*) 717 1251 os=-sysv 718 1252 ;; 1253 -nova*) 1254 os=-rtmk-nova 1255 ;; 719 1256 -ns2 ) 720 os=-nextstep2 1257 os=-nextstep2 1258 ;; 1259 -nsk*) 1260 os=-nsk 721 1261 ;; 722 1262 # Preserve the version number of sinix5. 723 1263 -sinix5.*) … … 726 1266 -sinix*) 727 1267 os=-sysv4 728 1268 ;; 1269 -tpf*) 1270 os=-tpf 1271 ;; 729 1272 -triton*) 730 1273 os=-sysv3 731 1274 ;; … … 744 1287 # This must come after -sysvr4. 745 1288 -sysv*) 746 1289 ;; 1290 -ose*) 1291 os=-ose 1292 ;; 1293 -es1800*) 1294 os=-ose 1295 ;; 747 1296 -xenix) 748 1297 os=-xenix 749 1298 ;; 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 1310 ;; 750 1311 -none) 751 1312 ;; 752 1313 *) … … 772 1333 *-acorn) 773 1334 os=-riscix1.2 774 1335 ;; 1336 arm*-rebel) 1337 os=-linux 1338 ;; 775 1339 arm*-semi) 776 1340 os=-aout 777 1341 ;; 778 pdp11-*) 1342 c4x-* | tic4x-*) 1343 os=-coff 1344 ;; 1345 # This must come before the *-dec entry. 1346 pdp10-*) 1347 os=-tops20 1348 ;; 1349 pdp11-*) 779 1350 os=-none 780 1351 ;; 781 1352 *-dec | vax-*) … … 793 1364 # default. 794 1365 # os=-sunos4 795 1366 ;; 1367 m68*-cisco) 1368 os=-aout 1369 ;; 1370 mips*-cisco) 1371 os=-elf 1372 ;; 1373 mips*-*) 1374 os=-elf 1375 ;; 1376 or32-*) 1377 os=-coff 1378 ;; 796 1379 *-tti) # must be before sparc entry or we get the wrong os. 797 1380 os=-sysv3 798 1381 ;; 799 1382 sparc-* | *-sun) 800 1383 os=-sunos4.1.1 801 1384 ;; 1385 *-be) 1386 os=-beos 1387 ;; 802 1388 *-ibm) 803 1389 os=-aix 804 1390 ;; 1391 *-knuth) 1392 os=-mmixware 1393 ;; 1394 *-wec) 1395 os=-proelf 1396 ;; 1397 *-winbond) 1398 os=-proelf 1399 ;; 1400 *-oki) 1401 os=-proelf 1402 ;; 805 1403 *-hp) 806 1404 os=-hpux 807 1405 ;; … … 812 1410 os=-sysv 813 1411 ;; 814 1412 *-cbm) 815 os=-amiga dos1413 os=-amigaos 816 1414 ;; 817 1415 *-dg) 818 1416 os=-dgux … … 844 1442 *-next) 845 1443 os=-nextstep3 846 1444 ;; 847 1445 *-gould) 848 1446 os=-sysv 849 1447 ;; 850 1448 *-highlevel) 851 1449 os=-bsd 852 1450 ;; 853 1451 *-encore) 854 1452 os=-bsd 855 1453 ;; 856 1454 *-sgi) 857 1455 os=-irix 858 1456 ;; 859 1457 *-siemens) 860 1458 os=-sysv4 861 1459 ;; 862 1460 *-masscomp) 863 1461 os=-rtu 864 1462 ;; 1463 f30[01]-fujitsu | f700-fujitsu) 1464 os=-uxpv 1465 ;; 1466 *-rom68k) 1467 os=-coff 1468 ;; 1469 *-*bug) 1470 os=-coff 1471 ;; 1472 *-apple) 1473 os=-macos 1474 ;; 1475 *-atari*) 1476 os=-mint 1477 ;; 865 1478 *) 866 1479 os=-none 867 1480 ;; … … 883 1496 -aix*) 884 1497 vendor=ibm 885 1498 ;; 1499 -beos*) 1500 vendor=be 1501 ;; 886 1502 -hpux*) 887 1503 vendor=hp 888 1504 ;; 1505 -mpeix*) 1506 vendor=hp 1507 ;; 889 1508 -hiux*) 890 1509 vendor=hitachi 891 1510 ;; … … 901 1520 -genix*) 902 1521 vendor=ns 903 1522 ;; 904 -mvs*) 1523 -mvs* | -opened*) 1524 vendor=ibm 1525 ;; 1526 -os400*) 905 1527 vendor=ibm 906 1528 ;; 907 1529 -ptx*) 908 1530 vendor=sequent 909 1531 ;; 910 -vxsim* | -vxworks*) 1532 -tpf*) 1533 vendor=ibm 1534 ;; 1535 -vxsim* | -vxworks* | -windiss*) 911 1536 vendor=wrs 912 1537 ;; 913 1538 -aux*) 914 1539 vendor=apple 915 1540 ;; 1541 -hms*) 1542 vendor=hitachi 1543 ;; 1544 -mpw* | -macos*) 1545 vendor=apple 1546 ;; 1547 -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) 1548 vendor=atari 1549 ;; 1550 -vos*) 1551 vendor=stratus 1552 ;; 916 1553 esac 917 1554 basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` 918 1555 ;; 919 1556 esac 920 1557 921 1558 echo $basic_machine$os 1559 exit 0 1560 1561 # Local variables: 1562 # eval: (add-hook 'write-file-hooks 'time-stamp) 1563 # time-stamp-start: "timestamp='" 1564 # time-stamp-format: "%:y-%02m-%02d" 1565 # time-stamp-end: "'" 1566 # End:
Note:
See TracBrowser
for help on using the repository browser.