< prev index next >

make/autoconf/hotspot.m4

Print this page
rev 47445 : 8171853: Remove Shark compiler


   7 # published by the Free Software Foundation.  Oracle designates this
   8 # particular file as subject to the "Classpath" exception as provided
   9 # by Oracle in the LICENSE file that accompanied this code.
  10 #
  11 # This code is distributed in the hope that it will be useful, but WITHOUT
  12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14 # version 2 for more details (a copy is included in the LICENSE file that
  15 # accompanied this code).
  16 #
  17 # You should have received a copy of the GNU General Public License version
  18 # 2 along with this work; if not, write to the Free Software Foundation,
  19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20 #
  21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22 # or visit www.oracle.com if you need additional information or have any
  23 # questions.
  24 #
  25 
  26 # All valid JVM features, regardless of platform
  27 VALID_JVM_FEATURES="compiler1 compiler2 zero shark minimal dtrace jvmti jvmci \
  28     graal vm-structs jni-check services management all-gcs nmt cds \
  29     static-build link-time-opt aot"
  30 
  31 # All valid JVM variants
  32 VALID_JVM_VARIANTS="server client minimal core zero zeroshark custom"
  33 
  34 ###############################################################################
  35 # Check if the specified JVM variant should be built. To be used in shell if
  36 # constructs, like this:
  37 # if HOTSPOT_CHECK_JVM_VARIANT(server); then
  38 #
  39 # Only valid to use after HOTSPOT_SETUP_JVM_VARIANTS has setup variants.
  40 
  41 # Definition kept in one line to allow inlining in if statements.
  42 # Additional [] needed to keep m4 from mangling shell constructs.
  43 AC_DEFUN([HOTSPOT_CHECK_JVM_VARIANT],
  44 [ [ [[ " $JVM_VARIANTS " =~ " $1 " ]] ] ])
  45 
  46 ###############################################################################
  47 # Check if the specified JVM features are explicitly enabled. To be used in
  48 # shell if constructs, like this:
  49 # if HOTSPOT_CHECK_JVM_FEATURE(jvmti); then
  50 #
  51 # Only valid to use after HOTSPOT_SETUP_JVM_FEATURES has setup features.
  52 
  53 # Definition kept in one line to allow inlining in if statements.
  54 # Additional [] needed to keep m4 from mangling shell constructs.
  55 AC_DEFUN([HOTSPOT_CHECK_JVM_FEATURE],
  56 [ [ [[ " $JVM_FEATURES " =~ " $1 " ]] ] ])
  57 
  58 ###############################################################################
  59 # Check which variants of the JVM that we want to build. Available variants are:
  60 #   server: normal interpreter, and a tiered C1/C2 compiler
  61 #   client: normal interpreter, and C1 (no C2 compiler)
  62 #   minimal: reduced form of client with optional features stripped out
  63 #   core: normal interpreter only, no compiler
  64 #   zero: C++ based interpreter only, no compiler
  65 #   zeroshark: C++ based interpreter, and a llvm-based compiler
  66 #   custom: baseline JVM with no default features
  67 #
  68 AC_DEFUN_ONCE([HOTSPOT_SETUP_JVM_VARIANTS],
  69 [
  70   AC_ARG_WITH([jvm-variants], [AS_HELP_STRING([--with-jvm-variants],
  71       [JVM variants (separated by commas) to build (server,client,minimal,core,zero,zeroshark,custom) @<:@server@:>@])])
  72 
  73   SETUP_HOTSPOT_TARGET_CPU_PORT
  74 
  75   if test "x$with_jvm_variants" = x; then
  76     with_jvm_variants="server"
  77   fi
  78   JVM_VARIANTS_OPT="$with_jvm_variants"
  79 
  80   # Has the user listed more than one variant?
  81   # Additional [] needed to keep m4 from mangling shell constructs.
  82   if [ [[ "$JVM_VARIANTS_OPT" =~ "," ]] ]; then
  83     BUILDING_MULTIPLE_JVM_VARIANTS=true
  84   else
  85     BUILDING_MULTIPLE_JVM_VARIANTS=false
  86   fi
  87   # Replace the commas with AND for use in the build directory name.
  88   JVM_VARIANTS_WITH_AND=`$ECHO "$JVM_VARIANTS_OPT" | $SED -e 's/,/AND/g'`
  89 
  90   AC_MSG_CHECKING([which variants of the JVM to build])
  91   # JVM_VARIANTS is a space-separated list.


 115   fi
 116 
 117   # The "main" variant is the one used by other libs to link against during the
 118   # build.
 119   if test "x$BUILDING_MULTIPLE_JVM_VARIANTS" = "xtrue"; then
 120     MAIN_VARIANT_PRIO_ORDER="server client minimal"
 121     for variant in $MAIN_VARIANT_PRIO_ORDER; do
 122       if HOTSPOT_CHECK_JVM_VARIANT($variant); then
 123         JVM_VARIANT_MAIN="$variant"
 124         break
 125       fi
 126     done
 127   else
 128     JVM_VARIANT_MAIN="$JVM_VARIANTS"
 129   fi
 130 
 131   AC_SUBST(JVM_VARIANTS)
 132   AC_SUBST(VALID_JVM_VARIANTS)
 133   AC_SUBST(JVM_VARIANT_MAIN)
 134 
 135   if HOTSPOT_CHECK_JVM_VARIANT(zero) || HOTSPOT_CHECK_JVM_VARIANT(zeroshark); then
 136     # zero behaves as a platform and rewrites these values. This is really weird. :(
 137     # We are guaranteed that we do not build any other variants when building zero.
 138     HOTSPOT_TARGET_CPU=zero
 139     HOTSPOT_TARGET_CPU_ARCH=zero
 140   fi
 141 ])
 142 
 143 ###############################################################################
 144 # Check if dtrace should be enabled and has all prerequisites present.
 145 #
 146 AC_DEFUN_ONCE([HOTSPOT_SETUP_DTRACE],
 147 [
 148   # Test for dtrace dependencies
 149   AC_ARG_ENABLE([dtrace], [AS_HELP_STRING([--enable-dtrace@<:@=yes/no/auto@:>@],
 150       [enable dtrace. Default is auto, where dtrace is enabled if all dependencies
 151       are present.])])
 152 
 153   DTRACE_DEP_MISSING=false
 154 
 155   AC_MSG_CHECKING([for dtrace tool])


 308     AC_MSG_ERROR([Specified JVM feature 'vm-structs' requires feature 'all-gcs'])
 309   fi
 310 
 311   # Turn on additional features based on other parts of configure
 312   if test "x$INCLUDE_DTRACE" = "xtrue"; then
 313     JVM_FEATURES="$JVM_FEATURES dtrace"
 314   else
 315     if HOTSPOT_CHECK_JVM_FEATURE(dtrace); then
 316       AC_MSG_ERROR([To enable dtrace, you must use --enable-dtrace])
 317     fi
 318   fi
 319 
 320   if test "x$STATIC_BUILD" = "xtrue"; then
 321     JVM_FEATURES="$JVM_FEATURES static-build"
 322   else
 323     if HOTSPOT_CHECK_JVM_FEATURE(static-build); then
 324       AC_MSG_ERROR([To enable static-build, you must use --enable-static-build])
 325     fi
 326   fi
 327 
 328   if ! HOTSPOT_CHECK_JVM_VARIANT(zero) && ! HOTSPOT_CHECK_JVM_VARIANT(zeroshark); then
 329     if HOTSPOT_CHECK_JVM_FEATURE(zero); then
 330       AC_MSG_ERROR([To enable zero/zeroshark, you must use --with-jvm-variants=zero/zeroshark])
 331     fi
 332   fi
 333 
 334   if ! HOTSPOT_CHECK_JVM_VARIANT(zeroshark); then
 335     if HOTSPOT_CHECK_JVM_FEATURE(shark); then
 336       AC_MSG_ERROR([To enable shark, you must use --with-jvm-variants=zeroshark])
 337     fi
 338   fi
 339 
 340   # Only enable jvmci on x86_64, sparcv9 and aarch64.
 341   if test "x$OPENJDK_TARGET_CPU" = "xx86_64" || \
 342      test "x$OPENJDK_TARGET_CPU" = "xsparcv9" || \
 343      test "x$OPENJDK_TARGET_CPU" = "xaarch64" ; then
 344     JVM_FEATURES_jvmci="jvmci"
 345   else
 346     JVM_FEATURES_jvmci=""
 347   fi
 348 
 349   AC_MSG_CHECKING([if jdk.internal.vm.compiler should be built])
 350   if HOTSPOT_CHECK_JVM_FEATURE(graal); then
 351     AC_MSG_RESULT([yes, forced])
 352     if test "x$JVM_FEATURES_jvmci" != "xjvmci" ; then
 353       AC_MSG_ERROR([Specified JVM feature 'graal' requires feature 'jvmci'])
 354     fi
 355     INCLUDE_GRAAL="true"
 356   else
 357     # By default enable graal build on linux-x64 or where AOT is available.
 358     # graal build requires jvmci.
 359     if test "x$JVM_FEATURES_jvmci" = "xjvmci" && \


 391 
 392   if test "x$OPENJDK_TARGET_CPU" = xarm ; then
 393     # Default to use link time optimizations on minimal on arm
 394     JVM_FEATURES_link_time_opt="link-time-opt"
 395   else
 396     JVM_FEATURES_link_time_opt=""
 397   fi
 398 
 399   # All variants but minimal (and custom) get these features
 400   NON_MINIMAL_FEATURES="$NON_MINIMAL_FEATURES jvmti vm-structs jni-check services management all-gcs nmt"
 401   if test "x$ENABLE_CDS" = "xtrue"; then
 402     NON_MINIMAL_FEATURES="$NON_MINIMAL_FEATURES cds"
 403   fi                                            
 404 
 405   # Enable features depending on variant.
 406   JVM_FEATURES_server="compiler1 compiler2 $NON_MINIMAL_FEATURES $JVM_FEATURES $JVM_FEATURES_jvmci $JVM_FEATURES_aot $JVM_FEATURES_graal"
 407   JVM_FEATURES_client="compiler1 $NON_MINIMAL_FEATURES $JVM_FEATURES $JVM_FEATURES_jvmci"
 408   JVM_FEATURES_core="$NON_MINIMAL_FEATURES $JVM_FEATURES"
 409   JVM_FEATURES_minimal="compiler1 minimal $JVM_FEATURES $JVM_FEATURES_link_time_opt"
 410   JVM_FEATURES_zero="zero $NON_MINIMAL_FEATURES $JVM_FEATURES"
 411   JVM_FEATURES_zeroshark="zero shark $NON_MINIMAL_FEATURES $JVM_FEATURES"
 412   JVM_FEATURES_custom="$JVM_FEATURES"
 413 
 414   AC_SUBST(JVM_FEATURES_server)
 415   AC_SUBST(JVM_FEATURES_client)
 416   AC_SUBST(JVM_FEATURES_core)
 417   AC_SUBST(JVM_FEATURES_minimal)
 418   AC_SUBST(JVM_FEATURES_zero)
 419   AC_SUBST(JVM_FEATURES_zeroshark)
 420   AC_SUBST(JVM_FEATURES_custom)
 421 
 422   # Used for verification of Makefiles by check-jvm-feature
 423   AC_SUBST(VALID_JVM_FEATURES)
 424 
 425   # We don't support --with-jvm-interpreter anymore, use zero instead.
 426   BASIC_DEPRECATED_ARG_WITH(jvm-interpreter)
 427 ])
 428 
 429 ###############################################################################
 430 # Validate JVM features once all setup is complete, including custom setup.
 431 #
 432 AC_DEFUN_ONCE([HOTSPOT_VALIDATE_JVM_FEATURES],
 433 [
 434   # Keep feature lists sorted and free of duplicates
 435   JVM_FEATURES_server="$($ECHO $($PRINTF '%s\n' $JVM_FEATURES_server | $SORT -u))"
 436   JVM_FEATURES_client="$($ECHO $($PRINTF '%s\n' $JVM_FEATURES_client | $SORT -u))"
 437   JVM_FEATURES_core="$($ECHO $($PRINTF '%s\n' $JVM_FEATURES_core | $SORT -u))"
 438   JVM_FEATURES_minimal="$($ECHO $($PRINTF '%s\n' $JVM_FEATURES_minimal | $SORT -u))"
 439   JVM_FEATURES_zero="$($ECHO $($PRINTF '%s\n' $JVM_FEATURES_zero | $SORT -u))"
 440   JVM_FEATURES_zeroshark="$($ECHO $($PRINTF '%s\n' $JVM_FEATURES_zeroshark | $SORT -u))"
 441   JVM_FEATURES_custom="$($ECHO $($PRINTF '%s\n' $JVM_FEATURES_custom | $SORT -u))"
 442 
 443   # Validate features
 444   for variant in $JVM_VARIANTS; do
 445     AC_MSG_CHECKING([JVM features for JVM variant '$variant'])
 446     features_var_name=JVM_FEATURES_$variant
 447     JVM_FEATURES_TO_TEST=${!features_var_name}
 448     AC_MSG_RESULT([$JVM_FEATURES_TO_TEST])
 449     NEEDLE=${VALID_JVM_FEATURES// /$'\n'}
 450     STACK=${JVM_FEATURES_TO_TEST// /$'\n'}
 451     INVALID_FEATURES=`$GREP -Fvx "${NEEDLE}" <<< "${STACK}"`
 452     if test "x$INVALID_FEATURES" != x; then
 453       AC_MSG_ERROR([Invalid JVM feature(s): $INVALID_FEATURES])
 454     fi
 455   done
 456 ])
 457 
 458 ################################################################################
 459 #
 460 # Specify which sources will be used to build the 64-bit ARM port




   7 # published by the Free Software Foundation.  Oracle designates this
   8 # particular file as subject to the "Classpath" exception as provided
   9 # by Oracle in the LICENSE file that accompanied this code.
  10 #
  11 # This code is distributed in the hope that it will be useful, but WITHOUT
  12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14 # version 2 for more details (a copy is included in the LICENSE file that
  15 # accompanied this code).
  16 #
  17 # You should have received a copy of the GNU General Public License version
  18 # 2 along with this work; if not, write to the Free Software Foundation,
  19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20 #
  21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22 # or visit www.oracle.com if you need additional information or have any
  23 # questions.
  24 #
  25 
  26 # All valid JVM features, regardless of platform
  27 VALID_JVM_FEATURES="compiler1 compiler2 zero minimal dtrace jvmti jvmci \
  28     graal vm-structs jni-check services management all-gcs nmt cds \
  29     static-build link-time-opt aot"
  30 
  31 # All valid JVM variants
  32 VALID_JVM_VARIANTS="server client minimal core zero custom"
  33 
  34 ###############################################################################
  35 # Check if the specified JVM variant should be built. To be used in shell if
  36 # constructs, like this:
  37 # if HOTSPOT_CHECK_JVM_VARIANT(server); then
  38 #
  39 # Only valid to use after HOTSPOT_SETUP_JVM_VARIANTS has setup variants.
  40 
  41 # Definition kept in one line to allow inlining in if statements.
  42 # Additional [] needed to keep m4 from mangling shell constructs.
  43 AC_DEFUN([HOTSPOT_CHECK_JVM_VARIANT],
  44 [ [ [[ " $JVM_VARIANTS " =~ " $1 " ]] ] ])
  45 
  46 ###############################################################################
  47 # Check if the specified JVM features are explicitly enabled. To be used in
  48 # shell if constructs, like this:
  49 # if HOTSPOT_CHECK_JVM_FEATURE(jvmti); then
  50 #
  51 # Only valid to use after HOTSPOT_SETUP_JVM_FEATURES has setup features.
  52 
  53 # Definition kept in one line to allow inlining in if statements.
  54 # Additional [] needed to keep m4 from mangling shell constructs.
  55 AC_DEFUN([HOTSPOT_CHECK_JVM_FEATURE],
  56 [ [ [[ " $JVM_FEATURES " =~ " $1 " ]] ] ])
  57 
  58 ###############################################################################
  59 # Check which variants of the JVM that we want to build. Available variants are:
  60 #   server: normal interpreter, and a tiered C1/C2 compiler
  61 #   client: normal interpreter, and C1 (no C2 compiler)
  62 #   minimal: reduced form of client with optional features stripped out
  63 #   core: normal interpreter only, no compiler
  64 #   zero: C++ based interpreter only, no compiler

  65 #   custom: baseline JVM with no default features
  66 #
  67 AC_DEFUN_ONCE([HOTSPOT_SETUP_JVM_VARIANTS],
  68 [
  69   AC_ARG_WITH([jvm-variants], [AS_HELP_STRING([--with-jvm-variants],
  70       [JVM variants (separated by commas) to build (server,client,minimal,core,zero,custom) @<:@server@:>@])])
  71 
  72   SETUP_HOTSPOT_TARGET_CPU_PORT
  73 
  74   if test "x$with_jvm_variants" = x; then
  75     with_jvm_variants="server"
  76   fi
  77   JVM_VARIANTS_OPT="$with_jvm_variants"
  78 
  79   # Has the user listed more than one variant?
  80   # Additional [] needed to keep m4 from mangling shell constructs.
  81   if [ [[ "$JVM_VARIANTS_OPT" =~ "," ]] ]; then
  82     BUILDING_MULTIPLE_JVM_VARIANTS=true
  83   else
  84     BUILDING_MULTIPLE_JVM_VARIANTS=false
  85   fi
  86   # Replace the commas with AND for use in the build directory name.
  87   JVM_VARIANTS_WITH_AND=`$ECHO "$JVM_VARIANTS_OPT" | $SED -e 's/,/AND/g'`
  88 
  89   AC_MSG_CHECKING([which variants of the JVM to build])
  90   # JVM_VARIANTS is a space-separated list.


 114   fi
 115 
 116   # The "main" variant is the one used by other libs to link against during the
 117   # build.
 118   if test "x$BUILDING_MULTIPLE_JVM_VARIANTS" = "xtrue"; then
 119     MAIN_VARIANT_PRIO_ORDER="server client minimal"
 120     for variant in $MAIN_VARIANT_PRIO_ORDER; do
 121       if HOTSPOT_CHECK_JVM_VARIANT($variant); then
 122         JVM_VARIANT_MAIN="$variant"
 123         break
 124       fi
 125     done
 126   else
 127     JVM_VARIANT_MAIN="$JVM_VARIANTS"
 128   fi
 129 
 130   AC_SUBST(JVM_VARIANTS)
 131   AC_SUBST(VALID_JVM_VARIANTS)
 132   AC_SUBST(JVM_VARIANT_MAIN)
 133 
 134   if HOTSPOT_CHECK_JVM_VARIANT(zero); then
 135     # zero behaves as a platform and rewrites these values. This is really weird. :(
 136     # We are guaranteed that we do not build any other variants when building zero.
 137     HOTSPOT_TARGET_CPU=zero
 138     HOTSPOT_TARGET_CPU_ARCH=zero
 139   fi
 140 ])
 141 
 142 ###############################################################################
 143 # Check if dtrace should be enabled and has all prerequisites present.
 144 #
 145 AC_DEFUN_ONCE([HOTSPOT_SETUP_DTRACE],
 146 [
 147   # Test for dtrace dependencies
 148   AC_ARG_ENABLE([dtrace], [AS_HELP_STRING([--enable-dtrace@<:@=yes/no/auto@:>@],
 149       [enable dtrace. Default is auto, where dtrace is enabled if all dependencies
 150       are present.])])
 151 
 152   DTRACE_DEP_MISSING=false
 153 
 154   AC_MSG_CHECKING([for dtrace tool])


 307     AC_MSG_ERROR([Specified JVM feature 'vm-structs' requires feature 'all-gcs'])
 308   fi
 309 
 310   # Turn on additional features based on other parts of configure
 311   if test "x$INCLUDE_DTRACE" = "xtrue"; then
 312     JVM_FEATURES="$JVM_FEATURES dtrace"
 313   else
 314     if HOTSPOT_CHECK_JVM_FEATURE(dtrace); then
 315       AC_MSG_ERROR([To enable dtrace, you must use --enable-dtrace])
 316     fi
 317   fi
 318 
 319   if test "x$STATIC_BUILD" = "xtrue"; then
 320     JVM_FEATURES="$JVM_FEATURES static-build"
 321   else
 322     if HOTSPOT_CHECK_JVM_FEATURE(static-build); then
 323       AC_MSG_ERROR([To enable static-build, you must use --enable-static-build])
 324     fi
 325   fi
 326 












 327   # Only enable jvmci on x86_64, sparcv9 and aarch64.
 328   if test "x$OPENJDK_TARGET_CPU" = "xx86_64" || \
 329      test "x$OPENJDK_TARGET_CPU" = "xsparcv9" || \
 330      test "x$OPENJDK_TARGET_CPU" = "xaarch64" ; then
 331     JVM_FEATURES_jvmci="jvmci"
 332   else
 333     JVM_FEATURES_jvmci=""
 334   fi
 335 
 336   AC_MSG_CHECKING([if jdk.internal.vm.compiler should be built])
 337   if HOTSPOT_CHECK_JVM_FEATURE(graal); then
 338     AC_MSG_RESULT([yes, forced])
 339     if test "x$JVM_FEATURES_jvmci" != "xjvmci" ; then
 340       AC_MSG_ERROR([Specified JVM feature 'graal' requires feature 'jvmci'])
 341     fi
 342     INCLUDE_GRAAL="true"
 343   else
 344     # By default enable graal build on linux-x64 or where AOT is available.
 345     # graal build requires jvmci.
 346     if test "x$JVM_FEATURES_jvmci" = "xjvmci" && \


 378 
 379   if test "x$OPENJDK_TARGET_CPU" = xarm ; then
 380     # Default to use link time optimizations on minimal on arm
 381     JVM_FEATURES_link_time_opt="link-time-opt"
 382   else
 383     JVM_FEATURES_link_time_opt=""
 384   fi
 385 
 386   # All variants but minimal (and custom) get these features
 387   NON_MINIMAL_FEATURES="$NON_MINIMAL_FEATURES jvmti vm-structs jni-check services management all-gcs nmt"
 388   if test "x$ENABLE_CDS" = "xtrue"; then
 389     NON_MINIMAL_FEATURES="$NON_MINIMAL_FEATURES cds"
 390   fi                                            
 391 
 392   # Enable features depending on variant.
 393   JVM_FEATURES_server="compiler1 compiler2 $NON_MINIMAL_FEATURES $JVM_FEATURES $JVM_FEATURES_jvmci $JVM_FEATURES_aot $JVM_FEATURES_graal"
 394   JVM_FEATURES_client="compiler1 $NON_MINIMAL_FEATURES $JVM_FEATURES $JVM_FEATURES_jvmci"
 395   JVM_FEATURES_core="$NON_MINIMAL_FEATURES $JVM_FEATURES"
 396   JVM_FEATURES_minimal="compiler1 minimal $JVM_FEATURES $JVM_FEATURES_link_time_opt"
 397   JVM_FEATURES_zero="zero $NON_MINIMAL_FEATURES $JVM_FEATURES"

 398   JVM_FEATURES_custom="$JVM_FEATURES"
 399 
 400   AC_SUBST(JVM_FEATURES_server)
 401   AC_SUBST(JVM_FEATURES_client)
 402   AC_SUBST(JVM_FEATURES_core)
 403   AC_SUBST(JVM_FEATURES_minimal)
 404   AC_SUBST(JVM_FEATURES_zero)

 405   AC_SUBST(JVM_FEATURES_custom)
 406 
 407   # Used for verification of Makefiles by check-jvm-feature
 408   AC_SUBST(VALID_JVM_FEATURES)
 409 
 410   # We don't support --with-jvm-interpreter anymore, use zero instead.
 411   BASIC_DEPRECATED_ARG_WITH(jvm-interpreter)
 412 ])
 413 
 414 ###############################################################################
 415 # Validate JVM features once all setup is complete, including custom setup.
 416 #
 417 AC_DEFUN_ONCE([HOTSPOT_VALIDATE_JVM_FEATURES],
 418 [
 419   # Keep feature lists sorted and free of duplicates
 420   JVM_FEATURES_server="$($ECHO $($PRINTF '%s\n' $JVM_FEATURES_server | $SORT -u))"
 421   JVM_FEATURES_client="$($ECHO $($PRINTF '%s\n' $JVM_FEATURES_client | $SORT -u))"
 422   JVM_FEATURES_core="$($ECHO $($PRINTF '%s\n' $JVM_FEATURES_core | $SORT -u))"
 423   JVM_FEATURES_minimal="$($ECHO $($PRINTF '%s\n' $JVM_FEATURES_minimal | $SORT -u))"
 424   JVM_FEATURES_zero="$($ECHO $($PRINTF '%s\n' $JVM_FEATURES_zero | $SORT -u))"

 425   JVM_FEATURES_custom="$($ECHO $($PRINTF '%s\n' $JVM_FEATURES_custom | $SORT -u))"
 426 
 427   # Validate features
 428   for variant in $JVM_VARIANTS; do
 429     AC_MSG_CHECKING([JVM features for JVM variant '$variant'])
 430     features_var_name=JVM_FEATURES_$variant
 431     JVM_FEATURES_TO_TEST=${!features_var_name}
 432     AC_MSG_RESULT([$JVM_FEATURES_TO_TEST])
 433     NEEDLE=${VALID_JVM_FEATURES// /$'\n'}
 434     STACK=${JVM_FEATURES_TO_TEST// /$'\n'}
 435     INVALID_FEATURES=`$GREP -Fvx "${NEEDLE}" <<< "${STACK}"`
 436     if test "x$INVALID_FEATURES" != x; then
 437       AC_MSG_ERROR([Invalid JVM feature(s): $INVALID_FEATURES])
 438     fi
 439   done
 440 ])
 441 
 442 ################################################################################
 443 #
 444 # Specify which sources will be used to build the 64-bit ARM port


< prev index next >