From nobody Wed Oct 29 09:14:47 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1524583578453170.69577098963066; Tue, 24 Apr 2018 08:26:18 -0700 (PDT) Received: from localhost ([::1]:59081 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fAzpd-0007m4-0Q for importer@patchew.org; Tue, 24 Apr 2018 11:26:13 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46826) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fAzng-0006Tt-28 for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:24:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fAzne-0005Ip-3f for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:24:11 -0400 Received: from mail-wm0-x241.google.com ([2a00:1450:400c:c09::241]:54600) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fAznd-0005H5-TH for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:24:10 -0400 Received: by mail-wm0-x241.google.com with SMTP id f6so1802899wmc.4 for ; Tue, 24 Apr 2018 08:24:09 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id o10-v6sm10513757wrg.90.2018.04.24.08.24.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Apr 2018 08:24:07 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 8944A3E0550; Tue, 24 Apr 2018 16:24:05 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=PBBcL7evx4AUc+MVUfWzM5d2rbr035v+hr9e0PLaeTo=; b=Bp5dhW0/SNkGjkVWwFT3obtVVDsdi0bYZ5MtLp2TGZVeWSri36mwSimuZb70MQpIJq Jtdyva16apz5li7N0+Ny3UPY3HVFwDXwnCCZ7yQ5jeYlMTdZKyxiEHhRjXRqgWEwAtGE 8aDUklwd4ERdzcKWaS3SYg+gC71Lh3WZAatUc= 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=PBBcL7evx4AUc+MVUfWzM5d2rbr035v+hr9e0PLaeTo=; b=d1AtVRchOBNsjJbzAQSUS4wFyRXEIJm6DUkZNUCrVOG0C6t3bB4ow5QgQ4fEmQH5Lt AbExr2wTXuwYOpH6aMNxLzT60i6aTM/icZMiSk51EQWNN+p9puxFVXU+wnwtXL37qlTb 1WaTn4UgbRQ1f7PU2IpzqLjWcFDJTs3+v2hwfnPLV7psZUdOyMLX1PafyEzeCPrbFSdD L6tvuFuF/6RxWh48+g5D69pkqZ+22WANowHVyRN3XJlATxYe5mmZsIEipap28kams2v/ jCsnkfLhLoDQPVTl6aOqqEFckn7qt7SdoX6If8fGD+scBwTMacJlNAE93v+QqZZ2sStQ ATdg== X-Gm-Message-State: ALQs6tCdbfdSLR0nRDNVcyS41eVF2bYco/UDH8Ua9+zLacEOU8cTwG4Y xXEezlxBZuN0UZXpJIB18tG44w== X-Google-Smtp-Source: AB8JxZpszgisUR0nCHN4jr+Tq159ktNx4PloTpCEaKCnxeWn0Mtqf6o76DqAiZE90WfejyJf+QxPcg== X-Received: by 10.28.237.11 with SMTP id l11mr13806373wmh.160.1524583448848; Tue, 24 Apr 2018 08:24:08 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: peter.maydell@linaro.org, cota@braap.org, famz@redhat.com, berrange@redhat.com, f4bug@amsat.org, richard.henderson@linaro.org, balrogg@gmail.com, aurelien@aurel32.net, agraf@suse.de Date: Tue, 24 Apr 2018 16:23:21 +0100 Message-Id: <20180424152405.10304-3-alex.bennee@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180424152405.10304-1-alex.bennee@linaro.org> References: <20180424152405.10304-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c09::241 Subject: [Qemu-devel] [PATCH v3 02/46] configure: add test for docker availability X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?UTF-8?q?Alex=20Benn=C3=A9e?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 This tests for a working docker installation without sudo and sets up config-host.mak accordingly. This will be useful from cross compiling things in the future. Signed-off-by: Alex Benn=C3=A9e Reviewed-by: Richard Henderson --- configure | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/configure b/configure index 0a19b033bc..b0ae632ee4 100755 --- a/configure +++ b/configure @@ -451,6 +451,7 @@ jemalloc=3D"no" replication=3D"yes" vxhs=3D"" libxml2=3D"" +docker=3D"no" =20 supported_cpu=3D"no" supported_os=3D"no" @@ -5413,6 +5414,17 @@ EOF fi fi =20 +########################################## +# Docker and cross-compiler support +# +# This is specifically for building test +# cases for foreign architectures, not +# cross-compiling QEMU itself. + +if has "docker"; then + docker=3D$($python $source_path/tests/docker/docker.py probe) +fi + ########################################## # End of CC checks # After here, no more $cc or $ld runs @@ -5874,6 +5886,7 @@ echo "avx2 optimization $avx2_opt" echo "replication support $replication" echo "VxHS block device $vxhs" echo "capstone $capstone" +echo "docker $docker" =20 if test "$sdl_too_old" =3D "yes"; then echo "-> Your SDL version is too old - please upgrade to have SDL support" @@ -6697,6 +6710,10 @@ if test "$gcov" =3D "yes" ; then echo "GCOV=3D$gcov_tool" >> $config_host_mak fi =20 +if test "$docker" !=3D "no"; then + echo "HAVE_USER_DOCKER=3Dy" >> $config_host_mak +fi + # use included Linux headers if test "$linux" =3D "yes" ; then mkdir -p linux-headers --=20 2.17.0