[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Checking for a library ... different ways ...
From: |
Matěj Týč |
Subject: |
Re: Checking for a library ... different ways ... |
Date: |
Thu, 23 Oct 2008 16:13:49 +0200 |
Hello Michel,
...
>
Adding to that the check could be implemented in many different ways :
> an autoconf macro, calling a script (sdl-config for example), using
> pkgconfig...
Stick with AC_CHECK_LIBS, see reasons below.
>
> Side question : a good distro could enforce that each library will
> provide a pkgconfig file for example, or at least a .m4 file ?
AFAIK, pkg-conifg quite sucks. If you use autotools, you should rely on
libtool since the current pkg-config autotools support is quite
unsatisfactory (especially regarding to other languages that C and cross
compiling) . Writing and maintaining custom m4 macros is usually a
nightmare, this is why pkg-config was created.
That's how I see it, maybe I am wrong.
Regards,
Matej