meson: Rewrite firewalld check

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>
This commit is contained in:
Andrea Bolognani 2021-05-26 17:31:03 +02:00
parent 48fc84a22c
commit a755b74088

View 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