< prev index next >

make/autoconf/jdk-options.m4

Print this page

 685       CHECKING_MSG: [if a default CDS archive should be generated],
 686       CHECK_AVAILABLE: [
 687         AC_MSG_CHECKING([if CDS archive is available])
 688         if test "x$ENABLE_CDS" = "xfalse"; then
 689           AC_MSG_RESULT([no (CDS is disabled)])
 690           AVAILABLE=false
 691         elif test "x$COMPILE_TYPE" = "xcross"; then
 692           AC_MSG_RESULT([no (not possible with cross compilation)])
 693           AVAILABLE=false
 694         else
 695           AC_MSG_RESULT([yes])
 696         fi
 697       ])
 698   AC_SUBST(BUILD_CDS_ARCHIVE)
 699 ])
 700 
 701 ################################################################################
 702 #
 703 # Enable or disable the default CDS archive generation for Compact Object Headers
 704 #


 705 AC_DEFUN([JDKOPT_ENABLE_DISABLE_CDS_ARCHIVE_COH],
 706 [
 707   UTIL_ARG_ENABLE(NAME: cds-archive-coh, DEFAULT: auto, RESULT: BUILD_CDS_ARCHIVE_COH,
 708       DESC: [enable generation of default CDS archives for compact object headers (requires --enable-cds-archive)],
 709       DEFAULT_DESC: [auto],
 710       CHECKING_MSG: [if default CDS archives for compact object headers should be generated],
 711       CHECK_AVAILABLE: [
 712         AC_MSG_CHECKING([if CDS archive with compact object headers is available])
 713         if test "x$BUILD_CDS_ARCHIVE" = "xfalse"; then
 714           AC_MSG_RESULT([no (CDS default archive generation is disabled)])
 715           AVAILABLE=false
 716         elif test "x$OPENJDK_TARGET_CPU" != "xx86_64" &&
 717              test "x$OPENJDK_TARGET_CPU" != "xaarch64" &&
 718              test "x$OPENJDK_TARGET_CPU" != "xppc64" &&
 719              test "x$OPENJDK_TARGET_CPU" != "xppc64le" &&
 720              test "x$OPENJDK_TARGET_CPU" != "xriscv64" &&
 721              test "x$OPENJDK_TARGET_CPU" != "xs390x"; then
 722           AC_MSG_RESULT([no (compact object headers not supported for this platform)])
 723           AVAILABLE=false
 724         else
 725           AC_MSG_RESULT([yes])
 726           AVAILABLE=true
 727         fi

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