From nobody Tue Nov 18 15:24:41 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) client-ip=216.205.24.124; envelope-from=philmd@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) smtp.mailfrom=philmd@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1611155973; cv=none; d=zohomail.com; s=zohoarc; b=IlVF8Nvl6KCMYM2YTDhobQ8jAUEHm3XaFgVYvr5hXh2cNKopTHzjoVp+5K8BCEYdK8I7/SuaB29+9scvQXZ0sVjtYOCosvSvd/T0c3Q41GiKDZn81ELLq/unrhIjjS2gtP76ULjzPqmfCjTrCuYrCgcc/kvgDtm6IQkmrp7ao7k= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1611155973; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=2bIzIHiAlzXr+hmN6jUsWEgwkDjP+yZMnPWbxbL20yM=; b=fC6RBUcuGwMmdJ9B5TEFQL72SMUqltVX4xrYNaGmbxPwyvu3FfUbyV6YyhL7wF8VkWjUEqJmaHDHSBeVTbKDi/ph0qm8sD/SoGP5MUCxKLfsbRvt6kCpBcTLcd6bfpZBUpWczFiilPdz42KDe+tJWSVnd3i7MnLC2+vlYaf9yU8= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) smtp.mailfrom=philmd@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by mx.zohomail.com with SMTPS id 161115597307476.92542314209936; Wed, 20 Jan 2021 07:19:33 -0800 (PST) Received: from mail-ej1-f69.google.com (mail-ej1-f69.google.com [209.85.218.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-427-znKeoeJnMk-YE6dJ003IZg-1; Wed, 20 Jan 2021 10:19:30 -0500 Received: by mail-ej1-f69.google.com with SMTP id rl8so7371627ejb.8 for ; Wed, 20 Jan 2021 07:19:30 -0800 (PST) Return-Path: Return-Path: Received: from x1w.redhat.com (13.red-83-57-169.dynamicip.rima-tde.net. [83.57.169.13]) by smtp.gmail.com with ESMTPSA id k6sm1011340ejb.84.2021.01.20.07.19.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Jan 2021 07:19:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1611155972; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=2bIzIHiAlzXr+hmN6jUsWEgwkDjP+yZMnPWbxbL20yM=; b=QX6qXcOF9IyOF5AEpy7+l9uwTm6WEDHvVoZKh7ZcTL0DQ4CGeeNWu9ppwHermBByh0sgMN Lp0QCl3qKfMW3HkT6D/qblIfQoRNKVeFZU5xfJcM5vZW9sylAHLiUeH3BykM6Oc2UD+jp9 mI/9x/Qg83tApew1/0+MEemfEfaAfPU= X-MC-Unique: znKeoeJnMk-YE6dJ003IZg-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=2bIzIHiAlzXr+hmN6jUsWEgwkDjP+yZMnPWbxbL20yM=; b=YY3j8tTnMk+O9qei/gSH4YscAKRbzUD4QkwDNEn6wHr9nyXAgp4wlAqXbs04M5FM+R S0is6QMIuP9pdi0TZpCf9NJEnSCQ2zIJRtFPGE2gTMc6Q+H4lqZHzC/2NvTS+s9Xb+Xk PaLTY+tFWP6gJT/MljDT8iwANPDqt/HCoGelChYtTDIAHVrQcwrjoVoW92bpN86Hn4oi ae+CRS5ZhT8f+91Btr5RdQ/00SnEEAqRE0S0L5EW+q2oBWVaWGATRg5jtzKqQh6dl2D4 jPPvITmrvxpI2hDQ6SV4R7UpeD26Bhi0Ie9CbmkIBBDkV2/CwW/PanTZU2FS9oe4rafK 9VGQ== X-Gm-Message-State: AOAM5300iqrEvFjWYArTpwvc8iL3TkQHm2SEmvbEMgYmWd/gVaU2gwP4 0ZEhr69vGKdJgxc4WNz7nnkQYCgh5Cj3HmrVe72olryYd0DODWfujVN65XhNeau6SA8FswHg582 tFiXMIzAumfUCNw== X-Received: by 2002:a05:6402:2c5:: with SMTP id b5mr8133629edx.258.1611155969263; Wed, 20 Jan 2021 07:19:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJztOTjvZwUE8WXM4I2PX2GsNpEacKVuneZqvc0k68X/wcYgIgTuZTIL3LE7Tnk7wCYnILScrQ== X-Received: by 2002:a05:6402:2c5:: with SMTP id b5mr8133598edx.258.1611155968797; Wed, 20 Jan 2021 07:19:28 -0800 (PST) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Richard Henderson , Paolo Bonzini , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PATCH 2/3] configure: Do not build/check for capstone when emulation is disabled Date: Wed, 20 Jan 2021 16:19:15 +0100 Message-Id: <20210120151916.1167448-3-philmd@redhat.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20210120151916.1167448-1-philmd@redhat.com> References: <20210120151916.1167448-1-philmd@redhat.com> MIME-Version: 1.0 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=philmd@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) 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=C3=A9 --- configure | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/configure b/configure index 012c527e3cd..a5159157a49 100755 --- a/configure +++ b/configure @@ -2291,6 +2291,11 @@ if [ "$tcg" =3D "auto" ]; then fi fi =20 +# if neither system nor user emulation requested, capstone is not needed +if [ "$softmmu" =3D "no" ] && [ "$linux_user" =3D "no" ] && [ "$bsd_user" = =3D "no" ]; then + capstone=3D"disabled" +fi + feature_not_found() { feature=3D$1 remedy=3D$2 --=20 2.26.2