Guido Draheim <address@hidden> writes:
Hi Franceso,
the same about this one, but differently since it is not my macro.
The ac-archive does just assemble macros from their resp. authors
who have to tell whether an audit is good or right. ;-) I am just
forwarding this one to rleigh, may be he has some time to look
into this - he's probably very busy, so in any case thanks in
advance for tracking those problems and sending patches, we do
like that very very much.
Seconded! I have no problems with the patch (but I couldn't apply it,
since it was quoted-printable and I didn't have time to de-mangle it).
Feel free to apply to the ac-archive.
From: Francesco Salvestrini <address@hidden>
Subject: ac_path_lib.m4 (from ac-archive0.5.54) patch
To: address@hidden
Date: Wed, 22 Oct 2003 14:42:19 +0200
Organization: META / C.P.R.
Reply-To: address@hidden
Hi Guido,
This is the second patch (i hope you received the first i've sent to you). It
is for ac_path_lib macro. The original macro comes from ac-archive-0.5.54
(maybe the fixes are already on the CVS...).
My configuration: autoconf-2.57 and automake-1.7.8
NOTE: I'm using the macro not in the default case (pkg-config). Patches refers
to this particular case...
Problems (fixed, i hope):
1) Missing HEADER parameter in AC_PATH_LIB
2) Added inclusion of string.h (for strdup) ... This is not a good solution i
think ...
3) Mispelled _AC_PATH_LIP_CHECK_VERSION changed in _AC_PATH_LIB_CHECK_VERSION
(it should not be a real problem)
Wow! Thanks for taking the time to look at this!
Problems (not fixed):
Using the macro two times in the same configure seems that it doesn't reset
the values it uses (). I'm appending the config.log. Look at the two
different tests (the first for SDL library (search "configure:3275"), the
second for xml2 (search "configure:3946")), the first is built correctly
while the second mixes sdl with xml while it should use only xml.
Francesco,
I haven't used or hacked on AC_PATH_LIB in over a year. I wrote it
originally for the Gimp-Print project, but I have long since switched
to pkg-config (and AC_CONFIG_PKGCONFIG_IN--not sure if I submitted
this to the archive), and its own PKG_CHECK_MODULES macro. I am
perfectly willing for Guido to take patches from you for this, and
feel free to add yourself as a copyright holder and become the
maintainer if you wish, since I no longer have a use for this macro
myself. I would be very happy in the knowledge that it continues to
be useful to others.
If you are not aware of pkg-config, then I would suggest you take a
look at it, since it saves a lot of time and effort that the old
library-config scripts took in both generating and using, and
understands library dependencies, too. PKG_CHECK_MODULES is a
replacement for AC_PATH_LIB (the AC_PATH_LIB pkg-config support was
written so I could transition to PKG_CHECK_MODULES).
Regards,
Roger