1 |
|
#! /bin/sh |
2 |
|
# Attempt to guess a canonical system name. |
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 |
|
|
7 |
< |
timestamp='2006-07-02' |
7 |
> |
timestamp='2009-04-27' |
8 |
|
|
9 |
|
# This file is free software; you can redistribute it and/or modify it |
10 |
|
# under the terms of the GNU General Public License as published by |
56 |
|
GNU config.guess ($timestamp) |
57 |
|
|
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, 2008 Free Software Foundation, Inc. |
61 |
|
|
62 |
|
This is free software; see the source for copying conditions. There is NO |
63 |
|
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." |
161 |
|
arm*) machine=arm-unknown ;; |
162 |
|
sh3el) machine=shl-unknown ;; |
163 |
|
sh3eb) machine=sh-unknown ;; |
164 |
+ |
sh5el) machine=sh5le-unknown ;; |
165 |
|
*) machine=${UNAME_MACHINE_ARCH}-unknown ;; |
166 |
|
esac |
167 |
|
# The Operating System including object format, if it has switched |
324 |
|
case `/usr/bin/uname -p` in |
325 |
|
sparc) echo sparc-icl-nx7; exit ;; |
326 |
|
esac ;; |
327 |
+ |
s390x:SunOS:*:*) |
328 |
+ |
echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` |
329 |
+ |
exit ;; |
330 |
|
sun4H:SunOS:5.*:*) |
331 |
|
echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` |
332 |
|
exit ;; |
333 |
|
sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) |
334 |
|
echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` |
335 |
|
exit ;; |
336 |
< |
i86pc:SunOS:5.*:*) |
337 |
< |
echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` |
336 |
> |
i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) |
337 |
> |
eval $set_cc_for_build |
338 |
> |
SUN_ARCH="i386" |
339 |
> |
# If there is a compiler, see if it is configured for 64-bit objects. |
340 |
> |
# Note that the Sun cc does not turn __LP64__ into 1 like gcc does. |
341 |
> |
# This test works for both compilers. |
342 |
> |
if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then |
343 |
> |
if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \ |
344 |
> |
(CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ |
345 |
> |
grep IS_64BIT_ARCH >/dev/null |
346 |
> |
then |
347 |
> |
SUN_ARCH="x86_64" |
348 |
> |
fi |
349 |
> |
fi |
350 |
> |
echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` |
351 |
|
exit ;; |
352 |
|
sun4*:SunOS:6*:*) |
353 |
|
# According to config.sub, this is the proper way to canonicalize |
548 |
|
echo rs6000-ibm-aix3.2 |
549 |
|
fi |
550 |
|
exit ;; |
551 |
< |
*:AIX:*:[45]) |
551 |
> |
*:AIX:*:[456]) |
552 |
|
IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` |
553 |
|
if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then |
554 |
|
IBM_ARCH=rs6000 |
797 |
|
i*:CYGWIN*:*) |
798 |
|
echo ${UNAME_MACHINE}-pc-cygwin |
799 |
|
exit ;; |
800 |
< |
i*:MINGW*:*) |
800 |
> |
*:MINGW*:*) |
801 |
|
echo ${UNAME_MACHINE}-pc-mingw32 |
802 |
|
exit ;; |
803 |
|
i*:windows32*:*) |
807 |
|
i*:PW*:*) |
808 |
|
echo ${UNAME_MACHINE}-pc-pw32 |
809 |
|
exit ;; |
810 |
< |
x86:Interix*:[3456]*) |
811 |
< |
echo i586-pc-interix${UNAME_RELEASE} |
812 |
< |
exit ;; |
813 |
< |
EM64T:Interix*:[3456]*) |
814 |
< |
echo x86_64-unknown-interix${UNAME_RELEASE} |
815 |
< |
exit ;; |
810 |
> |
*:Interix*:[3456]*) |
811 |
> |
case ${UNAME_MACHINE} in |
812 |
> |
x86) |
813 |
> |
echo i586-pc-interix${UNAME_RELEASE} |
814 |
> |
exit ;; |
815 |
> |
EM64T | authenticamd | genuineintel) |
816 |
> |
echo x86_64-unknown-interix${UNAME_RELEASE} |
817 |
> |
exit ;; |
818 |
> |
IA64) |
819 |
> |
echo ia64-unknown-interix${UNAME_RELEASE} |
820 |
> |
exit ;; |
821 |
> |
esac ;; |
822 |
|
[345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) |
823 |
|
echo i${UNAME_MACHINE}-pc-mks |
824 |
|
exit ;; |
852 |
|
echo ${UNAME_MACHINE}-pc-minix |
853 |
|
exit ;; |
854 |
|
arm*:Linux:*:*) |
855 |
< |
echo ${UNAME_MACHINE}-unknown-linux-gnu |
855 |
> |
eval $set_cc_for_build |
856 |
> |
if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ |
857 |
> |
| grep -q __ARM_EABI__ |
858 |
> |
then |
859 |
> |
echo ${UNAME_MACHINE}-unknown-linux-gnu |
860 |
> |
else |
861 |
> |
echo ${UNAME_MACHINE}-unknown-linux-gnueabi |
862 |
> |
fi |
863 |
|
exit ;; |
864 |
|
avr32*:Linux:*:*) |
865 |
|
echo ${UNAME_MACHINE}-unknown-linux-gnu |
951 |
|
if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi |
952 |
|
echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} |
953 |
|
exit ;; |
954 |
+ |
padre:Linux:*:*) |
955 |
+ |
echo sparc-unknown-linux-gnu |
956 |
+ |
exit ;; |
957 |
|
parisc:Linux:*:* | hppa:Linux:*:*) |
958 |
|
# Look for CPU level |
959 |
|
case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in |
983 |
|
x86_64:Linux:*:*) |
984 |
|
echo x86_64-unknown-linux-gnu |
985 |
|
exit ;; |
986 |
+ |
xtensa*:Linux:*:*) |
987 |
+ |
echo ${UNAME_MACHINE}-unknown-linux-gnu |
988 |
+ |
exit ;; |
989 |
|
i*86:Linux:*:*) |
990 |
|
# The BFD linker knows what the default object file format is, so |
991 |
|
# first see if it will tell us. cd to the root directory to prevent |
1004 |
|
a.out-i386-linux) |
1005 |
|
echo "${UNAME_MACHINE}-pc-linux-gnuaout" |
1006 |
|
exit ;; |
971 |
– |
coff-i386) |
972 |
– |
echo "${UNAME_MACHINE}-pc-linux-gnucoff" |
973 |
– |
exit ;; |
1007 |
|
"") |
1008 |
|
# Either a pre-BFD a.out linker (linux-gnuoldld) or |
1009 |
|
# one that does not give us useful --help. |
1118 |
|
pc:*:*:*) |
1119 |
|
# Left here for compatibility: |
1120 |
|
# uname -m prints for DJGPP always 'pc', but it prints nothing about |
1121 |
< |
# the processor, so we play safe by assuming i386. |
1122 |
< |
echo i386-pc-msdosdjgpp |
1121 |
> |
# the processor, so we play safe by assuming i586. |
1122 |
> |
# Note: whatever this is, it MUST be the same as what config.sub |
1123 |
> |
# prints for the "djgpp" host, or else GDB configury will decide that |
1124 |
> |
# this is a cross-build. |
1125 |
> |
echo i586-pc-msdosdjgpp |
1126 |
|
exit ;; |
1127 |
|
Intel:Mach:3*:*) |
1128 |
|
echo i386-pc-mach3 |
1160 |
|
3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) |
1161 |
|
/bin/uname -p 2>/dev/null | grep 86 >/dev/null \ |
1162 |
|
&& { echo i486-ncr-sysv4; exit; } ;; |
1163 |
+ |
NCR*:*:4.2:* | MPRAS*:*:4.2:*) |
1164 |
+ |
OS_REL='.3' |
1165 |
+ |
test -r /etc/.relid \ |
1166 |
+ |
&& OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` |
1167 |
+ |
/bin/uname -p 2>/dev/null | grep 86 >/dev/null \ |
1168 |
+ |
&& { echo i486-ncr-sysv4.3${OS_REL}; exit; } |
1169 |
+ |
/bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ |
1170 |
+ |
&& { echo i586-ncr-sysv4.3${OS_REL}; exit; } |
1171 |
+ |
/bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \ |
1172 |
+ |
&& { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; |
1173 |
|
m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) |
1174 |
|
echo m68k-unknown-lynxos${UNAME_RELEASE} |
1175 |
|
exit ;; |
1245 |
|
BePC:BeOS:*:*) # BeOS running on Intel PC compatible. |
1246 |
|
echo i586-pc-beos |
1247 |
|
exit ;; |
1248 |
+ |
BePC:Haiku:*:*) # Haiku running on Intel PC compatible. |
1249 |
+ |
echo i586-pc-haiku |
1250 |
+ |
exit ;; |
1251 |
|
SX-4:SUPER-UX:*:*) |
1252 |
|
echo sx4-nec-superux${UNAME_RELEASE} |
1253 |
|
exit ;; |
1257 |
|
SX-6:SUPER-UX:*:*) |
1258 |
|
echo sx6-nec-superux${UNAME_RELEASE} |
1259 |
|
exit ;; |
1260 |
+ |
SX-7:SUPER-UX:*:*) |
1261 |
+ |
echo sx7-nec-superux${UNAME_RELEASE} |
1262 |
+ |
exit ;; |
1263 |
+ |
SX-8:SUPER-UX:*:*) |
1264 |
+ |
echo sx8-nec-superux${UNAME_RELEASE} |
1265 |
+ |
exit ;; |
1266 |
+ |
SX-8R:SUPER-UX:*:*) |
1267 |
+ |
echo sx8r-nec-superux${UNAME_RELEASE} |
1268 |
+ |
exit ;; |
1269 |
|
Power*:Rhapsody:*:*) |
1270 |
|
echo powerpc-apple-rhapsody${UNAME_RELEASE} |
1271 |
|
exit ;; |
1356 |
|
i*86:rdos:*:*) |
1357 |
|
echo ${UNAME_MACHINE}-pc-rdos |
1358 |
|
exit ;; |
1359 |
+ |
i*86:AROS:*:*) |
1360 |
+ |
echo ${UNAME_MACHINE}-pc-aros |
1361 |
+ |
exit ;; |
1362 |
|
esac |
1363 |
|
|
1364 |
|
#echo '(No uname command or uname output not recognized.)' 1>&2 |
1519 |
|
the operating system you are using. It is advised that you |
1520 |
|
download the most up to date version of the config scripts from |
1521 |
|
|
1522 |
< |
http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.guess |
1522 |
> |
http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD |
1523 |
|
and |
1524 |
< |
http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.sub |
1524 |
> |
http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD |
1525 |
|
|
1526 |
|
If the version you run ($0) is already up to date, please |
1527 |
|
send the following data and any information you think might be |