examples/vm_power_manager: fix libvirt dependency check
authorMarvin Liu <yong.liu@intel.com>
Mon, 11 Apr 2016 08:50:31 +0000 (16:50 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 11 Apr 2016 12:29:19 +0000 (14:29 +0200)
commite5140f5266c00397cc85a865c774e4962691561f
tree88309651a8dc19adaf9729411316811f72f7b1a2
parent411c22d4e09d09f6584fb70145e60bebf723c197
examples/vm_power_manager: fix libvirt dependency check

vm_power_manager utilize libvirt API virDomainGetVcpuPinInfo to
retrieve domU vcpu information. This API is implemented from version 0.9.3.
Suse11 SP3 32bit default libvirt version is 0.8.8.

examples/vm_power_manager/channel_manager.c:
channel_manager.c:117:3: error: implicit declaration of function
'virDomainGetVcpuPinInfo'

Check and skip it from examples or raise an error when trying to compile
without libvirt or with a too old libvirt.

Fixes: e8ae9b662 ("examples/vm_power: channel manager and monitor in host")

Signed-off-by: Marvin Liu <yong.liu@intel.com>
Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
examples/Makefile
examples/vm_power_manager/Makefile