From: Richard Kenner Date: Thu, 27 Apr 1995 13:22:29 +0000 (-0400) Subject: (i[34]86:*:3.2:*) test for /usr/options/cb.name before calling uname. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=06fbe18f32317bd52e1213de14ae473bd7ca0ac7;p=gcc.git (i[34]86:*:3.2:*) test for /usr/options/cb.name before calling uname. From-SVN: r9505 --- diff --git a/gcc/config.guess b/gcc/config.guess index dd5181a2bd3..d27eee7fd06 100755 --- a/gcc/config.guess +++ b/gcc/config.guess @@ -329,13 +329,13 @@ EOF fi exit 0 ;; i[34]86:*:3.2:*) - if /bin/uname -X 2>/dev/null >/dev/null ; then + if test -f /usr/options/cb.name; then + UNAME_REL=`sed -n 's/.*Version //p' /dev/null >/dev/null ; then UNAME_REL=`(/bin/uname -X|egrep Release|sed -e 's/.*= //')` (/bin/uname -X|egrep i80486 >/dev/null) && UNAME_MACHINE=i486 echo ${UNAME_MACHINE}-unknown-sco$UNAME_REL - elif test -f /usr/options/cb.name; then - UNAME_REL=`sed -n 's/.*Version //p'