< prev index next >

make/autoconf/hotspot.m4

Print this page




 251 #
 252 AC_DEFUN_ONCE([HOTSPOT_ENABLE_DISABLE_CDS],
 253 [
 254   AC_ARG_ENABLE([cds], [AS_HELP_STRING([--enable-cds@<:@=yes/no/auto@:>@],
 255       [enable class data sharing feature in non-minimal VM. Default is auto, where cds is enabled if supported on the platform.])])
 256 
 257   if test "x$enable_cds" = "x" || test "x$enable_cds" = "xauto"; then
 258     ENABLE_CDS="true"
 259   elif test "x$enable_cds" = "xyes"; then
 260     ENABLE_CDS="true"
 261   elif test "x$enable_cds" = "xno"; then
 262     ENABLE_CDS="false"
 263   else
 264     AC_MSG_ERROR([Invalid value for --enable-cds: $enable_cds])
 265   fi
 266 
 267   AC_SUBST(ENABLE_CDS)
 268 ])
 269 
 270 ###############################################################################












































 271 # Set up all JVM features for each JVM variant.
 272 #
 273 AC_DEFUN_ONCE([HOTSPOT_SETUP_JVM_FEATURES],
 274 [
 275   # Prettify the VALID_JVM_FEATURES string
 276   BASIC_SORT_LIST(VALID_JVM_FEATURES, $VALID_JVM_FEATURES)
 277 
 278   # The user can in some cases supply additional jvm features. For the custom
 279   # variant, this defines the entire variant.
 280   AC_ARG_WITH([jvm-features], [AS_HELP_STRING([--with-jvm-features],
 281       [JVM features to enable (foo) or disable (-foo), separated by comma. Use '--help' to show possible values @<:@none@:>@])])
 282   if test "x$with_jvm_features" != x; then
 283     AC_MSG_CHECKING([user specified JVM feature list])
 284     USER_JVM_FEATURE_LIST=`$ECHO $with_jvm_features | $SED -e 's/,/ /g'`
 285     AC_MSG_RESULT([$user_jvm_feature_list])
 286     # These features will be added to all variant defaults
 287     JVM_FEATURES=`$ECHO $USER_JVM_FEATURE_LIST | $AWK '{ for (i=1; i<=NF; i++) if (!match($i, /^-.*/)) printf("%s ", $i) }'`
 288     # These features will be removed from all variant defaults
 289     DISABLED_JVM_FEATURES=`$ECHO $USER_JVM_FEATURE_LIST | $AWK '{ for (i=1; i<=NF; i++) if (match($i, /^-.*/)) printf("%s ", substr($i, 2))}'`
 290 




 251 #
 252 AC_DEFUN_ONCE([HOTSPOT_ENABLE_DISABLE_CDS],
 253 [
 254   AC_ARG_ENABLE([cds], [AS_HELP_STRING([--enable-cds@<:@=yes/no/auto@:>@],
 255       [enable class data sharing feature in non-minimal VM. Default is auto, where cds is enabled if supported on the platform.])])
 256 
 257   if test "x$enable_cds" = "x" || test "x$enable_cds" = "xauto"; then
 258     ENABLE_CDS="true"
 259   elif test "x$enable_cds" = "xyes"; then
 260     ENABLE_CDS="true"
 261   elif test "x$enable_cds" = "xno"; then
 262     ENABLE_CDS="false"
 263   else
 264     AC_MSG_ERROR([Invalid value for --enable-cds: $enable_cds])
 265   fi
 266 
 267   AC_SUBST(ENABLE_CDS)
 268 ])
 269 
 270 ###############################################################################
 271 # Check if the serviceability agent attach functionality should be included.
 272 #
 273 AC_DEFUN_ONCE([HOTSPOT_SETUP_SA],
 274 [
 275   # Test for serviceability agent attach dependencies
 276   AC_ARG_ENABLE([sa-attach], [AS_HELP_STRING([--enable-sa-attach@<:@=yes/no/auto@:>@],
 277       [enable serviceability agent attach. Default is auto, where it is enabled if all dependencies
 278       are present.])])
 279 
 280   SA_ATTACH_DEP_MISSING=false
 281 
 282   AC_CHECK_HEADERS([thread_db.h], [SA_ATTACH_HEADERS_OK=yes],[SA_ATTACH_HEADERS_OK=no])
 283   if test "x$SA_ATTACH_HEADERS_OK" != "xyes"; then
 284     SA_ATTACH_DEP_MISSING=true
 285   fi
 286 
 287   AC_MSG_CHECKING([if serviceability agent attach should be included])
 288   if test "x$enable_sa_attach" = "xyes"; then
 289     if test "x$SA_ATTACH_DEP_MISSING" = "xtrue"; then
 290       AC_MSG_RESULT([no, missing dependencies])
 291       HELP_MSG_MISSING_DEPENDENCY([sa-attach])
 292       AC_MSG_ERROR([Cannot enable sa-attach with missing dependencies. See above. $HELP_MSG])
 293     else
 294       INCLUDE_SA_ATTACH=true
 295       AC_MSG_RESULT([yes, forced])
 296     fi
 297   elif test "x$enable_sa_attach" = "xno"; then
 298     INCLUDE_SA_ATTACH=false
 299     AC_MSG_RESULT([no, forced])
 300   elif test "x$enable_sa_attach" = "xauto" || test "x$enable_sa_attach" = "x"; then
 301     if test "x$SA_ATTACH_DEP_MISSING" = "xtrue"; then
 302       INCLUDE_SA_ATTACH=false
 303       AC_MSG_RESULT([no, missing dependencies])
 304     else
 305       INCLUDE_SA_ATTACH=true
 306       AC_MSG_RESULT([yes, dependencies present])
 307     fi
 308   else
 309     AC_MSG_ERROR([Invalid value for --enable-sa-attach: $enable_sa_attach])
 310   fi
 311   AC_SUBST(INCLUDE_SA_ATTACH)
 312 ])
 313 
 314 ###############################################################################
 315 # Set up all JVM features for each JVM variant.
 316 #
 317 AC_DEFUN_ONCE([HOTSPOT_SETUP_JVM_FEATURES],
 318 [
 319   # Prettify the VALID_JVM_FEATURES string
 320   BASIC_SORT_LIST(VALID_JVM_FEATURES, $VALID_JVM_FEATURES)
 321 
 322   # The user can in some cases supply additional jvm features. For the custom
 323   # variant, this defines the entire variant.
 324   AC_ARG_WITH([jvm-features], [AS_HELP_STRING([--with-jvm-features],
 325       [JVM features to enable (foo) or disable (-foo), separated by comma. Use '--help' to show possible values @<:@none@:>@])])
 326   if test "x$with_jvm_features" != x; then
 327     AC_MSG_CHECKING([user specified JVM feature list])
 328     USER_JVM_FEATURE_LIST=`$ECHO $with_jvm_features | $SED -e 's/,/ /g'`
 329     AC_MSG_RESULT([$user_jvm_feature_list])
 330     # These features will be added to all variant defaults
 331     JVM_FEATURES=`$ECHO $USER_JVM_FEATURE_LIST | $AWK '{ for (i=1; i<=NF; i++) if (!match($i, /^-.*/)) printf("%s ", $i) }'`
 332     # These features will be removed from all variant defaults
 333     DISABLED_JVM_FEATURES=`$ECHO $USER_JVM_FEATURE_LIST | $AWK '{ for (i=1; i<=NF; i++) if (match($i, /^-.*/)) printf("%s ", substr($i, 2))}'`
 334 


< prev index next >