add pkg-config file support

Dan White dwhite at
Thu Mar 7 17:14:44 CET 2013

On 03/07/13 16:44 +0100, Marc Lehmann wrote:
>On Thu, Mar 07, 2013 at 08:55:59AM -0600, Dan White <dwhite at> wrote:
>> Supporting:
>> ./configure && make install
>> Is my best argument for pkg-config.
>Well, since pkg-config would fail in your described scenario (libev
>installed in a non-standard location means pkg-config will not find it
>either...), I am not sure what this is an argument for.

It would not fail, assuming you apply a sane pkg-config patch to libev.

>Note that the above works fine even without pkg-config.

Another way to look at this is as a granularity problem. You focus on
libev, and the necessary steps to install it, and that's understandable.
But as an application developer, I have to be concerned about X libraries,
and the pain that users may have to go through to get my application

Clearly pkg-config has advantages here. pkg-config files will get
installed in standard locations regardless of where the library gets

Dan White

More information about the libev mailing list