< prev index next >

common/autoconf/jdk-options.m4

Print this page


   1 #
   2 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
   3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4 #
   5 # This code is free software; you can redistribute it and/or modify it
   6 # under the terms of the GNU General Public License version 2 only, as
   7 # published by the Free Software Foundation.  Oracle designates this
   8 # particular file as subject to the "Classpath" exception as provided
   9 # by Oracle in the LICENSE file that accompanied this code.
  10 #
  11 # This code is distributed in the hope that it will be useful, but WITHOUT
  12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14 # version 2 for more details (a copy is included in the LICENSE file that
  15 # accompanied this code).
  16 #
  17 # You should have received a copy of the GNU General Public License version
  18 # 2 along with this work; if not, write to the Free Software Foundation,
  19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20 #
  21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22 # or visit www.oracle.com if you need additional information or have any


 226       [
 227         if test "x$OPENJDK_TARGET_OS" = xaix; then
 228           if test "x$withval" = xexternal || test "x$withval" = xzipped; then
 229             AC_MSG_ERROR([AIX only supports the parameters 'none' and 'internal' for --with-native-debug-symbols])
 230           fi
 231         fi
 232       ],
 233       [
 234         if test "x$OPENJDK_TARGET_OS" = xaix; then
 235           # AIX doesn't support 'zipped' so use 'internal' as default
 236           with_native_debug_symbols="internal"
 237         else
 238           with_native_debug_symbols="zipped"
 239         fi
 240       ])
 241   NATIVE_DEBUG_SYMBOLS=$with_native_debug_symbols
 242   AC_MSG_RESULT([$NATIVE_DEBUG_SYMBOLS])
 243 
 244   if test "x$NATIVE_DEBUG_SYMBOLS" = xzipped; then
 245 
 246     if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xlinux; then
 247       if test "x$OBJCOPY" = x; then
 248         # enabling of enable-debug-symbols and can't find objcopy
 249         # this is an error
 250         AC_MSG_ERROR([Unable to find objcopy, cannot enable native debug symbols])
 251       fi
 252     fi
 253 
 254     COMPILE_WITH_DEBUG_SYMBOLS=true
 255     COPY_DEBUG_SYMBOLS=true
 256     ZIP_EXTERNAL_DEBUG_SYMBOLS=true
 257 
 258     # Hotspot legacy support, not relevant with COPY_DEBUG_SYMBOLS=true
 259     DEBUG_BINARIES=false
 260     STRIP_POLICY=min_strip
 261     
 262   elif test "x$NATIVE_DEBUG_SYMBOLS" = xnone; then
 263     COMPILE_WITH_DEBUG_SYMBOLS=false
 264     COPY_DEBUG_SYMBOLS=false
 265     ZIP_EXTERNAL_DEBUG_SYMBOLS=false
 266 
 267     DEBUG_BINARIES=false
 268     STRIP_POLICY=no_strip
 269   elif test "x$NATIVE_DEBUG_SYMBOLS" = xinternal; then
 270     COMPILE_WITH_DEBUG_SYMBOLS=true
 271     COPY_DEBUG_SYMBOLS=false
 272     ZIP_EXTERNAL_DEBUG_SYMBOLS=false
 273 
 274     # Hotspot legacy support, will turn on -g when COPY_DEBUG_SYMBOLS=false
 275     DEBUG_BINARIES=true
 276     STRIP_POLICY=no_strip
 277     STRIP=""
 278     
 279   elif test "x$NATIVE_DEBUG_SYMBOLS" = xexternal; then
 280 
 281     if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xlinux; then
 282       if test "x$OBJCOPY" = x; then
 283         # enabling of enable-debug-symbols and can't find objcopy
 284         # this is an error
 285         AC_MSG_ERROR([Unable to find objcopy, cannot enable native debug symbols])
 286       fi
 287     fi
 288 
 289     COMPILE_WITH_DEBUG_SYMBOLS=true
 290     COPY_DEBUG_SYMBOLS=true
 291     ZIP_EXTERNAL_DEBUG_SYMBOLS=false
 292 
 293     # Hotspot legacy support, not relevant with COPY_DEBUG_SYMBOLS=true
 294     DEBUG_BINARIES=false
 295     STRIP_POLICY=min_strip
 296   else
 297     AC_MSG_ERROR([Allowed native debug symbols are: none, internal, external, zipped])
 298   fi
 299 
 300   # --enable-debug-symbols is deprecated.
 301   # Please use --with-native-debug-symbols=[internal,external,zipped] .


   1 #
   2 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
   3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4 #
   5 # This code is free software; you can redistribute it and/or modify it
   6 # under the terms of the GNU General Public License version 2 only, as
   7 # published by the Free Software Foundation.  Oracle designates this
   8 # particular file as subject to the "Classpath" exception as provided
   9 # by Oracle in the LICENSE file that accompanied this code.
  10 #
  11 # This code is distributed in the hope that it will be useful, but WITHOUT
  12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14 # version 2 for more details (a copy is included in the LICENSE file that
  15 # accompanied this code).
  16 #
  17 # You should have received a copy of the GNU General Public License version
  18 # 2 along with this work; if not, write to the Free Software Foundation,
  19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20 #
  21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22 # or visit www.oracle.com if you need additional information or have any


 226       [
 227         if test "x$OPENJDK_TARGET_OS" = xaix; then
 228           if test "x$withval" = xexternal || test "x$withval" = xzipped; then
 229             AC_MSG_ERROR([AIX only supports the parameters 'none' and 'internal' for --with-native-debug-symbols])
 230           fi
 231         fi
 232       ],
 233       [
 234         if test "x$OPENJDK_TARGET_OS" = xaix; then
 235           # AIX doesn't support 'zipped' so use 'internal' as default
 236           with_native_debug_symbols="internal"
 237         else
 238           with_native_debug_symbols="zipped"
 239         fi
 240       ])
 241   NATIVE_DEBUG_SYMBOLS=$with_native_debug_symbols
 242   AC_MSG_RESULT([$NATIVE_DEBUG_SYMBOLS])
 243 
 244   if test "x$NATIVE_DEBUG_SYMBOLS" = xzipped; then
 245 
 246     if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xlinux || test "x$OPENJDK_TARGET_OS" = xbsd; then
 247       if test "x$OBJCOPY" = x; then
 248         # enabling of enable-debug-symbols and can't find objcopy
 249         # this is an error
 250         AC_MSG_ERROR([Unable to find objcopy, cannot enable native debug symbols])
 251       fi
 252     fi
 253 
 254     COMPILE_WITH_DEBUG_SYMBOLS=true
 255     COPY_DEBUG_SYMBOLS=true
 256     ZIP_EXTERNAL_DEBUG_SYMBOLS=true
 257 
 258     # Hotspot legacy support, not relevant with COPY_DEBUG_SYMBOLS=true
 259     DEBUG_BINARIES=false
 260     STRIP_POLICY=min_strip
 261     
 262   elif test "x$NATIVE_DEBUG_SYMBOLS" = xnone; then
 263     COMPILE_WITH_DEBUG_SYMBOLS=false
 264     COPY_DEBUG_SYMBOLS=false
 265     ZIP_EXTERNAL_DEBUG_SYMBOLS=false
 266 
 267     DEBUG_BINARIES=false
 268     STRIP_POLICY=no_strip
 269   elif test "x$NATIVE_DEBUG_SYMBOLS" = xinternal; then
 270     COMPILE_WITH_DEBUG_SYMBOLS=true
 271     COPY_DEBUG_SYMBOLS=false
 272     ZIP_EXTERNAL_DEBUG_SYMBOLS=false
 273 
 274     # Hotspot legacy support, will turn on -g when COPY_DEBUG_SYMBOLS=false
 275     DEBUG_BINARIES=true
 276     STRIP_POLICY=no_strip
 277     STRIP=""
 278     
 279   elif test "x$NATIVE_DEBUG_SYMBOLS" = xexternal; then
 280 
 281     if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xlinux || test "x$OPENJDK_TARGET_OS" = xbsd; then
 282       if test "x$OBJCOPY" = x; then
 283         # enabling of enable-debug-symbols and can't find objcopy
 284         # this is an error
 285         AC_MSG_ERROR([Unable to find objcopy, cannot enable native debug symbols])
 286       fi
 287     fi
 288 
 289     COMPILE_WITH_DEBUG_SYMBOLS=true
 290     COPY_DEBUG_SYMBOLS=true
 291     ZIP_EXTERNAL_DEBUG_SYMBOLS=false
 292 
 293     # Hotspot legacy support, not relevant with COPY_DEBUG_SYMBOLS=true
 294     DEBUG_BINARIES=false
 295     STRIP_POLICY=min_strip
 296   else
 297     AC_MSG_ERROR([Allowed native debug symbols are: none, internal, external, zipped])
 298   fi
 299 
 300   # --enable-debug-symbols is deprecated.
 301   # Please use --with-native-debug-symbols=[internal,external,zipped] .


< prev index next >