[libvirt] [PATCH 1/9] Add some autoconf helper macros for checking for libraries
Eric Blake
eblake at redhat.com
Fri Jan 11 18:09:15 UTC 2013
On 01/10/2013 03:20 PM, Eric Blake wrote:
> On 01/10/2013 01:18 PM, Daniel P. Berrange wrote:
>> From: "Daniel P. Berrange" <berrange at redhat.com>
>>
>> Most checks for libraries take the same format
>>
>> * --with-libFOO=yes|no|check|/some/path argument
>> * check for a function NNN in libFOO.so
>> * check for a header file DDD/HHH.h
>> * Define a WITH_FOO config.h symbol
>> * Define a WITH_FOO make conditional
>> * Substitute FOO_CFLAGS and FOO_LIBS make variables
>> * Print CFLAGS & LIBS summary at the end
>>
>
> General impression - nice!
>
>> + m4_expand(cflags_var[=])
>> + m4_expand(libs_var[=])
>
> Overkill; you could get by with:
>
> libvirt quality:
> cflags_var=
> libs_var=
>
> Pedantic quality:
> m4_defn([cflags_var])=
> m4_defn([libs_var])=
Worse, broken on RHEL 5, where autoconf 2.59 lacks m4_expand:
./configure: line 90263: syntax error near unexpected token `with_audit=no'
./configure: line 90263: ` m4_expand(with_audit=no)'
I'll push the obvious patch shortly.
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 619 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20130111/c007f62d/attachment-0001.sig>
More information about the libvir-list
mailing list