< prev index next >

make/autoconf/hotspot.m4

Print this page




 308     AC_MSG_ERROR([Specified JVM feature 'management' requires feature 'nmt'])
 309   fi
 310 
 311   if HOTSPOT_CHECK_JVM_FEATURE(jvmci) && ! (HOTSPOT_CHECK_JVM_FEATURE(compiler1) || HOTSPOT_CHECK_JVM_FEATURE(compiler2)); then
 312     AC_MSG_ERROR([Specified JVM feature 'jvmci' requires feature 'compiler2' or 'compiler1'])
 313   fi
 314 
 315   if HOTSPOT_CHECK_JVM_FEATURE(cmsgc) && ! HOTSPOT_CHECK_JVM_FEATURE(serialgc); then
 316     AC_MSG_ERROR([Specified JVM feature 'cmsgc' requires feature 'serialgc'])
 317   fi
 318 
 319   # Enable JFR by default, except for Zero, linux-sparcv9 and on minimal.
 320   if ! HOTSPOT_CHECK_JVM_VARIANT(zero); then
 321     if test "x$OPENJDK_TARGET_OS" != xaix; then
 322       if test "x$OPENJDK_TARGET_OS" != xlinux || test "x$OPENJDK_TARGET_CPU" != xsparcv9; then
 323         NON_MINIMAL_FEATURES="$NON_MINIMAL_FEATURES jfr"
 324       fi
 325     fi
 326   fi
 327 
 328   # Only enable ZGC on Linux x86_64
 329   AC_MSG_CHECKING([if zgc should be built])
 330   if HOTSPOT_CHECK_JVM_FEATURE(zgc); then
 331     if test "x$OPENJDK_TARGET_OS" = "xlinux" && test "x$OPENJDK_TARGET_CPU" = "xx86_64"; then
 332       AC_MSG_RESULT([yes])
 333     else
 334       DISABLED_JVM_FEATURES="$DISABLED_JVM_FEATURES zgc"
 335       AC_MSG_RESULT([no, platform not supported])
 336     fi
 337   else
 338     AC_MSG_RESULT([no])

 339   fi
 340 
 341   # Disable unsupported GCs for Zero
 342   if HOTSPOT_CHECK_JVM_VARIANT(zero); then
 343     DISABLED_JVM_FEATURES="$DISABLED_JVM_FEATURES epsilongc g1gc zgc"
 344   fi
 345 
 346   # Turn on additional features based on other parts of configure
 347   if test "x$INCLUDE_DTRACE" = "xtrue"; then
 348     JVM_FEATURES="$JVM_FEATURES dtrace"
 349   else
 350     if HOTSPOT_CHECK_JVM_FEATURE(dtrace); then
 351       AC_MSG_ERROR([To enable dtrace, you must use --enable-dtrace])
 352     fi
 353   fi
 354 
 355   if test "x$STATIC_BUILD" = "xtrue"; then
 356     JVM_FEATURES="$JVM_FEATURES static-build"
 357   else
 358     if HOTSPOT_CHECK_JVM_FEATURE(static-build); then


 457       AC_MSG_RESULT([no, forced])
 458     else
 459       AC_MSG_RESULT([no])
 460     fi
 461     JVM_FEATURES_aot=""
 462     if HOTSPOT_CHECK_JVM_FEATURE(aot); then
 463       AC_MSG_ERROR([To enable aot, you must use --enable-aot])
 464     fi
 465   fi
 466 
 467   AC_SUBST(ENABLE_AOT)
 468 
 469   if test "x$OPENJDK_TARGET_CPU" = xarm ; then
 470     # Default to use link time optimizations on minimal on arm
 471     JVM_FEATURES_link_time_opt="link-time-opt"
 472   else
 473     JVM_FEATURES_link_time_opt=""
 474   fi
 475 
 476   # All variants but minimal (and custom) get these features
 477   NON_MINIMAL_FEATURES="$NON_MINIMAL_FEATURES cmsgc g1gc parallelgc serialgc epsilongc jni-check jvmti management nmt services vm-structs"
 478 
 479   # Disable CDS on AIX.
 480   if test "x$OPENJDK_TARGET_OS" = "xaix"; then
 481     ENABLE_CDS="false"
 482     if test "x$enable_cds" = "xyes"; then
 483       AC_MSG_ERROR([CDS is currently not supported on AIX. Remove --enable-cds.])
 484     fi
 485   fi
 486 
 487   # Disable CDS if user requested it with --with-jvm-features=-cds.
 488   DISABLE_CDS=`$ECHO $DISABLED_JVM_FEATURES | $GREP cds`
 489   if test "x$DISABLE_CDS" = "xcds"; then
 490     ENABLE_CDS="false"
 491     if test "x$enable_cds" = "xyes"; then
 492       AC_MSG_ERROR([CDS was disabled by --with-jvm-features=-cds. Remove --enable-cds.])
 493     fi
 494   fi
 495 
 496   # Disable CDS for zero, minimal, core..
 497   if HOTSPOT_CHECK_JVM_VARIANT(zero) || HOTSPOT_CHECK_JVM_VARIANT(minimal) || HOTSPOT_CHECK_JVM_VARIANT(core); then




 308     AC_MSG_ERROR([Specified JVM feature 'management' requires feature 'nmt'])
 309   fi
 310 
 311   if HOTSPOT_CHECK_JVM_FEATURE(jvmci) && ! (HOTSPOT_CHECK_JVM_FEATURE(compiler1) || HOTSPOT_CHECK_JVM_FEATURE(compiler2)); then
 312     AC_MSG_ERROR([Specified JVM feature 'jvmci' requires feature 'compiler2' or 'compiler1'])
 313   fi
 314 
 315   if HOTSPOT_CHECK_JVM_FEATURE(cmsgc) && ! HOTSPOT_CHECK_JVM_FEATURE(serialgc); then
 316     AC_MSG_ERROR([Specified JVM feature 'cmsgc' requires feature 'serialgc'])
 317   fi
 318 
 319   # Enable JFR by default, except for Zero, linux-sparcv9 and on minimal.
 320   if ! HOTSPOT_CHECK_JVM_VARIANT(zero); then
 321     if test "x$OPENJDK_TARGET_OS" != xaix; then
 322       if test "x$OPENJDK_TARGET_OS" != xlinux || test "x$OPENJDK_TARGET_CPU" != xsparcv9; then
 323         NON_MINIMAL_FEATURES="$NON_MINIMAL_FEATURES jfr"
 324       fi
 325     fi
 326   fi
 327 
 328   # Only enable ZGC on supported platforms
 329   AC_MSG_CHECKING([if zgc can be built])
 330   if test "x$OPENJDK_TARGET_OS" = "xlinux" && test "x$OPENJDK_TARGET_CPU" = "xx86_64"; then
 331     AC_MSG_RESULT([yes])





 332   else
 333     DISABLED_JVM_FEATURES="$DISABLED_JVM_FEATURES zgc"
 334     AC_MSG_RESULT([no, platform not supported])
 335   fi
 336 
 337   # Disable unsupported GCs for Zero
 338   if HOTSPOT_CHECK_JVM_VARIANT(zero); then
 339     DISABLED_JVM_FEATURES="$DISABLED_JVM_FEATURES epsilongc g1gc zgc"
 340   fi
 341 
 342   # Turn on additional features based on other parts of configure
 343   if test "x$INCLUDE_DTRACE" = "xtrue"; then
 344     JVM_FEATURES="$JVM_FEATURES dtrace"
 345   else
 346     if HOTSPOT_CHECK_JVM_FEATURE(dtrace); then
 347       AC_MSG_ERROR([To enable dtrace, you must use --enable-dtrace])
 348     fi
 349   fi
 350 
 351   if test "x$STATIC_BUILD" = "xtrue"; then
 352     JVM_FEATURES="$JVM_FEATURES static-build"
 353   else
 354     if HOTSPOT_CHECK_JVM_FEATURE(static-build); then


 453       AC_MSG_RESULT([no, forced])
 454     else
 455       AC_MSG_RESULT([no])
 456     fi
 457     JVM_FEATURES_aot=""
 458     if HOTSPOT_CHECK_JVM_FEATURE(aot); then
 459       AC_MSG_ERROR([To enable aot, you must use --enable-aot])
 460     fi
 461   fi
 462 
 463   AC_SUBST(ENABLE_AOT)
 464 
 465   if test "x$OPENJDK_TARGET_CPU" = xarm ; then
 466     # Default to use link time optimizations on minimal on arm
 467     JVM_FEATURES_link_time_opt="link-time-opt"
 468   else
 469     JVM_FEATURES_link_time_opt=""
 470   fi
 471 
 472   # All variants but minimal (and custom) get these features
 473   NON_MINIMAL_FEATURES="$NON_MINIMAL_FEATURES cmsgc g1gc parallelgc serialgc epsilongc jni-check jvmti management nmt services vm-structs zgc"
 474 
 475   # Disable CDS on AIX.
 476   if test "x$OPENJDK_TARGET_OS" = "xaix"; then
 477     ENABLE_CDS="false"
 478     if test "x$enable_cds" = "xyes"; then
 479       AC_MSG_ERROR([CDS is currently not supported on AIX. Remove --enable-cds.])
 480     fi
 481   fi
 482 
 483   # Disable CDS if user requested it with --with-jvm-features=-cds.
 484   DISABLE_CDS=`$ECHO $DISABLED_JVM_FEATURES | $GREP cds`
 485   if test "x$DISABLE_CDS" = "xcds"; then
 486     ENABLE_CDS="false"
 487     if test "x$enable_cds" = "xyes"; then
 488       AC_MSG_ERROR([CDS was disabled by --with-jvm-features=-cds. Remove --enable-cds.])
 489     fi
 490   fi
 491 
 492   # Disable CDS for zero, minimal, core..
 493   if HOTSPOT_CHECK_JVM_VARIANT(zero) || HOTSPOT_CHECK_JVM_VARIANT(minimal) || HOTSPOT_CHECK_JVM_VARIANT(core); then


< prev index next >