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