|
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, 2003, 2004, 2005, 2006 Free Software Foundation, |
5 | | -# Inc. |
| 4 | +# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 |
| 5 | +#Free Software Foundation,Inc. |
6 | 6 |
|
7 | | -timestamp='2007-07-22' |
| 7 | +timestamp='2009-02-03' |
8 | 8 |
|
9 | 9 | # This file is free software; you can redistribute it and/or modify it |
10 | 10 | # under the terms of the GNU General Public License as published by |
@@ -56,8 +56,8 @@ version="\ |
56 | 56 | GNU config.guess ($timestamp) |
57 | 57 |
|
58 | 58 | Originally written by Per Bothner. |
59 | | -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 |
60 | | -Free Software Foundation, Inc. |
| 59 | +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, |
| 60 | +2002, 2003, 2004, 2005, 2006, 2007, 2008Free Software Foundation, Inc. |
61 | 61 |
|
62 | 62 | This is free software; see the source for copying conditions. There is NO |
63 | 63 | warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." |
@@ -331,7 +331,20 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in |
331 | 331 | echo sparc-sun-solaris2`echo${UNAME_RELEASE}|sed -e's/[^.]*//'` |
332 | 332 | exit ;; |
333 | 333 | i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) |
334 | | -echo i386-pc-solaris2`echo${UNAME_RELEASE}|sed -e's/[^.]*//'` |
| 334 | +eval$set_cc_for_build |
| 335 | +SUN_ARCH="i386" |
| 336 | +# If there is a compiler, see if it is configured for 64-bit objects. |
| 337 | +# Note that the Sun cc does not turn __LP64__ into 1 like gcc does. |
| 338 | +# This test works for both compilers. |
| 339 | +if ["$CC_FOR_BUILD"!='no_compiler_found' ];then |
| 340 | +if (echo'#ifdef __amd64';echo IS_64BIT_ARCH;echo'#endif')| \ |
| 341 | +(CCOPTS=$CC_FOR_BUILD -E -2>/dev/null)| \ |
| 342 | +grep IS_64BIT_ARCH>/dev/null |
| 343 | +then |
| 344 | +SUN_ARCH="x86_64" |
| 345 | +fi |
| 346 | +fi |
| 347 | +echo${SUN_ARCH}-pc-solaris2`echo${UNAME_RELEASE}|sed -e's/[^.]*//'` |
335 | 348 | exit ;; |
336 | 349 | sun4*:SunOS:6*:*) |
337 | 350 | # According to config.sub, this is the proper way to canonicalize |
|
532 | 545 | echo rs6000-ibm-aix3.2 |
533 | 546 | fi |
534 | 547 | exit ;; |
535 | | -*:AIX:*:[45]) |
| 548 | +*:AIX:*:[456]) |
536 | 549 | IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available| sed 1q| awk'{ print $1 }'` |
537 | 550 | if /usr/sbin/lsattr -El${IBM_CPU_ID}| grep' POWER'>/dev/null2>&1;then |
538 | 551 | IBM_ARCH=rs6000 |
|
796 | 809 | x86) |
797 | 810 | echo i586-pc-interix${UNAME_RELEASE} |
798 | 811 | exit ;; |
799 | | - EM64T | authenticamd) |
| 812 | + EM64T | authenticamd | genuineintel) |
800 | 813 | echo x86_64-unknown-interix${UNAME_RELEASE} |
801 | 814 | exit ;; |
| 815 | + IA64) |
| 816 | +echo ia64-unknown-interix${UNAME_RELEASE} |
| 817 | +exit ;; |
802 | 818 | esac ;; |
803 | 819 | [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) |
804 | 820 | echo i${UNAME_MACHINE}-pc-mks |
|
833 | 849 | echo${UNAME_MACHINE}-pc-minix |
834 | 850 | exit ;; |
835 | 851 | arm*:Linux:*:*) |
836 | | -echo${UNAME_MACHINE}-unknown-linux-gnu |
| 852 | +eval$set_cc_for_build |
| 853 | +ifecho __ARM_EABI__|$CC_FOR_BUILD -E -2>/dev/null \ |
| 854 | +| grep -q __ARM_EABI__ |
| 855 | +then |
| 856 | +echo${UNAME_MACHINE}-unknown-linux-gnu |
| 857 | +else |
| 858 | +echo${UNAME_MACHINE}-unknown-linux-gnueabi |
| 859 | +fi |
837 | 860 | exit ;; |
838 | 861 | avr32*:Linux:*:*) |
839 | 862 | echo${UNAME_MACHINE}-unknown-linux-gnu |
|
925 | 948 | iftest"$?" = 0;then LIBC="libc1";else LIBC="";fi |
926 | 949 | echo${UNAME_MACHINE}-unknown-linux-gnu${LIBC} |
927 | 950 | exit ;; |
| 951 | + padre:Linux:*:*) |
| 952 | +echo sparc-unknown-linux-gnu |
| 953 | +exit ;; |
928 | 954 | parisc:Linux:*:* | hppa:Linux:*:*) |
929 | 955 | # Look for CPU level |
930 | 956 | case`grep'^cpu[^a-z]*:' /proc/cpuinfo2>/dev/null| cut -d'' -f2`in |
|
954 | 980 | x86_64:Linux:*:*) |
955 | 981 | echo x86_64-unknown-linux-gnu |
956 | 982 | exit ;; |
957 | | - xtensa:Linux:*:*) |
958 | | -echoxtensa-unknown-linux-gnu |
| 983 | + xtensa*:Linux:*:*) |
| 984 | +echo${UNAME_MACHINE}-unknown-linux-gnu |
959 | 985 | exit ;; |
960 | 986 | i*86:Linux:*:*) |
961 | 987 | # The BFD linker knows what the default object file format is, so |
|
975 | 1001 | a.out-i386-linux) |
976 | 1002 | echo"${UNAME_MACHINE}-pc-linux-gnuaout" |
977 | 1003 | exit ;; |
978 | | - coff-i386) |
979 | | -echo"${UNAME_MACHINE}-pc-linux-gnucoff" |
980 | | -exit ;; |
981 | 1004 | "") |
982 | 1005 | # Either a pre-BFD a.out linker (linux-gnuoldld) or |
983 | 1006 | # one that does not give us useful --help. |
@@ -1131,6 +1154,16 @@ EOF |
1131 | 1154 | 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) |
1132 | 1155 | /bin/uname -p2>/dev/null| grep 86>/dev/null \ |
1133 | 1156 | && {echo i486-ncr-sysv4;exit; } ;; |
| 1157 | + NCR*:*:4.2:* | MPRAS*:*:4.2:*) |
| 1158 | +OS_REL='.3' |
| 1159 | +test -r /etc/.relid \ |
| 1160 | +&& OS_REL=.`sed -n's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p'< /etc/.relid` |
| 1161 | +/bin/uname -p2>/dev/null| grep 86>/dev/null \ |
| 1162 | +&& {echo i486-ncr-sysv4.3${OS_REL};exit; } |
| 1163 | +/bin/uname -p2>/dev/null| /bin/grep entium>/dev/null \ |
| 1164 | +&& {echo i586-ncr-sysv4.3${OS_REL};exit; } |
| 1165 | +/bin/uname -p2>/dev/null| /bin/grep pteron>/dev/null \ |
| 1166 | +&& {echo i586-ncr-sysv4.3${OS_REL};exit; } ;; |
1134 | 1167 | m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) |
1135 | 1168 | echo m68k-unknown-lynxos${UNAME_RELEASE} |
1136 | 1169 | exit ;; |
@@ -1206,6 +1239,9 @@ EOF |
1206 | 1239 | BePC:BeOS:*:*)# BeOS running on Intel PC compatible. |
1207 | 1240 | echo i586-pc-beos |
1208 | 1241 | exit ;; |
| 1242 | + BePC:Haiku:*:*)# Haiku running on Intel PC compatible. |
| 1243 | +echo i586-pc-haiku |
| 1244 | +exit ;; |
1209 | 1245 | SX-4:SUPER-UX:*:*) |
1210 | 1246 | echo sx4-nec-superux${UNAME_RELEASE} |
1211 | 1247 | exit ;; |
@@ -1314,6 +1350,9 @@ EOF |
1314 | 1350 | i*86:rdos:*:*) |
1315 | 1351 | echo${UNAME_MACHINE}-pc-rdos |
1316 | 1352 | exit ;; |
| 1353 | + i*86:AROS:*:*) |
| 1354 | +echo${UNAME_MACHINE}-pc-aros |
| 1355 | +exit ;; |
1317 | 1356 | esac |
1318 | 1357 |
|
1319 | 1358 | #echo '(No uname command or uname output not recognized.)' 1>&2 |
@@ -1474,9 +1513,9 @@ This script, last modified $timestamp, has failed to recognize |
1474 | 1513 | the operating system you are using. It is advised that you |
1475 | 1514 | download the most up to date version of the config scripts from |
1476 | 1515 |
|
1477 | | - http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.guess |
| 1516 | + http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD |
1478 | 1517 | and |
1479 | | - http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.sub |
| 1518 | + http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD |
1480 | 1519 |
|
1481 | 1520 | If the version you run ($0) is already up to date, please |
1482 | 1521 | send the following data and any information you think might be |
|