27818 |
27818 |
27819 # |
27819 # |
27820 # ENABLE_DEBUG_SYMBOLS |
27820 # ENABLE_DEBUG_SYMBOLS |
27821 # This must be done after the toolchain is setup, since we're looking at objcopy. |
27821 # This must be done after the toolchain is setup, since we're looking at objcopy. |
27822 # |
27822 # |
27823 ENABLE_DEBUG_SYMBOLS=default |
|
27824 |
|
27825 # default on macosx is no... |
|
27826 if test "x$OPENJDK_TARGET_OS" = xmacosx; then |
|
27827 ENABLE_DEBUG_SYMBOLS=no |
|
27828 fi |
|
27829 |
|
27830 # Check whether --enable-debug-symbols was given. |
27823 # Check whether --enable-debug-symbols was given. |
27831 if test "${enable_debug_symbols+set}" = set; then : |
27824 if test "${enable_debug_symbols+set}" = set; then : |
27832 enableval=$enable_debug_symbols; ENABLE_DEBUG_SYMBOLS=${enable_debug_symbols} |
27825 enableval=$enable_debug_symbols; |
27833 fi |
27826 fi |
27834 |
27827 |
27835 |
27828 |
27836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should generate debug symbols" >&5 |
27829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should generate debug symbols" >&5 |
27837 $as_echo_n "checking if we should generate debug symbols... " >&6; } |
27830 $as_echo_n "checking if we should generate debug symbols... " >&6; } |
27838 |
27831 |
27839 if test "x$ENABLE_DEBUG_SYMBOLS" = "xyes" && test "x$OBJCOPY" = x; then |
27832 if test "x$enable_debug_symbols" = "xyes" && test "x$OBJCOPY" = x; then |
27840 # explicit enabling of enable-debug-symbols and can't find objcopy |
27833 # explicit enabling of enable-debug-symbols and can't find objcopy |
27841 # this is an error |
27834 # this is an error |
27842 as_fn_error $? "Unable to find objcopy, cannot enable debug-symbols" "$LINENO" 5 |
27835 as_fn_error $? "Unable to find objcopy, cannot enable debug-symbols" "$LINENO" 5 |
27843 fi |
27836 fi |
27844 |
27837 |
27845 if test "x$ENABLE_DEBUG_SYMBOLS" = "xdefault"; then |
27838 if test "x$enable_debug_symbols" = "xyes"; then |
|
27839 ENABLE_DEBUG_SYMBOLS=true |
|
27840 elif test "x$enable_debug_symbols" = "xno"; then |
|
27841 ENABLE_DEBUG_SYMBOLS=false |
|
27842 else |
|
27843 # default on macosx is false |
|
27844 if test "x$OPENJDK_TARGET_OS" = xmacosx; then |
|
27845 ENABLE_DEBUG_SYMBOLS=false |
27846 # Default is on if objcopy is found, otherwise off |
27846 # Default is on if objcopy is found, otherwise off |
27847 if test "x$OBJCOPY" != x || test "x$OPENJDK_TARGET_OS" = xwindows; then |
27847 elif test "x$OBJCOPY" != x || test "x$OPENJDK_TARGET_OS" = xwindows; then |
27848 ENABLE_DEBUG_SYMBOLS=yes |
27848 ENABLE_DEBUG_SYMBOLS=true |
27849 else |
27849 else |
27850 ENABLE_DEBUG_SYMBOLS=no |
27850 ENABLE_DEBUG_SYMBOLS=false |
27851 fi |
27851 fi |
27852 fi |
27852 fi |
27853 |
27853 |
27854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_DEBUG_SYMBOLS" >&5 |
27854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_DEBUG_SYMBOLS" >&5 |
27855 $as_echo "$ENABLE_DEBUG_SYMBOLS" >&6; } |
27855 $as_echo "$ENABLE_DEBUG_SYMBOLS" >&6; } |
27856 |
27856 |
27857 # |
27857 # |
27858 # ZIP_DEBUGINFO_FILES |
27858 # ZIP_DEBUGINFO_FILES |
27859 # |
27859 # |
27860 ZIP_DEBUGINFO_FILES=yes |
|
27861 |
|
27862 # Check whether --enable-zip-debug-info was given. |
27860 # Check whether --enable-zip-debug-info was given. |
27863 if test "${enable_zip_debug_info+set}" = set; then : |
27861 if test "${enable_zip_debug_info+set}" = set; then : |
27864 enableval=$enable_zip_debug_info; ZIP_DEBUGINFO_FILES=${enable_zip_debug_info} |
27862 enableval=$enable_zip_debug_info; |
27865 fi |
27863 fi |
27866 |
27864 |
27867 |
27865 |
27868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should zip debug-info files" >&5 |
27866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should zip debug-info files" >&5 |
27869 $as_echo_n "checking if we should zip debug-info files... " >&6; } |
27867 $as_echo_n "checking if we should zip debug-info files... " >&6; } |
27870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP_DEBUGINFO_FILES" >&5 |
27868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_zip_debug_info}" >&5 |
27871 $as_echo "$ZIP_DEBUGINFO_FILES" >&6; } |
27869 $as_echo "${enable_zip_debug_info}" >&6; } |
27872 |
27870 |
27873 # Hotspot wants ZIP_DEBUGINFO_FILES to be 1 for yes |
27871 if test "x${enable_zip_debug_info}" = "xno"; then |
27874 # use that... |
27872 ZIP_DEBUGINFO_FILES=false |
27875 if test "x$ZIP_DEBUGINFO_FILES" = "xyes"; then |
27873 else |
27876 ZIP_DEBUGINFO_FILES=1 |
27874 ZIP_DEBUGINFO_FILES=true |
27877 else |
|
27878 ZIP_DEBUGINFO_FILES=0 |
|
27879 fi |
27875 fi |
27880 |
27876 |
27881 |
27877 |
27882 |
27878 |
27883 |
27879 |