< prev index next >

common/autoconf/jdk-options.m4

Print this page




 498   AC_ARG_WITH([native-debug-symbols],
 499       [AS_HELP_STRING([--with-native-debug-symbols],
 500       [set the native debug symbol configuration (none, internal, external, zipped) @<:@zipped@:>@])],
 501       [],
 502       [with_native_debug_symbols="zipped"])
 503   NATIVE_DEBUG_SYMBOLS=$with_native_debug_symbols
 504   AC_MSG_RESULT([$NATIVE_DEBUG_SYMBOLS])
 505 
 506   if test "x$NATIVE_DEBUG_SYMBOLS" = xzipped; then
 507 
 508     if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xlinux; then
 509       if test "x$OBJCOPY" = x; then
 510         # enabling of enable-debug-symbols and can't find objcopy
 511         # this is an error
 512         AC_MSG_ERROR([Unable to find objcopy, cannot enable native debug symbols])
 513       fi
 514     fi
 515 
 516     ENABLE_DEBUG_SYMBOLS=true
 517     ZIP_DEBUGINFO_FILES=true
 518     DEBUG_BINARIES=true



 519     STRIP_POLICY=min_strip
 520   elif test "x$NATIVE_DEBUG_SYMBOLS" = xnone; then
 521     ENABLE_DEBUG_SYMBOLS=false
 522     ZIP_DEBUGINFO_FILES=false
 523     DEBUG_BINARIES=false
 524     STRIP_POLICY=no_strip
 525   elif test "x$NATIVE_DEBUG_SYMBOLS" = xinternal; then
 526     ENABLE_DEBUG_SYMBOLS=false  # -g option only
 527     ZIP_DEBUGINFO_FILES=false


 528     DEBUG_BINARIES=true
 529     STRIP_POLICY=no_strip
 530     STRIP=""
 531   elif test "x$NATIVE_DEBUG_SYMBOLS" = xexternal; then
 532 
 533     if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xlinux; then
 534       if test "x$OBJCOPY" = x; then
 535         # enabling of enable-debug-symbols and can't find objcopy
 536         # this is an error
 537         AC_MSG_ERROR([Unable to find objcopy, cannot enable native debug symbols])
 538       fi
 539     fi
 540 
 541     ENABLE_DEBUG_SYMBOLS=true
 542     ZIP_DEBUGINFO_FILES=false
 543     DEBUG_BINARIES=true



 544     STRIP_POLICY=min_strip
 545   else
 546     AC_MSG_ERROR([Allowed native debug symbols are: none, internal, external, zipped])
 547   fi
 548 
 549   # --enable-debug-symbols is deprecated.
 550   # Please use --with-native-debug-symbols=[internal,external,zipped] .
 551   BASIC_DEPRECATED_ARG_ENABLE(debug-symbols, debug_symbols,
 552         [Please use --with-native-debug-symbols=[[internal,external,zipped]] .])
 553 
 554   # --enable-zip-debug-info is deprecated.
 555   # Please use --with-native-debug-symbols=zipped .
 556   BASIC_DEPRECATED_ARG_ENABLE(zip-debug-info, zip_debug_info,
 557                               [Please use --with-native-debug-symbols=zipped .])
 558 
 559   AC_SUBST(NATIVE_DEBUG_SYMBOLS)
 560   AC_SUBST(DEBUG_BINARIES)
 561   AC_SUBST(STRIP_POLICY)
 562   AC_SUBST(ENABLE_DEBUG_SYMBOLS)
 563   AC_SUBST(ZIP_DEBUGINFO_FILES)




 498   AC_ARG_WITH([native-debug-symbols],
 499       [AS_HELP_STRING([--with-native-debug-symbols],
 500       [set the native debug symbol configuration (none, internal, external, zipped) @<:@zipped@:>@])],
 501       [],
 502       [with_native_debug_symbols="zipped"])
 503   NATIVE_DEBUG_SYMBOLS=$with_native_debug_symbols
 504   AC_MSG_RESULT([$NATIVE_DEBUG_SYMBOLS])
 505 
 506   if test "x$NATIVE_DEBUG_SYMBOLS" = xzipped; then
 507 
 508     if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xlinux; then
 509       if test "x$OBJCOPY" = x; then
 510         # enabling of enable-debug-symbols and can't find objcopy
 511         # this is an error
 512         AC_MSG_ERROR([Unable to find objcopy, cannot enable native debug symbols])
 513       fi
 514     fi
 515 
 516     ENABLE_DEBUG_SYMBOLS=true
 517     ZIP_DEBUGINFO_FILES=true
 518     # -g is already added by ENABLE_DEBUG_SYMBOLS and the hotspot makefiles
 519     # will basically do slowdebug builds when DEBUG_BINARIES is set for
 520     # fastdebug builds
 521     DEBUG_BINARIES=false
 522     STRIP_POLICY=min_strip
 523   elif test "x$NATIVE_DEBUG_SYMBOLS" = xnone; then
 524     ENABLE_DEBUG_SYMBOLS=false
 525     ZIP_DEBUGINFO_FILES=false
 526     DEBUG_BINARIES=false
 527     STRIP_POLICY=no_strip
 528   elif test "x$NATIVE_DEBUG_SYMBOLS" = xinternal; then
 529     ENABLE_DEBUG_SYMBOLS=false  # -g option only
 530     ZIP_DEBUGINFO_FILES=false
 531     # Fastdebug builds with this setting will essentially be slowdebug
 532     # in hotspot.
 533     DEBUG_BINARIES=true
 534     STRIP_POLICY=no_strip
 535     STRIP=""
 536   elif test "x$NATIVE_DEBUG_SYMBOLS" = xexternal; then
 537 
 538     if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xlinux; then
 539       if test "x$OBJCOPY" = x; then
 540         # enabling of enable-debug-symbols and can't find objcopy
 541         # this is an error
 542         AC_MSG_ERROR([Unable to find objcopy, cannot enable native debug symbols])
 543       fi
 544     fi
 545 
 546     ENABLE_DEBUG_SYMBOLS=true
 547     ZIP_DEBUGINFO_FILES=false
 548     # -g is already added by ENABLE_DEBUG_SYMBOLS and the hotspot makefiles
 549     # will basically do slowdebug builds when DEBUG_BINARIES is set for
 550     # fastdebug builds
 551     DEBUG_BINARIES=false
 552     STRIP_POLICY=min_strip
 553   else
 554     AC_MSG_ERROR([Allowed native debug symbols are: none, internal, external, zipped])
 555   fi
 556 
 557   # --enable-debug-symbols is deprecated.
 558   # Please use --with-native-debug-symbols=[internal,external,zipped] .
 559   BASIC_DEPRECATED_ARG_ENABLE(debug-symbols, debug_symbols,
 560         [Please use --with-native-debug-symbols=[[internal,external,zipped]] .])
 561 
 562   # --enable-zip-debug-info is deprecated.
 563   # Please use --with-native-debug-symbols=zipped .
 564   BASIC_DEPRECATED_ARG_ENABLE(zip-debug-info, zip_debug_info,
 565                               [Please use --with-native-debug-symbols=zipped .])
 566 
 567   AC_SUBST(NATIVE_DEBUG_SYMBOLS)
 568   AC_SUBST(DEBUG_BINARIES)
 569   AC_SUBST(STRIP_POLICY)
 570   AC_SUBST(ENABLE_DEBUG_SYMBOLS)
 571   AC_SUBST(ZIP_DEBUGINFO_FILES)


< prev index next >