changeset 16800:d250966726a4

Recognize mips-unknown-linux-gnu
author Ian Lance Taylor <ian@cygnus.com>
date Tue, 31 Dec 1996 20:51:53 +0000
parents 7646e4786008
children 2ea24cdb1d83
files config.guess
diffstat 1 files changed, 17 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/config.guess	Tue Dec 31 20:47:53 1996 +0000
+++ b/config.guess	Tue Dec 31 20:51:53 1996 +0000
@@ -422,6 +422,23 @@
 	  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.