< prev index next >

make/autoconf/jdk-options.m4

Print this page
rev 59383 : [mq]: final


 274           if test "x$OPENJDK_TARGET_OS" = xaix; then
 275             # AIX doesn't support 'external' so use 'internal' as default
 276             with_native_debug_symbols="internal"
 277           else
 278             with_native_debug_symbols="external"
 279           fi
 280         fi
 281       ])
 282   AC_MSG_RESULT([$with_native_debug_symbols])
 283 
 284   if test "x$with_native_debug_symbols" = xnone; then
 285     COMPILE_WITH_DEBUG_SYMBOLS=false
 286     COPY_DEBUG_SYMBOLS=false
 287     ZIP_EXTERNAL_DEBUG_SYMBOLS=false
 288   elif test "x$with_native_debug_symbols" = xinternal; then
 289     COMPILE_WITH_DEBUG_SYMBOLS=true
 290     COPY_DEBUG_SYMBOLS=false
 291     ZIP_EXTERNAL_DEBUG_SYMBOLS=false
 292   elif test "x$with_native_debug_symbols" = xexternal; then
 293 
 294     if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xlinux; then
 295       if test "x$OBJCOPY" = x; then
 296         # enabling of enable-debug-symbols and can't find objcopy
 297         # this is an error
 298         AC_MSG_ERROR([Unable to find objcopy, cannot enable native debug symbols])
 299       fi
 300     fi
 301 
 302     COMPILE_WITH_DEBUG_SYMBOLS=true
 303     COPY_DEBUG_SYMBOLS=true
 304     ZIP_EXTERNAL_DEBUG_SYMBOLS=false
 305   elif test "x$with_native_debug_symbols" = xzipped; then
 306 
 307     if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xlinux; then
 308       if test "x$OBJCOPY" = x; then
 309         # enabling of enable-debug-symbols and can't find objcopy
 310         # this is an error
 311         AC_MSG_ERROR([Unable to find objcopy, cannot enable native debug symbols])
 312       fi
 313     fi
 314 
 315     COMPILE_WITH_DEBUG_SYMBOLS=true
 316     COPY_DEBUG_SYMBOLS=true
 317     ZIP_EXTERNAL_DEBUG_SYMBOLS=true
 318   else
 319     AC_MSG_ERROR([Allowed native debug symbols are: none, internal, external, zipped])
 320   fi
 321 
 322   AC_SUBST(COMPILE_WITH_DEBUG_SYMBOLS)
 323   AC_SUBST(COPY_DEBUG_SYMBOLS)
 324   AC_SUBST(ZIP_EXTERNAL_DEBUG_SYMBOLS)
 325 
 326   # Should we add external native debug symbols to the shipped bundles?
 327   AC_MSG_CHECKING([if we should add external native debug symbols to the shipped bundles])




 274           if test "x$OPENJDK_TARGET_OS" = xaix; then
 275             # AIX doesn't support 'external' so use 'internal' as default
 276             with_native_debug_symbols="internal"
 277           else
 278             with_native_debug_symbols="external"
 279           fi
 280         fi
 281       ])
 282   AC_MSG_RESULT([$with_native_debug_symbols])
 283 
 284   if test "x$with_native_debug_symbols" = xnone; then
 285     COMPILE_WITH_DEBUG_SYMBOLS=false
 286     COPY_DEBUG_SYMBOLS=false
 287     ZIP_EXTERNAL_DEBUG_SYMBOLS=false
 288   elif test "x$with_native_debug_symbols" = xinternal; then
 289     COMPILE_WITH_DEBUG_SYMBOLS=true
 290     COPY_DEBUG_SYMBOLS=false
 291     ZIP_EXTERNAL_DEBUG_SYMBOLS=false
 292   elif test "x$with_native_debug_symbols" = xexternal; then
 293 
 294     if test "x$OPENJDK_TARGET_OS" = xlinux; then
 295       if test "x$OBJCOPY" = x; then
 296         # enabling of enable-debug-symbols and can't find objcopy
 297         # this is an error
 298         AC_MSG_ERROR([Unable to find objcopy, cannot enable native debug symbols])
 299       fi
 300     fi
 301 
 302     COMPILE_WITH_DEBUG_SYMBOLS=true
 303     COPY_DEBUG_SYMBOLS=true
 304     ZIP_EXTERNAL_DEBUG_SYMBOLS=false
 305   elif test "x$with_native_debug_symbols" = xzipped; then
 306 
 307     if test "x$OPENJDK_TARGET_OS" = xlinux; then
 308       if test "x$OBJCOPY" = x; then
 309         # enabling of enable-debug-symbols and can't find objcopy
 310         # this is an error
 311         AC_MSG_ERROR([Unable to find objcopy, cannot enable native debug symbols])
 312       fi
 313     fi
 314 
 315     COMPILE_WITH_DEBUG_SYMBOLS=true
 316     COPY_DEBUG_SYMBOLS=true
 317     ZIP_EXTERNAL_DEBUG_SYMBOLS=true
 318   else
 319     AC_MSG_ERROR([Allowed native debug symbols are: none, internal, external, zipped])
 320   fi
 321 
 322   AC_SUBST(COMPILE_WITH_DEBUG_SYMBOLS)
 323   AC_SUBST(COPY_DEBUG_SYMBOLS)
 324   AC_SUBST(ZIP_EXTERNAL_DEBUG_SYMBOLS)
 325 
 326   # Should we add external native debug symbols to the shipped bundles?
 327   AC_MSG_CHECKING([if we should add external native debug symbols to the shipped bundles])


< prev index next >