OSDN Git Service

Fix for os version handling.
authorBruce Momjian <bruce@momjian.us>
Wed, 6 Aug 1997 03:33:45 +0000 (03:33 +0000)
committerBruce Momjian <bruce@momjian.us>
Wed, 6 Aug 1997 03:33:45 +0000 (03:33 +0000)
src/configure
src/configure.in

index c264578..400aa4c 100755 (executable)
@@ -642,11 +642,11 @@ starts 'checking host system type...'
 EOT
        TEMPLATE=generic
        GUESS=`grep "$host_os" template/.similar 2>/dev/null`
-       if test $GUESS
-       then    host_os_no_ver=`grep "$host_os" | sed 's/0-9.*$//'`
+       if test ! "$GUESS"
+       then    host_os_no_ver=`echo "$host_os" | sed 's/[0-9.]*$//'`
                GUESS=`grep "$host_os_no_ver" template/.similar 2>/dev/null`
        fi
-       if test $GUESS
+       if test "$GUESS"
        then
                TEMPLATE=`echo $GUESS | sed 's/.*=//'`
        fi
index 989123e..2c60ff9 100644 (file)
@@ -80,11 +80,11 @@ starts 'checking host system type...'
 EOT
        TEMPLATE=generic
        GUESS=`grep "$host_os" template/.similar 2>/dev/null`
-       if test $GUESS
-       then    host_os_no_ver=`grep "$host_os" | sed 's/[0-9.]*$//'`
+       if test ! "$GUESS"
+       then    host_os_no_ver=`echo "$host_os" | sed 's/[0-9.]*$//'`
                GUESS=`grep "$host_os_no_ver" template/.similar 2>/dev/null`
        fi
-       if test $GUESS
+       if test "$GUESS"
        then
                TEMPLATE=`echo $GUESS | sed 's/.*=//'`
        fi