projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
record-btrace: make ranges include begin and end
[deliverable/binutils-gdb.git]
/
config.guess
diff --git
a/config.guess
b/config.guess
index 1804e9fcdcbceee38a20bf6e677c949af75d7bf4..b79252d6b1034cbcce18ed21d4ed21a405f987e9 100755
(executable)
--- a/
config.guess
+++ b/
config.guess
@@
-1,10
+1,8
@@
#! /bin/sh
# Attempt to guess a canonical system name.
#! /bin/sh
# Attempt to guess a canonical system name.
-# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
-# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
-# 2011, 2012, 2013 Free Software Foundation, Inc.
+# Copyright 1992-2013 Free Software Foundation, Inc.
-timestamp='201
2-12-29
'
+timestamp='201
3-06-10
'
# 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
# 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
@@
-26,7
+24,7
@@
timestamp='2012-12-29'
# program. This Exception is an additional permission under section 7
# of the GNU General Public License, version 3 ("GPLv3").
#
# program. This Exception is an additional permission under section 7
# of the GNU General Public License, version 3 ("GPLv3").
#
-# Originally written by Per Bothner.
+# Originally written by Per Bothner.
#
# You can get the latest version of this script from:
# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
#
# You can get the latest version of this script from:
# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
@@
-52,9
+50,7
@@
version="\
GNU config.guess ($timestamp)
Originally written by Per Bothner.
GNU config.guess ($timestamp)
Originally written by Per Bothner.
-Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
-2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011,
-2012, 2013 Free Software Foundation, Inc.
+Copyright 1992-2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
@@
-136,6
+132,27
@@
UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
+case "${UNAME_SYSTEM}" in
+Linux|GNU|GNU/*)
+ # If the system lacks a compiler, then just pick glibc.
+ # We could probably try harder.
+ LIBC=gnu
+
+ eval $set_cc_for_build
+ cat <<-EOF > $dummy.c
+ #include <features.h>
+ #if defined(__UCLIBC__)
+ LIBC=uclibc
+ #elif defined(__dietlibc__)
+ LIBC=dietlibc
+ #else
+ LIBC=gnu
+ #endif
+ EOF
+ eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'`
+ ;;
+esac
+
# Note: order is significant - the case branches are not exclusive.
case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
# Note: order is significant - the case branches are not exclusive.
case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
@@
-857,21
+874,21
@@
EOF
exit ;;
*:GNU:*:*)
# the GNU system
exit ;;
*:GNU:*:*)
# the GNU system
- echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-
gnu
`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
+ echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-
${LIBC}
`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
exit ;;
*:GNU/*:*:*)
# other systems with GNU libc and userland
exit ;;
*:GNU/*:*:*)
# other systems with GNU libc and userland
- echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-
gnu
+ echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-
${LIBC}
exit ;;
i*86:Minix:*:*)
echo ${UNAME_MACHINE}-pc-minix
exit ;;
aarch64:Linux:*:*)
exit ;;
i*86:Minix:*:*)
echo ${UNAME_MACHINE}-pc-minix
exit ;;
aarch64:Linux:*:*)
- echo ${UNAME_MACHINE}-unknown-linux-
gnu
+ echo ${UNAME_MACHINE}-unknown-linux-
${LIBC}
exit ;;
aarch64_be:Linux:*:*)
UNAME_MACHINE=aarch64_be
exit ;;
aarch64_be:Linux:*:*)
UNAME_MACHINE=aarch64_be
- echo ${UNAME_MACHINE}-unknown-linux-
gnu
+ echo ${UNAME_MACHINE}-unknown-linux-
${LIBC}
exit ;;
alpha:Linux:*:*)
case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
exit ;;
alpha:Linux:*:*)
case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
@@
-884,59
+901,54
@@
EOF
EV68*) UNAME_MACHINE=alphaev68 ;;
esac
objdump --private-headers /bin/sh | grep -q ld.so.1
EV68*) UNAME_MACHINE=alphaev68 ;;
esac
objdump --private-headers /bin/sh | grep -q ld.so.1
- if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
- echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
+ if test "$?" = 0 ; then LIBC="gnulibc1" ; fi
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
+ exit ;;
+ arc:Linux:*:* | arceb:Linux:*:*)
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
exit ;;
arm*:Linux:*:*)
eval $set_cc_for_build
if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
| grep -q __ARM_EABI__
then
exit ;;
arm*:Linux:*:*)
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
+ echo ${UNAME_MACHINE}-unknown-linux-
${LIBC}
else
if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
| grep -q __ARM_PCS_VFP
then
else
if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
| grep -q __ARM_PCS_VFP
then
- echo ${UNAME_MACHINE}-unknown-linux-
gnu
eabi
+ echo ${UNAME_MACHINE}-unknown-linux-
${LIBC}
eabi
else
else
- echo ${UNAME_MACHINE}-unknown-linux-
gnu
eabihf
+ echo ${UNAME_MACHINE}-unknown-linux-
${LIBC}
eabihf
fi
fi
exit ;;
avr32*:Linux:*:*)
fi
fi
exit ;;
avr32*:Linux:*:*)
- echo ${UNAME_MACHINE}-unknown-linux-
gnu
+ echo ${UNAME_MACHINE}-unknown-linux-
${LIBC}
exit ;;
cris:Linux:*:*)
exit ;;
cris:Linux:*:*)
- echo ${UNAME_MACHINE}-axis-linux-
gnu
+ echo ${UNAME_MACHINE}-axis-linux-
${LIBC}
exit ;;
crisv32:Linux:*:*)
exit ;;
crisv32:Linux:*:*)
- echo ${UNAME_MACHINE}-axis-linux-
gnu
+ echo ${UNAME_MACHINE}-axis-linux-
${LIBC}
exit ;;
frv:Linux:*:*)
exit ;;
frv:Linux:*:*)
- echo ${UNAME_MACHINE}-unknown-linux-
gnu
+ echo ${UNAME_MACHINE}-unknown-linux-
${LIBC}
exit ;;
hexagon:Linux:*:*)
exit ;;
hexagon:Linux:*:*)
- echo ${UNAME_MACHINE}-unknown-linux-
gnu
+ echo ${UNAME_MACHINE}-unknown-linux-
${LIBC}
exit ;;
i*86:Linux:*:*)
exit ;;
i*86:Linux:*:*)
- LIBC=gnu
- eval $set_cc_for_build
- sed 's/^ //' << EOF >$dummy.c
- #ifdef __dietlibc__
- LIBC=dietlibc
- #endif
-EOF
- eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'`
- echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
+ echo ${UNAME_MACHINE}-pc-linux-${LIBC}
exit ;;
ia64:Linux:*:*)
exit ;;
ia64:Linux:*:*)
- echo ${UNAME_MACHINE}-unknown-linux-
gnu
+ echo ${UNAME_MACHINE}-unknown-linux-
${LIBC}
exit ;;
m32r*:Linux:*:*)
exit ;;
m32r*:Linux:*:*)
- echo ${UNAME_MACHINE}-unknown-linux-
gnu
+ echo ${UNAME_MACHINE}-unknown-linux-
${LIBC}
exit ;;
m68*:Linux:*:*)
exit ;;
m68*:Linux:*:*)
- echo ${UNAME_MACHINE}-unknown-linux-
gnu
+ echo ${UNAME_MACHINE}-unknown-linux-
${LIBC}
exit ;;
mips:Linux:*:* | mips64:Linux:*:*)
eval $set_cc_for_build
exit ;;
mips:Linux:*:* | mips64:Linux:*:*)
eval $set_cc_for_build
@@
-955,54
+967,63
@@
EOF
#endif
EOF
eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
#endif
EOF
eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
- test x"${CPU}" != x && { echo "${CPU}-unknown-linux-
gnu
"; exit; }
+ test x"${CPU}" != x && { echo "${CPU}-unknown-linux-
${LIBC}
"; exit; }
;;
;;
+ or1k:Linux:*:*)
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
+ exit ;;
or32:Linux:*:*)
or32:Linux:*:*)
- echo ${UNAME_MACHINE}-unknown-linux-
gnu
+ echo ${UNAME_MACHINE}-unknown-linux-
${LIBC}
exit ;;
padre:Linux:*:*)
exit ;;
padre:Linux:*:*)
- echo sparc-unknown-linux-
gnu
+ echo sparc-unknown-linux-
${LIBC}
exit ;;
parisc64:Linux:*:* | hppa64:Linux:*:*)
exit ;;
parisc64:Linux:*:* | hppa64:Linux:*:*)
- echo hppa64-unknown-linux-
gnu
+ echo hppa64-unknown-linux-
${LIBC}
exit ;;
parisc:Linux:*:* | hppa:Linux:*:*)
# Look for CPU level
case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
exit ;;
parisc:Linux:*:* | hppa:Linux:*:*)
# Look for CPU level
case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
- PA7*) echo hppa1.1-unknown-linux-
gnu
;;
- PA8*) echo hppa2.0-unknown-linux-
gnu
;;
- *) echo hppa-unknown-linux-
gnu
;;
+ PA7*) echo hppa1.1-unknown-linux-
${LIBC}
;;
+ PA8*) echo hppa2.0-unknown-linux-
${LIBC}
;;
+ *) echo hppa-unknown-linux-
${LIBC}
;;
esac
exit ;;
ppc64:Linux:*:*)
esac
exit ;;
ppc64:Linux:*:*)
- echo powerpc64-unknown-linux-
gnu
+ echo powerpc64-unknown-linux-
${LIBC}
exit ;;
ppc:Linux:*:*)
exit ;;
ppc:Linux:*:*)
- echo powerpc-unknown-linux-gnu
+ echo powerpc-unknown-linux-${LIBC}
+ exit ;;
+ ppc64le:Linux:*:*)
+ echo powerpc64le-unknown-linux-${LIBC}
+ exit ;;
+ ppcle:Linux:*:*)
+ echo powerpcle-unknown-linux-${LIBC}
exit ;;
s390:Linux:*:* | s390x:Linux:*:*)
exit ;;
s390:Linux:*:* | s390x:Linux:*:*)
- echo ${UNAME_MACHINE}-ibm-linux
+ echo ${UNAME_MACHINE}-ibm-linux
-${LIBC}
exit ;;
sh64*:Linux:*:*)
exit ;;
sh64*:Linux:*:*)
- echo ${UNAME_MACHINE}-unknown-linux-
gnu
+ echo ${UNAME_MACHINE}-unknown-linux-
${LIBC}
exit ;;
sh*:Linux:*:*)
exit ;;
sh*:Linux:*:*)
- echo ${UNAME_MACHINE}-unknown-linux-
gnu
+ echo ${UNAME_MACHINE}-unknown-linux-
${LIBC}
exit ;;
sparc:Linux:*:* | sparc64:Linux:*:*)
exit ;;
sparc:Linux:*:* | sparc64:Linux:*:*)
- echo ${UNAME_MACHINE}-unknown-linux-
gnu
+ echo ${UNAME_MACHINE}-unknown-linux-
${LIBC}
exit ;;
tile*:Linux:*:*)
exit ;;
tile*:Linux:*:*)
- echo ${UNAME_MACHINE}-unknown-linux-
gnu
+ echo ${UNAME_MACHINE}-unknown-linux-
${LIBC}
exit ;;
vax:Linux:*:*)
exit ;;
vax:Linux:*:*)
- echo ${UNAME_MACHINE}-dec-linux-
gnu
+ echo ${UNAME_MACHINE}-dec-linux-
${LIBC}
exit ;;
x86_64:Linux:*:*)
exit ;;
x86_64:Linux:*:*)
- echo ${UNAME_MACHINE}-unknown-linux-
gnu
+ echo ${UNAME_MACHINE}-unknown-linux-
${LIBC}
exit ;;
xtensa*:Linux:*:*)
exit ;;
xtensa*:Linux:*:*)
- echo ${UNAME_MACHINE}-unknown-linux-
gnu
+ echo ${UNAME_MACHINE}-unknown-linux-
${LIBC}
exit ;;
i*86:DYNIX/ptx:4*:*)
# ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
exit ;;
i*86:DYNIX/ptx:4*:*)
# ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
@@
-1235,19
+1256,21
@@
EOF
exit ;;
*:Darwin:*:*)
UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
exit ;;
*:Darwin:*:*)
UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
- case $UNAME_PROCESSOR in
- i386)
- eval $set_cc_for_build
- if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
- if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
- (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
- grep IS_64BIT_ARCH >/dev/null
- then
- UNAME_PROCESSOR="x86_64"
- fi
- fi ;;
- unknown) UNAME_PROCESSOR=powerpc ;;
- esac
+ eval $set_cc_for_build
+ if test "$UNAME_PROCESSOR" = unknown ; then
+ UNAME_PROCESSOR=powerpc
+ fi
+ if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
+ if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
+ (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
+ grep IS_64BIT_ARCH >/dev/null
+ then
+ case $UNAME_PROCESSOR in
+ i386) UNAME_PROCESSOR=x86_64 ;;
+ powerpc) UNAME_PROCESSOR=powerpc64 ;;
+ esac
+ fi
+ fi
echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
exit ;;
*:procnto*:*:* | *:QNX:[0123456789]*:*)
echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
exit ;;
*:procnto*:*:* | *:QNX:[0123456789]*:*)
This page took
0.026411 seconds
and
4
git commands to generate.