< prev index next >

make/autoconf/hotspot.m4

Print this page
rev 59401 : [mq]: 8245610


  95   # The "main" variant is the one used by other libs to link against during the
  96   # build.
  97   if test "x$BUILDING_MULTIPLE_JVM_VARIANTS" = "xtrue"; then
  98     MAIN_VARIANT_PRIO_ORDER="server client minimal"
  99     for variant in $MAIN_VARIANT_PRIO_ORDER; do
 100       if HOTSPOT_CHECK_JVM_VARIANT($variant); then
 101         JVM_VARIANT_MAIN="$variant"
 102         break
 103       fi
 104     done
 105   else
 106     JVM_VARIANT_MAIN="$JVM_VARIANTS"
 107   fi
 108 
 109   AC_SUBST(JVM_VARIANTS)
 110   AC_SUBST(VALID_JVM_VARIANTS)
 111   AC_SUBST(JVM_VARIANT_MAIN)
 112 ])
 113 
 114 ###############################################################################
 115 # Check if gtest should be built
 116 #
 117 AC_DEFUN_ONCE([HOTSPOT_ENABLE_DISABLE_GTEST],
 118 [
 119   GTEST_AVAILABLE=true
 120 
 121   AC_MSG_CHECKING([if Hotspot gtest test source is present])
 122   if test -e "${TOPDIR}/test/hotspot/gtest"; then
 123     AC_MSG_RESULT([yes])
 124   else
 125     AC_MSG_RESULT([no, cannot build gtest])
 126     GTEST_AVAILABLE=false
 127   fi
 128 
 129   UTIL_ARG_ENABLE(NAME: hotspot-gtest, DEFAULT: auto,
 130       RESULT: BUILD_GTEST, AVAILABLE: $GTEST_AVAILABLE,
 131       DEFAULT_DESC: [enabled if possible to build],
 132       DESC: [enable building of the Hotspot unit tests])
 133   AC_SUBST(BUILD_GTEST)
 134 ])
 135 
 136 ###############################################################################
 137 # Misc hotspot setup that does not fit elsewhere.
 138 #
 139 AC_DEFUN_ONCE([HOTSPOT_SETUP_MISC],
 140 [
 141   if HOTSPOT_CHECK_JVM_VARIANT(zero); then
 142     # zero behaves as a platform and rewrites these values. This is a bit weird.
 143     # But when building zero, we never build any other variants so it works.
 144     HOTSPOT_TARGET_CPU=zero
 145     HOTSPOT_TARGET_CPU_ARCH=zero
 146   fi
 147 
 148   AC_ARG_WITH([hotspot-build-time], [AS_HELP_STRING([--with-hotspot-build-time],
 149   [timestamp to use in hotspot version string, empty for on-the-fly @<:@empty@:>@])])
 150 
 151   if test "x$with_hotspot_build_time" != x; then
 152     HOTSPOT_BUILD_TIME="$with_hotspot_build_time"
 153   fi
 154   AC_SUBST(HOTSPOT_BUILD_TIME)
 155 
 156 
 157   # Override hotspot cpu definitions for ARM platforms
 158   if test "x$OPENJDK_TARGET_CPU" = xarm; then
 159     HOTSPOT_TARGET_CPU=arm_32
 160     HOTSPOT_TARGET_CPU_DEFINE="ARM32"
 161   fi
 162 
 163   # --with-cpu-port is no longer supported
 164   UTIL_DEPRECATED_ARG_WITH(with-cpu-port)



 165 ])


  95   # The "main" variant is the one used by other libs to link against during the
  96   # build.
  97   if test "x$BUILDING_MULTIPLE_JVM_VARIANTS" = "xtrue"; then
  98     MAIN_VARIANT_PRIO_ORDER="server client minimal"
  99     for variant in $MAIN_VARIANT_PRIO_ORDER; do
 100       if HOTSPOT_CHECK_JVM_VARIANT($variant); then
 101         JVM_VARIANT_MAIN="$variant"
 102         break
 103       fi
 104     done
 105   else
 106     JVM_VARIANT_MAIN="$JVM_VARIANTS"
 107   fi
 108 
 109   AC_SUBST(JVM_VARIANTS)
 110   AC_SUBST(VALID_JVM_VARIANTS)
 111   AC_SUBST(JVM_VARIANT_MAIN)
 112 ])
 113 
 114 ###############################################################################






















 115 # Misc hotspot setup that does not fit elsewhere.
 116 #
 117 AC_DEFUN_ONCE([HOTSPOT_SETUP_MISC],
 118 [
 119   if HOTSPOT_CHECK_JVM_VARIANT(zero); then
 120     # zero behaves as a platform and rewrites these values. This is a bit weird.
 121     # But when building zero, we never build any other variants so it works.
 122     HOTSPOT_TARGET_CPU=zero
 123     HOTSPOT_TARGET_CPU_ARCH=zero
 124   fi
 125 
 126   AC_ARG_WITH([hotspot-build-time], [AS_HELP_STRING([--with-hotspot-build-time],
 127   [timestamp to use in hotspot version string, empty for on-the-fly @<:@empty@:>@])])
 128 
 129   if test "x$with_hotspot_build_time" != x; then
 130     HOTSPOT_BUILD_TIME="$with_hotspot_build_time"
 131   fi
 132   AC_SUBST(HOTSPOT_BUILD_TIME)
 133 
 134 
 135   # Override hotspot cpu definitions for ARM platforms
 136   if test "x$OPENJDK_TARGET_CPU" = xarm; then
 137     HOTSPOT_TARGET_CPU=arm_32
 138     HOTSPOT_TARGET_CPU_DEFINE="ARM32"
 139   fi
 140 
 141   # --with-cpu-port is no longer supported
 142   UTIL_DEPRECATED_ARG_WITH(with-cpu-port)
 143 
 144   # in jdk15 hotspot-gtest was replaced with --with-gtest
 145   UTIL_DEPRECATED_ARG_ENABLE(hotspot-gtest)
 146 ])
< prev index next >