From: Dylan Baker Subject: Re: [PATCH libdrm 4/4] meson: replace `if(compiles) have=true` with `have=compiles` Date: Fri, 16 Mar 2018 14:15:13 -0700 Message-ID: <152123491391.7615.17298492243464681195@localhost.localdomain> References: <20180316171227.2968-1-eric.engestrom@imgtec.com> <20180316171227.2968-4-eric.engestrom@imgtec.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0871433786==" Return-path: Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) by gabe.freedesktop.org (Postfix) with ESMTPS id EE1026EBF2 for ; Fri, 16 Mar 2018 21:15:15 +0000 (UTC) In-Reply-To: <20180316171227.2968-4-eric.engestrom@imgtec.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: Eric Engestrom , dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============0871433786== Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="===============6631812694683704283==" Content-Disposition: inline --===============6631812694683704283== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Quoting Eric Engestrom (2018-03-16 10:12:27) > Signed-off-by: Eric Engestrom > --- > meson.build | 5 ++--- > 1 file changed, 2 insertions(+), 3 deletions(-) >=20 > diff --git a/meson.build b/meson.build > index 0fe04a1411963c70cf80..74a541e8d835ae27c7f4 100644 > --- a/meson.build > +++ b/meson.build > @@ -187,9 +187,8 @@ else > endif > dep_m =3D cc.find_library('m', required : false) > foreach header : ['sys/sysctl.h', 'sys/select.h', 'alloca.h'] > - if cc.compiles('#include <@0@>'.format(header), name : '@0@ works'.for= mat(header)) > - config.set10('HAVE_' + header.underscorify().to_upper(), true) > - endif > + config.set('HAVE_' + header.underscorify().to_upper(), > + cc.compiles('#include <@0@>'.format(header), name : '@0@ works'.form= at(header))) > endforeach > if cc.has_header_symbol('sys/sysmacros.h', 'major') > config.set10('MAJOR_IN_SYSMACROS', true) > --=20 > Cheers, > Eric >=20 for the series: Reviewed-by: Dylan Baker --===============6631812694683704283== MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Description: signature Content-Type: application/pgp-signature; name="signature.asc"; charset="us-ascii" -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQRxxLdWILx1cItL2yVMlfqrPrBz7AUCWqwz4QAKCRBMlfqrPrBz 7JQEAP9PCFSvA+Ge9bA7n1YPVUY7YOwjqrKBTdTdvXYjEHqLwAEAzUkEgLoY9int ULc/95kVugFn1558n22eGX+BqoOgQQk= =blAa -----END PGP SIGNATURE----- --===============6631812694683704283==-- --===============0871433786== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============0871433786==--