diff mbox

[1/7] configure: add --enable-scenario-engine option

Message ID 1441975830-11828-2-git-send-email-victor.clement@openwide.fr
State New
Headers show

Commit Message

Victor CLEMENT Sept. 11, 2015, 12:50 p.m. UTC
Add an option to ./configure script to enable the scenario engine.
It defines the CONFIG_SCENARIO constant.

Signed-off-by: Victor CLEMENT <victor.clement@openwide.fr>
---
 configure | 8 ++++++++
 1 file changed, 8 insertions(+)
diff mbox

Patch

diff --git a/configure b/configure
index cd219d8..466a71f 100755
--- a/configure
+++ b/configure
@@ -300,6 +300,7 @@  pkgversion=""
 pie=""
 zero_malloc=""
 qom_cast_debug="yes"
+scenario="no"
 trace_backends="nop"
 trace_file="trace"
 spice=""
@@ -788,6 +789,8 @@  for opt do
   ;;
   --target-list=*) target_list="$optarg"
   ;;
+  --enable-scenario-engine) scenario="yes"
+  ;;
   --enable-trace-backends=*) trace_backends="$optarg"
   ;;
   # XXX: backwards compatibility
@@ -4552,6 +4555,7 @@  echo "uuid support      $uuid"
 echo "libcap-ng support $cap_ng"
 echo "vhost-net support $vhost_net"
 echo "vhost-scsi support $vhost_scsi"
+echo "Scenario engine   $scenario"
 echo "Trace backends    $trace_backends"
 if test "$trace_backend" = "simple"; then
 echo "Trace output file $trace_file-<pid>"
@@ -5084,6 +5088,10 @@  if test "$tpm" = "yes"; then
   fi
 fi
 
+if test "$scenario" = "yes" ; then
+  echo "CONFIG_SCENARIO=y" >> $config_host_mak
+fi
+
 echo "TRACE_BACKENDS=$trace_backends" >> $config_host_mak
 if have_backend "nop"; then
   echo "CONFIG_TRACE_NOP=y" >> $config_host_mak