emacs-devel
[Top][All Lists]
Advanced

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

zlib autoconf question


From: Lars Magne Ingebrigtsen
Subject: zlib autoconf question
Date: Thu, 08 Aug 2013 13:14:49 +0200
User-agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3.50 (gnu/linux)

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?

-- 
(domestic pets only, the antidote for overdose, milk.)
  No Gnus T-Shirt for sale: http://ingebrigtsen.no/no.php
  and http://lars.ingebrigtsen.no/2013/08/twenty-years-of-september.html




reply via email to

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