< prev index next >

common/autoconf/jdk-options.m4

Print this page




 560   COOKED_BUILD_NUMBER=`$ECHO $JDK_BUILD_NUMBER | $SED -e 's/^b//' -e 's/^0//'`
 561   AC_SUBST(COOKED_BUILD_NUMBER)
 562 ])
 563 
 564 AC_DEFUN_ONCE([JDKOPT_SETUP_BUILD_TWEAKS],
 565 [
 566   HOTSPOT_MAKE_ARGS="$HOTSPOT_TARGET"
 567   AC_SUBST(HOTSPOT_MAKE_ARGS)
 568 
 569   # The name of the Service Agent jar.
 570   SALIB_NAME="${LIBRARY_PREFIX}saproc${SHARED_LIBRARY_SUFFIX}"
 571   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
 572     SALIB_NAME="${LIBRARY_PREFIX}sawindbg${SHARED_LIBRARY_SUFFIX}"
 573   fi
 574   AC_SUBST(SALIB_NAME)
 575 ])
 576 
 577 AC_DEFUN_ONCE([JDKOPT_SETUP_DEBUG_SYMBOLS],
 578 [
 579   #
 580   # ENABLE_DEBUG_SYMBOLS
 581   # This must be done after the toolchain is setup, since we're looking at objcopy.
 582   #
 583   AC_ARG_ENABLE([debug-symbols],
 584       [AS_HELP_STRING([--disable-debug-symbols],[disable generation of debug symbols @<:@enabled@:>@])])






 585 
 586   AC_MSG_CHECKING([if we should generate debug symbols])
 587 
 588   if test "x$enable_debug_symbols" = "xyes" && test "x$OBJCOPY" = x; then
 589     # explicit enabling of enable-debug-symbols and can't find objcopy
 590     #   this is an error
 591     AC_MSG_ERROR([Unable to find objcopy, cannot enable debug-symbols])
 592   fi
 593 
 594   if test "x$enable_debug_symbols" = "xyes"; then
 595     ENABLE_DEBUG_SYMBOLS=true
 596   elif test "x$enable_debug_symbols" = "xno"; then
 597     ENABLE_DEBUG_SYMBOLS=false
 598   else
 599     # Default is on if objcopy is found
 600     if test "x$OBJCOPY" != x; then
 601       ENABLE_DEBUG_SYMBOLS=true
 602     # MacOS X and Windows don't use objcopy but default is on for those OSes
 603     elif test "x$OPENJDK_TARGET_OS" = xmacosx || test "x$OPENJDK_TARGET_OS" = xwindows; then
 604       ENABLE_DEBUG_SYMBOLS=true
 605     else
 606       ENABLE_DEBUG_SYMBOLS=false
 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"




 560   COOKED_BUILD_NUMBER=`$ECHO $JDK_BUILD_NUMBER | $SED -e 's/^b//' -e 's/^0//'`
 561   AC_SUBST(COOKED_BUILD_NUMBER)
 562 ])
 563 
 564 AC_DEFUN_ONCE([JDKOPT_SETUP_BUILD_TWEAKS],
 565 [
 566   HOTSPOT_MAKE_ARGS="$HOTSPOT_TARGET"
 567   AC_SUBST(HOTSPOT_MAKE_ARGS)
 568 
 569   # The name of the Service Agent jar.
 570   SALIB_NAME="${LIBRARY_PREFIX}saproc${SHARED_LIBRARY_SUFFIX}"
 571   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
 572     SALIB_NAME="${LIBRARY_PREFIX}sawindbg${SHARED_LIBRARY_SUFFIX}"
 573   fi
 574   AC_SUBST(SALIB_NAME)
 575 ])
 576 
 577 AC_DEFUN_ONCE([JDKOPT_SETUP_DEBUG_SYMBOLS],
 578 [
 579   #
 580   # NATIVE_DEBUG_SYMBOLS

 581   #
 582   AC_MSG_CHECKING([what type of native debug symbols to use])
 583   AC_ARG_WITH([native-debug-symbols],
 584       [AS_HELP_STRING([--with-native-debug-symbols],
 585       [set the native debug symbol configuration (none, internal, external, zipped) @<:@zipped@:>@])],
 586       [],
 587       [with_native_debug_symbols="zipped"])
 588   NATIVE_DEBUG_SYMBOLS=$with_native_debug_symbols
 589   AC_MSG_RESULT([$NATIVE_DEBUG_SYMBOLS])
 590 
 591   if test "x$NATIVE_DEBUG_SYMBOLS" = xzipped; then
 592 
 593     if test "x$OBJCOPY" = x; then
 594       # explicit enabling of enable-debug-symbols and can't find objcopy
 595       # this is an error
 596       AC_MSG_ERROR([Unable to find objcopy, cannot enable debug-symbols])
 597     fi
 598 

 599     ENABLE_DEBUG_SYMBOLS=true
 600     ZIP_DEBUGINFO_FILES=true
 601     DEBUG_BINARIES=true
 602     STRIP_POLICY=min_strip
 603   elif test "x$NATIVE_DEBUG_SYMBOLS" = xnone; then






 604     ENABLE_DEBUG_SYMBOLS=false
 605     ZIP_DEBUGINFO_FILES=false
 606     DEBUG_BINARIES=false
 607     STRIP_POLICY=no_strip
 608   elif test "x$NATIVE_DEBUG_SYMBOLS" = xinternal; then
 609     ENABLE_DEBUG_SYMBOLS=false  # -g option only
 610     ZIP_DEBUGINFO_FILES=false
 611     DEBUG_BINARIES=true
 612     STRIP_POLICY=no_strip
 613     STRIP=""
 614   elif test "x$NATIVE_DEBUG_SYMBOLS" = xexternal; then
 615 
 616     if test "x$OBJCOPY" = x; then
 617       # explicit enabling of enable-debug-symbols and can't find objcopy
 618       # this is an error
 619       AC_MSG_ERROR([Unable to find objcopy, cannot enable debug-symbols])
 620     fi



 621 
 622     ENABLE_DEBUG_SYMBOLS=true
 623     ZIP_DEBUGINFO_FILES=false
 624     DEBUG_BINARIES=true
 625     STRIP_POLICY=min_strip
 626   else
 627     AC_MSG_ERROR([Allowed native debug symbols are: none, internal, external, zipped])
 628   fi
 629 
 630   # --enable-debug-symbols is deprecated.
 631   # Please use --with-debug-symbols=[internal,external,zipped] .
 632   BASIC_DEPRECATED_ARG_ENABLE(debug-symbols, debug_symbols)
 633 
 634   # --enable-zip-debug-info is deprecated.
 635   # Please use --with-debug-symbols=zipped .
 636   BASIC_DEPRECATED_ARG_ENABLE(zip-debug-info, zip_debug_info)
 637 
 638   AC_SUBST(NATIVE_DEBUG_SYMBOLS)
 639   AC_SUBST(DEBUG_BINARIES)
 640   AC_SUBST(STRIP_POLICY)
 641   AC_SUBST(ENABLE_DEBUG_SYMBOLS)
 642   AC_SUBST(ZIP_DEBUGINFO_FILES)
 643 ])
 644 
 645 ################################################################################
 646 #
 647 # Gcov coverage data for hotspot
 648 #
 649 AC_DEFUN_ONCE([JDKOPT_SETUP_CODE_COVERAGE],
 650 [
 651   AC_ARG_ENABLE(native-coverage, [AS_HELP_STRING([--enable-native-coverage],
 652       [enable native compilation with code coverage data@<:@disabled@:>@])])
 653   GCOV_ENABLED="false"
 654   if test "x$enable_native_coverage" = "xyes"; then
 655     if test "x$TOOLCHAIN_TYPE" = "xgcc"; then
 656       AC_MSG_CHECKING([if native coverage is enabled])
 657       AC_MSG_RESULT([yes])
 658       GCOV_CFLAGS="-fprofile-arcs -ftest-coverage -fno-inline"
 659       GCOV_LDFLAGS="-fprofile-arcs"
 660       LEGACY_EXTRA_CFLAGS="$LEGACY_EXTRA_CFLAGS $GCOV_CFLAGS"


< prev index next >