[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
- Re: zlib autoconf question, (continued)
- Re: zlib autoconf question, Eli Zaretskii, 2013/08/11
- Re: zlib autoconf question, Stefan Monnier, 2013/08/12
- Re: zlib autoconf question, Stefan Monnier, 2013/08/12
- Re: zlib autoconf question, Eli Zaretskii, 2013/08/12
- Re: zlib autoconf question, Stefan Monnier, 2013/08/12
- Re: zlib autoconf question, Lars Magne Ingebrigtsen, 2013/08/12
- Re: zlib autoconf question, Richard Stallman, 2013/08/12
- Re: zlib autoconf question, Lars Magne Ingebrigtsen, 2013/08/12
- Re: zlib autoconf question, Paul Eggert, 2013/08/12
- Re: zlib autoconf question, Dmitry Antipov, 2013/08/12
Re: zlib autoconf question,
Jérémie Courrèges-Anglas <=