< prev index next >

make/autoconf/jdk-options.m4

Print this page

 707       CHECKING_MSG: [if a default CDS archive should be generated],
 708       CHECK_AVAILABLE: [
 709         AC_MSG_CHECKING([if CDS archive is available])
 710         if test "x$ENABLE_CDS" = "xfalse"; then
 711           AC_MSG_RESULT([no (CDS is disabled)])
 712           AVAILABLE=false
 713         elif test "x$COMPILE_TYPE" = "xcross"; then
 714           AC_MSG_RESULT([no (not possible with cross compilation)])
 715           AVAILABLE=false
 716         else
 717           AC_MSG_RESULT([yes])
 718         fi
 719       ])
 720   AC_SUBST(BUILD_CDS_ARCHIVE)
 721 ])
 722 
 723 ################################################################################
 724 #
 725 # Enable or disable the default CDS archive generation for Compact Object Headers
 726 #


 727 AC_DEFUN([JDKOPT_ENABLE_DISABLE_CDS_ARCHIVE_COH],
 728 [
 729   UTIL_ARG_ENABLE(NAME: cds-archive-coh, DEFAULT: auto, RESULT: BUILD_CDS_ARCHIVE_COH,
 730       DESC: [enable generation of default CDS archives for compact object headers (requires --enable-cds-archive)],
 731       DEFAULT_DESC: [auto],
 732       CHECKING_MSG: [if default CDS archives for compact object headers should be generated],
 733       CHECK_AVAILABLE: [
 734         AC_MSG_CHECKING([if CDS archive with compact object headers is available])
 735         if test "x$BUILD_CDS_ARCHIVE" = "xfalse"; then
 736           AC_MSG_RESULT([no (CDS default archive generation is disabled)])
 737           AVAILABLE=false
 738         elif test "x$OPENJDK_TARGET_CPU" != "xx86_64" &&
 739              test "x$OPENJDK_TARGET_CPU" != "xaarch64" &&
 740              test "x$OPENJDK_TARGET_CPU" != "xppc64" &&
 741              test "x$OPENJDK_TARGET_CPU" != "xppc64le" &&
 742              test "x$OPENJDK_TARGET_CPU" != "xriscv64" &&
 743              test "x$OPENJDK_TARGET_CPU" != "xs390x"; then
 744           AC_MSG_RESULT([no (compact object headers not supported for this platform)])
 745           AVAILABLE=false
 746         else
 747           AC_MSG_RESULT([yes])
 748           AVAILABLE=true
 749         fi

 707       CHECKING_MSG: [if a default CDS archive should be generated],
 708       CHECK_AVAILABLE: [
 709         AC_MSG_CHECKING([if CDS archive is available])
 710         if test "x$ENABLE_CDS" = "xfalse"; then
 711           AC_MSG_RESULT([no (CDS is disabled)])
 712           AVAILABLE=false
 713         elif test "x$COMPILE_TYPE" = "xcross"; then
 714           AC_MSG_RESULT([no (not possible with cross compilation)])
 715           AVAILABLE=false
 716         else
 717           AC_MSG_RESULT([yes])
 718         fi
 719       ])
 720   AC_SUBST(BUILD_CDS_ARCHIVE)
 721 ])
 722 
 723 ################################################################################
 724 #
 725 # Enable or disable the default CDS archive generation for Compact Object Headers
 726 #
 727 # Default disabled within Valhalla until support added (JDK-8348568)
 728 #
 729 AC_DEFUN([JDKOPT_ENABLE_DISABLE_CDS_ARCHIVE_COH],
 730 [
 731   UTIL_ARG_ENABLE(NAME: cds-archive-coh, DEFAULT: false, RESULT: BUILD_CDS_ARCHIVE_COH,
 732       DESC: [enable generation of default CDS archives for compact object headers (requires --enable-cds-archive)],
 733       DEFAULT_DESC: [auto],
 734       CHECKING_MSG: [if default CDS archives for compact object headers should be generated],
 735       CHECK_AVAILABLE: [
 736         AC_MSG_CHECKING([if CDS archive with compact object headers is available])
 737         if test "x$BUILD_CDS_ARCHIVE" = "xfalse"; then
 738           AC_MSG_RESULT([no (CDS default archive generation is disabled)])
 739           AVAILABLE=false
 740         elif test "x$OPENJDK_TARGET_CPU" != "xx86_64" &&
 741              test "x$OPENJDK_TARGET_CPU" != "xaarch64" &&
 742              test "x$OPENJDK_TARGET_CPU" != "xppc64" &&
 743              test "x$OPENJDK_TARGET_CPU" != "xppc64le" &&
 744              test "x$OPENJDK_TARGET_CPU" != "xriscv64" &&
 745              test "x$OPENJDK_TARGET_CPU" != "xs390x"; then
 746           AC_MSG_RESULT([no (compact object headers not supported for this platform)])
 747           AVAILABLE=false
 748         else
 749           AC_MSG_RESULT([yes])
 750           AVAILABLE=true
 751         fi
< prev index next >