Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 1D8B2431FC0 for ; Thu, 8 May 2014 05:12:59 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: 0 X-Spam-Level: X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 5x6EwDQjTHoU for ; Thu, 8 May 2014 05:12:51 -0700 (PDT) Received: from mx.xen14.node3324.gplhost.com (gitolite.debian.net [87.98.215.224]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 3C92D431FAE for ; Thu, 8 May 2014 05:12:51 -0700 (PDT) Received: from remotemail by mx.xen14.node3324.gplhost.com with local (Exim 4.72) (envelope-from ) id 1WiNAn-00073y-6i; Thu, 08 May 2014 12:11:37 +0000 Received: (nullmailer pid 25553 invoked by uid 1000); Thu, 08 May 2014 12:11:07 -0000 From: David Bremner To: Tomi Ollila , =?utf-8?B?WMSrY8Oy?= , notmuch@notmuchmail.org Subject: Re: pkg-config zlib check in 3c13bc In-Reply-To: References: <20140506194025.GA17097@coyotlan.Tlalpan> User-Agent: Notmuch/0.18 (http://notmuchmail.org) Emacs/24.3.1 (x86_64-pc-linux-gnu) Date: Thu, 08 May 2014 21:11:07 +0900 Message-ID: <87lhucv5b8.fsf@maritornes.cs.unb.ca> MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 May 2014 12:12:59 -0000 Tomi Ollila writes: > > But, I'd like suggest alternate option to create a test c program > and test whether it compiles (analogous to what there is already > done with many other checks) -- this same would apply to fdatasync() > case too. > I agree in principle, but I'm not sure it's detectable at compile time, since the option we need is passed as a string (boo!). I guess the ZLIB_VERNUM hack would be preferable to adding platform specific checks to configure. But note you'd need somehow to find zlib.h. See my other patch for fdatasync. d