]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
meson: Rewrite firewalld check
authorAndrea Bolognani <abologna@redhat.com>
Wed, 26 May 2021 15:31:03 +0000 (17:31 +0200)
committerAndrea Bolognani <abologna@redhat.com>
Tue, 1 Jun 2021 12:31:57 +0000 (14:31 +0200)
This makes it possible to explicitly disable firewalld support
regardless of the platform that's being targeted.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
meson.build

index a84396f3022ecff3cb8419161e71f8ba632c2ddf..f1a43fea90c91de031ae3fb724cc718c80f41a74 100644 (file)
@@ -1339,8 +1339,14 @@ if bash_completion_dep.found()
   endif
 endif
 
-if host_machine.system() != 'freebsd'
-  if not get_option('firewalld').disabled()
+if not get_option('firewalld').disabled()
+  firewalld_enable = true
+
+  if host_machine.system() == 'freebsd'
+    firewalld_enable = false
+  endif
+
+  if firewalld_enable
     conf.set('WITH_FIREWALLD', 1)
   endif
 endif