diff mbox series

[2/3] configure: Do not build/check for capstone when emulation is disabled

Message ID 20210120151916.1167448-3-philmd@redhat.com (mailing list archive)
State New, archived
Headers show
Series configure: Do not build TCG or link with capstone if not necessary | expand

Commit Message

Philippe Mathieu-Daudé Jan. 20, 2021, 3:19 p.m. UTC
The capstone library is only used by system and user mode
emulation. When it is not required, do not check for it.

Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
---
 configure | 5 +++++
 1 file changed, 5 insertions(+)
diff mbox series

Patch

diff --git a/configure b/configure
index 012c527e3cd..a5159157a49 100755
--- a/configure
+++ b/configure
@@ -2291,6 +2291,11 @@  if [ "$tcg" = "auto" ]; then
     fi
 fi
 
+# if neither system nor user emulation requested, capstone is not needed
+if [ "$softmmu" = "no" ] && [ "$linux_user" = "no" ] && [ "$bsd_user" = "no" ]; then
+    capstone="disabled"
+fi
+
 feature_not_found() {
   feature=$1
   remedy=$2