Add Linux and hp300bsd. Tweak SCO.
authorPer Bothner <per@bothner.com>
Wed, 20 Jan 1993 22:56:42 +0000 (22:56 +0000)
committerPer Bothner <per@bothner.com>
Wed, 20 Jan 1993 22:56:42 +0000 (22:56 +0000)
guess-systype

index 3aebe311b9c52ad2be48b3b4e0d060b40f5eec4c..c192834723cefcbd62a4e54ec9c174b63ea87c23 100755 (executable)
@@ -49,8 +49,17 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
     9000/8??:HP-UX:*:*)
        echo hppa1.0-hp-hpux
        exit 0 ;;
-    i[34]86:*:3.2:[2-9]*)
-       echo ${UNAME_MACHINE}-unknown-sco3.2v${UNAME_VERSION}
+    i[34]86:Linux:*:*)
+       echo ${UNAME_MACHINE}-unknown-linux
+       exit 0 ;;
+    i[34]86:*:3.2:*)
+       if uname -X 2>/dev/null >/dev/null ; then
+               UNAME_REL=`(uname -X|egrep Release|sed -e 's/.*= //')`
+               (uname -X|egrep i80486 >/dev/null) && UNAME_MACHINE=i486
+               echo ${UNAME_MACHINE}-unknown-sco$UNAME_REL
+       else
+               echo ${UNAME_MACHINE}-unknown-sysv3.2
+       fi
        exit 0 ;;
 esac
 
@@ -65,6 +74,9 @@ main()
 #else
   printf("m68k-sony-newsos\n"); exit(0);
 #endif
+#endif
+#if defined(hp300) && !defined(hpux)
+  printf("m68k-hp-bsd\n"); exit(0);
 #endif
   exit (1);
 }