autoconf
[Top][All Lists]
Advanced

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

Re: pkg-config wisdom


From: William Pursell
Subject: Re: pkg-config wisdom
Date: Sun, 25 Oct 2009 11:07:56 -1000
User-agent: Thunderbird 2.0.0.23 (Macintosh/20090812)

Alfred M. Szmidt wrote:
>    > pkg-config is broken because it checks for the existance of
>    > libraries, and not for the features that are required for the
>    > program to run.
> 
>    It does not even check for the existence of libraries.
>    It checks for the existence of a .pc file and assumes
>    that the user (or administrator) has supplied the correct
>    information.
> 
> Sighs, which is the exact same thing.
> 

No, it is not the same thing.  The user can construct
foo.pc to add -lbar to the build when the
package requests libfoo.  The user has more
control over certain aspects of the build,
but less safety because no checks are
done during configure time to ensure
that libbar even exists, unless the
maintainer takes extra steps to do so
beyond invoking PKG_CHECK_MODULES.  There
is an extra level of indirection available
to the user at configure time.

-- 
William Pursell




reply via email to

[Prev in Thread] Current Thread [Next in Thread]