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_SYMBOL 629 # 630 AC_MSG_CHECKING([type of debug symbol]) 631 DEBUG_SYMBOL="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_SYMBOL="${withval}" 636 ]) 637 638 if test "x$DEBUG_SYMBOL" != xzipped && \ 639 test "x$DEBUG_SYMBOL" != xnone && \ 640 test "x$DEBUG_SYMBOL" != xinternal && \ 641 test "x$DEBUG_SYMBOL" != xexternal; then 642 AC_MSG_ERROR([Allowed debug symbols are: none, internal, external, zipped]) 643 fi 644 645 AC_MSG_RESULT([$DEBUG_SYMBOL]) 646 647 AC_SUBST(ENABLE_DEBUG_SYMBOLS) 648 AC_SUBST(ZIP_DEBUGINFO_FILES) 649 AC_SUBST(DEBUG_SYMBOL) 650 ]) 651 652 ################################################################################ 653 # 654 # Gcov coverage data for hotspot 655 # 656 AC_DEFUN_ONCE([JDKOPT_SETUP_CODE_COVERAGE], 657 [ 658 AC_ARG_ENABLE(native-coverage, [AS_HELP_STRING([--enable-native-coverage], 659 [enable native compilation with code coverage data@<:@disabled@:>@])]) 660 GCOV_ENABLED="false" 661 if test "x$enable_native_coverage" = "xyes"; then 662 if test "x$TOOLCHAIN_TYPE" = "xgcc"; then 663 AC_MSG_CHECKING([if native coverage is enabled]) 664 AC_MSG_RESULT([yes]) 665 GCOV_CFLAGS="-fprofile-arcs -ftest-coverage -fno-inline" 666 GCOV_LDFLAGS="-fprofile-arcs" 667 LEGACY_EXTRA_CFLAGS="$LEGACY_EXTRA_CFLAGS $GCOV_CFLAGS" 668 LEGACY_EXTRA_CXXFLAGS="$LEGACY_EXTRA_CXXFLAGS $GCOV_CFLAGS" 669 LEGACY_EXTRA_LDFLAGS="$LEGACY_EXTRA_LDFLAGS $GCOV_LDFLAGS" |