* source.c (print_source_lines): for DOS interoperability; don't
[binutils-gdb.git] / config.sub
index 5d2c138b5daeec4b1f2d86f21df744d555f5175d..93bbf9026f3cc462442c9be46fda959cbf002380 100755 (executable)
@@ -46,7 +46,7 @@ case $1 in
 esac
 
 # Separate what the user gave into CPU-COMPANY and OS (if any).
-basic_machine=`echo $1 | sed 's/-[^-]*$//'`
+basic_machine=`echo $1 | sed 's/-[^-]+$//'`
 if [ $basic_machine != $1 ]
 then os=`echo $1 | sed 's/.*-/-/'`
 else os=; fi
@@ -90,12 +90,12 @@ esac
 # Decode aliases for certain CPU-COMPANY combinations.
 case $basic_machine in
        # Recognize the basic CPU types with without company name.
-       tahoe | i386 | i860 | m68k | m68000 | m88k | ns32k | arm | pyramid \
+       tahoe | i386 | i860 | m68k | m680[01234]0 | m88k | ns32k | arm | pyramid \
                | tron | a29k | 580 | i960 | h8300 | v70)
                basic_machine=$basic_machine-unknown
                ;;
        # Recognize the basic CPU types with with company name.
-       vax-* | tahoe-* | i386-* | i860-* | m68k-* | m68000-* | m88k-* \
+       vax-* | tahoe-* | i386-* | i860-* | m68k-* | m680[01234]0-* | m88k-* \
              | sparc-* | ns32k-* | alliant-* | arm-* | c[123]* \
              | mips-* | pyramid-* | tron-* | a29k-* | romp-* | rs6000-* \
              | none-* | 580-* | cray2-* | h8300-* | i960-* | xmp-* | ymp-* \
@@ -151,6 +151,10 @@ case $basic_machine in
                basic_machine=i386-unknown
                os=-scosysv322
                ;;
+       go32 | i386-go32)
+               basic_machine=i386-unknown
+               os=-go32
+               ;;
        i386-isc* | isc)
                basic_machine=i386-unknown
                os=-iscsysv
@@ -280,7 +284,7 @@ case $basic_machine in
                ;;
        next)
                basic_machine=m68k-next
-               os=-sysv
+               os=-bsd
                ;;
        hp9k3[2-9][0-9])
                basic_machine=m68k-hp
@@ -377,9 +381,26 @@ case $basic_machine in
                basic_machine=a29k-amd
                os=-ebmon
                ;;
-       h8300hds)
+
+       h8300hms)
+               basic_machine=h8300-hitachi
+               os=-hms
+               ;;
+       udi29k)
+               basic_machine=a29k-amd
+               os=-udi
+               ;;
+       a29khif)
+               basic_machine=a29k-amd
+               os=-udi
+               ;;
+       sa29200)
+               basic_machine=a29k-amd
+               os=-udi
+               ;;
+       h8300xray)
                basic_machine=h8300-hitachi
-               os=-hds
+               os=-xray
                ;;
        harris)
                basic_machine=m88k-harris
@@ -441,6 +462,11 @@ case $basic_machine in
                basic_machine=m68k-none
                os=-os68k
                ;;
+       sparclite)
+               basic_machine=sparclite-fujitsu
+               os=-none
+               ;;
+
        none)
                basic_machine=none-none
                os=-none
@@ -480,19 +506,20 @@ case $os in
        # First accept the basic system types.
        # The portable systems comes first.
        # Each alternative must end in a *, to match a version number.
-       -bsd* | -sysv* | -mach* | -minix* | -genix* | -ultrix* \
+       -bsd* | -sysv* | -mach* | -minix* | -genix* | -ultrix* | -aout \
              | -vms* | -sco* | -esix* | -isc* | -aix* | -sunos* | -hpux* \
              | -unos* | -osf* | -v88r* | -luna* | -dgux* | -solari* | -sym* \
-             | -amigados* | -msdos* | -none* | -os68k* | -irix* \
-             | -nindy* | -vxworks* | -ebmon* | -hds* | -m88kbcs*)
-               ;;
+             | -newsos | -amigados* | -msdos* | -none* | -os68k* | -irix* \
+             | -nindy* | -vxworks* | -ebmon* | -udi | -hms* | -xray | -m88kbcs* | -go32)
+       ;;
 # start-sanitize-v9
        -v7 | -v9 | -hal32 | -hal64) ;;
 # end-sanitize-v9
 
-       -newsos*)
-               os=-bsd
-               ;;
+# Note that readline checks for newsos
+#      -newsos*)
+#              os=-bsd
+#              ;;
        -osfrose*)
                os=-osf
                ;;