From 9f8f955afa4a224b630d7e21f22115e78c89eca5 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Mon, 30 May 1994 01:28:45 +0000 Subject: [PATCH] $OSREV is now an int --- aclocal.m4 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/aclocal.m4 b/aclocal.m4 index 12a482088..a4973b108 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -90,7 +90,8 @@ AC_BEFORE([$0], [AC_PROGRAM_CHECK]) if test -n "$UNAMEPROG"; then echo "checking OS based on uname(1)" OS=`$UNAMEPROG -s` - OSREV=`$UNAMEPROG -r` + # this is yucky but we want to make sure $OSREV is an int... + OSREV=`$UNAMEPROG -r | $SEDPROG -e 's/^[A-z \.0]*//' -e 's/\..*//'` if test "$OS" = "SunOS" -a "$OSREV" -ge 5 ; then OS="solaris" -- 2.50.1