summaryrefslogtreecommitdiff
path: root/config.guess
diff options
context:
space:
mode:
authorbje <bje@138bc75d-0d04-0410-961f-82ee72b054a4>2009-11-19 22:47:13 +0000
committerbje <bje@138bc75d-0d04-0410-961f-82ee72b054a4>2009-11-19 22:47:13 +0000
commitaf3e823e16ae29e0c96f86416f960971a03e19cd (patch)
tree578d30d21b2f7860da5aaea83a0f99ec75973224 /config.guess
parenteb684f6e1eccddba8e383e7ae8e83b3e6995678e (diff)
downloadgcc-af3e823e16ae29e0c96f86416f960971a03e19cd.tar.gz
* config.guess: Update from upstream sources.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@154349 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'config.guess')
-rwxr-xr-xconfig.guess18
1 files changed, 11 insertions, 7 deletions
diff --git a/config.guess b/config.guess
index 5290569263e..d53e309f4b9 100755
--- a/config.guess
+++ b/config.guess
@@ -4,7 +4,7 @@
# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
# Free Software Foundation, Inc.
-timestamp='2009-11-08'
+timestamp='2009-11-19'
# 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
@@ -891,7 +891,15 @@ EOF
echo frv-unknown-linux-gnu
exit ;;
i*86:Linux:*:*)
- echo ${UNAME_MACHINE}-pc-linux-gnu
+ 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}"
exit ;;
ia64:Linux:*:*)
echo ${UNAME_MACHINE}-unknown-linux-gnu
@@ -918,11 +926,7 @@ EOF
#endif
#endif
EOF
- eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
- /^CPU/{
- s: ::g
- p
- }'`"
+ eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
;;
or32:Linux:*:*)