< prev index next >

make/autoconf/hotspot.m4

Print this page
rev 49736 : 8185505: AArch64: Port AOT to AArch64
Reviewed-by: duke


 189 #
 190 AC_DEFUN_ONCE([HOTSPOT_ENABLE_DISABLE_AOT],
 191 [
 192   AC_ARG_ENABLE([aot], [AS_HELP_STRING([--enable-aot@<:@=yes/no/auto@:>@],
 193       [enable ahead of time compilation feature. Default is auto, where aot is enabled if all dependencies are present.])])
 194 
 195   if test "x$enable_aot" = "x" || test "x$enable_aot" = "xauto"; then
 196     ENABLE_AOT="true"
 197   elif test "x$enable_aot" = "xyes"; then
 198     ENABLE_AOT="true"
 199   elif test "x$enable_aot" = "xno"; then
 200     ENABLE_AOT="false"
 201     AC_MSG_CHECKING([if aot should be enabled])
 202     AC_MSG_RESULT([no, forced])
 203   else
 204     AC_MSG_ERROR([Invalid value for --enable-aot: $enable_aot])
 205   fi
 206 
 207   if test "x$ENABLE_AOT" = "xtrue"; then
 208     # Only enable AOT on X64 platforms.
 209     if test "x$OPENJDK_TARGET_CPU" = "xx86_64"; then
 210       if test -e "${TOPDIR}/src/jdk.aot"; then
 211         if test -e "${TOPDIR}/src/jdk.internal.vm.compiler"; then
 212           ENABLE_AOT="true"
 213         else
 214           ENABLE_AOT="false"
 215           if test "x$enable_aot" = "xyes"; then
 216             AC_MSG_ERROR([Cannot build AOT without src/jdk.internal.vm.compiler sources. Remove --enable-aot.])
 217           fi
 218         fi
 219       else
 220         ENABLE_AOT="false"
 221         if test "x$enable_aot" = "xyes"; then
 222           AC_MSG_ERROR([Cannot build AOT without src/jdk.aot sources. Remove --enable-aot.])
 223         fi
 224       fi
 225     else
 226       ENABLE_AOT="false"
 227       if test "x$enable_aot" = "xyes"; then
 228         AC_MSG_ERROR([AOT is currently only supported on x86_64. Remove --enable-aot.])
 229       fi




 189 #
 190 AC_DEFUN_ONCE([HOTSPOT_ENABLE_DISABLE_AOT],
 191 [
 192   AC_ARG_ENABLE([aot], [AS_HELP_STRING([--enable-aot@<:@=yes/no/auto@:>@],
 193       [enable ahead of time compilation feature. Default is auto, where aot is enabled if all dependencies are present.])])
 194 
 195   if test "x$enable_aot" = "x" || test "x$enable_aot" = "xauto"; then
 196     ENABLE_AOT="true"
 197   elif test "x$enable_aot" = "xyes"; then
 198     ENABLE_AOT="true"
 199   elif test "x$enable_aot" = "xno"; then
 200     ENABLE_AOT="false"
 201     AC_MSG_CHECKING([if aot should be enabled])
 202     AC_MSG_RESULT([no, forced])
 203   else
 204     AC_MSG_ERROR([Invalid value for --enable-aot: $enable_aot])
 205   fi
 206 
 207   if test "x$ENABLE_AOT" = "xtrue"; then
 208     # Only enable AOT on X64 platforms.
 209     if test "x$OPENJDK_TARGET_CPU" = "xx86_64" || test "x$OPENJDK_TARGET_CPU" = "xaarch64" ; then
 210       if test -e "${TOPDIR}/src/jdk.aot"; then
 211         if test -e "${TOPDIR}/src/jdk.internal.vm.compiler"; then
 212           ENABLE_AOT="true"
 213         else
 214           ENABLE_AOT="false"
 215           if test "x$enable_aot" = "xyes"; then
 216             AC_MSG_ERROR([Cannot build AOT without src/jdk.internal.vm.compiler sources. Remove --enable-aot.])
 217           fi
 218         fi
 219       else
 220         ENABLE_AOT="false"
 221         if test "x$enable_aot" = "xyes"; then
 222           AC_MSG_ERROR([Cannot build AOT without src/jdk.aot sources. Remove --enable-aot.])
 223         fi
 224       fi
 225     else
 226       ENABLE_AOT="false"
 227       if test "x$enable_aot" = "xyes"; then
 228         AC_MSG_ERROR([AOT is currently only supported on x86_64. Remove --enable-aot.])
 229       fi


< prev index next >