summaryrefslogtreecommitdiff
path: root/config.guess
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@cygnus.com>1996-12-31 20:51:53 +0000
committerIan Lance Taylor <ian@cygnus.com>1996-12-31 20:51:53 +0000
commitadce21dda7a2465dc96d27dce67433de0cf14fe0 (patch)
tree0e3e42604933579d6363256625881af81f857fd4 /config.guess
parent8860050c7a32664c41036a17f1b98ace4a6b206d (diff)
downloademacs-adce21dda7a2465dc96d27dce67433de0cf14fe0.tar.gz
Recognize mips-unknown-linux-gnu
Diffstat (limited to 'config.guess')
-rwxr-xr-xconfig.guess17
1 files changed, 17 insertions, 0 deletions
diff --git a/config.guess b/config.guess
index 3522a0876ae..59798a91efc 100755
--- a/config.guess
+++ b/config.guess
@@ -422,6 +422,23 @@ EOF
echo alpha-unknown-linux-gnu ; exit 0
elif test "${UNAME_MACHINE}" = "sparc" ; then
echo sparc-unknown-linux-gnu ; exit 0
+ elif test "${UNAME_MACHINE}" = "mips" ; then
+ cat >dummy.c <<EOF
+main(argc, argv)
+int argc;
+char *argv[];
+{
+#ifdef __MIPSEB__
+ printf ("%s-unknown-linux-gnu\n", argv[1]);
+#endif
+#ifdef __MIPSEL__
+ printf ("%sel-unknown-linux-gnu\n", argv[1]);
+#endif
+ return 0;
+}
+EOF
+ ${CC-cc} dummy.c -o dummy 2>/dev/null && ./dummy "${UNAME_MACHINE}" && rm dummy.c dummy && exit 0
+ rm -f dummy.c dummy
else
# Either a pre-BFD a.out linker (linux-gnuoldld) or one that does not give us
# useful --help. Gcc wants to distinguish between linux-gnuoldld and linux-gnuaout.