make/autoconf/basics.m4
changeset 51822 f3c1945fa8aa
parent 51676 5a1be00ea4f6
child 51824 9777d724ace8
--- a/make/autoconf/basics.m4	Thu Sep 20 18:38:34 2018 +0200
+++ b/make/autoconf/basics.m4	Thu Sep 20 18:39:53 2018 +0200
@@ -168,7 +168,7 @@
 [
   $ECHO "Check if jvm arg is ok: $1" >&AS_MESSAGE_LOG_FD
   $ECHO "Command: $3 $1 -version" >&AS_MESSAGE_LOG_FD
-  OUTPUT=`$3 $1 -version 2>&1`
+  OUTPUT=`$3 $1 $USER_BOOT_JDK_OPTIONS -version 2>&1`
   FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn`
   FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""`
   if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then