< prev index next >

make/autoconf/jdk-options.m4

Print this page

   1 #
   2 # Copyright (c) 2011, 2025, 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

 761       CHECKING_MSG: [if a default CDS archive should be generated],
 762       CHECK_AVAILABLE: [
 763         AC_MSG_CHECKING([if CDS archive is available])
 764         if test "x$ENABLE_CDS" = "xfalse"; then
 765           AC_MSG_RESULT([no (CDS is disabled)])
 766           AVAILABLE=false
 767         elif test "x$COMPILE_TYPE" = "xcross"; then
 768           AC_MSG_RESULT([no (not possible with cross compilation)])
 769           AVAILABLE=false
 770         else
 771           AC_MSG_RESULT([yes])
 772         fi
 773       ])
 774   AC_SUBST(BUILD_CDS_ARCHIVE)
 775 ])
 776 
 777 ################################################################################
 778 #
 779 # Enable or disable the default CDS archive generation for Compact Object Headers
 780 #


 781 AC_DEFUN([JDKOPT_ENABLE_DISABLE_CDS_ARCHIVE_COH],
 782 [
 783   UTIL_ARG_ENABLE(NAME: cds-archive-coh, DEFAULT: auto, RESULT: BUILD_CDS_ARCHIVE_COH,
 784       DESC: [enable generation of default CDS archives for compact object headers (requires --enable-cds-archive)],
 785       DEFAULT_DESC: [auto],
 786       CHECKING_MSG: [if default CDS archives for compact object headers should be generated],
 787       CHECK_AVAILABLE: [
 788         AC_MSG_CHECKING([if CDS archive with compact object headers is available])
 789         if test "x$BUILD_CDS_ARCHIVE" = "xfalse"; then
 790           AC_MSG_RESULT([no (CDS default archive generation is disabled)])
 791           AVAILABLE=false
 792         elif test "x$OPENJDK_TARGET_CPU" != "xx86_64" &&
 793              test "x$OPENJDK_TARGET_CPU" != "xaarch64" &&
 794              test "x$OPENJDK_TARGET_CPU" != "xppc64" &&
 795              test "x$OPENJDK_TARGET_CPU" != "xppc64le" &&
 796              test "x$OPENJDK_TARGET_CPU" != "xriscv64" &&
 797              test "x$OPENJDK_TARGET_CPU" != "xs390x"; then
 798           AC_MSG_RESULT([no (compact object headers not supported for this platform)])
 799           AVAILABLE=false
 800         else

   1 #
   2 # Copyright (c) 2011, 2026, 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

 761       CHECKING_MSG: [if a default CDS archive should be generated],
 762       CHECK_AVAILABLE: [
 763         AC_MSG_CHECKING([if CDS archive is available])
 764         if test "x$ENABLE_CDS" = "xfalse"; then
 765           AC_MSG_RESULT([no (CDS is disabled)])
 766           AVAILABLE=false
 767         elif test "x$COMPILE_TYPE" = "xcross"; then
 768           AC_MSG_RESULT([no (not possible with cross compilation)])
 769           AVAILABLE=false
 770         else
 771           AC_MSG_RESULT([yes])
 772         fi
 773       ])
 774   AC_SUBST(BUILD_CDS_ARCHIVE)
 775 ])
 776 
 777 ################################################################################
 778 #
 779 # Enable or disable the default CDS archive generation for Compact Object Headers
 780 #
 781 # Default disabled within Valhalla until support added (JDK-8348568)
 782 #
 783 AC_DEFUN([JDKOPT_ENABLE_DISABLE_CDS_ARCHIVE_COH],
 784 [
 785   UTIL_ARG_ENABLE(NAME: cds-archive-coh, DEFAULT: auto, RESULT: BUILD_CDS_ARCHIVE_COH,
 786       DESC: [enable generation of default CDS archives for compact object headers (requires --enable-cds-archive)],
 787       DEFAULT_DESC: [auto],
 788       CHECKING_MSG: [if default CDS archives for compact object headers should be generated],
 789       CHECK_AVAILABLE: [
 790         AC_MSG_CHECKING([if CDS archive with compact object headers is available])
 791         if test "x$BUILD_CDS_ARCHIVE" = "xfalse"; then
 792           AC_MSG_RESULT([no (CDS default archive generation is disabled)])
 793           AVAILABLE=false
 794         elif test "x$OPENJDK_TARGET_CPU" != "xx86_64" &&
 795              test "x$OPENJDK_TARGET_CPU" != "xaarch64" &&
 796              test "x$OPENJDK_TARGET_CPU" != "xppc64" &&
 797              test "x$OPENJDK_TARGET_CPU" != "xppc64le" &&
 798              test "x$OPENJDK_TARGET_CPU" != "xriscv64" &&
 799              test "x$OPENJDK_TARGET_CPU" != "xs390x"; then
 800           AC_MSG_RESULT([no (compact object headers not supported for this platform)])
 801           AVAILABLE=false
 802         else
< prev index next >