[Libvir] Please check my autoconf libvirt.m4
Daniel P. Berrange
berrange at redhat.com
Wed May 23 17:54:12 UTC 2007
On Wed, May 23, 2007 at 06:31:19PM +0100, Richard W.M. Jones wrote:
> 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])
I don't see that this buys us much over just doing
PKG_CHECK_MODULES(LIBVIRT, libvirt >= 0.2.1)
which already works...
|=- Red Hat, Engineering, Emerging Technologies, Boston. +1 978 392 2496 -=|
|=- Perl modules: http://search.cpan.org/~danberr/ -=|
|=- Projects: http://freshmeat.net/~danielpb/ -=|
|=- GnuPG: 7D3B9505 F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 -=|
More information about the libvir-list