[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[libvirt] [PATCH 2/2] uml: only build on Linux
- From: Roman Bogorodskiy <bogorodskiy gmail com>
- To: libvir-list redhat com
- Cc: Roman Bogorodskiy <bogorodskiy gmail com>
- Subject: [libvirt] [PATCH 2/2] uml: only build on Linux
- Date: Thu, 5 May 2016 10:25:35 +0300
---
m4/virt-driver-uml.m4 | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/m4/virt-driver-uml.m4 b/m4/virt-driver-uml.m4
index 4132315..d6bbdc1 100644
--- a/m4/virt-driver-uml.m4
+++ b/m4/virt-driver-uml.m4
@@ -23,6 +23,14 @@ AC_DEFUN([LIBVIRT_DRIVER_CHECK_UML],[
[add UML support @<:@default=check@:>@])])
m4_divert_text([DEFAULTS], [with_uml=check])
+ if test "$with_linux" = "no"; then
+ if test "$with_uml" = "yes"; then
+ AC_MSG_ERROR([The UML driver cannot be enabled])
+ elif test "$with_uml" = "check"; then
+ with_uml="no"
+ fi
+ fi
+
if test "$with_uml" = "yes" || test "$with_uml" = "check"; then
AC_CHECK_HEADER([sys/inotify.h], [
with_uml=yes
--
2.7.4
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]