examples/vhost_scsi: disable build if missing dependency
authorAaron Conole <aconole@redhat.com>
Thu, 7 Feb 2019 22:01:13 +0000 (17:01 -0500)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 27 Feb 2019 14:05:59 +0000 (15:05 +0100)
commit8d47a753b7cb05e0ef62360324c6a28505038d09
treeb1576fba5edbdfb267833539b422e1d59d9cae63
parent3fe9b93c8d6b8d1cc7f148002ce1ea098b60fcbd
examples/vhost_scsi: disable build if missing dependency

The vhost_scsi example code is set to build, even if the requisite header
file virtio_scsi.h isn't available.  This happens on some Ubuntu systems
when some versions of the libc-dev package aren't available.

Check whether the virtio_scsi.h file exists, and if not, set the build
flag to false.

Signed-off-by: Aaron Conole <aconole@redhat.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
examples/vhost_scsi/meson.build