summaryrefslogtreecommitdiff
path: root/config.sub
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@cygnus.com>1996-12-31 20:54:33 +0000
committerIan Lance Taylor <ian@cygnus.com>1996-12-31 20:54:33 +0000
commit3b30bfae2d013605416b8a3ddcc5bb1e4460278b (patch)
treefd822f0491ba4827832faeb24e9122e0ee127f39 /config.sub
parentadce21dda7a2465dc96d27dce67433de0cf14fe0 (diff)
downloademacs-3b30bfae2d013605416b8a3ddcc5bb1e4460278b.tar.gz
Handle mips-unknown-linux-gnulibc-970103libc-970102libc-970101
Diffstat (limited to 'config.sub')
-rwxr-xr-xconfig.sub14
1 files changed, 13 insertions, 1 deletions
diff --git a/config.sub b/config.sub
index 0432524944d..cd342535401 100755
--- a/config.sub
+++ b/config.sub
@@ -389,6 +389,14 @@ case $basic_machine in
miniframe)
basic_machine=m68000-convergent
;;
+ mipsel*-linux*)
+ basic_machine=mipsel-unknown
+ os=-linux
+ ;;
+ mips*-linux*)
+ basic_machine=mips-unknown
+ os=-linux
+ ;;
mips3*-*)
basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
;;
@@ -607,7 +615,11 @@ case $basic_machine in
# Here we handle the default manufacturer of certain CPU types. It is in
# some cases the only manufacturer, in others, it is the most popular.
mips)
- basic_machine=mips-mips
+ if [ x$os = x-linux ]; then
+ basic_machine=mips-unknown
+ else
+ basic_machine=mips-mips
+ fi
;;
romp)
basic_machine=romp-ibm