Message ID | 20210416194209.191245-3-mark.weiman@markzz.com |
---|---|
State | Superseded, archived |
Headers | show
Return-Path: <pacman-dev-bounces@lists.archlinux.org> Delivered-To: patchwork@archlinux.org Received: from mail.archlinux.org [95.216.189.61] by patchwork.archlinux.org with IMAP (fetchmail-6.4.18) for <fetchmail@localhost> (single-drop); Fri, 16 Apr 2021 19:55:44 +0000 (UTC) Received: from mail.archlinux.org by mail.archlinux.org with LMTP id wKYsCL7reWBF6wMAK+/4rw (envelope-from <pacman-dev-bounces@lists.archlinux.org>) for <patchwork@archlinux.org>; Fri, 16 Apr 2021 19:55:42 +0000 Received: from luna.archlinux.org (luna.archlinux.org [IPv6:2a01:4f8:160:3033::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits)) (No client certificate requested) by mail.archlinux.org (Postfix) with ESMTPS id E17705013EC; Fri, 16 Apr 2021 19:55:39 +0000 (UTC) Received: from luna.archlinux.org (luna.archlinux.org [127.0.0.1]) by luna.archlinux.org (Postfix) with ESMTP id DE8C32C70A; Fri, 16 Apr 2021 19:48:29 +0000 (UTC) Received: from luna.archlinux.org (luna.archlinux.org [127.0.0.1]) by luna.archlinux.org (Postfix) with ESMTP id 63D712C6FB for <pacman-dev@lists.archlinux.org>; Fri, 16 Apr 2021 19:48:25 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.5 (2021-03-20) on luna.archlinux.org X-Spam-Level: X-Spam-Status: No, score=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED=-2.3, T_DMARC_TESTS_FAIL=0.01 autolearn=failed autolearn_force=no version=3.4.5 X-Spam-BL-Results: <dns:1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.5.0.3.0.1.0.c.9.f.4.0.1.0.a.2.list.dnswl.org> [127.0.9.2] Received: from mail.archlinux.org (mail.archlinux.org [IPv6:2a01:4f9:c010:3052::1]) by luna.archlinux.org (Postfix) with ESMTPS for <pacman-dev@lists.archlinux.org>; Fri, 16 Apr 2021 19:48:25 +0000 (UTC) Received: from mail.markzz.net (duna.markzz.net [209.50.56.197]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.archlinux.org (Postfix) with ESMTPS id 7853650135B for <pacman-dev@archlinux.org>; Fri, 16 Apr 2021 19:48:24 +0000 (UTC) Received: from localhost.localdomain (unknown [IPv6:2601:410:81:a4a0:3489:7d93:11:f11e]) by mail.markzz.net (Postfix) with ESMTPSA id 4AFB94104E41 for <pacman-dev@archlinux.org>; Fri, 16 Apr 2021 15:42:34 -0400 (EDT) From: Mark Weiman <mark.weiman@markzz.com> To: pacman-dev@archlinux.org Date: Fri, 16 Apr 2021 15:42:07 -0400 Message-Id: <20210416194209.191245-3-mark.weiman@markzz.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210416194209.191245-1-mark.weiman@markzz.com> References: <20210416194209.191245-1-mark.weiman@markzz.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [pacman-dev] [PATCH 2/4] meson.build: Fix detection of symbols X-BeenThere: pacman-dev@lists.archlinux.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Discussion list for pacman development <pacman-dev.lists.archlinux.org> List-Unsubscribe: <https://lists.archlinux.org/options/pacman-dev>, <mailto:pacman-dev-request@lists.archlinux.org?subject=unsubscribe> List-Archive: <https://lists.archlinux.org/pipermail/pacman-dev/> List-Post: <mailto:pacman-dev@lists.archlinux.org> List-Help: <mailto:pacman-dev-request@lists.archlinux.org?subject=help> List-Subscribe: <https://lists.archlinux.org/listinfo/pacman-dev>, <mailto:pacman-dev-request@lists.archlinux.org?subject=subscribe> Reply-To: Discussion list for pacman development <pacman-dev@lists.archlinux.org> Errors-To: pacman-dev-bounces@lists.archlinux.org Sender: "pacman-dev" <pacman-dev-bounces@lists.archlinux.org> Authentication-Results: mail.archlinux.org; dkim=none; dmarc=none; spf=pass (mail.archlinux.org: domain of pacman-dev-bounces@lists.archlinux.org designates 2a01:4f8:160:3033::2 as permitted sender) smtp.mailfrom=pacman-dev-bounces@lists.archlinux.org X-Rspamd-Queue-Id: E17705013EC X-Spamd-Result: default: False [4.49 / 15.00]; ARC_NA(0.00)[]; HAS_REPLYTO(0.00)[pacman-dev@lists.archlinux.org]; RCVD_COUNT_FIVE(0.00)[6]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[]; NEURAL_SPAM(0.00)[0.912]; R_SPF_ALLOW(-0.20)[+ip6:2a01:4f8:160:3033::2:c]; R_MISSING_CHARSET(2.50)[]; MIME_GOOD(-0.10)[text/plain]; REPLYTO_DOM_NEQ_FROM_DOM(0.00)[]; BROKEN_CONTENT_TYPE(1.50)[]; HAS_LIST_UNSUB(-0.01)[]; RCPT_COUNT_ONE(0.00)[1]; TO_DN_NONE(0.00)[]; GREYLIST(0.00)[pass,meta]; MID_CONTAINS_FROM(1.00)[]; MAILLIST(-0.20)[mailman]; RCVD_TLS_LAST(0.00)[]; DMARC_NA(0.00)[markzz.com]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:24940, ipnet:2a01:4f8::/32, country:DE]; FROM_NEQ_ENVFROM(0.00)[mark.weiman@markzz.com,pacman-dev-bounces@lists.archlinux.org]; FORGED_SENDER_MAILLIST(0.00)[] X-Rspamd-Server: mail.archlinux.org |
Series |
Various fixes for FreeBSD (and perhaps others)
|
expand
|
diff --git a/meson.build b/meson.build index 483c4fbd..14b3381a 100644 --- a/meson.build +++ b/meson.build @@ -146,7 +146,9 @@ foreach sym : [ 'tcflush', ] have = cc.has_function(sym, args : '-D_GNU_SOURCE') - conf.set10('HAVE_' + sym.to_upper(), have) + if have + conf.set10('HAVE_' + sym.to_upper(), have) + endif endforeach foreach member : [
This patch changes the behavior of meson to define configuration options *only* when the symbol checked is present. Currently, it defines all of them in config.h whether the symbol exists or not and the code that looks for it doesn't check the macro's value, but whether it's defined. Signed-off-by: Mark Weiman <mark.weiman@markzz.com> --- meson.build | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)