summaryrefslogtreecommitdiff
path: root/tools/config.guess
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2008-12-11 18:15:41 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2008-12-11 18:15:41 (GMT)
commitfb642af86fa07c1691e0d874fe70bb91c4dfa7d4 (patch)
treec109a59d6377a02108b3bd7e2f99c1477c9efb93 /tools/config.guess
parent488f5d1e7632ce3a58cd1afd0b9a9e95d1d280fe (diff)
Update config.guess and config.sub with the latest versions from upstream.
/trunk/tools/config.guess | 19 17 2 0 +++++++++++++++++-- /trunk/tools/config.sub | 10 6 4 0 ++++++---- 2 files changed, 23 insertions(+), 6 deletions(-)
Diffstat (limited to 'tools/config.guess')
-rwxr-xr-xtools/config.guess19
1 files changed, 17 insertions, 2 deletions
diff --git a/tools/config.guess b/tools/config.guess
index f0f0d36..c466aa7 100755
--- a/tools/config.guess
+++ b/tools/config.guess
@@ -4,7 +4,7 @@
# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
# Free Software Foundation, Inc.
-timestamp='2008-09-28'
+timestamp='2008-12-11'
# 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
@@ -331,7 +331,22 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
exit ;;
i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
- echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
+ eval $set_cc_for_build
+ SUN_ARCH="i386"
+ # If there is a compiler, see if it is configured for 64-bit objects.
+ # Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
+ # This test works for both compilers. Note that the full path to
+ # /usr/bin/echo is necessary to work around the shell builtins for
+ # echo that do not handle newlines.
+ if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
+ if /usr/bin/echo '\n#ifdef __amd64\nIS_64BIT_ARCH\n#endif' | \
+ (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
+ grep IS_64BIT_ARCH >/dev/null
+ then
+ SUN_ARCH="x86_64"
+ fi
+ fi
+ echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
exit ;;
sun4*:SunOS:6*:*)
# According to config.sub, this is the proper way to canonicalize