common/autoconf/boot-jdk.m4
changeset 33950 7757ee805a0c
parent 32921 8e0250dfa145
parent 33945 221ef2f7c09f
child 33951 cc5ca0725e70
--- a/common/autoconf/boot-jdk.m4	Thu Oct 22 08:47:39 2015 -0700
+++ b/common/autoconf/boot-jdk.m4	Sun Oct 25 19:33:00 2015 -0700
@@ -77,7 +77,7 @@
           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
 
           # Extra M4 quote needed to protect [] in grep expression.
-          [FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`]
+          [FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'`]
           if test "x$FOUND_CORRECT_VERSION" = x; then
             AC_MSG_NOTICE([Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring])
             AC_MSG_NOTICE([(Your Boot JDK must be version 8 or 9)])