From nobody Sat Sep 28 21:34:32 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1583601896; cv=none; d=zohomail.com; s=zohoarc; b=Dmtemq5Wesb1okL9O1sdJ2Z2V5C5aObsfeqe/jLTzKksA6AmXFJE9oe6N1inA6cUyB9LuNLJ1LgyaLQjs36aJDBd1ZDPZ2Z98zS/Jed661HQWYg3qDMyEeqQJVfBBsVkits/W5L/A/1alxzvhnhL2fJLpIMdkFIpkkELaBsmN/w= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1583601896; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=j0/A/hRH1mvhq8x4w08HMbeR+czGBGSR4kgslcLdl5o=; b=a6xL9KZe4M9GS01r8O1EW3q4oluneqYOI6lZcM8O+HrOeQfkywyyahYnMwLmn2p2FuFLxgHVfQplurkK+/nm+GGe/ZVjxbW8Dp8qv7KPcket4zc/JOML4j3j0eUaZTUPDGFEOu3aAdtnSEYmeOEd/iLPyECboy9YxpthlIjP1H4= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1583601896023833.0900838212381; Sat, 7 Mar 2020 09:24:56 -0800 (PST) Received: from localhost ([::1]:51054 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jAdC3-0000FK-7l for importer@patchew.org; Sat, 07 Mar 2020 12:24:55 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:52191) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jAd9m-0005eq-7l for qemu-devel@nongnu.org; Sat, 07 Mar 2020 12:22:35 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jAd9l-0005C6-6Y for qemu-devel@nongnu.org; Sat, 07 Mar 2020 12:22:34 -0500 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:37211 helo=us-smtp-1.mimecast.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jAd9k-00058C-Tz for qemu-devel@nongnu.org; Sat, 07 Mar 2020 12:22:33 -0500 Received: from mail-wm1-f69.google.com (mail-wm1-f69.google.com [209.85.128.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-5-1a_azBPoNM-xFMPw5M3q7Q-1; Sat, 07 Mar 2020 12:22:30 -0500 Received: by mail-wm1-f69.google.com with SMTP id t8so908485wmd.1 for ; Sat, 07 Mar 2020 09:22:30 -0800 (PST) Received: from x1w.redhat.com (47.red-88-21-205.staticip.rima-tde.net. [88.21.205.47]) by smtp.gmail.com with ESMTPSA id z129sm830972wmb.7.2020.03.07.09.22.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 07 Mar 2020 09:22:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1583601752; 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=j0/A/hRH1mvhq8x4w08HMbeR+czGBGSR4kgslcLdl5o=; b=NUhJr213+/91vxaK5lMNXWKPVnf9PfEP1Cs5Jprg6iqaPd4v328Pa9X7CF0lGLohenwCOY W/X/DBOTpI7NIQ+JUuZZrXqwCTTuaLqB6dq0ZW3nLHPgFlPB6EghhS2Lvm7fJe6PiIV50w QhCAJteX5VG3G/ZNFm3RkDSutTHQRcs= X-MC-Unique: 1a_azBPoNM-xFMPw5M3q7Q-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=7nTC+WRNSHu4j2JzOidPqvy4DfqhlTeiQA0mMeL+b3M=; b=tz/gfIW48kMeklMtkqMMP/lDW32xTeLNEMXAgA/rniP0tP6nwrMrpyhsvoj9BXQO9N KzqOLc3skJUmQN7nIaTtXf+MUyTlLxxNxeqAYfcgwNYbaM1JsHPjA+ctT+5lsl0Tpuaf PuCUSCByQCEXeDoUNgwAr9FbcDg/S0hEXIL9rxJmXDue+GJs9wTI3+y8/Ux2AuSX/75p 3/wk2PMfKtAp+OM14uDBkyZFNcdquQePpjehpwhjRrZ3KUINOVsYGyenbYgIXVXyc3na BDZejLLfX1iTWWUxsi/QQ6KN0+i89efD1Bp8jylRs/pHEugMLxkoxYQ0sR3xfkTj9F/p cpUg== X-Gm-Message-State: ANhLgQ2Qd6hpkHCkbvrPDZx0dPePxQLd8o35O2FC6MDyi917Tgso/dbS Aa0VCCUg2xbx6NltmERf8iTeBJ3JBVrEEeYRH7vgLD74DmdO/gzSAUz+NiVmUoaG8xPXxJ1YUV2 iylM2z8IMdckqtDQ= X-Received: by 2002:adf:e506:: with SMTP id j6mr10255170wrm.309.1583601749106; Sat, 07 Mar 2020 09:22:29 -0800 (PST) X-Google-Smtp-Source: ADFU+vs/mDwE957yg84UJCtaVSQiH3aa3U+9UoNU8lul0MXByw7FIzH8Y4x1OtX1zRVnMsIaJom97Q== X-Received: by 2002:adf:e506:: with SMTP id j6mr10255158wrm.309.1583601748938; Sat, 07 Mar 2020 09:22:28 -0800 (PST) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH 1/3] configure: Check for header before external libraries Date: Sat, 7 Mar 2020 18:22:20 +0100 Message-Id: <20200307172222.14764-2-philmd@redhat.com> X-Mailer: git-send-email 2.21.1 In-Reply-To: <20200307172222.14764-1-philmd@redhat.com> References: <20200307172222.14764-1-philmd@redhat.com> MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 207.211.31.120 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Fam Zheng , =?UTF-8?q?Daniel=20P=20=2E=20Berrang=C3=A9?= , =?UTF-8?q?Alex=20Benn=C3=A9e?= , =?UTF-8?q?=D0=90=D0=BB=D0=B5=D0=BA=D1=81=D0=B5=D0=B9=20=D0=9F=D0=B0=D0=B2=D0=BB=D0=BE=D0=B2?= , =?UTF-8?q?=D0=9C=D0=B5=D1=82=D0=BB=D0=B8=D1=86=D0=BA=D0=B8=D0=B9=20=D0=AE=D1=80=D0=B8=D0=B9=20=D0=92=D0=B8=D0=BA=D1=82=D0=BE=D1=80=D0=BE=D0=B2=D0=B8=D1=87?= , Biswapriyo Nath , Paolo Bonzini , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Type: text/plain; charset="utf-8"; text/plain; charset="utf-8" In the next commit we will add a definition to the SASL CFLAGS, depending whether the scatter/gather I/O include is present. Move the header check before the external libraries checks. Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- configure | 52 ++++++++++++++++++++++++++-------------------------- 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/configure b/configure index cbf864bff1..0c2dd1eb08 100755 --- a/configure +++ b/configure @@ -2340,6 +2340,32 @@ if test "$vhost_net" =3D ""; then test "$vhost_kernel" =3D "yes" && vhost_net=3Dyes fi =20 +########################################## +# iovec probe +cat > $TMPC < +#include +#include +int main(void) { return sizeof(struct iovec); } +EOF +iovec=3Dno +if compile_prog "" "" ; then + iovec=3Dyes +fi + +########################################## +# preadv probe +cat > $TMPC < +#include +#include +int main(void) { return preadv(0, 0, 0, 0); } +EOF +preadv=3Dno +if compile_prog "" "" ; then + preadv=3Dyes +fi + ########################################## # MinGW / Mingw-w64 localtime_r/gmtime_r check =20 @@ -4145,32 +4171,6 @@ EOF fi fi =20 -########################################## -# iovec probe -cat > $TMPC < -#include -#include -int main(void) { return sizeof(struct iovec); } -EOF -iovec=3Dno -if compile_prog "" "" ; then - iovec=3Dyes -fi - -########################################## -# preadv probe -cat > $TMPC < -#include -#include -int main(void) { return preadv(0, 0, 0, 0); } -EOF -preadv=3Dno -if compile_prog "" "" ; then - preadv=3Dyes -fi - ########################################## # fdt probe # fdt support is mandatory for at least some target architectures, --=20 2.21.1