]> git.ipfire.org Git - thirdparty/libvirt.git/commit
libxl: use xenlight pkgconfig file if present
authorJim Fehlig <jfehlig@suse.com>
Tue, 17 Mar 2015 20:10:28 +0000 (14:10 -0600)
committerJim Fehlig <jfehlig@suse.com>
Thu, 19 Mar 2015 22:13:26 +0000 (16:13 -0600)
commit2adba7d3ab073b206e64f4a5897caeddd0272c3e
tree71ef214ae54a7ed76fcdae15a216752c43b8932f
parenta4da09d20abf05804620b41fff5e6cf28b5e007f
libxl: use xenlight pkgconfig file if present

xen.git commit babeca32 added a pkgconfig file for libxenlight,
allowing libxl apps to determine the location of Xen binaries
such as firmware blobs, device emulator, etc.

This patch adds support for xenlight.pc in the libxl driver, falling
back to the previous configure logic if not found.  It introduces
LIBXL_FIRMWARE_DIR and LIBXL_EXECBIN_DIR to define the firmware and
libexec_bin locations.  If xenlight.pc does not exist, the defines
are set to the current hardcoded paths.  The capabilities'
<emulator> and <loader> elements are updated to use the paths.

Signed-off-by: Jim Fehlig <jfehlig@suse.com>
configure.ac
src/libxl/libxl_conf.c
src/libxl/libxl_conf.h