aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xguess-systype16
1 files changed, 14 insertions, 2 deletions
diff --git a/guess-systype b/guess-systype
index 3aebe31..c192834 100755
--- a/guess-systype
+++ b/guess-systype
@@ -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
@@ -66,6 +75,9 @@ main()
printf("m68k-sony-newsos\n"); exit(0);
#endif
#endif
+#if defined(hp300) && !defined(hpux)
+ printf("m68k-hp-bsd\n"); exit(0);
+#endif
exit (1);
}
EOF