[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [Libevent-users] libevent-config script?



On Sun, Jan 2, 2011 at 5:54 AM, Harlan Stenn <stenn@xxxxxxx> wrote:
A number of different packages will install foo-config in the PATH to
make it easy to figure out if the package installed and what options
should be used.

Examples include:

 autoopts-config
 cups-config
 curl-config
 libgcrypt-config
 libpng-config

Anyway, I was wondering if libevent could install something similar.

I'm looking for path information (include and library) and any needed
CPP, library, etc. flags.

libevent provides pkg-config files that should do the same as these helper programs.  You can run shell program 'PKG_CONFIG_PATH=/foo/libevent/lib/pkgconfig/ pkg-config' to get the information you desire on stdout.  pkg-config also has nice Autoconf macros.