* config.sub: Complain if no argument is given. Added support for 386bsd as OS
authorKen Raeburn <raeburn@cygnus>
Fri, 9 Oct 1992 01:44:03 +0000 (01:44 +0000)
committerKen Raeburn <raeburn@cygnus>
Fri, 9 Oct 1992 01:44:03 +0000 (01:44 +0000)
and target alias.

ChangeLog
config.sub

index 478a09a..a79593c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Thu Oct  8 18:41:45 1992  Ken Raeburn  (raeburn@cygnus.com)
+
+       * config.sub: Complain if no argument is given.  Added support for
+       386bsd as OS and target alias.
+
 Thu Oct  8 15:07:22 1992  Ian Lance Taylor  (ian@cygnus.com)
 
        * Makefile.in (XTRAFLAGS): include newlib directories if
index 8e7227a..7639514 100755 (executable)
 #      CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
 # it is wrong to echo any other type of specification
 
+if [ x$1 = x ]
+then
+       echo Configuration name missing. 1>&2
+       echo "Usage: $0 CPU-MFR-OPSYS" 1>&2
+       echo "or     $0 ALIAS" 1>&2
+       echo where ALIAS is a recognized configuration type. 1>&2
+       exit 1
+fi
+
 # First pass through any local machine types.
 case $1 in
        *local*)
@@ -192,6 +201,10 @@ case $basic_machine in
                basic_machine=i486-unknown
                os=-sysv
                ;;
+       386bsd)
+               basic_machine=i386-unknown
+               os=-bsd
+               ;;
        spur)
                basic_machine=spur-unknown
                ;;
@@ -618,6 +631,9 @@ case $os in
        -aos*)
                os=-bsd
                ;;
+       -386bsd)
+               os=-bsd
+               ;;
        -ctix* | -uts*)
                os=-sysv
                ;;