< prev index next >

common/autoconf/jdk-options.m4

Print this page

        

*** 432,441 **** --- 432,467 ---- # Compress jars # COMPRESS_JARS=false AC_SUBST(COMPRESS_JARS) + + ############################################################################### + # + # Enable or disable JFR + # + AC_MSG_CHECKING([whether to build jfr]) + AC_ARG_ENABLE(jfr, [AS_HELP_STRING([--disable-jfr], + [Disable Java Flight Recorder support @<:@enabled@:>@])],, + [enable_jfr=auto]) + if test "x$enable_jfr" = "xno"; then + ENABLE_JFR=false + elif test "x$enable_jfr" = "xyes" -o "x$enable_jfr" = "xauto"; then + if test "x$JVM_VARIANT_MINIMAL1" = "xtrue" -o "x$JVM_VARIANT_ZERO" = "xtrue"; then + if test "x$enable_jfr" = "xyes"; then + AC_MSG_ERROR([cannot enable JFR on minimal1 VM or zero build]) + else + ENABLE_JFR=false + fi + else + ENABLE_JFR=true + fi + else + AC_MSG_ERROR([--enable-jfr must either be set to yes or no]) + fi + AC_MSG_RESULT([$ENABLE_JFR]) + AC_SUBST(ENABLE_JFR) ]) ############################################################################### # # Setup version numbers
< prev index next >