Sébastien Le Roux wrote:

I wonder if there is a way (a macro ?) to obtain the version of a library.

Maybe, but the Autoconf Way is to test for features, not versions.

Take the simple case, only two supported versions of a library, old and new. You write a single autoconf test that tries to link a program containing a routine only available in the new library. AC_TRY_LINK If the new library differs only in the interface to the same set of functions, you'd have to use AC_TRY_COMPILE instead, with an attempt to call the newer interface.

You probably need at least two tests, in actual use. The second one is in case the first fails, to check that the old version exists, to differentiate that case from the one where neither version is present.


_______________________________________________
Autoconf mailing list
Autoconf@gnu.org
http://lists.gnu.org/mailman/listinfo/autoconf

Reply via email to