[Libvir] Please check my autoconf libvirt.m4
Richard W.M. Jones
rjones at redhat.com
Wed May 23 17:31:19 UTC 2007
Richard W.M. Jones wrote:
> Attached is an autoconf snippet which allows you to check that the
> libvirt library is installed (not necessarily development headers
> though) and check the version number.
> If any autoconf experts (hello, Mark) would like to check it makes
> sense, that'd be great.
I should add that I use it like this:
dnl Check for libvirt, sets LIBVIRT_VERSION.
dnl Libvirt must be >= 0.2.1
AC_MSG_CHECKING([libvirt >= 0.2.1])
if test $LIBVIRT_VERSION -ge 2001; then
AC_MSG_ERROR([please upgrade your libvirt library])
Emerging Technologies, Red Hat - http://et.redhat.com/~rjones/
Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod
Street, Windsor, Berkshire, SL4 1TE, United Kingdom. Registered in
England and Wales under Company Registration No. 03798903
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 3237 bytes
Desc: S/MIME Cryptographic Signature
More information about the libvir-list