< prev index next >

make/autoconf/jdk-options.m4

Print this page

640 [
641   UTIL_ARG_ENABLE(NAME: cds-archive, DEFAULT: auto, RESULT: BUILD_CDS_ARCHIVE,
642       DESC: [enable generation of a default CDS archive in the product image],
643       DEFAULT_DESC: [enabled if possible],
644       CHECKING_MSG: [if a default CDS archive should be generated],
645       CHECK_AVAILABLE: [
646         AC_MSG_CHECKING([if CDS archive is available])
647         if test "x$ENABLE_CDS" = "xfalse"; then
648           AC_MSG_RESULT([no (CDS is disabled)])
649           AVAILABLE=false
650         elif test "x$COMPILE_TYPE" = "xcross"; then
651           AC_MSG_RESULT([no (not possible with cross compilation)])
652           AVAILABLE=false
653         else
654           AC_MSG_RESULT([yes])
655         fi
656       ])
657   AC_SUBST(BUILD_CDS_ARCHIVE)
658 ])
659 


























660 ################################################################################
661 #
662 # Enable the alternative CDS core region alignment
663 #
664 AC_DEFUN([JDKOPT_ENABLE_DISABLE_COMPATIBLE_CDS_ALIGNMENT],
665 [
666   UTIL_ARG_ENABLE(NAME: compatible-cds-alignment, DEFAULT: $COMPATIBLE_CDS_ALIGNMENT_DEFAULT,
667       RESULT: ENABLE_COMPATIBLE_CDS_ALIGNMENT,
668       DESC: [enable use alternative compatible cds core region alignment],
669       DEFAULT_DESC: [disabled],
670       CHECKING_MSG: [if compatible cds region alignment enabled],
671       CHECK_AVAILABLE: [
672         AC_MSG_CHECKING([if CDS archive is available])
673         if test "x$ENABLE_CDS" = "xfalse"; then
674           AVAILABLE=false
675           AC_MSG_RESULT([no (CDS is disabled)])
676         else
677           AVAILABLE=true
678           AC_MSG_RESULT([yes])
679         fi

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