From: Lars Magne Ingebrigtsen <larsi@gnus.org>
To: emacs-devel@gnu.org
Subject: zlib autoconf question
Date: Thu, 08 Aug 2013 13:14:49 +0200 [thread overview]
Message-ID: <m361vg3046.fsf@stories.gnus.org> (raw)
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
next reply other threads:[~2013-08-08 11:14 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-08 11:14 Lars Magne Ingebrigtsen [this message]
2013-08-08 11:23 ` zlib autoconf question 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m361vg3046.fsf@stories.gnus.org \
--to=larsi@gnus.org \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).