SPAM: Re: [OPEN-ILS-DEV] Debian version/GCC version

Bill Erickson billserickson at gmail.com
Tue Feb 20 08:50:41 EST 2007


On 2/20/07, Mike Rylander <mrylander at gmail.com> wrote:
>
> On 2/20/07, Bill Erickson <billserickson at gmail.com> wrote:
> > On 2/19/07, Mike Rylander <mrylander at gmail.com> wrote:
> > > >
> > > > The guys here [1] suggest using pkg-config to find the apr build
> flags.
> > > > E.g.:
> > > >
> > > > % pkg-config --cflags apr-1
> > > >
> > > > -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE
> > > > -I/usr/include/apr- 1.0
> > > >
> > > > We could just add pkg-config as a dependency and add the `pkg-config
> > > > --cflags apr-1` to the makefile when necessary.
> > >
> > > I don't like that at all.  This is exactly the job that
> > > autoconf/automake are meant for,
> >
> > Sure, but in the mean time, it's also what pkg-config is meant for.
> >
>
> Well, my concern is coverage.  If it's just me that isn't getting the
> .pc for apr-1 with the distro package then I'm all for it.


Ahh..  I assumed it would be there for everyone.  My Apache source installs
and Debian package installs all create the apr-1.pc file.  Gentoo probably
thinks pkg-config is for losers ;).  Ok, that's enough to convince me.

[snip]

Is it trivial to have the makefile attempt pkg-config? if so, and it
> won't fail the build (may just be a matter of redirecting stderr to
> /dev/null), let's try it out.  If it ends up working then
> _LARGEFILE64_SOURCE-from-env is just belt-and-suspenders and everybody
> wins.  :)


I'm good with belt-and-suspenders for now.  It'll be simpler to explain than
"if you have pkg-config settings for libapr, then we'll try that first,
but..."




-- 
Bill Erickson
PINES Systems Developer
Georgia Public Library Service
billserickson at gmail.com
http://open-ils.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://list.georgialibraries.org/pipermail/open-ils-dev/attachments/20070220/7a9d5c16/attachment.html


More information about the Open-ils-dev mailing list