summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2002-07-25 14:40:22 +1000
committerDamien Miller <djm@mindrot.org>2002-07-25 14:40:22 +1000
commita7609f548f2e0be63abe740d7dbdd7d8a4a17eeb (patch)
treee898640d1ed1525b050e38d9166682b0b4812b49
parent6d8d78827eeec670932247ebfde7bfe13adf7540 (diff)
- (djm) Latest config.guess and config.sub from ftp://ftp.gnu.org/gnu/config/
-rw-r--r--ChangeLog3
-rwxr-xr-xconfig.guess141
-rwxr-xr-xconfig.sub272
3 files changed, 271 insertions, 145 deletions
diff --git a/ChangeLog b/ChangeLog
index 96a24da52..f787ee406 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,6 @@
120020725 120020725
2 - (djm) Remove some cruft from INSTALL 2 - (djm) Remove some cruft from INSTALL
3 - (djm) Latest config.guess and config.sub from ftp://ftp.gnu.org/gnu/config/
3 4
420020723 520020723
5 - (bal) [bsd-cray.c bsd-cray.h] Part 2 of Cray merger. 6 - (bal) [bsd-cray.c bsd-cray.h] Part 2 of Cray merger.
@@ -1455,4 +1456,4 @@
1455 - (stevesk) entropy.c: typo in debug message 1456 - (stevesk) entropy.c: typo in debug message
1456 - (djm) ssh-keygen -i needs seeded RNG; report from markus@ 1457 - (djm) ssh-keygen -i needs seeded RNG; report from markus@
1457 1458
1458$Id: ChangeLog,v 1.2404 2002/07/25 04:36:24 djm Exp $ 1459$Id: ChangeLog,v 1.2405 2002/07/25 04:40:22 djm Exp $
diff --git a/config.guess b/config.guess
index 83c544d97..fd30ab031 100755
--- a/config.guess
+++ b/config.guess
@@ -3,7 +3,7 @@
3# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 3# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
4# 2000, 2001, 2002 Free Software Foundation, Inc. 4# 2000, 2001, 2002 Free Software Foundation, Inc.
5 5
6timestamp='2002-01-30' 6timestamp='2002-07-23'
7 7
8# This file is free software; you can redistribute it and/or modify it 8# This file is free software; you can redistribute it and/or modify it
9# under the terms of the GNU General Public License as published by 9# under the terms of the GNU General Public License as published by
@@ -88,30 +88,40 @@ if test $# != 0; then
88 exit 1 88 exit 1
89fi 89fi
90 90
91trap 'exit 1' 1 2 15
91 92
92dummy=dummy-$$ 93# CC_FOR_BUILD -- compiler used by this script. Note that the use of a
93trap 'rm -f $dummy.c $dummy.o $dummy.rel $dummy; exit 1' 1 2 15 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# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still 98# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
97# use `HOST_CC' if defined, but it is deprecated. 99# use `HOST_CC' if defined, but it is deprecated.
98 100
99set_cc_for_build='case $CC_FOR_BUILD,$HOST_CC,$CC in 101# This shell variable is my proudest work .. or something. --bje
100 ,,) echo "int dummy(){}" > $dummy.c ; 102
101 for c in cc gcc c89 ; do 103set_cc_for_build='tmpdir=${TMPDIR-/tmp}/config-guess-$$ ;
102 ($c $dummy.c -c -o $dummy.o) >/dev/null 2>&1 ; 104(old=`umask` && umask 077 && mkdir $tmpdir && umask $old && unset old)
103 if test $? = 0 ; then 105 || (echo "$me: cannot create $tmpdir" >&2 && exit 1) ;
106dummy=$tmpdir/dummy ;
107files="$dummy.c $dummy.o $dummy.rel $dummy" ;
108trap '"'"'rm -f $files; rmdir $tmpdir; exit 1'"'"' 1 2 15 ;
109case $CC_FOR_BUILD,$HOST_CC,$CC in
110 ,,) echo "int x;" > $dummy.c ;
111 for c in cc gcc c89 c99 ; do
112 if ($c $dummy.c -c -o $dummy.o) >/dev/null 2>&1 ; then
104 CC_FOR_BUILD="$c"; break ; 113 CC_FOR_BUILD="$c"; break ;
105 fi ; 114 fi ;
106 done ; 115 done ;
107 rm -f $dummy.c $dummy.o $dummy.rel ; 116 rm -f $files ;
108 if test x"$CC_FOR_BUILD" = x ; then 117 if test x"$CC_FOR_BUILD" = x ; then
109 CC_FOR_BUILD=no_compiler_found ; 118 CC_FOR_BUILD=no_compiler_found ;
110 fi 119 fi
111 ;; 120 ;;
112 ,,*) CC_FOR_BUILD=$CC ;; 121 ,,*) CC_FOR_BUILD=$CC ;;
113 ,*,*) CC_FOR_BUILD=$HOST_CC ;; 122 ,*,*) CC_FOR_BUILD=$HOST_CC ;;
114esac' 123esac ;
124unset files'
115 125
116# This is needed to find uname on a Pyramid OSx when run in the BSD universe. 126# This is needed to find uname on a Pyramid OSx when run in the BSD universe.
117# (ghazi@noc.rutgers.edu 1994-08-24) 127# (ghazi@noc.rutgers.edu 1994-08-24)
@@ -138,9 +148,11 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
138 # 148 #
139 # Note: NetBSD doesn't particularly care about the vendor 149 # Note: NetBSD doesn't particularly care about the vendor
140 # portion of the name. We always set it to "unknown". 150 # portion of the name. We always set it to "unknown".
141 UNAME_MACHINE_ARCH=`(uname -p) 2>/dev/null` || \ 151 sysctl="sysctl -n hw.machine_arch"
142 UNAME_MACHINE_ARCH=unknown 152 UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \
153 /usr/sbin/$sysctl 2>/dev/null || echo unknown)`
143 case "${UNAME_MACHINE_ARCH}" in 154 case "${UNAME_MACHINE_ARCH}" in
155 armeb) machine=armeb-unknown ;;
144 arm*) machine=arm-unknown ;; 156 arm*) machine=arm-unknown ;;
145 sh3el) machine=shl-unknown ;; 157 sh3el) machine=shl-unknown ;;
146 sh3eb) machine=sh-unknown ;; 158 sh3eb) machine=sh-unknown ;;
@@ -219,6 +231,7 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
219 # A Tn.n version is a released field test version. 231 # A Tn.n version is a released field test version.
220 # A Xn.n version is an unreleased experimental baselevel. 232 # A Xn.n version is an unreleased experimental baselevel.
221 # 1.2 uses "1.2" for uname -r. 233 # 1.2 uses "1.2" for uname -r.
234 eval $set_cc_for_build
222 cat <<EOF >$dummy.s 235 cat <<EOF >$dummy.s
223 .data 236 .data
224\$Lformat: 237\$Lformat:
@@ -244,10 +257,9 @@ main:
244 jsr \$26,exit 257 jsr \$26,exit
245 .end main 258 .end main
246EOF 259EOF
247 eval $set_cc_for_build
248 $CC_FOR_BUILD $dummy.s -o $dummy 2>/dev/null 260 $CC_FOR_BUILD $dummy.s -o $dummy 2>/dev/null
249 if test "$?" = 0 ; then 261 if test "$?" = 0 ; then
250 case `./$dummy` in 262 case `$dummy` in
251 0-0) 263 0-0)
252 UNAME_MACHINE="alpha" 264 UNAME_MACHINE="alpha"
253 ;; 265 ;;
@@ -269,9 +281,12 @@ EOF
269 2-1307) 281 2-1307)
270 UNAME_MACHINE="alphaev68" 282 UNAME_MACHINE="alphaev68"
271 ;; 283 ;;
284 3-1307)
285 UNAME_MACHINE="alphaev7"
286 ;;
272 esac 287 esac
273 fi 288 fi
274 rm -f $dummy.s $dummy 289 rm -f $dummy.s $dummy && rmdir $tmpdir
275 echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 290 echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
276 exit 0 ;; 291 exit 0 ;;
277 Alpha\ *:Windows_NT*:*) 292 Alpha\ *:Windows_NT*:*)
@@ -312,6 +327,10 @@ EOF
312 NILE*:*:*:dcosx) 327 NILE*:*:*:dcosx)
313 echo pyramid-pyramid-svr4 328 echo pyramid-pyramid-svr4
314 exit 0 ;; 329 exit 0 ;;
330 DRS?6000:UNIX_SV:4.2*:7*)
331 case `/usr/bin/uname -p` in
332 sparc) echo sparc-icl-nx7 && exit 0 ;;
333 esac ;;
315 sun4H:SunOS:5.*:*) 334 sun4H:SunOS:5.*:*)
316 echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 335 echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
317 exit 0 ;; 336 exit 0 ;;
@@ -340,7 +359,7 @@ EOF
340 echo m68k-sun-sunos${UNAME_RELEASE} 359 echo m68k-sun-sunos${UNAME_RELEASE}
341 exit 0 ;; 360 exit 0 ;;
342 sun*:*:4.2BSD:*) 361 sun*:*:4.2BSD:*)
343 UNAME_RELEASE=`(head -1 /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` 362 UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
344 test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3 363 test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
345 case "`/bin/arch`" in 364 case "`/bin/arch`" in
346 sun3) 365 sun3)
@@ -419,14 +438,17 @@ EOF
419 } 438 }
420EOF 439EOF
421 $CC_FOR_BUILD $dummy.c -o $dummy \ 440 $CC_FOR_BUILD $dummy.c -o $dummy \
422 && ./$dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \ 441 && $dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \
423 && rm -f $dummy.c $dummy && exit 0 442 && rm -f $dummy.c $dummy && rmdir $tmpdir && exit 0
424 rm -f $dummy.c $dummy 443 rm -f $dummy.c $dummy && rmdir $tmpdir
425 echo mips-mips-riscos${UNAME_RELEASE} 444 echo mips-mips-riscos${UNAME_RELEASE}
426 exit 0 ;; 445 exit 0 ;;
427 Motorola:PowerMAX_OS:*:*) 446 Motorola:PowerMAX_OS:*:*)
428 echo powerpc-motorola-powermax 447 echo powerpc-motorola-powermax
429 exit 0 ;; 448 exit 0 ;;
449 Night_Hawk:*:*:PowerMAX_OS)
450 echo powerpc-harris-powermax
451 exit 0 ;;
430 Night_Hawk:Power_UNIX:*:*) 452 Night_Hawk:Power_UNIX:*:*)
431 echo powerpc-harris-powerunix 453 echo powerpc-harris-powerunix
432 exit 0 ;; 454 exit 0 ;;
@@ -499,8 +521,8 @@ EOF
499 exit(0); 521 exit(0);
500 } 522 }
501EOF 523EOF
502 $CC_FOR_BUILD $dummy.c -o $dummy && ./$dummy && rm -f $dummy.c $dummy && exit 0 524 $CC_FOR_BUILD $dummy.c -o $dummy && $dummy && rm -f $dummy.c $dummy && rmdir $tmpdir && exit 0
503 rm -f $dummy.c $dummy 525 rm -f $dummy.c $dummy && rmdir $tmpdir
504 echo rs6000-ibm-aix3.2.5 526 echo rs6000-ibm-aix3.2.5
505 elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then 527 elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
506 echo rs6000-ibm-aix3.2.4 528 echo rs6000-ibm-aix3.2.4
@@ -509,7 +531,7 @@ EOF
509 fi 531 fi
510 exit 0 ;; 532 exit 0 ;;
511 *:AIX:*:[45]) 533 *:AIX:*:[45])
512 IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | head -1 | awk '{ print $1 }'` 534 IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
513 if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then 535 if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
514 IBM_ARCH=rs6000 536 IBM_ARCH=rs6000
515 else 537 else
@@ -598,9 +620,9 @@ EOF
598 exit (0); 620 exit (0);
599 } 621 }
600EOF 622EOF
601 (CCOPTS= $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null) && HP_ARCH=`./$dummy` 623 (CCOPTS= $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null) && HP_ARCH=`$dummy`
602 if test -z "$HP_ARCH"; then HP_ARCH=hppa; fi 624 if test -z "$HP_ARCH"; then HP_ARCH=hppa; fi
603 rm -f $dummy.c $dummy 625 rm -f $dummy.c $dummy && rmdir $tmpdir
604 fi ;; 626 fi ;;
605 esac 627 esac
606 echo ${HP_ARCH}-hp-hpux${HPUX_REV} 628 echo ${HP_ARCH}-hp-hpux${HPUX_REV}
@@ -636,8 +658,8 @@ EOF
636 exit (0); 658 exit (0);
637 } 659 }
638EOF 660EOF
639 $CC_FOR_BUILD $dummy.c -o $dummy && ./$dummy && rm -f $dummy.c $dummy && exit 0 661 $CC_FOR_BUILD $dummy.c -o $dummy && $dummy && rm -f $dummy.c $dummy && rmdir $tmpdir && exit 0
640 rm -f $dummy.c $dummy 662 rm -f $dummy.c $dummy && rmdir $tmpdir
641 echo unknown-hitachi-hiuxwe2 663 echo unknown-hitachi-hiuxwe2
642 exit 0 ;; 664 exit 0 ;;
643 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) 665 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
@@ -683,9 +705,6 @@ EOF
683 C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) 705 C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
684 echo c4-convex-bsd 706 echo c4-convex-bsd
685 exit 0 ;; 707 exit 0 ;;
686 CRAY*X-MP:*:*:*)
687 echo xmp-cray-unicos
688 exit 0 ;;
689 CRAY*Y-MP:*:*:*) 708 CRAY*Y-MP:*:*:*)
690 echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 709 echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
691 exit 0 ;; 710 exit 0 ;;
@@ -707,9 +726,6 @@ EOF
707 CRAY*SV1:*:*:*) 726 CRAY*SV1:*:*:*)
708 echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 727 echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
709 exit 0 ;; 728 exit 0 ;;
710 CRAY-2:*:*:*)
711 echo cray2-cray-unicos
712 exit 0 ;;
713 F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) 729 F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
714 FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 730 FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
715 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` 731 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
@@ -726,7 +742,19 @@ EOF
726 echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} 742 echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
727 exit 0 ;; 743 exit 0 ;;
728 *:FreeBSD:*:*) 744 *:FreeBSD:*:*)
729 echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` 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
754EOF
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}
730 exit 0 ;; 758 exit 0 ;;
731 i*:CYGWIN*:*) 759 i*:CYGWIN*:*)
732 echo ${UNAME_MACHINE}-pc-cygwin 760 echo ${UNAME_MACHINE}-pc-cygwin
@@ -765,7 +793,7 @@ EOF
765 echo ${UNAME_MACHINE}-unknown-linux-gnu 793 echo ${UNAME_MACHINE}-unknown-linux-gnu
766 exit 0 ;; 794 exit 0 ;;
767 ia64:Linux:*:*) 795 ia64:Linux:*:*)
768 echo ${UNAME_MACHINE}-unknown-linux 796 echo ${UNAME_MACHINE}-unknown-linux-gnu
769 exit 0 ;; 797 exit 0 ;;
770 m68*:Linux:*:*) 798 m68*:Linux:*:*)
771 echo ${UNAME_MACHINE}-unknown-linux-gnu 799 echo ${UNAME_MACHINE}-unknown-linux-gnu
@@ -776,18 +804,18 @@ EOF
776 #undef CPU 804 #undef CPU
777 #undef mips 805 #undef mips
778 #undef mipsel 806 #undef mipsel
779 #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) 807 #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
780 CPU=mipsel 808 CPU=mipsel
781 #else 809 #else
782 #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) 810 #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
783 CPU=mips 811 CPU=mips
784 #else 812 #else
785 CPU= 813 CPU=
786 #endif 814 #endif
787 #endif 815 #endif
788EOF 816EOF
789 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=` 817 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
790 rm -f $dummy.c 818 rm -f $dummy.c && rmdir $tmpdir
791 test x"${CPU}" != x && echo "${CPU}-pc-linux-gnu" && exit 0 819 test x"${CPU}" != x && echo "${CPU}-pc-linux-gnu" && exit 0
792 ;; 820 ;;
793 ppc:Linux:*:*) 821 ppc:Linux:*:*)
@@ -837,9 +865,8 @@ EOF
837 # The BFD linker knows what the default object file format is, so 865 # The BFD linker knows what the default object file format is, so
838 # first see if it will tell us. cd to the root directory to prevent 866 # first see if it will tell us. cd to the root directory to prevent
839 # problems with other programs or directories called `ld' in the path. 867 # problems with other programs or directories called `ld' in the path.
840 # Export LANG=C to prevent ld from outputting information in other 868 # Set LC_ALL=C to ensure ld outputs messages in English.
841 # languages. 869 ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \
842 ld_supported_targets=`LANG=C; export LANG; cd /; ld --help 2>&1 \
843 | sed -ne '/supported targets:/!d 870 | sed -ne '/supported targets:/!d
844 s/[ ][ ]*/ /g 871 s/[ ][ ]*/ /g
845 s/.*supported targets: *// 872 s/.*supported targets: *//
@@ -851,7 +878,7 @@ EOF
851 ;; 878 ;;
852 a.out-i386-linux) 879 a.out-i386-linux)
853 echo "${UNAME_MACHINE}-pc-linux-gnuaout" 880 echo "${UNAME_MACHINE}-pc-linux-gnuaout"
854 exit 0 ;; 881 exit 0 ;;
855 coff-i386) 882 coff-i386)
856 echo "${UNAME_MACHINE}-pc-linux-gnucoff" 883 echo "${UNAME_MACHINE}-pc-linux-gnucoff"
857 exit 0 ;; 884 exit 0 ;;
@@ -884,7 +911,7 @@ EOF
884 #endif 911 #endif
885EOF 912EOF
886 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=` 913 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
887 rm -f $dummy.c 914 rm -f $dummy.c && rmdir $tmpdir
888 test x"${LIBC}" != x && echo "${UNAME_MACHINE}-pc-linux-${LIBC}" && exit 0 915 test x"${LIBC}" != x && echo "${UNAME_MACHINE}-pc-linux-${LIBC}" && exit 0
889 test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0 916 test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0
890 ;; 917 ;;
@@ -923,13 +950,13 @@ EOF
923 UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name` 950 UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
924 echo ${UNAME_MACHINE}-pc-isc$UNAME_REL 951 echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
925 elif /bin/uname -X 2>/dev/null >/dev/null ; then 952 elif /bin/uname -X 2>/dev/null >/dev/null ; then
926 UNAME_REL=`(/bin/uname -X|egrep Release|sed -e 's/.*= //')` 953 UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
927 (/bin/uname -X|egrep i80486 >/dev/null) && UNAME_MACHINE=i486 954 (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
928 (/bin/uname -X|egrep '^Machine.*Pentium' >/dev/null) \ 955 (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \
929 && UNAME_MACHINE=i586 956 && UNAME_MACHINE=i586
930 (/bin/uname -X|egrep '^Machine.*Pent ?II' >/dev/null) \ 957 (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \
931 && UNAME_MACHINE=i686 958 && UNAME_MACHINE=i686
932 (/bin/uname -X|egrep '^Machine.*Pentium Pro' >/dev/null) \ 959 (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
933 && UNAME_MACHINE=i686 960 && UNAME_MACHINE=i686
934 echo ${UNAME_MACHINE}-pc-sco$UNAME_REL 961 echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
935 else 962 else
@@ -964,7 +991,7 @@ EOF
964 exit 0 ;; 991 exit 0 ;;
965 M68*:*:R3V[567]*:*) 992 M68*:*:R3V[567]*:*)
966 test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;; 993 test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;;
967 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) 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)
968 OS_REL='' 995 OS_REL=''
969 test -r /etc/.relid \ 996 test -r /etc/.relid \
970 && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` 997 && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
@@ -1065,12 +1092,12 @@ EOF
1065 echo `uname -p`-apple-darwin${UNAME_RELEASE} 1092 echo `uname -p`-apple-darwin${UNAME_RELEASE}
1066 exit 0 ;; 1093 exit 0 ;;
1067 *:procnto*:*:* | *:QNX:[0123456789]*:*) 1094 *:procnto*:*:* | *:QNX:[0123456789]*:*)
1068 if test "${UNAME_MACHINE}" = "x86pc"; then 1095 UNAME_PROCESSOR=`uname -p`
1096 if test "$UNAME_PROCESSOR" = "x86"; then
1097 UNAME_PROCESSOR=i386
1069 UNAME_MACHINE=pc 1098 UNAME_MACHINE=pc
1070 echo i386-${UNAME_MACHINE}-nto-qnx
1071 else
1072 echo `uname -p`-${UNAME_MACHINE}-nto-qnx
1073 fi 1099 fi
1100 echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
1074 exit 0 ;; 1101 exit 0 ;;
1075 *:QNX:*:4*) 1102 *:QNX:*:4*)
1076 echo i386-pc-qnx 1103 echo i386-pc-qnx
@@ -1247,8 +1274,8 @@ main ()
1247} 1274}
1248EOF 1275EOF
1249 1276
1250$CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null && ./$dummy && rm -f $dummy.c $dummy && exit 0 1277$CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null && $dummy && rm -f $dummy.c $dummy && rmdir $tmpdir && exit 0
1251rm -f $dummy.c $dummy 1278rm -f $dummy.c $dummy && rmdir $tmpdir
1252 1279
1253# Apollos put the system type in the environment. 1280# Apollos put the system type in the environment.
1254 1281
diff --git a/config.sub b/config.sub
index a06a480ad..9ff085efa 100755
--- a/config.sub
+++ b/config.sub
@@ -1,9 +1,9 @@
1#! /bin/sh 1#! /bin/sh
2# Configuration validation subroutine script. 2# Configuration validation subroutine script.
3# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001 3# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
4# Free Software Foundation, Inc. 4# 2000, 2001, 2002 Free Software Foundation, Inc.
5 5
6timestamp='2001-04-20' 6timestamp='2002-07-03'
7 7
8# This file is (in principle) common to ALL GNU software. 8# This file is (in principle) common to ALL GNU software.
9# The presence of a machine in this file suggests that SOME GNU software 9# The presence of a machine in this file suggests that SOME GNU software
@@ -29,7 +29,8 @@ timestamp='2001-04-20'
29# configuration script generated by Autoconf, you may include it under 29# configuration script generated by Autoconf, you may include it under
30# the same distribution terms that you use for the rest of that program. 30# the same distribution terms that you use for the rest of that program.
31 31
32# Please send patches to <config-patches@gnu.org>. 32# Please send patches to <config-patches@gnu.org>. Submit a context
33# diff and a properly formatted ChangeLog entry.
33# 34#
34# Configuration subroutine to validate and canonicalize a configuration type. 35# Configuration subroutine to validate and canonicalize a configuration type.
35# Supply the specified configuration type as an argument. 36# Supply the specified configuration type as an argument.
@@ -117,7 +118,7 @@ esac
117# Here we must recognize all the valid KERNEL-OS combinations. 118# Here we must recognize all the valid KERNEL-OS combinations.
118maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` 119maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
119case $maybe_os in 120case $maybe_os in
120 nto-qnx* | linux-gnu* | storm-chaos* | os2-emx*) 121 nto-qnx* | linux-gnu* | freebsd*-gnu* | storm-chaos* | os2-emx* | windows32-* | rtmk-nova*)
121 os=-$maybe_os 122 os=-$maybe_os
122 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` 123 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
123 ;; 124 ;;
@@ -157,6 +158,14 @@ case $os in
157 os=-vxworks 158 os=-vxworks
158 basic_machine=$1 159 basic_machine=$1
159 ;; 160 ;;
161 -chorusos*)
162 os=-chorusos
163 basic_machine=$1
164 ;;
165 -chorusrdb)
166 os=-chorusrdb
167 basic_machine=$1
168 ;;
160 -hiux*) 169 -hiux*)
161 os=-hiuxwe2 170 os=-hiuxwe2
162 ;; 171 ;;
@@ -215,26 +224,44 @@ esac
215case $basic_machine in 224case $basic_machine in
216 # Recognize the basic CPU types without company name. 225 # Recognize the basic CPU types without company name.
217 # Some are omitted here because they have special meanings below. 226 # Some are omitted here because they have special meanings below.
218 tahoe | i860 | ia64 | m32r | m68k | m68000 | m88k | ns32k | arc \ 227 1750a | 580 \
219 | arm | arme[lb] | arm[bl]e | armv[2345] | armv[345][lb] | strongarm | xscale \ 228 | a29k \
220 | pyramid | mn10200 | mn10300 | tron | a29k \ 229 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
221 | 580 | i960 | h8300 \ 230 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
222 | x86 | ppcbe | mipsbe | mipsle | shbe | shle \ 231 | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
223 | hppa | hppa1.0 | hppa1.1 | hppa2.0 | hppa2.0w | hppa2.0n \ 232 | c4x | clipper \
224 | hppa64 \ 233 | d10v | d30v | dlx | dsp16xx \
225 | alpha | alphaev[4-8] | alphaev56 | alphapca5[67] \ 234 | fr30 | frv \
226 | alphaev6[78] \ 235 | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
227 | we32k | ns16k | clipper | i370 | sh | sh[34] \ 236 | i370 | i860 | i960 | ia64 \
228 | powerpc | powerpcle \ 237 | ip2k \
229 | 1750a | dsp16xx | pdp10 | pdp11 \ 238 | m32r | m68000 | m68k | m88k | mcore \
230 | mips16 | mips64 | mipsel | mips64el \ 239 | mips | mipsbe | mipseb | mipsel | mipsle \
231 | mips64orion | mips64orionel | mipstx39 | mipstx39el \ 240 | mips16 \
232 | mips64vr4300 | mips64vr4300el | mips64vr4100 | mips64vr4100el \ 241 | mips64 | mips64el \
233 | mips64vr5000 | miprs64vr5000el | mcore | s390 | s390x \ 242 | mips64orion | mips64orionel \
234 | sparc | sparclet | sparclite | sparc64 | sparcv9 | sparcv9b \ 243 | mips64vr4100 | mips64vr4100el \
235 | v850 | c4x \ 244 | mips64vr4300 | mips64vr4300el \
236 | thumb | d10v | d30v | fr30 | avr | openrisc | tic80 \ 245 | mips64vr5000 | mips64vr5000el \
237 | pj | pjl | h8500) 246 | mipsisa32 | mipsisa32el \
247 | mipsisa64 | mipsisa64el \
248 | mipsisa64sb1 | mipsisa64sb1el \
249 | mipstx39 | mipstx39el \
250 | mn10200 | mn10300 \
251 | ns16k | ns32k \
252 | openrisc | or32 \
253 | pdp10 | pdp11 | pj | pjl \
254 | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
255 | pyramid \
256 | sh | sh[1234] | sh3e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \
257 | sh64 | sh64le \
258 | sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv9 | sparcv9b \
259 | strongarm \
260 | tahoe | thumb | tic80 | tron \
261 | v850 | v850e \
262 | we32k \
263 | x86 | xscale | xstormy16 | xtensa \
264 | z8k)
238 basic_machine=$basic_machine-unknown 265 basic_machine=$basic_machine-unknown
239 ;; 266 ;;
240 m6811 | m68hc11 | m6812 | m68hc12) 267 m6811 | m68hc11 | m6812 | m68hc12)
@@ -242,7 +269,7 @@ case $basic_machine in
242 basic_machine=$basic_machine-unknown 269 basic_machine=$basic_machine-unknown
243 os=-none 270 os=-none
244 ;; 271 ;;
245 m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | z8k | v70 | w65) 272 m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
246 ;; 273 ;;
247 274
248 # We use `pc' rather than `unknown' 275 # We use `pc' rather than `unknown'
@@ -257,31 +284,54 @@ case $basic_machine in
257 exit 1 284 exit 1
258 ;; 285 ;;
259 # Recognize the basic CPU types with company name. 286 # Recognize the basic CPU types with company name.
260 # FIXME: clean up the formatting here. 287 580-* \
261 vax-* | tahoe-* | i*86-* | i860-* | ia64-* | m32r-* | m68k-* | m68000-* \ 288 | a29k-* \
262 | m88k-* | sparc-* | ns32k-* | fx80-* | arc-* | c[123]* \ 289 | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
263 | arm-* | armbe-* | armle-* | armv*-* | strongarm-* | xscale-* \ 290 | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
264 | mips-* | pyramid-* | tron-* | a29k-* | romp-* | rs6000-* \ 291 | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
265 | power-* | none-* | 580-* | cray2-* | h8300-* | h8500-* | i960-* \ 292 | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
266 | xmp-* | ymp-* \ 293 | avr-* \
267 | x86-* | ppcbe-* | mipsbe-* | mipsle-* | shbe-* | shle-* \ 294 | bs2000-* \
268 | hppa-* | hppa1.0-* | hppa1.1-* | hppa2.0-* | hppa2.0w-* \ 295 | c[123]* | c30-* | [cjt]90-* | c54x-* \
269 | hppa2.0n-* | hppa64-* \ 296 | clipper-* | cydra-* \
270 | alpha-* | alphaev[4-8]-* | alphaev56-* | alphapca5[67]-* \ 297 | d10v-* | d30v-* | dlx-* \
271 | alphaev6[78]-* \ 298 | elxsi-* \
272 | we32k-* | cydra-* | ns16k-* | pn-* | np1-* | xps100-* \ 299 | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \
273 | clipper-* | orion-* \ 300 | h8300-* | h8500-* \
274 | sparclite-* | pdp10-* | pdp11-* | sh-* | powerpc-* | powerpcle-* \ 301 | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
275 | sparc64-* | sparcv9-* | sparcv9b-* | sparc86x-* \ 302 | i*86-* | i860-* | i960-* | ia64-* \
276 | mips16-* | mips64-* | mipsel-* \ 303 | ip2k-* \
277 | mips64el-* | mips64orion-* | mips64orionel-* \ 304 | m32r-* \
278 | mips64vr4100-* | mips64vr4100el-* | mips64vr4300-* | mips64vr4300el-* \ 305 | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
279 | mipstx39-* | mipstx39el-* | mcore-* \ 306 | m88110-* | m88k-* | mcore-* \
280 | f30[01]-* | f700-* | s390-* | s390x-* | sv1-* | t3e-* \ 307 | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
281 | [cjt]90-* \ 308 | mips16-* \
282 | m88110-* | m680[01234]0-* | m683?2-* | m68360-* | z8k-* | d10v-* \ 309 | mips64-* | mips64el-* \
283 | thumb-* | v850-* | d30v-* | tic30-* | tic80-* | c30-* | fr30-* \ 310 | mips64orion-* | mips64orionel-* \
284 | bs2000-* | tic54x-* | c54x-* | x86_64-* | pj-* | pjl-*) 311 | mips64vr4100-* | mips64vr4100el-* \
312 | mips64vr4300-* | mips64vr4300el-* \
313 | mips64vr5000-* | mips64vr5000el-* \
314 | mipsisa32-* | mipsisa32el-* \
315 | mipsisa64-* | mipsisa64el-* \
316 | mipsisa64sb1-* | mipsisa64sb1el-* \
317 | mipstx39 | mipstx39el \
318 | none-* | np1-* | ns16k-* | ns32k-* \
319 | orion-* \
320 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
321 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
322 | pyramid-* \
323 | romp-* | rs6000-* \
324 | sh-* | sh[1234]-* | sh3e-* | sh[34]eb-* | shbe-* \
325 | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
326 | sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \
327 | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \
328 | tahoe-* | thumb-* | tic30-* | tic54x-* | tic80-* | tron-* \
329 | v850-* | v850e-* | vax-* \
330 | we32k-* \
331 | x86-* | x86_64-* | xps100-* | xscale-* | xstormy16-* \
332 | xtensa-* \
333 | ymp-* \
334 | z8k-*)
285 ;; 335 ;;
286 # Recognize the various machine names and aliases which stand 336 # Recognize the various machine names and aliases which stand
287 # for a CPU type and a company and sometimes even an OS. 337 # for a CPU type and a company and sometimes even an OS.
@@ -344,6 +394,10 @@ case $basic_machine in
344 basic_machine=ns32k-sequent 394 basic_machine=ns32k-sequent
345 os=-dynix 395 os=-dynix
346 ;; 396 ;;
397 c90)
398 basic_machine=c90-cray
399 os=-unicos
400 ;;
347 convex-c1) 401 convex-c1)
348 basic_machine=c1-convex 402 basic_machine=c1-convex
349 os=-bsd 403 os=-bsd
@@ -364,16 +418,8 @@ case $basic_machine in
364 basic_machine=c38-convex 418 basic_machine=c38-convex
365 os=-bsd 419 os=-bsd
366 ;; 420 ;;
367 cray | ymp) 421 cray | j90)
368 basic_machine=ymp-cray 422 basic_machine=j90-cray
369 os=-unicos
370 ;;
371 cray2)
372 basic_machine=cray2-cray
373 os=-unicos
374 ;;
375 [cjt]90)
376 basic_machine=${basic_machine}-cray
377 os=-unicos 423 os=-unicos
378 ;; 424 ;;
379 crds | unos) 425 crds | unos)
@@ -388,6 +434,14 @@ case $basic_machine in
388 decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn) 434 decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
389 basic_machine=mips-dec 435 basic_machine=mips-dec
390 ;; 436 ;;
437 decsystem10* | dec10*)
438 basic_machine=pdp10-dec
439 os=-tops10
440 ;;
441 decsystem20* | dec20*)
442 basic_machine=pdp10-dec
443 os=-tops20
444 ;;
391 delta | 3300 | motorola-3300 | motorola-delta \ 445 delta | 3300 | motorola-3300 | motorola-delta \
392 | 3300-motorola | delta-motorola) 446 | 3300-motorola | delta-motorola)
393 basic_machine=m68k-motorola 447 basic_machine=m68k-motorola
@@ -568,14 +622,6 @@ case $basic_machine in
568 basic_machine=m68k-atari 622 basic_machine=m68k-atari
569 os=-mint 623 os=-mint
570 ;; 624 ;;
571 mipsel*-linux*)
572 basic_machine=mipsel-unknown
573 os=-linux-gnu
574 ;;
575 mips*-linux*)
576 basic_machine=mips-unknown
577 os=-linux-gnu
578 ;;
579 mips3*-*) 625 mips3*-*)
580 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` 626 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
581 ;; 627 ;;
@@ -590,6 +636,10 @@ case $basic_machine in
590 basic_machine=m68k-rom68k 636 basic_machine=m68k-rom68k
591 os=-coff 637 os=-coff
592 ;; 638 ;;
639 morphos)
640 basic_machine=powerpc-unknown
641 os=-morphos
642 ;;
593 msdos) 643 msdos)
594 basic_machine=i386-pc 644 basic_machine=i386-pc
595 os=-msdos 645 os=-msdos
@@ -669,6 +719,10 @@ case $basic_machine in
669 basic_machine=hppa1.1-oki 719 basic_machine=hppa1.1-oki
670 os=-proelf 720 os=-proelf
671 ;; 721 ;;
722 or32 | or32-*)
723 basic_machine=or32-unknown
724 os=-coff
725 ;;
672 OSE68000 | ose68000) 726 OSE68000 | ose68000)
673 basic_machine=m68000-ericsson 727 basic_machine=m68000-ericsson
674 os=-ose 728 os=-ose
@@ -694,7 +748,7 @@ case $basic_machine in
694 pc532 | pc532-*) 748 pc532 | pc532-*)
695 basic_machine=ns32k-pc532 749 basic_machine=ns32k-pc532
696 ;; 750 ;;
697 pentium | p5 | k5 | k6 | nexgen) 751 pentium | p5 | k5 | k6 | nexgen | viac3)
698 basic_machine=i586-pc 752 basic_machine=i586-pc
699 ;; 753 ;;
700 pentiumpro | p6 | 6x86 | athlon) 754 pentiumpro | p6 | 6x86 | athlon)
@@ -703,7 +757,7 @@ case $basic_machine in
703 pentiumii | pentium2) 757 pentiumii | pentium2)
704 basic_machine=i686-pc 758 basic_machine=i686-pc
705 ;; 759 ;;
706 pentium-* | p5-* | k5-* | k6-* | nexgen-*) 760 pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
707 basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` 761 basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
708 ;; 762 ;;
709 pentiumpro-* | p6-* | 6x86-* | athlon-*) 763 pentiumpro-* | p6-* | 6x86-* | athlon-*)
@@ -727,6 +781,16 @@ case $basic_machine in
727 ppcle-* | powerpclittle-*) 781 ppcle-* | powerpclittle-*)
728 basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` 782 basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
729 ;; 783 ;;
784 ppc64) basic_machine=powerpc64-unknown
785 ;;
786 ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
787 ;;
788 ppc64le | powerpc64little | ppc64-le | powerpc64-little)
789 basic_machine=powerpc64le-unknown
790 ;;
791 ppc64le-* | powerpc64little-*)
792 basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
793 ;;
730 ps2) 794 ps2)
731 basic_machine=i386-ibm 795 basic_machine=i386-ibm
732 ;; 796 ;;
@@ -744,6 +808,12 @@ case $basic_machine in
744 rtpc | rtpc-*) 808 rtpc | rtpc-*)
745 basic_machine=romp-ibm 809 basic_machine=romp-ibm
746 ;; 810 ;;
811 s390 | s390-*)
812 basic_machine=s390-ibm
813 ;;
814 s390x | s390x-*)
815 basic_machine=s390x-ibm
816 ;;
747 sa29200) 817 sa29200)
748 basic_machine=a29k-amd 818 basic_machine=a29k-amd
749 os=-udi 819 os=-udi
@@ -755,7 +825,7 @@ case $basic_machine in
755 basic_machine=sh-hitachi 825 basic_machine=sh-hitachi
756 os=-hms 826 os=-hms
757 ;; 827 ;;
758 sparclite-wrs) 828 sparclite-wrs | simso-wrs)
759 basic_machine=sparclite-wrs 829 basic_machine=sparclite-wrs
760 os=-vxworks 830 os=-vxworks
761 ;; 831 ;;
@@ -813,7 +883,7 @@ case $basic_machine in
813 sun386 | sun386i | roadrunner) 883 sun386 | sun386i | roadrunner)
814 basic_machine=i386-sun 884 basic_machine=i386-sun
815 ;; 885 ;;
816 sv1) 886 sv1)
817 basic_machine=sv1-cray 887 basic_machine=sv1-cray
818 os=-unicos 888 os=-unicos
819 ;; 889 ;;
@@ -821,8 +891,16 @@ case $basic_machine in
821 basic_machine=i386-sequent 891 basic_machine=i386-sequent
822 os=-dynix 892 os=-dynix
823 ;; 893 ;;
894 t3d)
895 basic_machine=alpha-cray
896 os=-unicos
897 ;;
824 t3e) 898 t3e)
825 basic_machine=t3e-cray 899 basic_machine=alphaev5-cray
900 os=-unicos
901 ;;
902 t90)
903 basic_machine=t90-cray
826 os=-unicos 904 os=-unicos
827 ;; 905 ;;
828 tic54x | c54x*) 906 tic54x | c54x*)
@@ -835,6 +913,10 @@ case $basic_machine in
835 tx39el) 913 tx39el)
836 basic_machine=mipstx39el-unknown 914 basic_machine=mipstx39el-unknown
837 ;; 915 ;;
916 toad1)
917 basic_machine=pdp10-xkl
918 os=-tops20
919 ;;
838 tower | tower-32) 920 tower | tower-32)
839 basic_machine=m68k-ncr 921 basic_machine=m68k-ncr
840 ;; 922 ;;
@@ -881,13 +963,17 @@ case $basic_machine in
881 basic_machine=hppa1.1-winbond 963 basic_machine=hppa1.1-winbond
882 os=-proelf 964 os=-proelf
883 ;; 965 ;;
884 xmp) 966 windows32)
885 basic_machine=xmp-cray 967 basic_machine=i386-pc
886 os=-unicos 968 os=-windows32-msvcrt
887 ;; 969 ;;
888 xps | xps100) 970 xps | xps100)
889 basic_machine=xps100-honeywell 971 basic_machine=xps100-honeywell
890 ;; 972 ;;
973 ymp)
974 basic_machine=ymp-cray
975 os=-unicos
976 ;;
891 z8k-*-coff) 977 z8k-*-coff)
892 basic_machine=z8k-unknown 978 basic_machine=z8k-unknown
893 os=-sim 979 os=-sim
@@ -908,13 +994,6 @@ case $basic_machine in
908 op60c) 994 op60c)
909 basic_machine=hppa1.1-oki 995 basic_machine=hppa1.1-oki
910 ;; 996 ;;
911 mips)
912 if [ x$os = x-linux-gnu ]; then
913 basic_machine=mips-unknown
914 else
915 basic_machine=mips-mips
916 fi
917 ;;
918 romp) 997 romp)
919 basic_machine=romp-ibm 998 basic_machine=romp-ibm
920 ;; 999 ;;
@@ -934,9 +1013,12 @@ case $basic_machine in
934 we32k) 1013 we32k)
935 basic_machine=we32k-att 1014 basic_machine=we32k-att
936 ;; 1015 ;;
937 sh3 | sh4) 1016 sh3 | sh4 | sh3eb | sh4eb | sh[1234]le | sh3ele)
938 basic_machine=sh-unknown 1017 basic_machine=sh-unknown
939 ;; 1018 ;;
1019 sh64)
1020 basic_machine=sh64-unknown
1021 ;;
940 sparc | sparcv9 | sparcv9b) 1022 sparc | sparcv9 | sparcv9b)
941 basic_machine=sparc-sun 1023 basic_machine=sparc-sun
942 ;; 1024 ;;
@@ -1018,11 +1100,14 @@ case $os in
1018 | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ 1100 | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
1019 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ 1101 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
1020 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ 1102 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1103 | -chorusos* | -chorusrdb* \
1021 | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ 1104 | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1022 | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \ 1105 | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \
1023 | -interix* | -uwin* | -rhapsody* | -darwin* | -opened* \ 1106 | -interix* | -uwin* | -rhapsody* | -darwin* | -opened* \
1024 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ 1107 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
1025 | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* | -os2*) 1108 | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
1109 | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
1110 | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* | -powermax*)
1026 # Remember, each alternative MUST END IN *, to match a version number. 1111 # Remember, each alternative MUST END IN *, to match a version number.
1027 ;; 1112 ;;
1028 -qnx*) 1113 -qnx*)
@@ -1074,12 +1159,18 @@ case $os in
1074 -acis*) 1159 -acis*)
1075 os=-aos 1160 os=-aos
1076 ;; 1161 ;;
1162 -atheos*)
1163 os=-atheos
1164 ;;
1077 -386bsd) 1165 -386bsd)
1078 os=-bsd 1166 os=-bsd
1079 ;; 1167 ;;
1080 -ctix* | -uts*) 1168 -ctix* | -uts*)
1081 os=-sysv 1169 os=-sysv
1082 ;; 1170 ;;
1171 -nova*)
1172 os=-rtmk-nova
1173 ;;
1083 -ns2 ) 1174 -ns2 )
1084 os=-nextstep2 1175 os=-nextstep2
1085 ;; 1176 ;;
@@ -1154,6 +1245,7 @@ case $basic_machine in
1154 arm*-semi) 1245 arm*-semi)
1155 os=-aout 1246 os=-aout
1156 ;; 1247 ;;
1248 # This must come before the *-dec entry.
1157 pdp10-*) 1249 pdp10-*)
1158 os=-tops20 1250 os=-tops20
1159 ;; 1251 ;;
@@ -1184,6 +1276,9 @@ case $basic_machine in
1184 mips*-*) 1276 mips*-*)
1185 os=-elf 1277 os=-elf
1186 ;; 1278 ;;
1279 or32-*)
1280 os=-coff
1281 ;;
1187 *-tti) # must be before sparc entry or we get the wrong os. 1282 *-tti) # must be before sparc entry or we get the wrong os.
1188 os=-sysv3 1283 os=-sysv3
1189 ;; 1284 ;;
@@ -1331,7 +1426,7 @@ case $basic_machine in
1331 -ptx*) 1426 -ptx*)
1332 vendor=sequent 1427 vendor=sequent
1333 ;; 1428 ;;
1334 -vxsim* | -vxworks*) 1429 -vxsim* | -vxworks* | -windiss*)
1335 vendor=wrs 1430 vendor=wrs
1336 ;; 1431 ;;
1337 -aux*) 1432 -aux*)
@@ -1346,6 +1441,9 @@ case $basic_machine in
1346 -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) 1441 -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
1347 vendor=atari 1442 vendor=atari
1348 ;; 1443 ;;
1444 -vos*)
1445 vendor=stratus
1446 ;;
1349 esac 1447 esac
1350 basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` 1448 basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
1351 ;; 1449 ;;