GNU Binutils with patches for OS216
Revisión | 3f234ef5cc8460cfd1bfef95cc8be526001f73dd (tree) |
---|---|
Tiempo | 2003-01-09 07:09:32 |
Autor | Chris Demetriou <cgd@goog...> |
Commiter | Chris Demetriou |
[ ChangeLog ]
2003-01-08 Chris Demetriou <cgd@broadcom.com>
[ dejagnu/ChangeLog ]
2003-01-08 Chris Demetriou <cgd@broadcom.com>
[ readline/ChangeLog.gdb ]
2003-01-08 Chris Demetriou <cgd@broadcom.com>
@@ -1,3 +1,8 @@ | ||
1 | +2003-01-08 Chris Demetriou <cgd@broadcom.com> | |
2 | + | |
3 | + * config.guess: Update to 2003-01-03 version. | |
4 | + * config.sub: Update to 2003-01-03 version. | |
5 | + | |
1 | 6 | 2003-01-07 Christopher Faylor <cgf@redhat.com> |
2 | 7 | |
3 | 8 | * configure: Regenerate with proper autoconf 2.13. |
@@ -1,9 +1,9 @@ | ||
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 Free Software Foundation, Inc. | |
5 | 5 | |
6 | -timestamp='2002-09-12' | |
6 | +timestamp='2003-01-03' | |
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 |
@@ -98,30 +98,31 @@ trap 'exit 1' 1 2 15 | ||
98 | 98 | # Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still |
99 | 99 | # use `HOST_CC' if defined, but it is deprecated. |
100 | 100 | |
101 | -# This shell variable is my proudest work .. or something. --bje | |
101 | +# Portable tmp directory creation inspired by the Autoconf team. | |
102 | 102 | |
103 | -set_cc_for_build='tmpdir=${TMPDIR-/tmp}/config-guess-$$ ; | |
104 | -(old=`umask` && umask 077 && mkdir $tmpdir && umask $old && unset old) | |
105 | - || (echo "$me: cannot create $tmpdir" >&2 && exit 1) ; | |
106 | -dummy=$tmpdir/dummy ; | |
107 | -files="$dummy.c $dummy.o $dummy.rel $dummy" ; | |
108 | -trap '"'"'rm -f $files; rmdir $tmpdir; exit 1'"'"' 1 2 15 ; | |
103 | +set_cc_for_build=' | |
104 | +trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ; | |
105 | +trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; | |
106 | +: ${TMPDIR=/tmp} ; | |
107 | + { tmp=`(umask 077 && mktemp -d -q "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || | |
108 | + { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || | |
109 | + { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ; | |
110 | +dummy=$tmp/dummy ; | |
111 | +tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ; | |
109 | 112 | case $CC_FOR_BUILD,$HOST_CC,$CC in |
110 | 113 | ,,) echo "int x;" > $dummy.c ; |
111 | 114 | for c in cc gcc c89 c99 ; do |
112 | - if ($c $dummy.c -c -o $dummy.o) >/dev/null 2>&1 ; then | |
115 | + if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then | |
113 | 116 | CC_FOR_BUILD="$c"; break ; |
114 | 117 | fi ; |
115 | 118 | done ; |
116 | - rm -f $files ; | |
117 | 119 | if test x"$CC_FOR_BUILD" = x ; then |
118 | 120 | CC_FOR_BUILD=no_compiler_found ; |
119 | 121 | fi |
120 | 122 | ;; |
121 | 123 | ,,*) CC_FOR_BUILD=$CC ;; |
122 | 124 | ,*,*) CC_FOR_BUILD=$HOST_CC ;; |
123 | -esac ; | |
124 | -unset files' | |
125 | +esac ;' | |
125 | 126 | |
126 | 127 | # This is needed to find uname on a Pyramid OSx when run in the BSD universe. |
127 | 128 | # (ghazi@noc.rutgers.edu 1994-08-24) |
@@ -178,7 +179,18 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in | ||
178 | 179 | ;; |
179 | 180 | esac |
180 | 181 | # The OS release |
181 | - release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` | |
182 | + # Debian GNU/NetBSD machines have a different userland, and | |
183 | + # thus, need a distinct triplet. However, they do not need | |
184 | + # kernel version information, so it can be replaced with a | |
185 | + # suitable tag, in the style of linux-gnu. | |
186 | + case "${UNAME_VERSION}" in | |
187 | + Debian*) | |
188 | + release='-gnu' | |
189 | + ;; | |
190 | + *) | |
191 | + release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` | |
192 | + ;; | |
193 | + esac | |
182 | 194 | # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: |
183 | 195 | # contains redundant information, the shorter form: |
184 | 196 | # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. |
@@ -223,6 +235,9 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in | ||
223 | 235 | *:OpenBSD:*:*) |
224 | 236 | echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE} |
225 | 237 | exit 0 ;; |
238 | + *:MicroBSD:*:*) | |
239 | + echo ${UNAME_MACHINE}-unknown-microbsd${UNAME_RELEASE} | |
240 | + exit 0 ;; | |
226 | 241 | alpha:OSF1:*:*) |
227 | 242 | if test $UNAME_RELEASE = "V4.0"; then |
228 | 243 | UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` |
@@ -257,7 +272,7 @@ main: | ||
257 | 272 | jsr \$26,exit |
258 | 273 | .end main |
259 | 274 | EOF |
260 | - $CC_FOR_BUILD $dummy.s -o $dummy 2>/dev/null | |
275 | + $CC_FOR_BUILD -o $dummy $dummy.s 2>/dev/null | |
261 | 276 | if test "$?" = 0 ; then |
262 | 277 | case `$dummy` in |
263 | 278 | 0-0) |
@@ -286,7 +301,6 @@ EOF | ||
286 | 301 | ;; |
287 | 302 | esac |
288 | 303 | fi |
289 | - rm -f $dummy.s $dummy && rmdir $tmpdir | |
290 | 304 | echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` |
291 | 305 | exit 0 ;; |
292 | 306 | Alpha\ *:Windows_NT*:*) |
@@ -437,10 +451,9 @@ EOF | ||
437 | 451 | exit (-1); |
438 | 452 | } |
439 | 453 | EOF |
440 | - $CC_FOR_BUILD $dummy.c -o $dummy \ | |
454 | + $CC_FOR_BUILD -o $dummy $dummy.c \ | |
441 | 455 | && $dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \ |
442 | - && rm -f $dummy.c $dummy && rmdir $tmpdir && exit 0 | |
443 | - rm -f $dummy.c $dummy && rmdir $tmpdir | |
456 | + && exit 0 | |
444 | 457 | echo mips-mips-riscos${UNAME_RELEASE} |
445 | 458 | exit 0 ;; |
446 | 459 | Motorola:PowerMAX_OS:*:*) |
@@ -449,7 +462,7 @@ EOF | ||
449 | 462 | Motorola:*:4.3:PL8-*) |
450 | 463 | echo powerpc-harris-powermax |
451 | 464 | exit 0 ;; |
452 | - Night_Hawk:*:*:PowerMAX_OS) | |
465 | + Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) | |
453 | 466 | echo powerpc-harris-powermax |
454 | 467 | exit 0 ;; |
455 | 468 | Night_Hawk:Power_UNIX:*:*) |
@@ -524,8 +537,7 @@ EOF | ||
524 | 537 | exit(0); |
525 | 538 | } |
526 | 539 | EOF |
527 | - $CC_FOR_BUILD $dummy.c -o $dummy && $dummy && rm -f $dummy.c $dummy && rmdir $tmpdir && exit 0 | |
528 | - rm -f $dummy.c $dummy && rmdir $tmpdir | |
540 | + $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0 | |
529 | 541 | echo rs6000-ibm-aix3.2.5 |
530 | 542 | elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then |
531 | 543 | echo rs6000-ibm-aix3.2.4 |
@@ -623,11 +635,21 @@ EOF | ||
623 | 635 | exit (0); |
624 | 636 | } |
625 | 637 | EOF |
626 | - (CCOPTS= $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null) && HP_ARCH=`$dummy` | |
627 | - if test -z "$HP_ARCH"; then HP_ARCH=hppa; fi | |
628 | - rm -f $dummy.c $dummy && rmdir $tmpdir | |
638 | + (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` | |
639 | + test -z "$HP_ARCH" && HP_ARCH=hppa | |
629 | 640 | fi ;; |
630 | 641 | esac |
642 | + if [ ${HP_ARCH} = "hppa2.0w" ] | |
643 | + then | |
644 | + # avoid double evaluation of $set_cc_for_build | |
645 | + test -n "$CC_FOR_BUILD" || eval $set_cc_for_build | |
646 | + if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E -) | grep __LP64__ >/dev/null | |
647 | + then | |
648 | + HP_ARCH="hppa2.0w" | |
649 | + else | |
650 | + HP_ARCH="hppa64" | |
651 | + fi | |
652 | + fi | |
631 | 653 | echo ${HP_ARCH}-hp-hpux${HPUX_REV} |
632 | 654 | exit 0 ;; |
633 | 655 | ia64:HP-UX:*:*) |
@@ -661,8 +683,7 @@ EOF | ||
661 | 683 | exit (0); |
662 | 684 | } |
663 | 685 | EOF |
664 | - $CC_FOR_BUILD $dummy.c -o $dummy && $dummy && rm -f $dummy.c $dummy && rmdir $tmpdir && exit 0 | |
665 | - rm -f $dummy.c $dummy && rmdir $tmpdir | |
686 | + $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0 | |
666 | 687 | echo unknown-hitachi-hiuxwe2 |
667 | 688 | exit 0 ;; |
668 | 689 | 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) |
@@ -720,15 +741,15 @@ EOF | ||
720 | 741 | CRAY*TS:*:*:*) |
721 | 742 | echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' |
722 | 743 | exit 0 ;; |
723 | - CRAY*T3D:*:*:*) | |
724 | - echo alpha-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' | |
725 | - exit 0 ;; | |
726 | 744 | CRAY*T3E:*:*:*) |
727 | 745 | echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' |
728 | 746 | exit 0 ;; |
729 | 747 | CRAY*SV1:*:*:*) |
730 | 748 | echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' |
731 | 749 | exit 0 ;; |
750 | + *:UNICOS/mp:*:*) | |
751 | + echo nv1-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' | |
752 | + exit 0 ;; | |
732 | 753 | F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) |
733 | 754 | FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` |
734 | 755 | FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` |
@@ -756,7 +777,6 @@ EOF | ||
756 | 777 | #endif |
757 | 778 | EOF |
758 | 779 | eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=` |
759 | - rm -f $dummy.c && rmdir $tmpdir | |
760 | 780 | echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`${LIBC:+-$LIBC} |
761 | 781 | exit 0 ;; |
762 | 782 | i*:CYGWIN*:*) |
@@ -769,13 +789,16 @@ EOF | ||
769 | 789 | echo ${UNAME_MACHINE}-pc-pw32 |
770 | 790 | exit 0 ;; |
771 | 791 | x86:Interix*:3*) |
772 | - echo i386-pc-interix3 | |
792 | + echo i586-pc-interix3 | |
793 | + exit 0 ;; | |
794 | + [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) | |
795 | + echo i${UNAME_MACHINE}-pc-mks | |
773 | 796 | exit 0 ;; |
774 | 797 | i*:Windows_NT*:* | Pentium*:Windows_NT*:*) |
775 | 798 | # How do we know it's Interix rather than the generic POSIX subsystem? |
776 | 799 | # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we |
777 | 800 | # UNAME_MACHINE based on the output of uname instead of i386? |
778 | - echo i386-pc-interix | |
801 | + echo i586-pc-interix | |
779 | 802 | exit 0 ;; |
780 | 803 | i*:UWIN*:*) |
781 | 804 | echo ${UNAME_MACHINE}-pc-uwin |
@@ -818,8 +841,26 @@ EOF | ||
818 | 841 | #endif |
819 | 842 | EOF |
820 | 843 | eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=` |
821 | - rm -f $dummy.c && rmdir $tmpdir | |
822 | - test x"${CPU}" != x && echo "${CPU}-pc-linux-gnu" && exit 0 | |
844 | + test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0 | |
845 | + ;; | |
846 | + mips64:Linux:*:*) | |
847 | + eval $set_cc_for_build | |
848 | + sed 's/^ //' << EOF >$dummy.c | |
849 | + #undef CPU | |
850 | + #undef mips64 | |
851 | + #undef mips64el | |
852 | + #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) | |
853 | + CPU=mips64el | |
854 | + #else | |
855 | + #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) | |
856 | + CPU=mips64 | |
857 | + #else | |
858 | + CPU= | |
859 | + #endif | |
860 | + #endif | |
861 | +EOF | |
862 | + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=` | |
863 | + test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0 | |
823 | 864 | ;; |
824 | 865 | ppc:Linux:*:*) |
825 | 866 | echo powerpc-unknown-linux-gnu |
@@ -914,7 +955,6 @@ EOF | ||
914 | 955 | #endif |
915 | 956 | EOF |
916 | 957 | eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=` |
917 | - rm -f $dummy.c && rmdir $tmpdir | |
918 | 958 | test x"${LIBC}" != x && echo "${UNAME_MACHINE}-pc-linux-${LIBC}" && exit 0 |
919 | 959 | test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0 |
920 | 960 | ;; |
@@ -932,6 +972,23 @@ EOF | ||
932 | 972 | # Use sysv4.2uw... so that sysv4* matches it. |
933 | 973 | echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} |
934 | 974 | exit 0 ;; |
975 | + i*86:OS/2:*:*) | |
976 | + # If we were able to find `uname', then EMX Unix compatibility | |
977 | + # is probably installed. | |
978 | + echo ${UNAME_MACHINE}-pc-os2-emx | |
979 | + exit 0 ;; | |
980 | + i*86:XTS-300:*:STOP) | |
981 | + echo ${UNAME_MACHINE}-unknown-stop | |
982 | + exit 0 ;; | |
983 | + i*86:atheos:*:*) | |
984 | + echo ${UNAME_MACHINE}-unknown-atheos | |
985 | + exit 0 ;; | |
986 | + i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*) | |
987 | + echo i386-unknown-lynxos${UNAME_RELEASE} | |
988 | + exit 0 ;; | |
989 | + i*86:*DOS:*:*) | |
990 | + echo ${UNAME_MACHINE}-pc-msdosdjgpp | |
991 | + exit 0 ;; | |
935 | 992 | i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*) |
936 | 993 | UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` |
937 | 994 | if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then |
@@ -966,9 +1023,6 @@ EOF | ||
966 | 1023 | echo ${UNAME_MACHINE}-pc-sysv32 |
967 | 1024 | fi |
968 | 1025 | exit 0 ;; |
969 | - i*86:*DOS:*:*) | |
970 | - echo ${UNAME_MACHINE}-pc-msdosdjgpp | |
971 | - exit 0 ;; | |
972 | 1026 | pc:*:*:*) |
973 | 1027 | # Left here for compatibility: |
974 | 1028 | # uname -m prints for DJGPP always 'pc', but it prints nothing about |
@@ -995,9 +1049,12 @@ EOF | ||
995 | 1049 | mc68k:UNIX:SYSTEM5:3.51m) |
996 | 1050 | echo m68k-convergent-sysv |
997 | 1051 | exit 0 ;; |
1052 | + M680?0:D-NIX:5.3:*) | |
1053 | + echo m68k-diab-dnix | |
1054 | + exit 0 ;; | |
998 | 1055 | M68*:*:R3V[567]*:*) |
999 | 1056 | test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;; |
1000 | - 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) | |
1057 | + 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 | SDS2:*:4.0:3.0) | |
1001 | 1058 | OS_REL='' |
1002 | 1059 | test -r /etc/.relid \ |
1003 | 1060 | && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` |
@@ -1014,9 +1071,6 @@ EOF | ||
1014 | 1071 | mc68030:UNIX_System_V:4.*:*) |
1015 | 1072 | echo m68k-atari-sysv4 |
1016 | 1073 | exit 0 ;; |
1017 | - i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*) | |
1018 | - echo i386-unknown-lynxos${UNAME_RELEASE} | |
1019 | - exit 0 ;; | |
1020 | 1074 | TSUNAMI:LynxOS:2.*:*) |
1021 | 1075 | echo sparc-unknown-lynxos${UNAME_RELEASE} |
1022 | 1076 | exit 0 ;; |
@@ -1134,11 +1188,6 @@ EOF | ||
1134 | 1188 | fi |
1135 | 1189 | echo ${UNAME_MACHINE}-unknown-plan9 |
1136 | 1190 | exit 0 ;; |
1137 | - i*86:OS/2:*:*) | |
1138 | - # If we were able to find `uname', then EMX Unix compatibility | |
1139 | - # is probably installed. | |
1140 | - echo ${UNAME_MACHINE}-pc-os2-emx | |
1141 | - exit 0 ;; | |
1142 | 1191 | *:TOPS-10:*:*) |
1143 | 1192 | echo pdp10-unknown-tops10 |
1144 | 1193 | exit 0 ;; |
@@ -1157,12 +1206,6 @@ EOF | ||
1157 | 1206 | *:ITS:*:*) |
1158 | 1207 | echo pdp10-unknown-its |
1159 | 1208 | exit 0 ;; |
1160 | - i*86:XTS-300:*:STOP) | |
1161 | - echo ${UNAME_MACHINE}-unknown-stop | |
1162 | - exit 0 ;; | |
1163 | - i*86:atheos:*:*) | |
1164 | - echo ${UNAME_MACHINE}-unknown-atheos | |
1165 | - exit 0 ;; | |
1166 | 1209 | esac |
1167 | 1210 | |
1168 | 1211 | #echo '(No uname command or uname output not recognized.)' 1>&2 |
@@ -1283,8 +1326,7 @@ main () | ||
1283 | 1326 | } |
1284 | 1327 | EOF |
1285 | 1328 | |
1286 | -$CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null && $dummy && rm -f $dummy.c $dummy && rmdir $tmpdir && exit 0 | |
1287 | -rm -f $dummy.c $dummy && rmdir $tmpdir | |
1329 | +$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && $dummy && exit 0 | |
1288 | 1330 | |
1289 | 1331 | # Apollos put the system type in the environment. |
1290 | 1332 |
@@ -1,9 +1,9 @@ | ||
1 | 1 | #! /bin/sh |
2 | 2 | # Configuration validation subroutine script. |
3 | 3 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, |
4 | -# 2000, 2001, 2002 Free Software Foundation, Inc. | |
4 | +# 2000, 2001, 2002, 2003 Free Software Foundation, Inc. | |
5 | 5 | |
6 | -timestamp='2002-09-12' | |
6 | +timestamp='2003-01-03' | |
7 | 7 | |
8 | 8 | # This file is (in principle) common to ALL GNU software. |
9 | 9 | # The presence of a machine in this file suggests that SOME GNU software |
@@ -118,7 +118,7 @@ esac | ||
118 | 118 | # Here we must recognize all the valid KERNEL-OS combinations. |
119 | 119 | maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` |
120 | 120 | case $maybe_os in |
121 | - nto-qnx* | linux-gnu* | freebsd*-gnu* | storm-chaos* | os2-emx* | windows32-* | rtmk-nova*) | |
121 | + nto-qnx* | linux-gnu* | freebsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*) | |
122 | 122 | os=-$maybe_os |
123 | 123 | basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` |
124 | 124 | ;; |
@@ -245,11 +245,13 @@ case $basic_machine in | ||
245 | 245 | | mips64vr4300 | mips64vr4300el \ |
246 | 246 | | mips64vr5000 | mips64vr5000el \ |
247 | 247 | | mipsisa32 | mipsisa32el \ |
248 | + | mipsisa32r2 | mipsisa32r2el \ | |
248 | 249 | | mipsisa64 | mipsisa64el \ |
249 | 250 | | mipsisa64sb1 | mipsisa64sb1el \ |
250 | 251 | | mipsisa64sr71k | mipsisa64sr71kel \ |
251 | 252 | | mipstx39 | mipstx39el \ |
252 | 253 | | mn10200 | mn10300 \ |
254 | + | msp430 \ | |
253 | 255 | | ns16k | ns32k \ |
254 | 256 | | openrisc | or32 \ |
255 | 257 | | pdp10 | pdp11 | pj | pjl \ |
@@ -315,11 +317,13 @@ case $basic_machine in | ||
315 | 317 | | mips64vr4300-* | mips64vr4300el-* \ |
316 | 318 | | mips64vr5000-* | mips64vr5000el-* \ |
317 | 319 | | mipsisa32-* | mipsisa32el-* \ |
320 | + | mipsisa32r2-* | mipsisa32r2el-* \ | |
318 | 321 | | mipsisa64-* | mipsisa64el-* \ |
319 | 322 | | mipsisa64sb1-* | mipsisa64sb1el-* \ |
320 | 323 | | mipsisa64sr71k-* | mipsisa64sr71kel-* \ |
321 | - | mipstx39 | mipstx39el \ | |
322 | - | none-* | np1-* | ns16k-* | ns32k-* \ | |
324 | + | mipstx39-* | mipstx39el-* \ | |
325 | + | msp430-* \ | |
326 | + | none-* | np1-* | nv1-* | ns16k-* | ns32k-* \ | |
323 | 327 | | orion-* \ |
324 | 328 | | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ |
325 | 329 | | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ |
@@ -716,6 +720,10 @@ case $basic_machine in | ||
716 | 720 | np1) |
717 | 721 | basic_machine=np1-gould |
718 | 722 | ;; |
723 | + nv1) | |
724 | + basic_machine=nv1-cray | |
725 | + os=-unicosmp | |
726 | + ;; | |
719 | 727 | nsr-tandem) |
720 | 728 | basic_machine=nsr-tandem |
721 | 729 | ;; |
@@ -901,10 +909,6 @@ case $basic_machine in | ||
901 | 909 | basic_machine=i386-sequent |
902 | 910 | os=-dynix |
903 | 911 | ;; |
904 | - t3d) | |
905 | - basic_machine=alpha-cray | |
906 | - os=-unicos | |
907 | - ;; | |
908 | 912 | t3e) |
909 | 913 | basic_machine=alphaev5-cray |
910 | 914 | os=-unicos |
@@ -977,10 +981,6 @@ case $basic_machine in | ||
977 | 981 | basic_machine=hppa1.1-winbond |
978 | 982 | os=-proelf |
979 | 983 | ;; |
980 | - windows32) | |
981 | - basic_machine=i386-pc | |
982 | - os=-windows32-msvcrt | |
983 | - ;; | |
984 | 984 | xps | xps100) |
985 | 985 | basic_machine=xps100-honeywell |
986 | 986 | ;; |
@@ -1113,11 +1113,12 @@ case $os in | ||
1113 | 1113 | | -chorusos* | -chorusrdb* \ |
1114 | 1114 | | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ |
1115 | 1115 | | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \ |
1116 | - | -interix* | -uwin* | -rhapsody* | -darwin* | -opened* \ | |
1116 | + | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ | |
1117 | 1117 | | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ |
1118 | 1118 | | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ |
1119 | 1119 | | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ |
1120 | - | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* | -powermax*) | |
1120 | + | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ | |
1121 | + | -powermax* | -dnix* | -microbsd*) | |
1121 | 1122 | # Remember, each alternative MUST END IN *, to match a version number. |
1122 | 1123 | ;; |
1123 | 1124 | -qnx*) |
@@ -1129,8 +1130,10 @@ case $os in | ||
1129 | 1130 | ;; |
1130 | 1131 | esac |
1131 | 1132 | ;; |
1133 | + -nto-qnx*) | |
1134 | + ;; | |
1132 | 1135 | -nto*) |
1133 | - os=-nto-qnx | |
1136 | + os=`echo $os | sed -e 's|nto|nto-qnx|'` | |
1134 | 1137 | ;; |
1135 | 1138 | -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ |
1136 | 1139 | | -windows* | -osx | -abug | -netware* | -os9* | -beos* \ |
@@ -1,3 +1,8 @@ | ||
1 | +2003-01-08 Chris Demetriou <cgd@broadcom.com> | |
2 | + | |
3 | + * config.guess: Update to 2003-01-03 version. | |
4 | + * config.sub: Update to 2003-01-03 version. | |
5 | + | |
1 | 6 | 2002-12-16 Christopher Faylor <cgf@redhat.com> |
2 | 7 | |
3 | 8 | * configure.in: Remove --enable-shared option. It shouldn't be used |
@@ -1,9 +1,9 @@ | ||
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 Free Software Foundation, Inc. | |
5 | 5 | |
6 | -timestamp='2002-08-23' | |
6 | +timestamp='2003-01-03' | |
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 |
@@ -98,30 +98,31 @@ trap 'exit 1' 1 2 15 | ||
98 | 98 | # Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still |
99 | 99 | # use `HOST_CC' if defined, but it is deprecated. |
100 | 100 | |
101 | -# This shell variable is my proudest work .. or something. --bje | |
101 | +# Portable tmp directory creation inspired by the Autoconf team. | |
102 | 102 | |
103 | -set_cc_for_build='tmpdir=${TMPDIR-/tmp}/config-guess-$$ ; | |
104 | -(old=`umask` && umask 077 && mkdir $tmpdir && umask $old && unset old) | |
105 | - || (echo "$me: cannot create $tmpdir" >&2 && exit 1) ; | |
106 | -dummy=$tmpdir/dummy ; | |
107 | -files="$dummy.c $dummy.o $dummy.rel $dummy" ; | |
108 | -trap '"'"'rm -f $files; rmdir $tmpdir; exit 1'"'"' 1 2 15 ; | |
103 | +set_cc_for_build=' | |
104 | +trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ; | |
105 | +trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; | |
106 | +: ${TMPDIR=/tmp} ; | |
107 | + { tmp=`(umask 077 && mktemp -d -q "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || | |
108 | + { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || | |
109 | + { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ; | |
110 | +dummy=$tmp/dummy ; | |
111 | +tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ; | |
109 | 112 | case $CC_FOR_BUILD,$HOST_CC,$CC in |
110 | 113 | ,,) echo "int x;" > $dummy.c ; |
111 | 114 | for c in cc gcc c89 c99 ; do |
112 | - if ($c $dummy.c -c -o $dummy.o) >/dev/null 2>&1 ; then | |
115 | + if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then | |
113 | 116 | CC_FOR_BUILD="$c"; break ; |
114 | 117 | fi ; |
115 | 118 | done ; |
116 | - rm -f $files ; | |
117 | 119 | if test x"$CC_FOR_BUILD" = x ; then |
118 | 120 | CC_FOR_BUILD=no_compiler_found ; |
119 | 121 | fi |
120 | 122 | ;; |
121 | 123 | ,,*) CC_FOR_BUILD=$CC ;; |
122 | 124 | ,*,*) CC_FOR_BUILD=$HOST_CC ;; |
123 | -esac ; | |
124 | -unset files' | |
125 | +esac ;' | |
125 | 126 | |
126 | 127 | # This is needed to find uname on a Pyramid OSx when run in the BSD universe. |
127 | 128 | # (ghazi@noc.rutgers.edu 1994-08-24) |
@@ -178,7 +179,18 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in | ||
178 | 179 | ;; |
179 | 180 | esac |
180 | 181 | # The OS release |
181 | - release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` | |
182 | + # Debian GNU/NetBSD machines have a different userland, and | |
183 | + # thus, need a distinct triplet. However, they do not need | |
184 | + # kernel version information, so it can be replaced with a | |
185 | + # suitable tag, in the style of linux-gnu. | |
186 | + case "${UNAME_VERSION}" in | |
187 | + Debian*) | |
188 | + release='-gnu' | |
189 | + ;; | |
190 | + *) | |
191 | + release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` | |
192 | + ;; | |
193 | + esac | |
182 | 194 | # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: |
183 | 195 | # contains redundant information, the shorter form: |
184 | 196 | # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. |
@@ -223,6 +235,9 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in | ||
223 | 235 | *:OpenBSD:*:*) |
224 | 236 | echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE} |
225 | 237 | exit 0 ;; |
238 | + *:MicroBSD:*:*) | |
239 | + echo ${UNAME_MACHINE}-unknown-microbsd${UNAME_RELEASE} | |
240 | + exit 0 ;; | |
226 | 241 | alpha:OSF1:*:*) |
227 | 242 | if test $UNAME_RELEASE = "V4.0"; then |
228 | 243 | UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` |
@@ -257,7 +272,7 @@ main: | ||
257 | 272 | jsr \$26,exit |
258 | 273 | .end main |
259 | 274 | EOF |
260 | - $CC_FOR_BUILD $dummy.s -o $dummy 2>/dev/null | |
275 | + $CC_FOR_BUILD -o $dummy $dummy.s 2>/dev/null | |
261 | 276 | if test "$?" = 0 ; then |
262 | 277 | case `$dummy` in |
263 | 278 | 0-0) |
@@ -286,7 +301,6 @@ EOF | ||
286 | 301 | ;; |
287 | 302 | esac |
288 | 303 | fi |
289 | - rm -f $dummy.s $dummy && rmdir $tmpdir | |
290 | 304 | echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` |
291 | 305 | exit 0 ;; |
292 | 306 | Alpha\ *:Windows_NT*:*) |
@@ -437,16 +451,18 @@ EOF | ||
437 | 451 | exit (-1); |
438 | 452 | } |
439 | 453 | EOF |
440 | - $CC_FOR_BUILD $dummy.c -o $dummy \ | |
454 | + $CC_FOR_BUILD -o $dummy $dummy.c \ | |
441 | 455 | && $dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \ |
442 | - && rm -f $dummy.c $dummy && rmdir $tmpdir && exit 0 | |
443 | - rm -f $dummy.c $dummy && rmdir $tmpdir | |
456 | + && exit 0 | |
444 | 457 | echo mips-mips-riscos${UNAME_RELEASE} |
445 | 458 | exit 0 ;; |
446 | 459 | Motorola:PowerMAX_OS:*:*) |
447 | 460 | echo powerpc-motorola-powermax |
448 | 461 | exit 0 ;; |
449 | - Night_Hawk:*:*:PowerMAX_OS) | |
462 | + Motorola:*:4.3:PL8-*) | |
463 | + echo powerpc-harris-powermax | |
464 | + exit 0 ;; | |
465 | + Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) | |
450 | 466 | echo powerpc-harris-powermax |
451 | 467 | exit 0 ;; |
452 | 468 | Night_Hawk:Power_UNIX:*:*) |
@@ -521,8 +537,7 @@ EOF | ||
521 | 537 | exit(0); |
522 | 538 | } |
523 | 539 | EOF |
524 | - $CC_FOR_BUILD $dummy.c -o $dummy && $dummy && rm -f $dummy.c $dummy && rmdir $tmpdir && exit 0 | |
525 | - rm -f $dummy.c $dummy && rmdir $tmpdir | |
540 | + $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0 | |
526 | 541 | echo rs6000-ibm-aix3.2.5 |
527 | 542 | elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then |
528 | 543 | echo rs6000-ibm-aix3.2.4 |
@@ -620,11 +635,21 @@ EOF | ||
620 | 635 | exit (0); |
621 | 636 | } |
622 | 637 | EOF |
623 | - (CCOPTS= $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null) && HP_ARCH=`$dummy` | |
624 | - if test -z "$HP_ARCH"; then HP_ARCH=hppa; fi | |
625 | - rm -f $dummy.c $dummy && rmdir $tmpdir | |
638 | + (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` | |
639 | + test -z "$HP_ARCH" && HP_ARCH=hppa | |
626 | 640 | fi ;; |
627 | 641 | esac |
642 | + if [ ${HP_ARCH} = "hppa2.0w" ] | |
643 | + then | |
644 | + # avoid double evaluation of $set_cc_for_build | |
645 | + test -n "$CC_FOR_BUILD" || eval $set_cc_for_build | |
646 | + if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E -) | grep __LP64__ >/dev/null | |
647 | + then | |
648 | + HP_ARCH="hppa2.0w" | |
649 | + else | |
650 | + HP_ARCH="hppa64" | |
651 | + fi | |
652 | + fi | |
628 | 653 | echo ${HP_ARCH}-hp-hpux${HPUX_REV} |
629 | 654 | exit 0 ;; |
630 | 655 | ia64:HP-UX:*:*) |
@@ -658,8 +683,7 @@ EOF | ||
658 | 683 | exit (0); |
659 | 684 | } |
660 | 685 | EOF |
661 | - $CC_FOR_BUILD $dummy.c -o $dummy && $dummy && rm -f $dummy.c $dummy && rmdir $tmpdir && exit 0 | |
662 | - rm -f $dummy.c $dummy && rmdir $tmpdir | |
686 | + $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0 | |
663 | 687 | echo unknown-hitachi-hiuxwe2 |
664 | 688 | exit 0 ;; |
665 | 689 | 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) |
@@ -717,15 +741,15 @@ EOF | ||
717 | 741 | CRAY*TS:*:*:*) |
718 | 742 | echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' |
719 | 743 | exit 0 ;; |
720 | - CRAY*T3D:*:*:*) | |
721 | - echo alpha-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' | |
722 | - exit 0 ;; | |
723 | 744 | CRAY*T3E:*:*:*) |
724 | 745 | echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' |
725 | 746 | exit 0 ;; |
726 | 747 | CRAY*SV1:*:*:*) |
727 | 748 | echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' |
728 | 749 | exit 0 ;; |
750 | + *:UNICOS/mp:*:*) | |
751 | + echo nv1-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' | |
752 | + exit 0 ;; | |
729 | 753 | F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) |
730 | 754 | FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` |
731 | 755 | FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` |
@@ -753,7 +777,6 @@ EOF | ||
753 | 777 | #endif |
754 | 778 | EOF |
755 | 779 | eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=` |
756 | - rm -f $dummy.c && rmdir $tmpdir | |
757 | 780 | echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`${LIBC:+-$LIBC} |
758 | 781 | exit 0 ;; |
759 | 782 | i*:CYGWIN*:*) |
@@ -766,13 +789,16 @@ EOF | ||
766 | 789 | echo ${UNAME_MACHINE}-pc-pw32 |
767 | 790 | exit 0 ;; |
768 | 791 | x86:Interix*:3*) |
769 | - echo i386-pc-interix3 | |
792 | + echo i586-pc-interix3 | |
793 | + exit 0 ;; | |
794 | + [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) | |
795 | + echo i${UNAME_MACHINE}-pc-mks | |
770 | 796 | exit 0 ;; |
771 | 797 | i*:Windows_NT*:* | Pentium*:Windows_NT*:*) |
772 | 798 | # How do we know it's Interix rather than the generic POSIX subsystem? |
773 | 799 | # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we |
774 | 800 | # UNAME_MACHINE based on the output of uname instead of i386? |
775 | - echo i386-pc-interix | |
801 | + echo i586-pc-interix | |
776 | 802 | exit 0 ;; |
777 | 803 | i*:UWIN*:*) |
778 | 804 | echo ${UNAME_MACHINE}-pc-uwin |
@@ -815,8 +841,26 @@ EOF | ||
815 | 841 | #endif |
816 | 842 | EOF |
817 | 843 | eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=` |
818 | - rm -f $dummy.c && rmdir $tmpdir | |
819 | - test x"${CPU}" != x && echo "${CPU}-pc-linux-gnu" && exit 0 | |
844 | + test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0 | |
845 | + ;; | |
846 | + mips64:Linux:*:*) | |
847 | + eval $set_cc_for_build | |
848 | + sed 's/^ //' << EOF >$dummy.c | |
849 | + #undef CPU | |
850 | + #undef mips64 | |
851 | + #undef mips64el | |
852 | + #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) | |
853 | + CPU=mips64el | |
854 | + #else | |
855 | + #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) | |
856 | + CPU=mips64 | |
857 | + #else | |
858 | + CPU= | |
859 | + #endif | |
860 | + #endif | |
861 | +EOF | |
862 | + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=` | |
863 | + test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0 | |
820 | 864 | ;; |
821 | 865 | ppc:Linux:*:*) |
822 | 866 | echo powerpc-unknown-linux-gnu |
@@ -911,7 +955,6 @@ EOF | ||
911 | 955 | #endif |
912 | 956 | EOF |
913 | 957 | eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=` |
914 | - rm -f $dummy.c && rmdir $tmpdir | |
915 | 958 | test x"${LIBC}" != x && echo "${UNAME_MACHINE}-pc-linux-${LIBC}" && exit 0 |
916 | 959 | test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0 |
917 | 960 | ;; |
@@ -929,6 +972,23 @@ EOF | ||
929 | 972 | # Use sysv4.2uw... so that sysv4* matches it. |
930 | 973 | echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} |
931 | 974 | exit 0 ;; |
975 | + i*86:OS/2:*:*) | |
976 | + # If we were able to find `uname', then EMX Unix compatibility | |
977 | + # is probably installed. | |
978 | + echo ${UNAME_MACHINE}-pc-os2-emx | |
979 | + exit 0 ;; | |
980 | + i*86:XTS-300:*:STOP) | |
981 | + echo ${UNAME_MACHINE}-unknown-stop | |
982 | + exit 0 ;; | |
983 | + i*86:atheos:*:*) | |
984 | + echo ${UNAME_MACHINE}-unknown-atheos | |
985 | + exit 0 ;; | |
986 | + i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*) | |
987 | + echo i386-unknown-lynxos${UNAME_RELEASE} | |
988 | + exit 0 ;; | |
989 | + i*86:*DOS:*:*) | |
990 | + echo ${UNAME_MACHINE}-pc-msdosdjgpp | |
991 | + exit 0 ;; | |
932 | 992 | i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*) |
933 | 993 | UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` |
934 | 994 | if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then |
@@ -963,9 +1023,6 @@ EOF | ||
963 | 1023 | echo ${UNAME_MACHINE}-pc-sysv32 |
964 | 1024 | fi |
965 | 1025 | exit 0 ;; |
966 | - i*86:*DOS:*:*) | |
967 | - echo ${UNAME_MACHINE}-pc-msdosdjgpp | |
968 | - exit 0 ;; | |
969 | 1026 | pc:*:*:*) |
970 | 1027 | # Left here for compatibility: |
971 | 1028 | # uname -m prints for DJGPP always 'pc', but it prints nothing about |
@@ -992,9 +1049,12 @@ EOF | ||
992 | 1049 | mc68k:UNIX:SYSTEM5:3.51m) |
993 | 1050 | echo m68k-convergent-sysv |
994 | 1051 | exit 0 ;; |
1052 | + M680?0:D-NIX:5.3:*) | |
1053 | + echo m68k-diab-dnix | |
1054 | + exit 0 ;; | |
995 | 1055 | M68*:*:R3V[567]*:*) |
996 | 1056 | test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;; |
997 | - 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) | |
1057 | + 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 | SDS2:*:4.0:3.0) | |
998 | 1058 | OS_REL='' |
999 | 1059 | test -r /etc/.relid \ |
1000 | 1060 | && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` |
@@ -1011,9 +1071,6 @@ EOF | ||
1011 | 1071 | mc68030:UNIX_System_V:4.*:*) |
1012 | 1072 | echo m68k-atari-sysv4 |
1013 | 1073 | exit 0 ;; |
1014 | - i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*) | |
1015 | - echo i386-unknown-lynxos${UNAME_RELEASE} | |
1016 | - exit 0 ;; | |
1017 | 1074 | TSUNAMI:LynxOS:2.*:*) |
1018 | 1075 | echo sparc-unknown-lynxos${UNAME_RELEASE} |
1019 | 1076 | exit 0 ;; |
@@ -1108,7 +1165,7 @@ EOF | ||
1108 | 1165 | *:QNX:*:4*) |
1109 | 1166 | echo i386-pc-qnx |
1110 | 1167 | exit 0 ;; |
1111 | - NSR-[GKLNPTVW]:NONSTOP_KERNEL:*:*) | |
1168 | + NSR-[DGKLNPTVW]:NONSTOP_KERNEL:*:*) | |
1112 | 1169 | echo nsr-tandem-nsk${UNAME_RELEASE} |
1113 | 1170 | exit 0 ;; |
1114 | 1171 | *:NonStop-UX:*:*) |
@@ -1131,11 +1188,6 @@ EOF | ||
1131 | 1188 | fi |
1132 | 1189 | echo ${UNAME_MACHINE}-unknown-plan9 |
1133 | 1190 | exit 0 ;; |
1134 | - i*86:OS/2:*:*) | |
1135 | - # If we were able to find `uname', then EMX Unix compatibility | |
1136 | - # is probably installed. | |
1137 | - echo ${UNAME_MACHINE}-pc-os2-emx | |
1138 | - exit 0 ;; | |
1139 | 1191 | *:TOPS-10:*:*) |
1140 | 1192 | echo pdp10-unknown-tops10 |
1141 | 1193 | exit 0 ;; |
@@ -1154,12 +1206,6 @@ EOF | ||
1154 | 1206 | *:ITS:*:*) |
1155 | 1207 | echo pdp10-unknown-its |
1156 | 1208 | exit 0 ;; |
1157 | - i*86:XTS-300:*:STOP) | |
1158 | - echo ${UNAME_MACHINE}-unknown-stop | |
1159 | - exit 0 ;; | |
1160 | - i*86:atheos:*:*) | |
1161 | - echo ${UNAME_MACHINE}-unknown-atheos | |
1162 | - exit 0 ;; | |
1163 | 1209 | esac |
1164 | 1210 | |
1165 | 1211 | #echo '(No uname command or uname output not recognized.)' 1>&2 |
@@ -1280,8 +1326,7 @@ main () | ||
1280 | 1326 | } |
1281 | 1327 | EOF |
1282 | 1328 | |
1283 | -$CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null && $dummy && rm -f $dummy.c $dummy && rmdir $tmpdir && exit 0 | |
1284 | -rm -f $dummy.c $dummy && rmdir $tmpdir | |
1329 | +$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && $dummy && exit 0 | |
1285 | 1330 | |
1286 | 1331 | # Apollos put the system type in the environment. |
1287 | 1332 |
@@ -1,9 +1,9 @@ | ||
1 | 1 | #! /bin/sh |
2 | 2 | # Configuration validation subroutine script. |
3 | 3 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, |
4 | -# 2000, 2001, 2002 Free Software Foundation, Inc. | |
4 | +# 2000, 2001, 2002, 2003 Free Software Foundation, Inc. | |
5 | 5 | |
6 | -timestamp='2002-08-22' | |
6 | +timestamp='2003-01-03' | |
7 | 7 | |
8 | 8 | # This file is (in principle) common to ALL GNU software. |
9 | 9 | # The presence of a machine in this file suggests that SOME GNU software |
@@ -118,7 +118,7 @@ esac | ||
118 | 118 | # Here we must recognize all the valid KERNEL-OS combinations. |
119 | 119 | maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` |
120 | 120 | case $maybe_os in |
121 | - nto-qnx* | linux-gnu* | freebsd*-gnu* | storm-chaos* | os2-emx* | windows32-* | rtmk-nova*) | |
121 | + nto-qnx* | linux-gnu* | freebsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*) | |
122 | 122 | os=-$maybe_os |
123 | 123 | basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` |
124 | 124 | ;; |
@@ -229,7 +229,7 @@ case $basic_machine in | ||
229 | 229 | | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ |
230 | 230 | | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ |
231 | 231 | | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \ |
232 | - | c4x | clipper \ | |
232 | + | clipper \ | |
233 | 233 | | d10v | d30v | dlx | dsp16xx \ |
234 | 234 | | fr30 | frv \ |
235 | 235 | | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ |
@@ -245,11 +245,13 @@ case $basic_machine in | ||
245 | 245 | | mips64vr4300 | mips64vr4300el \ |
246 | 246 | | mips64vr5000 | mips64vr5000el \ |
247 | 247 | | mipsisa32 | mipsisa32el \ |
248 | + | mipsisa32r2 | mipsisa32r2el \ | |
248 | 249 | | mipsisa64 | mipsisa64el \ |
249 | 250 | | mipsisa64sb1 | mipsisa64sb1el \ |
250 | 251 | | mipsisa64sr71k | mipsisa64sr71kel \ |
251 | 252 | | mipstx39 | mipstx39el \ |
252 | 253 | | mn10200 | mn10300 \ |
254 | + | msp430 \ | |
253 | 255 | | ns16k | ns32k \ |
254 | 256 | | openrisc | or32 \ |
255 | 257 | | pdp10 | pdp11 | pj | pjl \ |
@@ -294,7 +296,7 @@ case $basic_machine in | ||
294 | 296 | | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ |
295 | 297 | | avr-* \ |
296 | 298 | | bs2000-* \ |
297 | - | c[123]* | c30-* | [cjt]90-* | c54x-* \ | |
299 | + | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* \ | |
298 | 300 | | clipper-* | cydra-* \ |
299 | 301 | | d10v-* | d30v-* | dlx-* \ |
300 | 302 | | elxsi-* \ |
@@ -315,11 +317,13 @@ case $basic_machine in | ||
315 | 317 | | mips64vr4300-* | mips64vr4300el-* \ |
316 | 318 | | mips64vr5000-* | mips64vr5000el-* \ |
317 | 319 | | mipsisa32-* | mipsisa32el-* \ |
320 | + | mipsisa32r2-* | mipsisa32r2el-* \ | |
318 | 321 | | mipsisa64-* | mipsisa64el-* \ |
319 | 322 | | mipsisa64sb1-* | mipsisa64sb1el-* \ |
320 | 323 | | mipsisa64sr71k-* | mipsisa64sr71kel-* \ |
321 | - | mipstx39 | mipstx39el \ | |
322 | - | none-* | np1-* | ns16k-* | ns32k-* \ | |
324 | + | mipstx39-* | mipstx39el-* \ | |
325 | + | msp430-* \ | |
326 | + | none-* | np1-* | nv1-* | ns16k-* | ns32k-* \ | |
323 | 327 | | orion-* \ |
324 | 328 | | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ |
325 | 329 | | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ |
@@ -329,7 +333,7 @@ case $basic_machine in | ||
329 | 333 | | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ |
330 | 334 | | sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \ |
331 | 335 | | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \ |
332 | - | tahoe-* | thumb-* | tic30-* | tic54x-* | tic80-* | tron-* \ | |
336 | + | tahoe-* | thumb-* | tic30-* | tic4x-* | tic54x-* | tic80-* | tron-* \ | |
333 | 337 | | v850-* | v850e-* | vax-* \ |
334 | 338 | | we32k-* \ |
335 | 339 | | x86-* | x86_64-* | xps100-* | xscale-* | xstormy16-* \ |
@@ -716,6 +720,10 @@ case $basic_machine in | ||
716 | 720 | np1) |
717 | 721 | basic_machine=np1-gould |
718 | 722 | ;; |
723 | + nv1) | |
724 | + basic_machine=nv1-cray | |
725 | + os=-unicosmp | |
726 | + ;; | |
719 | 727 | nsr-tandem) |
720 | 728 | basic_machine=nsr-tandem |
721 | 729 | ;; |
@@ -901,10 +909,6 @@ case $basic_machine in | ||
901 | 909 | basic_machine=i386-sequent |
902 | 910 | os=-dynix |
903 | 911 | ;; |
904 | - t3d) | |
905 | - basic_machine=alpha-cray | |
906 | - os=-unicos | |
907 | - ;; | |
908 | 912 | t3e) |
909 | 913 | basic_machine=alphaev5-cray |
910 | 914 | os=-unicos |
@@ -913,6 +917,10 @@ case $basic_machine in | ||
913 | 917 | basic_machine=t90-cray |
914 | 918 | os=-unicos |
915 | 919 | ;; |
920 | + tic4x | c4x*) | |
921 | + basic_machine=tic4x-unknown | |
922 | + os=-coff | |
923 | + ;; | |
916 | 924 | tic54x | c54x*) |
917 | 925 | basic_machine=tic54x-unknown |
918 | 926 | os=-coff |
@@ -973,10 +981,6 @@ case $basic_machine in | ||
973 | 981 | basic_machine=hppa1.1-winbond |
974 | 982 | os=-proelf |
975 | 983 | ;; |
976 | - windows32) | |
977 | - basic_machine=i386-pc | |
978 | - os=-windows32-msvcrt | |
979 | - ;; | |
980 | 984 | xps | xps100) |
981 | 985 | basic_machine=xps100-honeywell |
982 | 986 | ;; |
@@ -1047,10 +1051,6 @@ case $basic_machine in | ||
1047 | 1051 | pmac | pmac-mpw) |
1048 | 1052 | basic_machine=powerpc-apple |
1049 | 1053 | ;; |
1050 | - c4x*) | |
1051 | - basic_machine=c4x-none | |
1052 | - os=-coff | |
1053 | - ;; | |
1054 | 1054 | *-unknown) |
1055 | 1055 | # Make sure to match an already-canonicalized machine name. |
1056 | 1056 | ;; |
@@ -1113,11 +1113,12 @@ case $os in | ||
1113 | 1113 | | -chorusos* | -chorusrdb* \ |
1114 | 1114 | | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ |
1115 | 1115 | | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \ |
1116 | - | -interix* | -uwin* | -rhapsody* | -darwin* | -opened* \ | |
1116 | + | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ | |
1117 | 1117 | | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ |
1118 | 1118 | | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ |
1119 | 1119 | | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ |
1120 | - | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* | -powermax*) | |
1120 | + | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ | |
1121 | + | -powermax* | -dnix* | -microbsd*) | |
1121 | 1122 | # Remember, each alternative MUST END IN *, to match a version number. |
1122 | 1123 | ;; |
1123 | 1124 | -qnx*) |
@@ -1129,8 +1130,10 @@ case $os in | ||
1129 | 1130 | ;; |
1130 | 1131 | esac |
1131 | 1132 | ;; |
1133 | + -nto-qnx*) | |
1134 | + ;; | |
1132 | 1135 | -nto*) |
1133 | - os=-nto-qnx | |
1136 | + os=`echo $os | sed -e 's|nto|nto-qnx|'` | |
1134 | 1137 | ;; |
1135 | 1138 | -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ |
1136 | 1139 | | -windows* | -osx | -abug | -netware* | -os9* | -beos* \ |