summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gnu.org>1998-02-03 18:27:31 +0000
committerRichard Kenner <kenner@gnu.org>1998-02-03 18:27:31 +0000
commitc207e76a00159593b07d5d2023c0aeff31e23fab (patch)
treeb254262747f09d6700040aa93d89e261f2a4b447
parent862c04332d7ff52e9cb048eb385db8b2aad00932 (diff)
downloademacs-c207e76a00159593b07d5d2023c0aeff31e23fab.tar.gz
Add support for Linux/ARM.libc-980213libc-980212
-rwxr-xr-xconfig.guess7
1 files changed, 7 insertions, 0 deletions
diff --git a/config.guess b/config.guess
index b4bd35d6c2a..30230b3dfe9 100755
--- a/config.guess
+++ b/config.guess
@@ -493,6 +493,12 @@ EOF
echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
exit 0 ;;
*:Linux:*:*)
+ # uname on the ARM produces all sorts of strangeness, and we need to
+ # filter it out.
+ case "$UNAME_MACHINE" in
+ arm* | sa110*) UNAME_MACHINE="arm" ;;
+ esac
+
# The BFD linker knows what the default object file format is, so
# first see if it will tell us.
ld_help_string=`ld --help 2>&1`
@@ -506,6 +512,7 @@ EOF
i?86linux) echo "${UNAME_MACHINE}-pc-linux-gnuaout" ; exit 0 ;;
i?86coff) echo "${UNAME_MACHINE}-pc-linux-gnucoff" ; exit 0 ;;
sparclinux) echo "${UNAME_MACHINE}-unknown-linux-gnuaout" ; exit 0 ;;
+ armlinux) echo "${UNAME_MACHINE}-unknown-linux-gnuaout" ; exit 0 ;;
m68klinux) echo "${UNAME_MACHINE}-unknown-linux-gnuaout" ; exit 0 ;;
elf32ppc) echo "powerpc-unknown-linux-gnu" ; exit 0 ;;
esac