emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: zlib autoconf question


From: Jérémie Courrèges-Anglas
Subject: Re: zlib autoconf question
Date: Thu, 08 Aug 2013 13:23:34 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (berkeley-unix)

Lars Magne Ingebrigtsen <address@hidden> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]