< prev index next >

common/autoconf/jdk-options.m4

Print this page




 607     fi
 608   fi
 609 
 610   AC_MSG_RESULT([$ENABLE_DEBUG_SYMBOLS])
 611 
 612   #
 613   # ZIP_DEBUGINFO_FILES
 614   #
 615   AC_MSG_CHECKING([if we should zip debug-info files])
 616   AC_ARG_ENABLE([zip-debug-info],
 617       [AS_HELP_STRING([--disable-zip-debug-info],[disable zipping of debug-info files @<:@enabled@:>@])],
 618       [enable_zip_debug_info="${enableval}"], [enable_zip_debug_info="yes"])
 619   AC_MSG_RESULT([${enable_zip_debug_info}])
 620 
 621   if test "x${enable_zip_debug_info}" = "xno"; then
 622     ZIP_DEBUGINFO_FILES=false
 623   else
 624     ZIP_DEBUGINFO_FILES=true
 625   fi
 626 



















 627   AC_SUBST(ENABLE_DEBUG_SYMBOLS)
 628   AC_SUBST(ZIP_DEBUGINFO_FILES)

 629 ])
 630 
 631 ################################################################################
 632 #
 633 # Gcov coverage data for hotspot
 634 #
 635 AC_DEFUN_ONCE([JDKOPT_SETUP_CODE_COVERAGE],
 636 [
 637   AC_ARG_ENABLE(native-coverage, [AS_HELP_STRING([--enable-native-coverage],
 638       [enable native compilation with code coverage data@<:@disabled@:>@])])
 639   GCOV_ENABLED="false"
 640   if test "x$enable_native_coverage" = "xyes"; then
 641     if test "x$TOOLCHAIN_TYPE" = "xgcc"; then
 642       AC_MSG_CHECKING([if native coverage is enabled])
 643       AC_MSG_RESULT([yes])
 644       GCOV_CFLAGS="-fprofile-arcs -ftest-coverage -fno-inline"
 645       GCOV_LDFLAGS="-fprofile-arcs"
 646       LEGACY_EXTRA_CFLAGS="$LEGACY_EXTRA_CFLAGS $GCOV_CFLAGS"
 647       LEGACY_EXTRA_CXXFLAGS="$LEGACY_EXTRA_CXXFLAGS $GCOV_CFLAGS"
 648       LEGACY_EXTRA_LDFLAGS="$LEGACY_EXTRA_LDFLAGS $GCOV_LDFLAGS"




 607     fi
 608   fi
 609 
 610   AC_MSG_RESULT([$ENABLE_DEBUG_SYMBOLS])
 611 
 612   #
 613   # ZIP_DEBUGINFO_FILES
 614   #
 615   AC_MSG_CHECKING([if we should zip debug-info files])
 616   AC_ARG_ENABLE([zip-debug-info],
 617       [AS_HELP_STRING([--disable-zip-debug-info],[disable zipping of debug-info files @<:@enabled@:>@])],
 618       [enable_zip_debug_info="${enableval}"], [enable_zip_debug_info="yes"])
 619   AC_MSG_RESULT([${enable_zip_debug_info}])
 620 
 621   if test "x${enable_zip_debug_info}" = "xno"; then
 622     ZIP_DEBUGINFO_FILES=false
 623   else
 624     ZIP_DEBUGINFO_FILES=true
 625   fi
 626 
 627   #
 628   # DEBUG_SYMBOLS
 629   #
 630   AC_MSG_CHECKING([what type of debug symbols to use])
 631   DEBUG_SYMBOLS="zipped"
 632   AC_ARG_WITH([debug-symbols], [AS_HELP_STRING([--with-debug-symbols],
 633       [set the debug symbol configuration (none, internal, external, zipped) @<:@zipped@:>@])],
 634       [
 635         DEBUG_SYMBOLS="${withval}"
 636       ])
 637   AC_MSG_RESULT([$DEBUG_SYMBOLS])
 638 
 639   if test "x$DEBUG_SYMBOLS" != xzipped && \
 640       test "x$DEBUG_SYMBOLS" != xnone && \
 641       test "x$DEBUG_SYMBOLS" != xinternal && \
 642       test "x$DEBUG_SYMBOLS" != xexternal; then
 643     AC_MSG_ERROR([Allowed debug symbols are: none, internal, external, zipped])
 644   fi
 645 
 646   AC_SUBST(ENABLE_DEBUG_SYMBOLS)
 647   AC_SUBST(ZIP_DEBUGINFO_FILES)
 648   AC_SUBST(DEBUG_SYMBOLS)
 649 ])
 650 
 651 ################################################################################
 652 #
 653 # Gcov coverage data for hotspot
 654 #
 655 AC_DEFUN_ONCE([JDKOPT_SETUP_CODE_COVERAGE],
 656 [
 657   AC_ARG_ENABLE(native-coverage, [AS_HELP_STRING([--enable-native-coverage],
 658       [enable native compilation with code coverage data@<:@disabled@:>@])])
 659   GCOV_ENABLED="false"
 660   if test "x$enable_native_coverage" = "xyes"; then
 661     if test "x$TOOLCHAIN_TYPE" = "xgcc"; then
 662       AC_MSG_CHECKING([if native coverage is enabled])
 663       AC_MSG_RESULT([yes])
 664       GCOV_CFLAGS="-fprofile-arcs -ftest-coverage -fno-inline"
 665       GCOV_LDFLAGS="-fprofile-arcs"
 666       LEGACY_EXTRA_CFLAGS="$LEGACY_EXTRA_CFLAGS $GCOV_CFLAGS"
 667       LEGACY_EXTRA_CXXFLAGS="$LEGACY_EXTRA_CXXFLAGS $GCOV_CFLAGS"
 668       LEGACY_EXTRA_LDFLAGS="$LEGACY_EXTRA_LDFLAGS $GCOV_LDFLAGS"


< prev index next >