< prev index next >

make/autoconf/hotspot.m4

Print this page
rev 59102 : imported patch build


 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   # On solaris, we also must have the libstlport.so.1 library, setup in
 130   # LIB_SETUP_LIBRARIES.
 131   if test "x$OPENJDK_TARGET_OS" = "xsolaris"; then
 132     AC_MSG_CHECKING([if the libstlport.so.1 library is present])
 133     if test "x$STLPORT_LIB" != "x"; then
 134       AC_MSG_RESULT([yes])
 135     else
 136       AC_MSG_RESULT([no, cannot build gtest])
 137       GTEST_AVAILABLE=false
 138     fi
 139   fi
 140 
 141   UTIL_ARG_ENABLE(NAME: hotspot-gtest, DEFAULT: auto,
 142       RESULT: BUILD_GTEST, AVAILABLE: $GTEST_AVAILABLE,
 143       DEFAULT_DESC: [enabled if possible to build],
 144       DESC: [enable building of the Hotspot unit tests])
 145   AC_SUBST(BUILD_GTEST)
 146 ])
 147 
 148 ###############################################################################
 149 # Misc hotspot setup that does not fit elsewhere.
 150 #
 151 AC_DEFUN_ONCE([HOTSPOT_SETUP_MISC],
 152 [
 153   if HOTSPOT_CHECK_JVM_VARIANT(zero); then
 154     # zero behaves as a platform and rewrites these values. This is a bit weird.
 155     # But when building zero, we never build any other variants so it works.
 156     HOTSPOT_TARGET_CPU=zero
 157     HOTSPOT_TARGET_CPU_ARCH=zero
 158   fi
 159 
 160   AC_ARG_WITH([hotspot-build-time], [AS_HELP_STRING([--with-hotspot-build-time],


 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],
< prev index next >