[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: [Libvir] Please check my autoconf libvirt.m4
- From: "Daniel P. Berrange" <berrange redhat com>
- To: "Richard W.M. Jones" <rjones redhat com>
- Cc: libvir-list <libvir-list redhat com>
- Subject: Re: [Libvir] Please check my autoconf libvirt.m4
- Date: Wed, 23 May 2007 18:54:12 +0100
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.
> AC_LIBVIRT
>
> dnl Libvirt must be >= 0.2.1
> AC_MSG_CHECKING([libvirt >= 0.2.1])
> if test $LIBVIRT_VERSION -ge 2001; then
> AC_MSG_RESULT([ok])
> else
> AC_MSG_ERROR([please upgrade your libvirt library])
> fi
I don't see that this buys us much over just doing
PKG_CHECK_MODULES(LIBVIRT, libvirt >= 0.2.1)
AC_SUBST(LIBVIRT_CFLAGS)
AC_SUBST(LIBVIRT_LIBS)
which already works...
Regards,
Dan.
--
|=- 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 -=|
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]