From: Per Bothner Date: Wed, 20 Jan 1993 22:56:42 +0000 (+0000) Subject: Add Linux and hp300bsd. Tweak SCO. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9f2cd205e86fb631343d9cdee3b7826610afa126;p=binutils-gdb.git Add Linux and hp300bsd. Tweak SCO. --- diff --git a/guess-systype b/guess-systype index 3aebe311b9c..c192834723c 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 @@ -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); }