unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* zlib autoconf question
@ 2013-08-08 11:14 Lars Magne Ingebrigtsen
  2013-08-08 11:23 ` Jérémie Courrèges-Anglas
                   ` (3 more replies)
  0 siblings, 4 replies; 26+ messages in thread
From: Lars Magne Ingebrigtsen @ 2013-08-08 11:14 UTC (permalink / raw)
  To: emacs-devel

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




^ permalink raw reply	[flat|nested] 26+ messages in thread

end of thread, other threads:[~2013-08-12 19:17 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-08-08 11:14 zlib autoconf question Lars Magne Ingebrigtsen
2013-08-08 11:23 ` Jérémie Courrèges-Anglas
2013-08-08 12:46 ` Andreas Schwab
2013-08-08 12:48   ` Lars Magne Ingebrigtsen
2013-08-08 13:26     ` Andreas Schwab
2013-08-08 12:47 ` Paul Eggert
2013-08-08 12:49   ` Lars Magne Ingebrigtsen
2013-08-08 12:57     ` Dmitry Antipov
2013-08-08 16:52       ` Eli Zaretskii
2013-08-11 19:52         ` Lars Magne Ingebrigtsen
2013-08-08 12:55 ` Ulrich Mueller
2013-08-11 19:53   ` Lars Magne Ingebrigtsen
2013-08-11 20:28     ` Ulrich Mueller
2013-08-11 22:01       ` Lars Magne Ingebrigtsen
2013-08-11 22:54         ` Ulrich Mueller
2013-08-11 22:59           ` Paul Eggert
2013-08-12  2:41       ` Eli Zaretskii
2013-08-12 13:58         ` Stefan Monnier
2013-08-12 13:58         ` Stefan Monnier
2013-08-12 15:19           ` Eli Zaretskii
2013-08-12 16:05             ` Stefan Monnier
2013-08-12 16:12               ` Lars Magne Ingebrigtsen
2013-08-12 16:35           ` Richard Stallman
2013-08-12 18:20             ` Lars Magne Ingebrigtsen
2013-08-12 19:17               ` Paul Eggert
2013-08-12  5:45       ` Dmitry Antipov

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).