add #define for SPIKE_SIMPLEV, re-run autoreconf
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Mon, 24 Sep 2018 06:18:50 +0000 (07:18 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Mon, 24 Sep 2018 06:18:50 +0000 (07:18 +0100)
config.h.in
configure
configure.ac

index 137f1950054e3e4b709a76233c2aadcee778c7cf..29816208bd0a9a8918ba523257ac5ea648eaafe5 100644 (file)
@@ -84,6 +84,9 @@
 /* Define if subproject MCPPBS_SPROJ_NORM is enabled */
 #undef SPIKE_MAIN_ENABLED
 
+/* Defined to 1 if SimpleV support is wanted */
+#undef SPIKE_SIMPLEV
+
 /* Define to 1 if you have the ANSI C header files. */
 #undef STDC_HEADERS
 
index 015f63e965a04eabe6cecb4d7f984c0e35345476..4111fcabaf6a86f58e70c858898c5ed6b2c0872d 100755 (executable)
--- a/configure
+++ b/configure
@@ -700,6 +700,7 @@ ac_subst_files=''
 ac_user_opts='
 enable_option_checking
 enable_stow
+enable_simplev
 enable_optional_subprojects
 with_isa
 with_fesvr
@@ -1347,6 +1348,7 @@ Optional Features:
   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
   --enable-stow           Enable stow-based install
+  --disable-simplev       Support for SimpleV (default enabled)
   --enable-optional-subprojects
                           Enable all optional subprojects
   --enable-commitlog      Enable commit log generation
@@ -4396,6 +4398,27 @@ CFLAGS="-Wall -Wno-unused -g -O2"
 CXXFLAGS="-Wall -Wno-unused -g -O2 -std=c++11"
 
 
+#-------------------------------------------------------------------------
+# Enable Simple-V
+#-------------------------------------------------------------------------
+
+simplev="no"
+
+# Check whether --enable-simplev was given.
+if test "${enable_simplev+set}" = set; then :
+  enableval=$enable_simplev; simplev=$enableval
+else
+  simplev=yes
+
+fi
+
+if test "x$simplev" = xyes; then
+
+$as_echo "#define SPIKE_SIMPLEV 1" >>confdefs.h
+
+fi
+AM_CONDITIONAL(HAS_SIMPLEV, test x$simplev = xyes)
+
 #-------------------------------------------------------------------------
 # MCPPBS subproject list
 #-------------------------------------------------------------------------
index e361877da2a50db38b1424b280e7c639bdc611f7..d80ab8431cfb09b4ca0be49e95b6ce7c29bb9fdc 100644 (file)
@@ -79,6 +79,22 @@ AC_HEADER_STDC
 AC_SUBST([CFLAGS],  ["-Wall -Wno-unused -g -O2"])
 AC_SUBST([CXXFLAGS],["-Wall -Wno-unused -g -O2 -std=c++11"])
 
+#-------------------------------------------------------------------------
+# Enable Simple-V
+#-------------------------------------------------------------------------
+
+simplev="no"
+
+AC_ARG_ENABLE([simplev],
+    [AC_HELP_STRING([--disable-simplev],[Support for SimpleV (default enabled)])],
+    [simplev=$enableval],
+    [simplev=yes]
+    )
+if test "x$simplev" = xyes; then
+    AC_DEFINE([SPIKE_SIMPLEV], [1], [Defined to 1 if SimpleV support is wanted])
+fi
+AM_CONDITIONAL([HAS_SIMPLEV], [test x$simplev = xyes])
+
 #-------------------------------------------------------------------------
 # MCPPBS subproject list
 #-------------------------------------------------------------------------