692 CHECKING_MSG: [if a default CDS archive should be generated],
693 CHECK_AVAILABLE: [
694 AC_MSG_CHECKING([if CDS archive is available])
695 if test "x$ENABLE_CDS" = "xfalse"; then
696 AC_MSG_RESULT([no (CDS is disabled)])
697 AVAILABLE=false
698 elif test "x$COMPILE_TYPE" = "xcross"; then
699 AC_MSG_RESULT([no (not possible with cross compilation)])
700 AVAILABLE=false
701 else
702 AC_MSG_RESULT([yes])
703 fi
704 ])
705 AC_SUBST(BUILD_CDS_ARCHIVE)
706 ])
707
708 ################################################################################
709 #
710 # Enable or disable the default CDS archive generation for Compact Object Headers
711 #
712 AC_DEFUN([JDKOPT_ENABLE_DISABLE_CDS_ARCHIVE_COH],
713 [
714 UTIL_ARG_ENABLE(NAME: cds-archive-coh, DEFAULT: auto, RESULT: BUILD_CDS_ARCHIVE_COH,
715 DESC: [enable generation of default CDS archives for compact object headers (requires --enable-cds-archive)],
716 DEFAULT_DESC: [auto],
717 CHECKING_MSG: [if default CDS archives for compact object headers should be generated],
718 CHECK_AVAILABLE: [
719 AC_MSG_CHECKING([if CDS archive with compact object headers is available])
720 if test "x$BUILD_CDS_ARCHIVE" = "xfalse"; then
721 AC_MSG_RESULT([no (CDS default archive generation is disabled)])
722 AVAILABLE=false
723 elif test "x$OPENJDK_TARGET_CPU" != "xx86_64" &&
724 test "x$OPENJDK_TARGET_CPU" != "xaarch64" &&
725 test "x$OPENJDK_TARGET_CPU" != "xppc64" &&
726 test "x$OPENJDK_TARGET_CPU" != "xppc64le" &&
727 test "x$OPENJDK_TARGET_CPU" != "xriscv64" &&
728 test "x$OPENJDK_TARGET_CPU" != "xs390x"; then
729 AC_MSG_RESULT([no (compact object headers not supported for this platform)])
730 AVAILABLE=false
731 else
732 AC_MSG_RESULT([yes])
733 AVAILABLE=true
734 fi
|
692 CHECKING_MSG: [if a default CDS archive should be generated],
693 CHECK_AVAILABLE: [
694 AC_MSG_CHECKING([if CDS archive is available])
695 if test "x$ENABLE_CDS" = "xfalse"; then
696 AC_MSG_RESULT([no (CDS is disabled)])
697 AVAILABLE=false
698 elif test "x$COMPILE_TYPE" = "xcross"; then
699 AC_MSG_RESULT([no (not possible with cross compilation)])
700 AVAILABLE=false
701 else
702 AC_MSG_RESULT([yes])
703 fi
704 ])
705 AC_SUBST(BUILD_CDS_ARCHIVE)
706 ])
707
708 ################################################################################
709 #
710 # Enable or disable the default CDS archive generation for Compact Object Headers
711 #
712 # Default disabled within Valhalla until support added (JDK-8348568)
713 #
714 AC_DEFUN([JDKOPT_ENABLE_DISABLE_CDS_ARCHIVE_COH],
715 [
716 UTIL_ARG_ENABLE(NAME: cds-archive-coh, DEFAULT: false, RESULT: BUILD_CDS_ARCHIVE_COH,
717 DESC: [enable generation of default CDS archives for compact object headers (requires --enable-cds-archive)],
718 DEFAULT_DESC: [auto],
719 CHECKING_MSG: [if default CDS archives for compact object headers should be generated],
720 CHECK_AVAILABLE: [
721 AC_MSG_CHECKING([if CDS archive with compact object headers is available])
722 if test "x$BUILD_CDS_ARCHIVE" = "xfalse"; then
723 AC_MSG_RESULT([no (CDS default archive generation is disabled)])
724 AVAILABLE=false
725 elif test "x$OPENJDK_TARGET_CPU" != "xx86_64" &&
726 test "x$OPENJDK_TARGET_CPU" != "xaarch64" &&
727 test "x$OPENJDK_TARGET_CPU" != "xppc64" &&
728 test "x$OPENJDK_TARGET_CPU" != "xppc64le" &&
729 test "x$OPENJDK_TARGET_CPU" != "xriscv64" &&
730 test "x$OPENJDK_TARGET_CPU" != "xs390x"; then
731 AC_MSG_RESULT([no (compact object headers not supported for this platform)])
732 AVAILABLE=false
733 else
734 AC_MSG_RESULT([yes])
735 AVAILABLE=true
736 fi
|