< prev index next >

make/autoconf/hotspot.m4

Print this page




 324 
 325   if HOTSPOT_CHECK_JVM_FEATURE(jvmci) && ! (HOTSPOT_CHECK_JVM_FEATURE(compiler1) || HOTSPOT_CHECK_JVM_FEATURE(compiler2)); then
 326     AC_MSG_ERROR([Specified JVM feature 'jvmci' requires feature 'compiler2' or 'compiler1'])
 327   fi
 328 
 329   if HOTSPOT_CHECK_JVM_FEATURE(cmsgc) && ! HOTSPOT_CHECK_JVM_FEATURE(serialgc); then
 330     AC_MSG_ERROR([Specified JVM feature 'cmsgc' requires feature 'serialgc'])
 331   fi
 332 
 333   # Enable JFR by default, except for Zero, linux-sparcv9 and on minimal.
 334   if ! HOTSPOT_CHECK_JVM_VARIANT(zero); then
 335     if test "x$OPENJDK_TARGET_OS" != xaix; then
 336       if test "x$OPENJDK_TARGET_OS" != xlinux || test "x$OPENJDK_TARGET_CPU" != xsparcv9; then
 337         NON_MINIMAL_FEATURES="$NON_MINIMAL_FEATURES jfr"
 338       fi
 339     fi
 340   fi
 341 
 342   # Only enable Shenandoah on supported arches
 343   AC_MSG_CHECKING([if shenandoah can be built])
 344   if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86" || test "x$OPENJDK_TARGET_CPU" = "xaarch64" ; then
 345     AC_MSG_RESULT([yes])
 346   else
 347     DISABLED_JVM_FEATURES="$DISABLED_JVM_FEATURES shenandoahgc"
 348     AC_MSG_RESULT([no, platform not supported])
 349   fi
 350 
 351   # Only enable ZGC on supported platforms
 352   AC_MSG_CHECKING([if zgc can be built])
 353   if (test "x$OPENJDK_TARGET_OS" = "xlinux" && test "x$OPENJDK_TARGET_CPU" = "xx86_64") || \
 354      (test "x$OPENJDK_TARGET_OS" = "xlinux" && test "x$OPENJDK_TARGET_CPU" = "xaarch64"); then
 355     AC_MSG_RESULT([yes])
 356   else
 357     DISABLED_JVM_FEATURES="$DISABLED_JVM_FEATURES zgc"
 358     AC_MSG_RESULT([no, platform not supported])
 359   fi
 360 
 361   # Disable unsupported GCs for Zero
 362   if HOTSPOT_CHECK_JVM_VARIANT(zero); then
 363     DISABLED_JVM_FEATURES="$DISABLED_JVM_FEATURES epsilongc g1gc zgc shenandoahgc"
 364   fi
 365 
 366   # Turn on additional features based on other parts of configure
 367   if test "x$INCLUDE_DTRACE" = "xtrue"; then
 368     JVM_FEATURES="$JVM_FEATURES dtrace"
 369   else
 370     if HOTSPOT_CHECK_JVM_FEATURE(dtrace); then
 371       AC_MSG_ERROR([To enable dtrace, you must use --enable-dtrace])
 372     fi
 373   fi
 374 


 376     JVM_FEATURES="$JVM_FEATURES static-build"
 377   else
 378     if HOTSPOT_CHECK_JVM_FEATURE(static-build); then
 379       AC_MSG_ERROR([To enable static-build, you must use --enable-static-build])
 380     fi
 381   fi
 382 
 383   if ! HOTSPOT_CHECK_JVM_VARIANT(zero); then
 384     if HOTSPOT_CHECK_JVM_FEATURE(zero); then
 385       AC_MSG_ERROR([To enable zero, you must use --with-jvm-variants=zero])
 386     fi
 387   fi
 388 
 389   AC_MSG_CHECKING([if jvmci module jdk.internal.vm.ci should be built])
 390   # Check if jvmci is diabled
 391   if HOTSPOT_IS_JVM_FEATURE_DISABLED(jvmci); then
 392     AC_MSG_RESULT([no, forced])
 393     JVM_FEATURES_jvmci=""
 394     INCLUDE_JVMCI="false"
 395   else
 396     # Only enable jvmci on x86_64 and aarch64
 397     if test "x$OPENJDK_TARGET_CPU" = "xx86_64" || \

 398        test "x$OPENJDK_TARGET_CPU" = "xaarch64" ; then
 399       AC_MSG_RESULT([yes])
 400       JVM_FEATURES_jvmci="jvmci"
 401       INCLUDE_JVMCI="true"
 402     else
 403       AC_MSG_RESULT([no])
 404       JVM_FEATURES_jvmci=""
 405       INCLUDE_JVMCI="false"
 406       if HOTSPOT_CHECK_JVM_FEATURE(jvmci); then
 407         AC_MSG_ERROR([JVMCI is currently not supported on this platform.])
 408       fi
 409     fi
 410   fi
 411 
 412   AC_SUBST(INCLUDE_JVMCI)
 413 
 414   AC_MSG_CHECKING([if graal module jdk.internal.vm.compiler should be built])
 415   # Check if graal is diabled
 416   if HOTSPOT_IS_JVM_FEATURE_DISABLED(graal); then
 417     AC_MSG_RESULT([no, forced])




 324 
 325   if HOTSPOT_CHECK_JVM_FEATURE(jvmci) && ! (HOTSPOT_CHECK_JVM_FEATURE(compiler1) || HOTSPOT_CHECK_JVM_FEATURE(compiler2)); then
 326     AC_MSG_ERROR([Specified JVM feature 'jvmci' requires feature 'compiler2' or 'compiler1'])
 327   fi
 328 
 329   if HOTSPOT_CHECK_JVM_FEATURE(cmsgc) && ! HOTSPOT_CHECK_JVM_FEATURE(serialgc); then
 330     AC_MSG_ERROR([Specified JVM feature 'cmsgc' requires feature 'serialgc'])
 331   fi
 332 
 333   # Enable JFR by default, except for Zero, linux-sparcv9 and on minimal.
 334   if ! HOTSPOT_CHECK_JVM_VARIANT(zero); then
 335     if test "x$OPENJDK_TARGET_OS" != xaix; then
 336       if test "x$OPENJDK_TARGET_OS" != xlinux || test "x$OPENJDK_TARGET_CPU" != xsparcv9; then
 337         NON_MINIMAL_FEATURES="$NON_MINIMAL_FEATURES jfr"
 338       fi
 339     fi
 340   fi
 341 
 342   # Only enable Shenandoah on supported arches
 343   AC_MSG_CHECKING([if shenandoah can be built])
 344   if test "x$OPENJDK_TARGET_CPU" = "xx86_64" || test "x$OPENJDK_TARGET_CPU" = "xaarch64" ; then
 345     AC_MSG_RESULT([yes])
 346   else
 347     DISABLED_JVM_FEATURES="$DISABLED_JVM_FEATURES shenandoahgc"
 348     AC_MSG_RESULT([no, platform not supported])
 349   fi
 350 
 351   # Only enable ZGC on supported platforms
 352   AC_MSG_CHECKING([if zgc can be built])
 353   if test "x$OPENJDK_TARGET_OS" = "xlinux" && test "x$OPENJDK_TARGET_CPU" = "xx86_64"; then

 354     AC_MSG_RESULT([yes])
 355   else
 356     DISABLED_JVM_FEATURES="$DISABLED_JVM_FEATURES zgc"
 357     AC_MSG_RESULT([no, platform not supported])
 358   fi
 359 
 360   # Disable unsupported GCs for Zero
 361   if HOTSPOT_CHECK_JVM_VARIANT(zero); then
 362     DISABLED_JVM_FEATURES="$DISABLED_JVM_FEATURES epsilongc g1gc zgc shenandoahgc"
 363   fi
 364 
 365   # Turn on additional features based on other parts of configure
 366   if test "x$INCLUDE_DTRACE" = "xtrue"; then
 367     JVM_FEATURES="$JVM_FEATURES dtrace"
 368   else
 369     if HOTSPOT_CHECK_JVM_FEATURE(dtrace); then
 370       AC_MSG_ERROR([To enable dtrace, you must use --enable-dtrace])
 371     fi
 372   fi
 373 


 375     JVM_FEATURES="$JVM_FEATURES static-build"
 376   else
 377     if HOTSPOT_CHECK_JVM_FEATURE(static-build); then
 378       AC_MSG_ERROR([To enable static-build, you must use --enable-static-build])
 379     fi
 380   fi
 381 
 382   if ! HOTSPOT_CHECK_JVM_VARIANT(zero); then
 383     if HOTSPOT_CHECK_JVM_FEATURE(zero); then
 384       AC_MSG_ERROR([To enable zero, you must use --with-jvm-variants=zero])
 385     fi
 386   fi
 387 
 388   AC_MSG_CHECKING([if jvmci module jdk.internal.vm.ci should be built])
 389   # Check if jvmci is diabled
 390   if HOTSPOT_IS_JVM_FEATURE_DISABLED(jvmci); then
 391     AC_MSG_RESULT([no, forced])
 392     JVM_FEATURES_jvmci=""
 393     INCLUDE_JVMCI="false"
 394   else
 395     # Only enable jvmci on x86_64, sparcv9 and aarch64
 396     if test "x$OPENJDK_TARGET_CPU" = "xx86_64" || \
 397        test "x$OPENJDK_TARGET_CPU" = "xsparcv9" || \
 398        test "x$OPENJDK_TARGET_CPU" = "xaarch64" ; then
 399       AC_MSG_RESULT([yes])
 400       JVM_FEATURES_jvmci="jvmci"
 401       INCLUDE_JVMCI="true"
 402     else
 403       AC_MSG_RESULT([no])
 404       JVM_FEATURES_jvmci=""
 405       INCLUDE_JVMCI="false"
 406       if HOTSPOT_CHECK_JVM_FEATURE(jvmci); then
 407         AC_MSG_ERROR([JVMCI is currently not supported on this platform.])
 408       fi
 409     fi
 410   fi
 411 
 412   AC_SUBST(INCLUDE_JVMCI)
 413 
 414   AC_MSG_CHECKING([if graal module jdk.internal.vm.compiler should be built])
 415   # Check if graal is diabled
 416   if HOTSPOT_IS_JVM_FEATURE_DISABLED(graal); then
 417     AC_MSG_RESULT([no, forced])


< prev index next >