RE: [PATCH 1/2] configure: add a fallback check for zlib

Subject: RE: [PATCH 1/2] configure: add a fallback check for zlib

Date: Sat, 10 May 2014 17:27:34 -0500

To: Tomi Ollila, Felipe Contreras, Xīcò, notmuch@notmuchmail.org

Cc:

From: Felipe Contreras


Tomi Ollila wrote:
> On Sun, May 11 2014, Felipe Contreras <felipe.contreras@gmail.com> wrote:
> 
> > Xīcò wrote:
> >> Since zlib is part of the base system, FreeBSD chose not to register it
> >> in pkg-config through zlib.pc. As a fallback test, configure will build
> >> and run a zlib version check and make sure the header and library
> >> versions are compatible.
> >
> > We could try to generate our on zlib.pc, this way the configure script
> > would be cleaner.
> 
> But for that we'd need to figure out the version, and is there simpler
> robust way to do that some other way ?

I don't meant to change the code that is checking for the version in the
patch, you use the same code, but instead of have_zlib.c gen_zlib_pc.c,
or something.

-- 
Felipe Contreras

Thread: