common/autoconf/boot-jdk.m4

Thu, 31 Aug 2017 15:40:18 +0800

author
aoqi
date
Thu, 31 Aug 2017 15:40:18 +0800
changeset 1133
50aaf272884f
parent 972
f3697e0783e2
parent 0
75a576e87639
child 1288
7801df19942d
permissions
-rw-r--r--

merge

aoqi@0 1 #
aoqi@0 2 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
aoqi@0 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
aoqi@0 4 #
aoqi@0 5 # This code is free software; you can redistribute it and/or modify it
aoqi@0 6 # under the terms of the GNU General Public License version 2 only, as
aoqi@0 7 # published by the Free Software Foundation. Oracle designates this
aoqi@0 8 # particular file as subject to the "Classpath" exception as provided
aoqi@0 9 # by Oracle in the LICENSE file that accompanied this code.
aoqi@0 10 #
aoqi@0 11 # This code is distributed in the hope that it will be useful, but WITHOUT
aoqi@0 12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
aoqi@0 13 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
aoqi@0 14 # version 2 for more details (a copy is included in the LICENSE file that
aoqi@0 15 # accompanied this code).
aoqi@0 16 #
aoqi@0 17 # You should have received a copy of the GNU General Public License version
aoqi@0 18 # 2 along with this work; if not, write to the Free Software Foundation,
aoqi@0 19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
aoqi@0 20 #
aoqi@0 21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
aoqi@0 22 # or visit www.oracle.com if you need additional information or have any
aoqi@0 23 # questions.
aoqi@0 24 #
aoqi@0 25
aoqi@0 26 # Execute the check given as argument, and verify the result
aoqi@0 27 # If the Boot JDK was previously found, do nothing
aoqi@0 28 # $1 A command line (typically autoconf macro) to execute
aoqi@0 29 AC_DEFUN([BOOTJDK_DO_CHECK],
aoqi@0 30 [
aoqi@0 31 if test "x$BOOT_JDK_FOUND" = xno; then
aoqi@0 32 # Now execute the test
aoqi@0 33 $1
aoqi@0 34
aoqi@0 35 # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
aoqi@0 36 if test "x$BOOT_JDK_FOUND" = xmaybe; then
aoqi@0 37 # Do we have a bin/java?
aoqi@0 38 if test ! -x "$BOOT_JDK/bin/java"; then
aoqi@0 39 AC_MSG_NOTICE([Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring])
aoqi@0 40 BOOT_JDK_FOUND=no
aoqi@0 41 else
aoqi@0 42 # Do we have a bin/javac?
aoqi@0 43 if test ! -x "$BOOT_JDK/bin/javac"; then
aoqi@0 44 AC_MSG_NOTICE([Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring])
aoqi@0 45 AC_MSG_NOTICE([(This might be an JRE instead of an JDK)])
aoqi@0 46 BOOT_JDK_FOUND=no
aoqi@0 47 else
aoqi@0 48 # Do we have an rt.jar? (On MacOSX it is called classes.jar)
aoqi@0 49 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
aoqi@0 50 AC_MSG_NOTICE([Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring])
aoqi@0 51 BOOT_JDK_FOUND=no
aoqi@0 52 else
aoqi@0 53 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
aoqi@0 54 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
aoqi@0 55
aoqi@0 56 # Extra M4 quote needed to protect [] in grep expression.
aoqi@0 57 [FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'`]
aoqi@0 58 if test "x$FOUND_VERSION_78" = x; then
aoqi@0 59 AC_MSG_NOTICE([Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring])
aoqi@0 60 AC_MSG_NOTICE([(Your Boot JDK must be version 7 or 8)])
aoqi@0 61 BOOT_JDK_FOUND=no
aoqi@0 62 else
aoqi@0 63 # We're done! :-)
aoqi@0 64 BOOT_JDK_FOUND=yes
aoqi@0 65 BASIC_FIXUP_PATH(BOOT_JDK)
aoqi@0 66 AC_MSG_CHECKING([for Boot JDK])
aoqi@0 67 AC_MSG_RESULT([$BOOT_JDK])
aoqi@0 68 AC_MSG_CHECKING([Boot JDK version])
aoqi@0 69 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '`
aoqi@0 70 AC_MSG_RESULT([$BOOT_JDK_VERSION])
aoqi@0 71 fi # end check jdk version
aoqi@0 72 fi # end check rt.jar
aoqi@0 73 fi # end check javac
aoqi@0 74 fi # end check java
aoqi@0 75 fi # end check boot jdk found
aoqi@0 76 fi
aoqi@0 77 ])
aoqi@0 78
aoqi@0 79 # Test: Is bootjdk explicitely set by command line arguments?
aoqi@0 80 AC_DEFUN([BOOTJDK_CHECK_ARGUMENTS],
aoqi@0 81 [
aoqi@0 82 if test "x$with_boot_jdk" != x; then
aoqi@0 83 BOOT_JDK=$with_boot_jdk
aoqi@0 84 BOOT_JDK_FOUND=maybe
aoqi@0 85 AC_MSG_NOTICE([Found potential Boot JDK using configure arguments])
aoqi@0 86 fi
aoqi@0 87 ])
aoqi@0 88
aoqi@0 89 # Test: Is bootjdk available from builddeps?
aoqi@0 90 AC_DEFUN([BOOTJDK_CHECK_BUILDDEPS],
aoqi@0 91 [
aoqi@0 92 BDEPS_CHECK_MODULE(BOOT_JDK, bootjdk, xxx, [BOOT_JDK_FOUND=maybe], [BOOT_JDK_FOUND=no])
aoqi@0 93 ])
aoqi@0 94
aoqi@0 95 # Test: Is $JAVA_HOME set?
aoqi@0 96 AC_DEFUN([BOOTJDK_CHECK_JAVA_HOME],
aoqi@0 97 [
aoqi@0 98 if test "x$JAVA_HOME" != x; then
aoqi@0 99 JAVA_HOME_PROCESSED="$JAVA_HOME"
aoqi@0 100 BASIC_FIXUP_PATH(JAVA_HOME_PROCESSED)
aoqi@0 101 if test ! -d "$JAVA_HOME_PROCESSED"; then
aoqi@0 102 AC_MSG_NOTICE([Your JAVA_HOME points to a non-existing directory!])
aoqi@0 103 else
aoqi@0 104 # Aha, the user has set a JAVA_HOME
aoqi@0 105 # let us use that as the Boot JDK.
aoqi@0 106 BOOT_JDK="$JAVA_HOME_PROCESSED"
aoqi@0 107 BOOT_JDK_FOUND=maybe
aoqi@0 108 AC_MSG_NOTICE([Found potential Boot JDK using JAVA_HOME])
aoqi@0 109 fi
aoqi@0 110 fi
aoqi@0 111 ])
aoqi@0 112
aoqi@0 113 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK?
aoqi@0 114 AC_DEFUN([BOOTJDK_CHECK_JAVA_IN_PATH_IS_SYMLINK],
aoqi@0 115 [
aoqi@0 116 AC_PATH_PROG(JAVAC_CHECK, javac)
aoqi@0 117 AC_PATH_PROG(JAVA_CHECK, java)
aoqi@0 118 BINARY="$JAVAC_CHECK"
aoqi@0 119 if test "x$JAVAC_CHECK" = x; then
aoqi@0 120 BINARY="$JAVA_CHECK"
aoqi@0 121 fi
aoqi@0 122 if test "x$BINARY" != x; then
aoqi@0 123 # So there is a java(c) binary, it might be part of a JDK.
aoqi@0 124 # Lets find the JDK/JRE directory by following symbolic links.
aoqi@0 125 # Linux/GNU systems often have links from /usr/bin/java to
aoqi@0 126 # /etc/alternatives/java to the real JDK binary.
aoqi@0 127 BASIC_REMOVE_SYMBOLIC_LINKS(BINARY)
aoqi@0 128 BOOT_JDK=`dirname "$BINARY"`
aoqi@0 129 BOOT_JDK=`cd "$BOOT_JDK/.."; pwd`
aoqi@0 130 if test -x "$BOOT_JDK/bin/javac" && test -x "$BOOT_JDK/bin/java"; then
aoqi@0 131 # Looks like we found ourselves an JDK
aoqi@0 132 BOOT_JDK_FOUND=maybe
aoqi@0 133 AC_MSG_NOTICE([Found potential Boot JDK using java(c) in PATH])
aoqi@0 134 fi
aoqi@0 135 fi
aoqi@0 136 ])
aoqi@0 137
aoqi@0 138 # Test: Is there a /usr/libexec/java_home? (Typically on MacOSX)
aoqi@0 139 AC_DEFUN([BOOTJDK_CHECK_LIBEXEC_JAVA_HOME],
aoqi@0 140 [
aoqi@0 141 if test -x /usr/libexec/java_home; then
aoqi@0 142 BOOT_JDK=`/usr/libexec/java_home`
aoqi@0 143 BOOT_JDK_FOUND=maybe
aoqi@0 144 AC_MSG_NOTICE([Found potential Boot JDK using /usr/libexec/java_home])
aoqi@0 145 fi
aoqi@0 146 ])
aoqi@0 147
aoqi@0 148 # Look for a jdk in the given path. If there are multiple, try to select the newest.
aoqi@0 149 # If found, set BOOT_JDK and BOOT_JDK_FOUND.
aoqi@0 150 # $1 = Path to directory containing jdk installations.
aoqi@0 151 # $2 = String to append to the found JDK directory to get the proper JDK home
aoqi@0 152 AC_DEFUN([BOOTJDK_FIND_BEST_JDK_IN_DIRECTORY],
aoqi@0 153 [
aoqi@0 154 BOOT_JDK_PREFIX="$1"
aoqi@0 155 BOOT_JDK_SUFFIX="$2"
aoqi@0 156 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
aoqi@0 157 if test "x$ALL_JDKS_FOUND" != x; then
aoqi@0 158 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
aoqi@0 159 BOOTJDK_DO_CHECK([
aoqi@0 160 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
aoqi@0 161 if test -d "$BOOT_JDK"; then
aoqi@0 162 BOOT_JDK_FOUND=maybe
aoqi@0 163 AC_MSG_NOTICE([Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)])
aoqi@0 164 fi
aoqi@0 165 ])
aoqi@0 166 done
aoqi@0 167 fi
aoqi@0 168 ])
aoqi@0 169
aoqi@0 170 # Call BOOTJDK_FIND_BEST_JDK_IN_DIRECTORY, but use the given
aoqi@0 171 # environmental variable as base for where to look.
aoqi@0 172 # $1 Name of an environmal variable, assumed to point to the Program Files directory.
aoqi@0 173 AC_DEFUN([BOOTJDK_FIND_BEST_JDK_IN_WINDOWS_VIRTUAL_DIRECTORY],
aoqi@0 174 [
aoqi@0 175 if test "x[$]$1" != x; then
aoqi@0 176 VIRTUAL_DIR="[$]$1/Java"
aoqi@0 177 BASIC_WINDOWS_REWRITE_AS_UNIX_PATH(VIRTUAL_DIR)
aoqi@0 178 BOOTJDK_FIND_BEST_JDK_IN_DIRECTORY($VIRTUAL_DIR)
aoqi@0 179 fi
aoqi@0 180 ])
aoqi@0 181
aoqi@0 182 # Test: Is there a JDK installed in default, well-known locations?
aoqi@0 183 AC_DEFUN([BOOTJDK_CHECK_WELL_KNOWN_LOCATIONS],
aoqi@0 184 [
aoqi@0 185 if test "x$OPENJDK_TARGET_OS" = xwindows; then
aoqi@0 186 BOOTJDK_DO_CHECK([BOOTJDK_FIND_BEST_JDK_IN_WINDOWS_VIRTUAL_DIRECTORY([ProgramW6432])])
aoqi@0 187 BOOTJDK_DO_CHECK([BOOTJDK_FIND_BEST_JDK_IN_WINDOWS_VIRTUAL_DIRECTORY([PROGRAMW6432])])
aoqi@0 188 BOOTJDK_DO_CHECK([BOOTJDK_FIND_BEST_JDK_IN_WINDOWS_VIRTUAL_DIRECTORY([PROGRAMFILES])])
aoqi@0 189 BOOTJDK_DO_CHECK([BOOTJDK_FIND_BEST_JDK_IN_WINDOWS_VIRTUAL_DIRECTORY([ProgramFiles])])
aoqi@0 190 BOOTJDK_DO_CHECK([BOOTJDK_FIND_BEST_JDK_IN_DIRECTORY([/cygdrive/c/Program Files/Java])])
aoqi@0 191 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then
aoqi@0 192 BOOTJDK_DO_CHECK([BOOTJDK_FIND_BEST_JDK_IN_DIRECTORY([/Library/Java/JavaVirtualMachines],[/Contents/Home])])
aoqi@0 193 BOOTJDK_DO_CHECK([BOOTJDK_FIND_BEST_JDK_IN_DIRECTORY([/System/Library/Java/JavaVirtualMachines],[/Contents/Home])])
aoqi@0 194 elif test "x$OPENJDK_TARGET_OS" = xlinux; then
aoqi@0 195 BOOTJDK_DO_CHECK([BOOTJDK_FIND_BEST_JDK_IN_DIRECTORY([/usr/lib/jvm])])
aoqi@0 196 fi
aoqi@0 197 ])
aoqi@0 198
aoqi@0 199 # Check that a command-line tool in the Boot JDK is correct
aoqi@0 200 # $1 = name of variable to assign
aoqi@0 201 # $2 = name of binary
aoqi@0 202 AC_DEFUN([BOOTJDK_CHECK_TOOL_IN_BOOTJDK],
aoqi@0 203 [
aoqi@0 204 AC_MSG_CHECKING([for $2 in Boot JDK])
aoqi@0 205 $1=$BOOT_JDK/bin/$2
aoqi@0 206 if test ! -x [$]$1; then
aoqi@0 207 AC_MSG_RESULT(not found)
aoqi@0 208 AC_MSG_NOTICE([Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk])
aoqi@0 209 AC_MSG_ERROR([Could not find $2 in the Boot JDK])
aoqi@0 210 fi
aoqi@0 211 AC_MSG_RESULT(ok)
aoqi@0 212 ])
aoqi@0 213
aoqi@0 214 ###############################################################################
aoqi@0 215 #
aoqi@0 216 # We need a Boot JDK to bootstrap the build.
aoqi@0 217 #
aoqi@0 218
aoqi@0 219 AC_DEFUN_ONCE([BOOTJDK_SETUP_BOOT_JDK],
aoqi@0 220 [
aoqi@0 221 BOOT_JDK_FOUND=no
aoqi@0 222 AC_ARG_WITH(boot-jdk, [AS_HELP_STRING([--with-boot-jdk],
aoqi@0 223 [path to Boot JDK (used to bootstrap build) @<:@probed@:>@])])
aoqi@0 224
aoqi@0 225 # We look for the Boot JDK through various means, going from more certain to
aoqi@0 226 # more of a guess-work. After each test, BOOT_JDK_FOUND is set to "yes" if
aoqi@0 227 # we detected something (if so, the path to the jdk is in BOOT_JDK). But we
aoqi@0 228 # must check if this is indeed valid; otherwise we'll continue looking.
aoqi@0 229
aoqi@0 230 # Test: Is bootjdk explicitely set by command line arguments?
aoqi@0 231 BOOTJDK_DO_CHECK([BOOTJDK_CHECK_ARGUMENTS])
aoqi@0 232 if test "x$with_boot_jdk" != x && test "x$BOOT_JDK_FOUND" = xno; then
aoqi@0 233 # Having specified an argument which is incorrect will produce an instant failure;
aoqi@0 234 # we should not go on looking
aoqi@0 235 AC_MSG_ERROR([The path given by --with-boot-jdk does not contain a valid Boot JDK])
aoqi@0 236 fi
aoqi@0 237
aoqi@0 238 # Test: Is bootjdk available from builddeps?
aoqi@0 239 BOOTJDK_DO_CHECK([BOOTJDK_CHECK_BUILDDEPS])
aoqi@0 240
aoqi@0 241 # Test: Is $JAVA_HOME set?
aoqi@0 242 BOOTJDK_DO_CHECK([BOOTJDK_CHECK_JAVA_HOME])
aoqi@0 243
aoqi@0 244 # Test: Is there a /usr/libexec/java_home? (Typically on MacOSX)
aoqi@0 245 BOOTJDK_DO_CHECK([BOOTJDK_CHECK_LIBEXEC_JAVA_HOME])
aoqi@0 246
aoqi@0 247 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK?
aoqi@0 248 BOOTJDK_DO_CHECK([BOOTJDK_CHECK_JAVA_IN_PATH_IS_SYMLINK])
aoqi@0 249
aoqi@0 250 # Test: Is there a JDK installed in default, well-known locations?
aoqi@0 251 BOOTJDK_DO_CHECK([BOOTJDK_CHECK_WELL_KNOWN_LOCATIONS])
aoqi@0 252
aoqi@0 253 # If we haven't found anything yet, we've truly lost. Give up.
aoqi@0 254 if test "x$BOOT_JDK_FOUND" = xno; then
aoqi@0 255 HELP_MSG_MISSING_DEPENDENCY([openjdk])
aoqi@0 256 AC_MSG_NOTICE([Could not find a valid Boot JDK. $HELP_MSG])
aoqi@0 257 AC_MSG_NOTICE([This might be fixed by explicitely setting --with-boot-jdk])
aoqi@0 258 AC_MSG_ERROR([Cannot continue])
aoqi@0 259 fi
aoqi@0 260
aoqi@0 261 # Setup proper paths for what we found
aoqi@0 262 BOOT_RTJAR="$BOOT_JDK/jre/lib/rt.jar"
aoqi@0 263 if test ! -f "$BOOT_RTJAR"; then
aoqi@0 264 # On MacOSX it is called classes.jar
aoqi@0 265 BOOT_RTJAR="$BOOT_JDK/../Classes/classes.jar"
aoqi@0 266 if test -f "$BOOT_RTJAR"; then
aoqi@0 267 # Remove the ..
aoqi@0 268 BOOT_RTJAR="`cd ${BOOT_RTJAR%/*} && pwd`/${BOOT_RTJAR##*/}"
aoqi@0 269 fi
aoqi@0 270 fi
aoqi@0 271 BOOT_TOOLSJAR="$BOOT_JDK/lib/tools.jar"
aoqi@0 272 BOOT_JDK="$BOOT_JDK"
aoqi@0 273 AC_SUBST(BOOT_RTJAR)
aoqi@0 274 AC_SUBST(BOOT_TOOLSJAR)
aoqi@0 275 AC_SUBST(BOOT_JDK)
aoqi@0 276
aoqi@0 277 # Setup tools from the Boot JDK.
aoqi@0 278 BOOTJDK_CHECK_TOOL_IN_BOOTJDK(JAVA,java)
aoqi@0 279 BOOTJDK_CHECK_TOOL_IN_BOOTJDK(JAVAC,javac)
aoqi@0 280 BOOTJDK_CHECK_TOOL_IN_BOOTJDK(JAVAH,javah)
aoqi@0 281 BOOTJDK_CHECK_TOOL_IN_BOOTJDK(JAVAP,javap)
aoqi@0 282 BOOTJDK_CHECK_TOOL_IN_BOOTJDK(JAR,jar)
aoqi@0 283 BOOTJDK_CHECK_TOOL_IN_BOOTJDK(RMIC,rmic)
aoqi@0 284 BOOTJDK_CHECK_TOOL_IN_BOOTJDK(NATIVE2ASCII,native2ascii)
aoqi@0 285
aoqi@0 286 # Finally, set some other options...
aoqi@0 287
aoqi@0 288 # When compiling code to be executed by the Boot JDK, force jdk7 compatibility.
aoqi@0 289 BOOT_JDK_SOURCETARGET="-source 7 -target 7"
aoqi@0 290 AC_SUBST(BOOT_JDK_SOURCETARGET)
aoqi@0 291 AC_SUBST(JAVAC_FLAGS)
aoqi@0 292 ])
aoqi@0 293
aoqi@0 294 AC_DEFUN_ONCE([BOOTJDK_SETUP_BOOT_JDK_ARGUMENTS],
aoqi@0 295 [
aoqi@0 296 ##############################################################################
aoqi@0 297 #
aoqi@0 298 # Specify options for anything that is run with the Boot JDK.
aoqi@0 299 #
aoqi@0 300 AC_ARG_WITH(boot-jdk-jvmargs, [AS_HELP_STRING([--with-boot-jdk-jvmargs],
aoqi@0 301 [specify JVM arguments to be passed to all invocations of the Boot JDK, overriding the default values,
aoqi@0 302 e.g --with-boot-jdk-jvmargs="-Xmx8G -enableassertions"])])
aoqi@0 303
aoqi@0 304 if test "x$with_boot_jdk_jvmargs" = x; then
aoqi@0 305 # Not all JVM:s accept the same arguments on the command line.
aoqi@0 306 # OpenJDK specific increase in thread stack for JDK build,
aoqi@0 307 # well more specifically, when running javac.
aoqi@0 308 if test "x$BUILD_NUM_BITS" = x32; then
aoqi@0 309 STACK_SIZE=768
aoqi@0 310 else
aoqi@0 311 # Running Javac on a JVM on a 64-bit machine, the stack takes more space
aoqi@0 312 # since 64-bit pointers are pushed on the stach. Apparently, we need
aoqi@0 313 # to increase the stack space when javacing the JDK....
aoqi@0 314 STACK_SIZE=1536
aoqi@0 315 fi
aoqi@0 316
aoqi@0 317 # Minimum amount of heap memory.
aoqi@0 318 ADD_JVM_ARG_IF_OK([-Xms64M],boot_jdk_jvmargs,[$JAVA])
aoqi@0 319 if test "x$OPENJDK_TARGET_OS" = "xmacosx" || test "x$OPENJDK_TARGET_CPU" = "xppc64" ; then
aoqi@0 320 # Why does macosx need more heap? Its the huge JDK batch.
aoqi@0 321 ADD_JVM_ARG_IF_OK([-Xmx1600M],boot_jdk_jvmargs,[$JAVA])
aoqi@0 322 else
aoqi@0 323 ADD_JVM_ARG_IF_OK([-Xmx1100M],boot_jdk_jvmargs,[$JAVA])
aoqi@0 324 fi
aoqi@0 325 # When is adding -client something that speeds up the JVM?
aoqi@0 326 # ADD_JVM_ARG_IF_OK([-client],boot_jdk_jvmargs,[$JAVA])
aoqi@0 327 ADD_JVM_ARG_IF_OK([-XX:PermSize=32m],boot_jdk_jvmargs,[$JAVA])
aoqi@0 328 ADD_JVM_ARG_IF_OK([-XX:MaxPermSize=160m],boot_jdk_jvmargs,[$JAVA])
aoqi@0 329 ADD_JVM_ARG_IF_OK([-XX:ThreadStackSize=$STACK_SIZE],boot_jdk_jvmargs,[$JAVA])
aoqi@0 330 # Disable special log output when a debug build is used as Boot JDK...
aoqi@0 331 ADD_JVM_ARG_IF_OK([-XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput],boot_jdk_jvmargs,[$JAVA])
aoqi@0 332 fi
aoqi@0 333
aoqi@0 334 AC_SUBST(BOOT_JDK_JVMARGS, $boot_jdk_jvmargs)
aoqi@0 335 ])

mercurial