changeset 31156:60f32b7455e3

configure.ac: Add new option "--disable-vm-evaluator" * configure.ac: Add new option "--disable-vm-evaluator" to control compiling of upcoming virtual machine evaluator.
author Rik <rik@octave.org>
date Tue, 26 Jul 2022 13:21:07 -0700
parents 7d4cf04665e6
children 839c0fb5d63c
files configure.ac
diffstat 1 files changed, 24 insertions(+), 12 deletions(-) [+]
line wrap: on
line diff
--- a/configure.ac	Wed Jul 20 16:37:58 2022 +0200
+++ b/configure.ac	Tue Jul 26 13:21:07 2022 -0700
@@ -1371,6 +1371,30 @@
 #endif
 ]])
 
+### Configure Bison as push or pull parser.
+
+ENABLE_COMMAND_LINE_PUSH_PARSER=yes
+AC_ARG_ENABLE([command-line-push-parser],
+  [AS_HELP_STRING([--disable-command-line-push-parser],
+    [don't use Bison's push parser interface in the command line REPL])],
+  [if test "$enableval" = no; then ENABLE_COMMAND_LINE_PUSH_PARSER=no; fi], [])
+if test $ENABLE_COMMAND_LINE_PUSH_PARSER = yes; then
+  AC_DEFINE(OCTAVE_ENABLE_COMMAND_LINE_PUSH_PARSER, 1,
+    [Define to 1 to use Bison's push parser interface in the command line REPL.])
+fi
+
+### Configuring building of *experimental* Virtual Machine evaluator
+
+ENABLE_VM_EVALUATOR=yes
+AC_ARG_ENABLE([vm-evaluator],
+  [AS_HELP_STRING([--disable-vm-evaluator],
+    [don't compile *experimental* virtual machine evaluator])],
+  [if test "$enableval" = no; then ENABLE_VM_EVALUATOR=no; fi], [])
+if test $ENABLE_VM_EVALUATOR = yes; then
+  AC_DEFINE(OCTAVE_ENABLE_VM_EVALUATOR, 1,
+    [Define to 1 to build experimental Virtual Machine evaluator.])
+fi
+
 ### Check for the Qhull library.
 
 QHULL_CPPFLAGS=
@@ -1459,18 +1483,6 @@
 ## Find a termlib to use.
 OCTAVE_CHECK_LIB_TERMLIB
 
-### Use push parser by default now.
-
-ENABLE_COMMAND_LINE_PUSH_PARSER=yes
-AC_ARG_ENABLE([command-line-push-parser],
-  [AS_HELP_STRING([--disable-command-line-push-parser],
-    [don't use Bison's push parser interface in the command line REPL])],
-  [if test "$enableval" = no; then ENABLE_COMMAND_LINE_PUSH_PARSER=no; fi], [])
-if test $ENABLE_COMMAND_LINE_PUSH_PARSER = yes; then
-  AC_DEFINE(OCTAVE_ENABLE_COMMAND_LINE_PUSH_PARSER, 1,
-    [Define to 1 to use Bison's push parser interface in the command line REPL.])
-fi
-
 ### Check for ZLIB library.
 
 OCTAVE_CHECK_LIB(z, ZLIB,