1 #
2 # Copyright (c) 2011, 2023, 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
650 [
651 UTIL_ARG_ENABLE(NAME: cds-archive, DEFAULT: auto, RESULT: BUILD_CDS_ARCHIVE,
652 DESC: [enable generation of a default CDS archive in the product image],
653 DEFAULT_DESC: [enabled if possible],
654 CHECKING_MSG: [if a default CDS archive should be generated],
655 CHECK_AVAILABLE: [
656 AC_MSG_CHECKING([if CDS archive is available])
657 if test "x$ENABLE_CDS" = "xfalse"; then
658 AC_MSG_RESULT([no (CDS is disabled)])
659 AVAILABLE=false
660 elif test "x$COMPILE_TYPE" = "xcross"; then
661 AC_MSG_RESULT([no (not possible with cross compilation)])
662 AVAILABLE=false
663 else
664 AC_MSG_RESULT([yes])
665 fi
666 ])
667 AC_SUBST(BUILD_CDS_ARCHIVE)
668 ])
669
670 ################################################################################
671 #
672 # Enable the alternative CDS core region alignment
673 #
674 AC_DEFUN([JDKOPT_ENABLE_DISABLE_COMPATIBLE_CDS_ALIGNMENT],
675 [
676 UTIL_ARG_ENABLE(NAME: compatible-cds-alignment, DEFAULT: false,
677 RESULT: ENABLE_COMPATIBLE_CDS_ALIGNMENT,
678 DESC: [enable use alternative compatible cds core region alignment],
679 DEFAULT_DESC: [disabled],
680 CHECKING_MSG: [if compatible cds region alignment enabled],
681 CHECK_AVAILABLE: [
682 AC_MSG_CHECKING([if CDS archive is available])
683 if test "x$ENABLE_CDS" = "xfalse"; then
684 AVAILABLE=false
685 AC_MSG_RESULT([no (CDS is disabled)])
686 else
687 AVAILABLE=true
688 AC_MSG_RESULT([yes])
689 fi
|
1 #
2 # Copyright (c) 2011, 2024, 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
650 [
651 UTIL_ARG_ENABLE(NAME: cds-archive, DEFAULT: auto, RESULT: BUILD_CDS_ARCHIVE,
652 DESC: [enable generation of a default CDS archive in the product image],
653 DEFAULT_DESC: [enabled if possible],
654 CHECKING_MSG: [if a default CDS archive should be generated],
655 CHECK_AVAILABLE: [
656 AC_MSG_CHECKING([if CDS archive is available])
657 if test "x$ENABLE_CDS" = "xfalse"; then
658 AC_MSG_RESULT([no (CDS is disabled)])
659 AVAILABLE=false
660 elif test "x$COMPILE_TYPE" = "xcross"; then
661 AC_MSG_RESULT([no (not possible with cross compilation)])
662 AVAILABLE=false
663 else
664 AC_MSG_RESULT([yes])
665 fi
666 ])
667 AC_SUBST(BUILD_CDS_ARCHIVE)
668 ])
669
670 ################################################################################
671 #
672 # Enable or disable the default CDS archive generation for Compact Object Headers
673 #
674 AC_DEFUN([JDKOPT_ENABLE_DISABLE_CDS_ARCHIVE_COH],
675 [
676 UTIL_ARG_ENABLE(NAME: cds-archive-coh, DEFAULT: auto, RESULT: BUILD_CDS_ARCHIVE_COH,
677 DESC: [enable generation of default CDS archives for compact object headers (requires --enable-cds-archive)],
678 DEFAULT_DESC: [auto],
679 CHECKING_MSG: [if default CDS archives for compact object headers should be generated],
680 CHECK_AVAILABLE: [
681 AC_MSG_CHECKING([if CDS archive with compact object headers is available])
682 if test "x$BUILD_CDS_ARCHIVE" = "xfalse"; then
683 AC_MSG_RESULT([no (CDS default archive generation is disabled)])
684 AVAILABLE=false
685 elif test "x$OPENJDK_TARGET_CPU" != "xx86_64" &&
686 test "x$OPENJDK_TARGET_CPU" != "xaarch64"; then
687 AC_MSG_RESULT([no (compact object headers not supported for this platform)])
688 AVAILABLE=false
689 else
690 AC_MSG_RESULT([yes])
691 fi
692 ])
693 AC_SUBST(BUILD_CDS_ARCHIVE_COH)
694 ])
695
696 ################################################################################
697 #
698 # Enable the alternative CDS core region alignment
699 #
700 AC_DEFUN([JDKOPT_ENABLE_DISABLE_COMPATIBLE_CDS_ALIGNMENT],
701 [
702 UTIL_ARG_ENABLE(NAME: compatible-cds-alignment, DEFAULT: false,
703 RESULT: ENABLE_COMPATIBLE_CDS_ALIGNMENT,
704 DESC: [enable use alternative compatible cds core region alignment],
705 DEFAULT_DESC: [disabled],
706 CHECKING_MSG: [if compatible cds region alignment enabled],
707 CHECK_AVAILABLE: [
708 AC_MSG_CHECKING([if CDS archive is available])
709 if test "x$ENABLE_CDS" = "xfalse"; then
710 AVAILABLE=false
711 AC_MSG_RESULT([no (CDS is disabled)])
712 else
713 AVAILABLE=true
714 AC_MSG_RESULT([yes])
715 fi
|