From 2fada0f81b889e4daffefa87ea71fcc599d92f8a Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Thu, 13 Apr 1995 17:19:07 +0000 Subject: [PATCH] isc and riscos changes --- aclocal.m4 | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/aclocal.m4 b/aclocal.m4 index 6dcce8d7f..0a4e3e5fc 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -153,11 +153,23 @@ if test -n "$UNAMEPROG"; then echo "checking OS based on uname(1)" OS="unknown" OS=`$UNAMEPROG -s` + # some OS's set -s the same as -n (BROKEN!!!) + if test "$OS" = `$UNAMEPROG -n`; then + # evil hack for ISC unix (svr4) + if test "`$UNAMEPROG -m`" = "i386"; then + OS="isc" + else + OS=`$UNAMEPROG -v` + fi + fi + # this is yucky but we want to make sure $OSREV is an int... OSREV=`$UNAMEPROG -r | $SEDPROG -e 's/^[[ \.0A-z]]*//' -e 's/\..*//'` if test "$OS" = "SunOS" -a "$OSREV" -ge 5 ; then OS="solaris" + elif test "$OS" = "UMIPS" + OS="riscos" fi else if test -z "$OS"; then