< prev index next >
make/autoconf/jdk-options.m4
Print this page
@@ -371,12 +371,28 @@
AC_MSG_CHECKING([if native coverage is enabled])
AC_MSG_RESULT([no])
elif test "x$enable_native_coverage" != "x"; then
AC_MSG_ERROR([--enable-native-coverage can only be assigned "yes" or "no"])
fi
-
AC_SUBST(GCOV_ENABLED)
+
+ AC_ARG_ENABLE(java-coverage, [AS_HELP_STRING([--enable-java-coverage],
+ [enable java code coverage@<:@disabled@:>@])])
+ AC_ARG_WITH(jcov, [AS_HELP_STRING([--with-jcov],
+ [jcov library location])])
+ JCOV_ENABLED="false"
+ JCOV_HOME=
+ if test "x$enable_java_coverage" = "xyes"; then
+ JCOV_ENABLED="true"
+ if test "x$with_jcov" = "x" || test "x$with_jcov" = "xyes"; then
+ AC_MSG_ERROR([--with-jcov must be specified to allow Java code coverage])
+ else
+ JCOV_HOME="$with_jcov"
+ fi
+ fi
+ AC_SUBST(JCOV_ENABLED)
+ AC_SUBST(JCOV_HOME)
])
###############################################################################
#
# AddressSanitizer
< prev index next >