[libvirt] [PATCH 08/28] Convert netcf check to use LIBVIRT_CHECK_PKG
Eric Blake
eblake at redhat.com
Fri Jan 11 22:00:23 UTC 2013
On 01/11/2013 04:05 AM, Daniel P. Berrange wrote:
> From: "Daniel P. Berrange" <berrange at redhat.com>
>
> Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
> ---
> configure.ac | 42 ++----------------------------------------
> m4/virt-netcf.m4 | 40 ++++++++++++++++++++++++++++++++++++++++
> 2 files changed, 42 insertions(+), 40 deletions(-)
> create mode 100644 m4/virt-netcf.m4
>
> +
> +AC_DEFUN([LIBVIRT_CHECK_NETCF],[
> + LIBVIRT_CHECK_PKG([NETCF], [netcf], [0.1.4])
> +
> + if test "$with_netcf" = "yes" ; then
> + old_CFLAGS="$CFLAGS"
> + old_LIBS="$CFLAGS"
> + CFLAGS="$CFLAGS $NETCF_CFLAGS"
> + LIBS="$LIBS $NETCF_LIBS"
> + AC_CHECK_FUNC([ncf_change_begin], [netcf_transactions=1], [netcf_transactions=0])
> + if test "$netcf_transactions" = "1" ; then
> + AC_DEFINE_UNQUOTED([HAVE_NETCF_TRANSACTIONS], 1,
Autoconf recommends writing that second parameter as [1], not unadorned
1, for consistency; but it doesn't matter in practice.
ACK.
--
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/dbdef81a/attachment-0001.sig>
More information about the libvir-list
mailing list