[configure] move HAVE_ONLINE_VES away from autotools to a header file
authorBernhard Urban <bernhard.urban@xamarin.com>
Fri, 9 Jun 2017 11:10:36 +0000 (13:10 +0200)
committerBernhard Urban <bernhard.urban@xamarin.com>
Wed, 14 Jun 2017 13:03:21 +0000 (15:03 +0200)
configure.ac
mono/metadata/metadata-internals.h

index 6ee80da49b6c8eeab839abbda70da17c51212eb0..d0e93384fddb6e095b2508cd85fc6efa6120eb5d 100644 (file)
@@ -3534,12 +3534,6 @@ fi
 
 AM_CONDITIONAL(ENABLE_INTERPRETER, [test x$enable_interpreter = xyes])
 
-if test "x$enable_interpreter" = "xyes" || test "x$mono_feature_disable_jit" != "xyes"; then
-       AC_DEFINE(HAVE_ONLINE_VES, 1, [Some VES is available at runtime])
-fi
-
-AM_CONDITIONAL(HAVE_ONLINE_VES, [test x$enable_interpreter = xyes] || [test x$mono_feature_disable_jit != xyes])
-
 dnl 
 dnl Simple Generational checks (sgen)
 dnl
index a6a936758e66e1794a69b848902a47c722075e89..7fc936d8bd73a0cd9b725fc97bf7bc2dbbfa6cf9 100644 (file)
@@ -51,6 +51,11 @@ struct _MonoType {
 #define MONO_PROCESSOR_ARCHITECTURE_AMD64 4
 #define MONO_PROCESSOR_ARCHITECTURE_ARM 5
 
+#if !defined(DISABLE_JIT) || defined(ENABLE_INTERPRETER)
+/* Some VES is available at runtime */
+#define HAVE_ONLINE_VES
+#endif
+
 struct _MonoAssemblyName {
        const char *name;
        const char *culture;