Re: [PATCH 3/3] Use PKG_CHECK_MODULES to detect libxml2

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

 



On Mon, 2020-07-20 at 22:39 +1000, Hugh McMaster wrote:
> Hi Ian,
> 
> On Mon, 20 Jul 2020 at 17:11, Ian Kent wrote:
> > On Thu, 2020-07-02 at 23:43 +1000, Hugh McMaster wrote:
> > >  # LDAP SASL auth needs libxml and Kerberos
> > > -AF_CHECK_LIBXML()
> > > +PKG_CHECK_MODULES([XML], [libxml-2.0], [
> > 
> > I think perhaps I will need to change [libxml-2.0] to
> > [libxml-2.0 libxml2] ... the Fedora package name.
> > 
> > It's not clear from the PKG_CHECK_MODULES man page if that's the
> > correct way to specify this and if a space separator is meant to be
> > used between package names.
> 
> That won't do what you think it should.
> 
> pkg-config has no concept of package names. It only reads information
> from module files installed in /usr/lib/pkgconfig or similar paths.
> 
> Developers pass the name of the required module (without .pc) to
> pkg-config. So, for libxml2, it's libxml-2.0, not libxml2.
> 
> Also, pkg-config (and its macros) treat space-separated module names
> as one argument. pkg-config will fail if it can't find any one of the
> specified modules.
> In this case, libxml2.

Ok, thanks for that.
I'll check the .pc file installed on Fedora.

Ian




[Index of Archives]     [Linux Filesystem Development]     [Linux Ext4]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux