[PATCH v2 2/2] uml: only build on Linux

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---
 m4/virt-driver-uml.m4 | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/m4/virt-driver-uml.m4 b/m4/virt-driver-uml.m4
index 811e4d1..5c83d76 100644
--- a/m4/virt-driver-uml.m4
+++ b/m4/virt-driver-uml.m4
@@ -23,8 +23,12 @@ AC_DEFUN([LIBVIRT_DRIVER_CHECK_UML],[
         [add UML support @<:@default=check@:>@])])
     m4_divert_text([DEFAULTS], [with_uml=check])
 
-    if test "$with_libvirtd" = "no" ; then
-        with_uml=no
+    if test "$with_libvirtd" = "no" || 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
-- 
2.7.4

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]