5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212 # This line needs to be here, verbatim, after all includes and the dummy hook
5213 # definitions. It is replaced with custom functionality when building
5214 # custom sources.
5215 #CUSTOM_AUTOCONF_INCLUDE
5216
5217 # Do not change or remove the following line, it is needed for consistency checks:
5218 DATE_WHEN_GENERATED=1517244998
5219
5220 ###############################################################################
5221 #
5222 # Initialization / Boot-strapping
5223 #
5224 # The bootstrapping process needs to solve the "chicken or the egg" problem,
5225 # thus it jumps back and forth, each time gaining something needed later on.
5226 #
5227 ###############################################################################
5228
5229 # If we are requested to print additional help, do that and then exit.
5230 # This must be the very first call.
5231
5232 if test "x$CONFIGURE_PRINT_ADDITIONAL_HELP" != x; then
5233
5234 # Print available toolchains
5235 $PRINTF "The following toolchains are available as arguments to --with-toolchain-type.\n"
5236 $PRINTF "Which are valid to use depends on the build platform.\n"
5237 for toolchain in $VALID_TOOLCHAINS_all; do
5238 # Use indirect variable referencing
55342 enableval=$enable_aot;
55343 fi
55344
55345
55346 if test "x$enable_aot" = "x" || test "x$enable_aot" = "xauto"; then
55347 ENABLE_AOT="true"
55348 elif test "x$enable_aot" = "xyes"; then
55349 ENABLE_AOT="true"
55350 elif test "x$enable_aot" = "xno"; then
55351 ENABLE_AOT="false"
55352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if aot should be enabled" >&5
55353 $as_echo_n "checking if aot should be enabled... " >&6; }
55354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, forced" >&5
55355 $as_echo "no, forced" >&6; }
55356 else
55357 as_fn_error $? "Invalid value for --enable-aot: $enable_aot" "$LINENO" 5
55358 fi
55359
55360 if test "x$ENABLE_AOT" = "xtrue"; then
55361 # Only enable AOT on X64 platforms.
55362 if test "x$OPENJDK_TARGET_CPU" = "xx86_64"; then
55363 if test -e "${TOPDIR}/src/jdk.aot"; then
55364 if test -e "${TOPDIR}/src/jdk.internal.vm.compiler"; then
55365 ENABLE_AOT="true"
55366 else
55367 ENABLE_AOT="false"
55368 if test "x$enable_aot" = "xyes"; then
55369 as_fn_error $? "Cannot build AOT without src/jdk.internal.vm.compiler sources. Remove --enable-aot." "$LINENO" 5
55370 fi
55371 fi
55372 else
55373 ENABLE_AOT="false"
55374 if test "x$enable_aot" = "xyes"; then
55375 as_fn_error $? "Cannot build AOT without src/jdk.aot sources. Remove --enable-aot." "$LINENO" 5
55376 fi
55377 fi
55378 else
55379 ENABLE_AOT="false"
55380 if test "x$enable_aot" = "xyes"; then
55381 as_fn_error $? "AOT is currently only supported on x86_64. Remove --enable-aot." "$LINENO" 5
55382 fi
|
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212 # This line needs to be here, verbatim, after all includes and the dummy hook
5213 # definitions. It is replaced with custom functionality when building
5214 # custom sources.
5215 #CUSTOM_AUTOCONF_INCLUDE
5216
5217 # Do not change or remove the following line, it is needed for consistency checks:
5218 DATE_WHEN_GENERATED=1521480822
5219
5220 ###############################################################################
5221 #
5222 # Initialization / Boot-strapping
5223 #
5224 # The bootstrapping process needs to solve the "chicken or the egg" problem,
5225 # thus it jumps back and forth, each time gaining something needed later on.
5226 #
5227 ###############################################################################
5228
5229 # If we are requested to print additional help, do that and then exit.
5230 # This must be the very first call.
5231
5232 if test "x$CONFIGURE_PRINT_ADDITIONAL_HELP" != x; then
5233
5234 # Print available toolchains
5235 $PRINTF "The following toolchains are available as arguments to --with-toolchain-type.\n"
5236 $PRINTF "Which are valid to use depends on the build platform.\n"
5237 for toolchain in $VALID_TOOLCHAINS_all; do
5238 # Use indirect variable referencing
55342 enableval=$enable_aot;
55343 fi
55344
55345
55346 if test "x$enable_aot" = "x" || test "x$enable_aot" = "xauto"; then
55347 ENABLE_AOT="true"
55348 elif test "x$enable_aot" = "xyes"; then
55349 ENABLE_AOT="true"
55350 elif test "x$enable_aot" = "xno"; then
55351 ENABLE_AOT="false"
55352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if aot should be enabled" >&5
55353 $as_echo_n "checking if aot should be enabled... " >&6; }
55354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, forced" >&5
55355 $as_echo "no, forced" >&6; }
55356 else
55357 as_fn_error $? "Invalid value for --enable-aot: $enable_aot" "$LINENO" 5
55358 fi
55359
55360 if test "x$ENABLE_AOT" = "xtrue"; then
55361 # Only enable AOT on X64 platforms.
55362 if test "x$OPENJDK_TARGET_CPU" = "xx86_64" || test "x$OPENJDK_TARGET_CPU" = "xaarch64" ; then
55363 if test -e "${TOPDIR}/src/jdk.aot"; then
55364 if test -e "${TOPDIR}/src/jdk.internal.vm.compiler"; then
55365 ENABLE_AOT="true"
55366 else
55367 ENABLE_AOT="false"
55368 if test "x$enable_aot" = "xyes"; then
55369 as_fn_error $? "Cannot build AOT without src/jdk.internal.vm.compiler sources. Remove --enable-aot." "$LINENO" 5
55370 fi
55371 fi
55372 else
55373 ENABLE_AOT="false"
55374 if test "x$enable_aot" = "xyes"; then
55375 as_fn_error $? "Cannot build AOT without src/jdk.aot sources. Remove --enable-aot." "$LINENO" 5
55376 fi
55377 fi
55378 else
55379 ENABLE_AOT="false"
55380 if test "x$enable_aot" = "xyes"; then
55381 as_fn_error $? "AOT is currently only supported on x86_64. Remove --enable-aot." "$LINENO" 5
55382 fi
|