]> xenbits.xensource.com Git - libvirt.git/log
libvirt.git
8 years agovz: get disks statistics for CTs
Maxim Nestratov [Mon, 5 Dec 2016 13:52:56 +0000 (16:52 +0300)]
vz: get disks statistics for CTs

A CT disk statistics is reported with prefix "hdd" and we should use
it to extract data.

Signed-off-by: Maxim Nestratov <mnestratov@virtuozzo.com>
8 years agovz: set boot from disk for CT only when there is no root filesystem
Maxim Nestratov [Mon, 5 Dec 2016 13:11:15 +0000 (16:11 +0300)]
vz: set boot from disk for CT only when there is no root filesystem

Before, boot devices information for CTs was always empty and we
didn't indicate that containers can boot from disk.

Signed-off-by: Maxim Nestratov <mnestratov@virtuozzo.com>
8 years agovz: report disks either as disks or filesystems depending on original xml
Maxim Nestratov [Mon, 5 Dec 2016 13:34:52 +0000 (16:34 +0300)]
vz: report disks either as disks or filesystems depending on original xml

Virtuozzo SDK interface doesn't differ filesystems from disks and sees them as disks.
Before, we always mistakenly presented disks based on files as filesystems, which is
not completely correct. Now we are going to show either disks or filesystems depending
on a hint, which uses boot device section of VZ config. Though this information
doesn't change booting order of a CT, it is used by vz libvirt interface as a hint
for libvirt representation of disks. Since now, if we have filesystems in input xml,
then we add them to VZ booting devices list and rely on this information to show
corresponding libvirt xml.

Signed-off-by: Maxim Nestratov <mnestratov@virtuozzo.com>
8 years agovz: don't add implicit devices for CTs
Maxim Nestratov [Mon, 5 Dec 2016 13:23:21 +0000 (16:23 +0300)]
vz: don't add implicit devices for CTs

Implicit devices like controllers are confusing for CTs and
function virDomainDefAddImplicitDevices never intended to be called
for CTs.

Signed-off-by: Maxim Nestratov <mnestratov@virtuozzo.com>
8 years agovz: report "scsi" bus for disks when nothing was set explixitly
Maxim Nestratov [Mon, 5 Dec 2016 12:37:12 +0000 (15:37 +0300)]
vz: report "scsi" bus for disks when nothing was set explixitly

This is necessary to show CTs created out of libvirt correctly.

Signed-off-by: Maxim Nestratov <mnestratov@virtuozzo.com>
8 years agotests: enable virpolkittest on any ELF platform
Pino Toscano [Mon, 28 Nov 2016 13:47:30 +0000 (14:47 +0100)]
tests: enable virpolkittest on any ELF platform

This tests uses preload, which should work on any ELF-based platform
(and indeed it passes on Linux, GNU/kFreeBSD, and FreeBSD).

Also remove the WITH_DBUS conditional, as the test is already built
based on that conditional.

8 years agom4/virt-arg: Rename LIBVIRT_ARG_WITH* macros
Andrea Bolognani [Thu, 22 Dec 2016 11:49:51 +0000 (12:49 +0100)]
m4/virt-arg: Rename LIBVIRT_ARG_WITH* macros

LIBVIRT_ARG_WITH_ALT is more generic than LIBVIRT_ARG_WITH, which
is tailored at switching features on and off.

Rename the macros according to their intended purpose, and add
some documentation to help developers pick between the two.

8 years agom4/virt-arg: Move LIBVIRT_ARG_* macros to their own file
Andrea Bolognani [Thu, 22 Dec 2016 11:25:26 +0000 (12:25 +0100)]
m4/virt-arg: Move LIBVIRT_ARG_* macros to their own file

They're not just used, or supposed to be just used, for
library-related arguments, so they deserve to have their
own separate file.

8 years agom4/virt-gnutls: properly backup CFLAGS and LIBS for AC_CHECK_* macros
Pavel Hrdina [Thu, 22 Dec 2016 13:09:43 +0000 (14:09 +0100)]
m4/virt-gnutls: properly backup CFLAGS and LIBS for AC_CHECK_* macros

Commit 943ddcb7120 partially fixed this bug in gnutls configure code.
However we also need to backup and modify CFLAGS and do if for
AC_CHECK_HEADERS as well.

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
8 years agoNEWS: Update after virtio console on ppc64 fix
Andrea Bolognani [Wed, 21 Dec 2016 17:36:00 +0000 (18:36 +0100)]
NEWS: Update after virtio console on ppc64 fix

8 years agom4/virt-gnutls: use AC_CHECK_FUNCS to detect availability of functions
Pavel Hrdina [Thu, 22 Dec 2016 09:13:25 +0000 (10:13 +0100)]
m4/virt-gnutls: use AC_CHECK_FUNCS to detect availability of functions

Sigh, autoconf has AC_CHECK_FUNC and AC_CHECK_FUNCS and both check
whether some function exists or not.  However in addition to the obvious
difference that the later is able to check multiple functions it also
defines HAVE_FUNCTION_NAME for each function.

Commit 680d2f49da moved the code to separate file, but also blindly
changed the macro to AC_CHECK_FUNC without confronting the
documentation.

Reported-by: John Ferlan <jferlan@redhat.com>
<https://www.redhat.com/archives/libvir-list/2016-December/msg01086.html>

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
8 years agom4/virt-lib: use correct format of package name for AC_ARG_* macros
Pavel Hrdina [Wed, 21 Dec 2016 21:19:22 +0000 (22:19 +0100)]
m4/virt-lib: use correct format of package name for AC_ARG_* macros

Introduced by commit 25034b3c40 and reused by commit 4519e94b743.
This patch silences warning printed by configure:

  configure: WARNING: unrecognized options: --with-qemu-user

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
8 years agom4/virt-loader-nvram: use quotation for list of loader:nvram pairs
Pavel Hrdina [Wed, 21 Dec 2016 20:23:43 +0000 (21:23 +0100)]
m4/virt-loader-nvram: use quotation for list of loader:nvram pairs

The bug was introduced by commit 08c2d1480b.  The string must be quoted
because it is used as function argument.

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
8 years agoNEWS: Fix indentation
Andrea Bolognani [Wed, 21 Dec 2016 17:37:18 +0000 (18:37 +0100)]
NEWS: Fix indentation

8 years agoAllow virtio-console on PPC64
Shivaprasad G Bhat [Wed, 19 Oct 2016 13:29:02 +0000 (18:59 +0530)]
Allow virtio-console on PPC64

virQEMUCapsSupportsChardev existing checks returns true
for spapr-vty alone. Instead verify spapr-vty validity
and let the logic to return true for other device types
so that virtio-console passes.

The non-pseries machines dont have spapr-vio-bus. So, the
function always returned false for them before.

Fixes - https://bugzilla.redhat.com/show_bug.cgi?id=1257813

Signed-off-by: Shivaprasad G Bhat <sbhat@linux.vnet.ibm.com>
8 years agoqemu: clean out unused migrate to unix
Nikolay Shirokovskiy [Tue, 20 Dec 2016 07:05:49 +0000 (10:05 +0300)]
qemu: clean out unused migrate to unix

8 years agoconfigure: group all storage driver checks together
Pavel Hrdina [Tue, 13 Dec 2016 09:36:14 +0000 (10:36 +0100)]
configure: group all storage driver checks together

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
8 years agoconfigure: move storage ZFS check to its own file
Pavel Hrdina [Wed, 7 Dec 2016 14:59:19 +0000 (15:59 +0100)]
configure: move storage ZFS check to its own file

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
8 years agoconfigure: move storage Gluster check to its own file
Pavel Hrdina [Wed, 7 Dec 2016 14:52:39 +0000 (15:52 +0100)]
configure: move storage Gluster check to its own file

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
8 years agoconfigure: move storage Sheepdog check to its own file
Pavel Hrdina [Wed, 7 Dec 2016 14:48:37 +0000 (15:48 +0100)]
configure: move storage Sheepdog check to its own file

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
8 years agoconfigure: move storage RBD check to its own file
Pavel Hrdina [Wed, 7 Dec 2016 14:44:08 +0000 (15:44 +0100)]
configure: move storage RBD check to its own file

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
8 years agoconfigure: move storage disk check to its own file
Pavel Hrdina [Mon, 12 Dec 2016 17:21:51 +0000 (18:21 +0100)]
configure: move storage disk check to its own file

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
8 years agoconfigure: move storage mpath check to its own file
Pavel Hrdina [Mon, 12 Dec 2016 17:21:11 +0000 (18:21 +0100)]
configure: move storage mpath check to its own file

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
8 years agoconfigure: move storage SCSI check to its own file
Pavel Hrdina [Wed, 7 Dec 2016 12:13:00 +0000 (13:13 +0100)]
configure: move storage SCSI check to its own file

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
8 years agoconfigure: move storage iSCSI check to its own file
Pavel Hrdina [Wed, 7 Dec 2016 12:12:31 +0000 (13:12 +0100)]
configure: move storage iSCSI check to its own file

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
8 years agoconfigure: move storage LVM check to its own file
Pavel Hrdina [Wed, 7 Dec 2016 09:22:05 +0000 (10:22 +0100)]
configure: move storage LVM check to its own file

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
8 years agoconfigure: move storage fs check to its own file
Pavel Hrdina [Wed, 7 Dec 2016 09:16:19 +0000 (10:16 +0100)]
configure: move storage fs check to its own file

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
8 years agoconfigure: move storage dir check to its own file
Pavel Hrdina [Wed, 7 Dec 2016 07:46:51 +0000 (08:46 +0100)]
configure: move storage dir check to its own file

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
8 years agoconfigure: move AppArmor secdriver check to its own file
Pavel Hrdina [Thu, 1 Dec 2016 11:08:20 +0000 (12:08 +0100)]
configure: move AppArmor secdriver check to its own file

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
8 years agoconfigure: move SELinux secdriver check into its own file
Pavel Hrdina [Mon, 12 Dec 2016 17:20:45 +0000 (18:20 +0100)]
configure: move SELinux secdriver check into its own file

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
8 years agoconfigure: group all virtualization drivers checks together
Pavel Hrdina [Wed, 14 Dec 2016 14:28:55 +0000 (15:28 +0100)]
configure: group all virtualization drivers checks together

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
8 years agoconfigure: move parallels version definition to m4/virt-driver-vz
Pavel Hrdina [Wed, 14 Dec 2016 15:34:31 +0000 (16:34 +0100)]
configure: move parallels version definition to m4/virt-driver-vz

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
8 years agoconfigure: move interface driver check to its own file
Pavel Hrdina [Thu, 1 Dec 2016 14:50:59 +0000 (15:50 +0100)]
configure: move interface driver check to its own file

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
8 years agoconfigure: move network driver check to its own file
Pavel Hrdina [Thu, 1 Dec 2016 11:02:30 +0000 (12:02 +0100)]
configure: move network driver check to its own file

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
8 years agoconfigure: move libvirtd driver check to its own file
Pavel Hrdina [Thu, 1 Dec 2016 11:01:33 +0000 (12:01 +0100)]
configure: move libvirtd driver check to its own file

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
8 years agoconfigure: move Hyper-V driver check to its own file
Pavel Hrdina [Thu, 1 Dec 2016 09:43:13 +0000 (10:43 +0100)]
configure: move Hyper-V driver check to its own file

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
8 years agoconfigure: move ESX driver check to its own file
Pavel Hrdina [Thu, 1 Dec 2016 09:40:31 +0000 (10:40 +0100)]
configure: move ESX driver check to its own file

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
8 years agoconfigure: move vbox driver check to its own file
Pavel Hrdina [Mon, 12 Dec 2016 17:19:21 +0000 (18:19 +0100)]
configure: move vbox driver check to its own file

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
8 years agoconfigure: move remote driver check to its own file
Pavel Hrdina [Thu, 1 Dec 2016 09:27:19 +0000 (10:27 +0100)]
configure: move remote driver check to its own file

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
8 years agoconfigure: move test driver check to its own file
Pavel Hrdina [Thu, 1 Dec 2016 09:23:41 +0000 (10:23 +0100)]
configure: move test driver check to its own file

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
8 years agoconfigure: move PHYP driver check to its own file
Pavel Hrdina [Wed, 30 Nov 2016 11:52:43 +0000 (12:52 +0100)]
configure: move PHYP driver check to its own file

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
8 years agom4/virt-driver-xenapi: use LIBVIRT_CHECK_LIB macro
Pavel Hrdina [Thu, 8 Dec 2016 14:54:33 +0000 (15:54 +0100)]
m4/virt-driver-xenapi: use LIBVIRT_CHECK_LIB macro

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
8 years agoconfigure: move XenAPI driver check to its own file
Pavel Hrdina [Mon, 12 Dec 2016 15:20:41 +0000 (16:20 +0100)]
configure: move XenAPI driver check to its own file

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
8 years agom4/virt-libxl: cleanup storing CFLAGS and LIBS variables
Pavel Hrdina [Mon, 12 Dec 2016 15:20:07 +0000 (16:20 +0100)]
m4/virt-libxl: cleanup storing CFLAGS and LIBS variables

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
8 years agom4/virt-libxl: properly check for required libxl version
Pavel Hrdina [Mon, 14 Nov 2016 15:11:58 +0000 (16:11 +0100)]
m4/virt-libxl: properly check for required libxl version

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
8 years agom4/virt-libxl: use LIBVIRT_CHECK_(PKG|LIB) macros
Pavel Hrdina [Mon, 14 Nov 2016 15:05:35 +0000 (16:05 +0100)]
m4/virt-libxl: use LIBVIRT_CHECK_(PKG|LIB) macros

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
8 years agoconfigure: move libxl driver check to its own file
Pavel Hrdina [Mon, 12 Dec 2016 15:18:02 +0000 (16:18 +0100)]
configure: move libxl driver check to its own file

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
8 years agoconfigure: move XEN driver check to its own file
Pavel Hrdina [Thu, 8 Dec 2016 09:39:06 +0000 (10:39 +0100)]
configure: move XEN driver check to its own file

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
8 years agoconfigure: move LXC driver check to its own file
Pavel Hrdina [Thu, 8 Dec 2016 09:36:55 +0000 (10:36 +0100)]
configure: move LXC driver check to its own file

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
8 years agoconfigure: move qemu bridge helper check to qemu driver file
Pavel Hrdina [Mon, 12 Dec 2016 17:18:30 +0000 (18:18 +0100)]
configure: move qemu bridge helper check to qemu driver file

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
8 years agoconfigure: move qemu privileges check to qemu driver file
Pavel Hrdina [Mon, 12 Dec 2016 14:35:07 +0000 (15:35 +0100)]
configure: move qemu privileges check to qemu driver file

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
8 years agoconfigure: move QEMU driver check to its own file
Pavel Hrdina [Thu, 8 Dec 2016 09:35:30 +0000 (10:35 +0100)]
configure: move QEMU driver check to its own file

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
8 years agoconfigure: move VMware driver check to its own file
Pavel Hrdina [Tue, 29 Nov 2016 07:54:02 +0000 (08:54 +0100)]
configure: move VMware driver check to its own file

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
8 years agoconfigure: move OpenVZ driver check to its own file
Pavel Hrdina [Tue, 29 Nov 2016 07:50:58 +0000 (08:50 +0100)]
configure: move OpenVZ driver check to its own file

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
8 years agoconfigure: group all Miscellaneous checks together
Pavel Hrdina [Thu, 15 Dec 2016 14:04:23 +0000 (15:04 +0100)]
configure: group all Miscellaneous checks together

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
8 years agoconfigure: move debug check to its own file
Pavel Hrdina [Tue, 13 Dec 2016 12:39:36 +0000 (13:39 +0100)]
configure: move debug check to its own file

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
8 years agoconfigure: move xml catalog file check to its own file
Pavel Hrdina [Sun, 11 Dec 2016 18:59:03 +0000 (19:59 +0100)]
configure: move xml catalog file check to its own file

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
8 years agoconfigure: move TLS priority check to its own file
Pavel Hrdina [Wed, 14 Dec 2016 15:33:57 +0000 (16:33 +0100)]
configure: move TLS priority check to its own file

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
8 years agoconfigure: move default editor check to its own file
Pavel Hrdina [Fri, 9 Dec 2016 10:04:33 +0000 (11:04 +0100)]
configure: move default editor check to its own file

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
8 years agoconfigure: move loader/nvram check to its own file
Pavel Hrdina [Thu, 15 Dec 2016 12:39:21 +0000 (13:39 +0100)]
configure: move loader/nvram check to its own file

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
8 years agoconfigure: move chrdev lock files check to its own file
Pavel Hrdina [Tue, 13 Dec 2016 12:45:25 +0000 (13:45 +0100)]
configure: move chrdev lock files check to its own file

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
8 years agoconfigure: move sysctl config check to its own file
Pavel Hrdina [Tue, 29 Nov 2016 07:33:19 +0000 (08:33 +0100)]
configure: move sysctl config check to its own file

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
8 years agoconfigure: move numad check to its own file
Pavel Hrdina [Mon, 12 Dec 2016 12:54:35 +0000 (13:54 +0100)]
configure: move numad check to its own file

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
8 years agoconfigure: move DTrace check to its own file
Pavel Hrdina [Wed, 30 Nov 2016 13:34:57 +0000 (14:34 +0100)]
configure: move DTrace check to its own file

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
8 years agoconfigure: group all library checks together
Pavel Hrdina [Thu, 15 Dec 2016 13:56:29 +0000 (14:56 +0100)]
configure: group all library checks together

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
8 years agom4/virt-parted: use LIBVIRT_CHECK_PKG
Pavel Hrdina [Mon, 12 Dec 2016 12:46:19 +0000 (13:46 +0100)]
m4/virt-parted: use LIBVIRT_CHECK_PKG

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
8 years agoconfigure: move libparted check to its own file
Pavel Hrdina [Mon, 12 Dec 2016 12:34:56 +0000 (13:34 +0100)]
configure: move libparted check to its own file

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
8 years agom4/virt-devmapper: use LIBVIRT_CHECK_(PKG|LIB)
Pavel Hrdina [Mon, 12 Dec 2016 12:33:42 +0000 (13:33 +0100)]
m4/virt-devmapper: use LIBVIRT_CHECK_(PKG|LIB)

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
8 years agoconfigure: move devmapper check to its own file
Pavel Hrdina [Sun, 11 Dec 2016 15:00:39 +0000 (16:00 +0100)]
configure: move devmapper check to its own file

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
8 years agoconfigure: move pm-utils check to its own file
Pavel Hrdina [Mon, 12 Dec 2016 09:12:13 +0000 (10:12 +0100)]
configure: move pm-utils check to its own file

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
8 years agoconfigure: move nwfilter check to its own file
Pavel Hrdina [Tue, 6 Dec 2016 15:00:41 +0000 (16:00 +0100)]
configure: move nwfilter check to its own file

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
8 years agoconfigure: move version script check to one place
Pavel Hrdina [Thu, 8 Dec 2016 13:12:18 +0000 (14:12 +0100)]
configure: move version script check to one place

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
8 years agoconfigure: move windres check to its own file
Pavel Hrdina [Tue, 6 Dec 2016 12:57:12 +0000 (13:57 +0100)]
configure: move windres check to its own file

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
8 years agoconfigure: move windows symbols check to its own file
Pavel Hrdina [Tue, 6 Dec 2016 12:56:38 +0000 (13:56 +0100)]
configure: move windows symbols check to its own file

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
8 years agoconfigure: move MinGW check to its own file
Pavel Hrdina [Tue, 6 Dec 2016 12:55:50 +0000 (13:55 +0100)]
configure: move MinGW check to its own file

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
8 years agoconfigure: move Cygwin check to its own file
Pavel Hrdina [Tue, 6 Dec 2016 12:54:36 +0000 (13:54 +0100)]
configure: move Cygwin check to its own file

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
8 years agoconfigure: move windows common check to its own file
Pavel Hrdina [Thu, 15 Dec 2016 10:48:38 +0000 (11:48 +0100)]
configure: move windows common check to its own file

This renames MSCOM_LIBS to WIN32_EXTRA_LIBS to make it consistent with
WIN32_EXTRA_CFLAGS.

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
8 years agoconfigure: move libnl check to its own file
Pavel Hrdina [Mon, 12 Dec 2016 09:07:24 +0000 (10:07 +0100)]
configure: move libnl check to its own file

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
8 years agoconfigure: move virtualport check to its own file
Pavel Hrdina [Tue, 13 Dec 2016 11:40:48 +0000 (12:40 +0100)]
configure: move virtualport check to its own file

This patch moves the virtualport result out of *Driver* section because
it's not a driver.

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
8 years agoconfigure: move macvtap check to its own file
Pavel Hrdina [Mon, 12 Dec 2016 08:59:15 +0000 (09:59 +0100)]
configure: move macvtap check to its own file

This patch moves the macvtap result out of *Driver* section because
it's not a driver.

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
8 years agom4/virt-libpcap: error out if asked for libpcap but it was not found
Pavel Hrdina [Thu, 8 Dec 2016 14:01:01 +0000 (15:01 +0100)]
m4/virt-libpcap: error out if asked for libpcap but it was not found

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
8 years agom4/virt-libpcap: remove unreasonable dependency on QEMU
Pavel Hrdina [Mon, 12 Dec 2016 08:57:37 +0000 (09:57 +0100)]
m4/virt-libpcap: remove unreasonable dependency on QEMU

Libpcap is used by nwfilter driver and it could be build without QEMU
driver.

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
8 years agoconfigure: move libpcap check to its own file
Pavel Hrdina [Fri, 9 Dec 2016 10:01:47 +0000 (11:01 +0100)]
configure: move libpcap check to its own file

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
8 years agoconfigure: move XDR check to its own file
Pavel Hrdina [Tue, 13 Dec 2016 11:40:30 +0000 (12:40 +0100)]
configure: move XDR check to its own file

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
8 years agoconfigure: move atomic check to its own file
Pavel Hrdina [Thu, 15 Dec 2016 10:47:20 +0000 (11:47 +0100)]
configure: move atomic check to its own file

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
8 years agoconfigure: move pthread check it its own file
Pavel Hrdina [Mon, 12 Dec 2016 07:07:08 +0000 (08:07 +0100)]
configure: move pthread check it its own file

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
8 years agoconfigure: move polkit check to its own file
Pavel Hrdina [Mon, 12 Dec 2016 07:05:18 +0000 (08:05 +0100)]
configure: move polkit check to its own file

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
8 years agoconfigure: move firewalld check to its own file
Pavel Hrdina [Mon, 14 Nov 2016 14:34:40 +0000 (15:34 +0100)]
configure: move firewalld check to its own file

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
8 years agoconfigure: move with-driver-modules check to its own file
Pavel Hrdina [Mon, 14 Nov 2016 14:34:04 +0000 (15:34 +0100)]
configure: move with-driver-modules check to its own file

Rename DRIVER_MODULE_(LDFLAGS|LIBS|CFLAGS) to unify the naming.

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
8 years agoconfigure: move dlopen check to its own file
Pavel Hrdina [Fri, 11 Nov 2016 23:20:21 +0000 (00:20 +0100)]
configure: move dlopen check to its own file

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
8 years agom4/virt-libxml: use LIBVIRT_CHECK_PKG
Pavel Hrdina [Mon, 19 Dec 2016 14:26:17 +0000 (15:26 +0100)]
m4/virt-libxml: use LIBVIRT_CHECK_PKG

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
8 years agom4/virt-libxml: use only pkg-config to check for libxml2
Pavel Hrdina [Mon, 19 Dec 2016 14:16:05 +0000 (15:16 +0100)]
m4/virt-libxml: use only pkg-config to check for libxml2

Pkg-config file libxml-2.0.pc was introduced in libxml2-2.2.4 and we
require at least 2.6.0 so the crazy xml2-config check can be dropped.

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
8 years agoconfigure: move libxml check to its own file
Pavel Hrdina [Mon, 19 Dec 2016 14:11:06 +0000 (15:11 +0100)]
configure: move libxml check to its own file

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
8 years agom4/virt-lib: add new parameter to override default fail action
Pavel Hrdina [Fri, 11 Nov 2016 23:13:30 +0000 (00:13 +0100)]
m4/virt-lib: add new parameter to override default fail action

This allows to use two or more LIBVIRT_CHECK_(LIB|LIB_ALT|PKG) macros
for one library.  For example, when we check for existence of
pgk-config file of some library and we know that not all versions of
that library that libvirt requires provides this file, we can fallback
to use library check.

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
8 years agom4/virt: introduce LIBVIRT_ARG_* macros for all library checks
Pavel Hrdina [Mon, 12 Dec 2016 17:11:51 +0000 (18:11 +0100)]
m4/virt: introduce LIBVIRT_ARG_* macros for all library checks

Usage of AC_REQUIRE will mess with order how LIBVIRT_CHECK_* macros
are composed into configure.ac.  This ensures that the output of
configure --help is properly ordered and grouped into sections.

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
8 years agom4/virt-lib: move LIBVIRT_ARG_WITH out of LIBVIRT_CHECK_(LIB|LIB_ALT|PKG)
Pavel Hrdina [Wed, 23 Nov 2016 12:22:25 +0000 (13:22 +0100)]
m4/virt-lib: move LIBVIRT_ARG_WITH out of LIBVIRT_CHECK_(LIB|LIB_ALT|PKG)

Following patch will update LIBVIRT_CHECK_(LIB|LIB_ALT|PKG) macros in
a way that you will be able to call a another macro as a fallback if
the first one fails.  To allow that, we need to move the
LIBVIRT_ARG_WITH out of those macro to not have two or more same lines
in output of "configure --help".

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
8 years agoconfigure: use LIBVIRT_ARG_ENABLE macro
Pavel Hrdina [Tue, 13 Dec 2016 12:34:42 +0000 (13:34 +0100)]
configure: use LIBVIRT_ARG_ENABLE macro

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
8 years agoconfigure: use LIBVIRT_ARG_WITH(_ALT) macros
Pavel Hrdina [Mon, 14 Nov 2016 14:25:41 +0000 (15:25 +0100)]
configure: use LIBVIRT_ARG_WITH(_ALT) macros

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
8 years agom4/virt-lib: introduce LIBVIRT_ARG_ENABLE macro
Pavel Hrdina [Tue, 13 Dec 2016 12:14:39 +0000 (13:14 +0100)]
m4/virt-lib: introduce LIBVIRT_ARG_ENABLE macro

This macro helps create unified output of "configure --help".

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
8 years agom4/virt-lib: introduce LIBVIRT_ARG_WITH(_ALT) macro
Pavel Hrdina [Sat, 12 Nov 2016 13:10:45 +0000 (14:10 +0100)]
m4/virt-lib: introduce LIBVIRT_ARG_WITH(_ALT) macro

These macros help create unified output of "configure --help".

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>