version 1.12, 2007/09/05 23:55:56 |
version 1.13, 2008/07/31 16:44:03 |
|
|
#! /bin/sh |
#! /bin/sh |
# Attempt to guess a canonical system name. |
# Attempt to guess a canonical system name. |
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, |
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, |
# 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation, |
# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 |
# Inc. |
# Free Software Foundation, Inc. |
|
|
timestamp='2006-11-15' |
timestamp='2008-01-23' |
|
|
# This file is free software; you can redistribute it and/or modify it |
# This file is free software; you can redistribute it and/or modify it |
# under the terms of the GNU General Public License as published by |
# under the terms of the GNU General Public License as published by |
|
|
GNU config.guess ($timestamp) |
GNU config.guess ($timestamp) |
|
|
Originally written by Per Bothner. |
Originally written by Per Bothner. |
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 |
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, |
Free Software Foundation, Inc. |
2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. |
|
|
This is free software; see the source for copying conditions. There is NO |
This is free software; see the source for copying conditions. There is NO |
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." |
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." |
|
|
sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) |
sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) |
echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` |
echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` |
exit ;; |
exit ;; |
i86pc:SunOS:5.*:*) |
i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) |
echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` |
echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` |
exit ;; |
exit ;; |
sun4*:SunOS:6*:*) |
sun4*:SunOS:6*:*) |
|
|
echo rs6000-ibm-aix3.2 |
echo rs6000-ibm-aix3.2 |
fi |
fi |
exit ;; |
exit ;; |
*:AIX:*:[45]) |
*:AIX:*:[456]) |
IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` |
IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` |
if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then |
if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then |
IBM_ARCH=rs6000 |
IBM_ARCH=rs6000 |
|
|
i*:CYGWIN*:*) |
i*:CYGWIN*:*) |
echo ${UNAME_MACHINE}-pc-cygwin |
echo ${UNAME_MACHINE}-pc-cygwin |
exit ;; |
exit ;; |
i*:MINGW*:*) |
*:MINGW*:*) |
echo ${UNAME_MACHINE}-pc-mingw32 |
echo ${UNAME_MACHINE}-pc-mingw32 |
exit ;; |
exit ;; |
i*:windows32*:*) |
i*:windows32*:*) |
|
|
i*:PW*:*) |
i*:PW*:*) |
echo ${UNAME_MACHINE}-pc-pw32 |
echo ${UNAME_MACHINE}-pc-pw32 |
exit ;; |
exit ;; |
x86:Interix*:[3456]*) |
*:Interix*:[3456]*) |
echo i586-pc-interix${UNAME_RELEASE} |
case ${UNAME_MACHINE} in |
exit ;; |
x86) |
EM64T:Interix*:[3456]* | authenticamd:Interix*:[3456]*) |
echo i586-pc-interix${UNAME_RELEASE} |
echo x86_64-unknown-interix${UNAME_RELEASE} |
exit ;; |
exit ;; |
EM64T | authenticamd) |
|
echo x86_64-unknown-interix${UNAME_RELEASE} |
|
exit ;; |
|
IA64) |
|
echo ia64-unknown-interix${UNAME_RELEASE} |
|
exit ;; |
|
esac ;; |
[345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) |
[345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) |
echo i${UNAME_MACHINE}-pc-mks |
echo i${UNAME_MACHINE}-pc-mks |
exit ;; |
exit ;; |
|
|
echo ${UNAME_MACHINE}-pc-minix |
echo ${UNAME_MACHINE}-pc-minix |
exit ;; |
exit ;; |
arm*:Linux:*:*) |
arm*:Linux:*:*) |
echo ${UNAME_MACHINE}-unknown-linux-gnu |
eval $set_cc_for_build |
|
if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ |
|
| grep -q __ARM_EABI__ |
|
then |
|
echo ${UNAME_MACHINE}-unknown-linux-gnu |
|
else |
|
echo ${UNAME_MACHINE}-unknown-linux-gnueabi |
|
fi |
exit ;; |
exit ;; |
avr32*:Linux:*:*) |
avr32*:Linux:*:*) |
echo ${UNAME_MACHINE}-unknown-linux-gnu |
echo ${UNAME_MACHINE}-unknown-linux-gnu |
|
|
x86_64:Linux:*:*) |
x86_64:Linux:*:*) |
echo x86_64-unknown-linux-gnu |
echo x86_64-unknown-linux-gnu |
exit ;; |
exit ;; |
|
xtensa*:Linux:*:*) |
|
echo ${UNAME_MACHINE}-unknown-linux-gnu |
|
exit ;; |
i*86:Linux:*:*) |
i*86:Linux:*:*) |
# The BFD linker knows what the default object file format is, so |
# The BFD linker knows what the default object file format is, so |
# first see if it will tell us. cd to the root directory to prevent |
# first see if it will tell us. cd to the root directory to prevent |
|
|
SX-6:SUPER-UX:*:*) |
SX-6:SUPER-UX:*:*) |
echo sx6-nec-superux${UNAME_RELEASE} |
echo sx6-nec-superux${UNAME_RELEASE} |
exit ;; |
exit ;; |
|
SX-7:SUPER-UX:*:*) |
|
echo sx7-nec-superux${UNAME_RELEASE} |
|
exit ;; |
SX-8:SUPER-UX:*:*) |
SX-8:SUPER-UX:*:*) |
echo sx8-nec-superux${UNAME_RELEASE} |
echo sx8-nec-superux${UNAME_RELEASE} |
exit ;; |
exit ;; |
|
SX-8R:SUPER-UX:*:*) |
|
echo sx8r-nec-superux${UNAME_RELEASE} |
|
exit ;; |
Power*:Rhapsody:*:*) |
Power*:Rhapsody:*:*) |
echo powerpc-apple-rhapsody${UNAME_RELEASE} |
echo powerpc-apple-rhapsody${UNAME_RELEASE} |
exit ;; |
exit ;; |
|
|
the operating system you are using. It is advised that you |
the operating system you are using. It is advised that you |
download the most up to date version of the config scripts from |
download the most up to date version of the config scripts from |
|
|
http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.guess |
http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD |
and |
and |
http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.sub |
http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD |
|
|
If the version you run ($0) is already up to date, please |
If the version you run ($0) is already up to date, please |
send the following data and any information you think might be |
send the following data and any information you think might be |