From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: jca@wxcvbn.org (=?utf-8?Q?J=C3=A9r=C3=A9mie_Courr=C3=A8ges-Anglas?=) Newsgroups: gmane.emacs.devel Subject: Re: zlib autoconf question Date: Thu, 08 Aug 2013 13:23:34 +0200 Message-ID: <87wqnwzart.fsf@shannon.wxcvbn.org> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1375972713 22690 80.91.229.3 (8 Aug 2013 14:38:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 8 Aug 2013 14:38:33 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Aug 08 16:38:33 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1V7RMF-000682-AP for ged-emacs-devel@m.gmane.org; Thu, 08 Aug 2013 16:38:31 +0200 Original-Received: from localhost ([::1]:45159 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V7RME-0001ag-TV for ged-emacs-devel@m.gmane.org; Thu, 08 Aug 2013 10:38:30 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49234) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V7OS0-0003oD-Gb for emacs-devel@gnu.org; Thu, 08 Aug 2013 07:32:22 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V7ORt-0001JX-2o for emacs-devel@gnu.org; Thu, 08 Aug 2013 07:32:16 -0400 Original-Received: from coloc.wxcvbn.org ([80.67.177.44]:43236) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V7OKh-0006dN-1S for emacs-devel@gnu.org; Thu, 08 Aug 2013 07:24:43 -0400 Original-Received: by coloc.wxcvbn.org (Postfix, from userid 10) id 23B3680492; Thu, 8 Aug 2013 13:24:39 +0200 (CEST) Original-Received: from shannon.wxcvbn.org (localhost [127.0.0.1]) by wxcvbn.org (8.14.7/8.14.7) with ESMTP id r78BNa8Q022915 for ; Thu, 8 Aug 2013 13:23:36 +0200 (CEST) Original-Received: (from jca@localhost) by shannon.wxcvbn.org (8.14.7/8.14.7/Submit) id r78BNZLa000567; Thu, 8 Aug 2013 13:23:35 +0200 (CEST) Mail-Followup-To: emacs-devel@gnu.org In-Reply-To: (Lars Magne Ingebrigtsen's message of "Thu, 08 Aug 2013 13:14:49 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (berkeley-unix) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 80.67.177.44 X-Mailman-Approved-At: Thu, 08 Aug 2013 10:38:27 -0400 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:162509 Archived-At: Lars Magne Ingebrigtsen writes: > I'm not sure whether it's really necessary to check for zlib -- does > Emacs even build without png support these days? -- but perhaps it is. > > Anyway, I wrote the obvious: > > AC_CHECK_LIB(z, inflateInit2, HAVE_ZLIB=yes, HAVE_ZLIB=no) > > And that fails with: > > /home/larsi/src/emacs/trunk/conftest.c:118: undefined reference to `inflateInit2' > > But inflateInit2 definitely exists (it's the function decompress.c > uses). > > However, running strings over libz says: > > inflateReset > inflateReset2 > inflateInit2_ > inflateInit_ > > And > > AC_CHECK_LIB(z, inflateInit2_, HAVE_ZLIB=yes, HAVE_ZLIB=no) > > works! > > What's up with that? inflateInit2 is a macro that "calls" inflateInit2_. -- jca | PGP : 0x06A11494 / 61DB D9A0 00A4 67CF 2A90 8961 6191 8FBF 06A1 1494