news: Update for SMMUv3 IOMMU support
[libvirt/ericb.git] / m4 / virt-firewalld.m4
blob89efa47589b666bcf9350b8bf85d580a991514a7
1 dnl The firewalld support
2 dnl
3 dnl Copyright (C) 2016 Red Hat, Inc.
4 dnl
5 dnl This library is free software; you can redistribute it and/or
6 dnl modify it under the terms of the GNU Lesser General Public
7 dnl License as published by the Free Software Foundation; either
8 dnl version 2.1 of the License, or (at your option) any later version.
9 dnl
10 dnl This library is distributed in the hope that it will be useful,
11 dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
12 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13 dnl Lesser General Public License for more details.
14 dnl
15 dnl You should have received a copy of the GNU Lesser General Public
16 dnl License along with this library.  If not, see
17 dnl <http://www.gnu.org/licenses/>.
18 dnl
20 AC_DEFUN([LIBVIRT_ARG_FIREWALLD], [
21   LIBVIRT_ARG_WITH_FEATURE([FIREWALLD], [firewalld], [check])
24 AC_DEFUN([LIBVIRT_CHECK_FIREWALLD], [
25   AC_REQUIRE([LIBVIRT_CHECK_DBUS])
27   if test "x$with_firewalld" = "xcheck" ; then
28     with_firewalld=$with_dbus
29   fi
31   if test "x$with_firewalld" = "xyes" ; then
32     if test "x$with_dbus" != "xyes" ; then
33       AC_MSG_ERROR([You must have dbus enabled for firewalld support])
34     fi
35     AC_DEFINE_UNQUOTED([WITH_FIREWALLD], [1], [whether firewalld support is enabled])
36   fi
38   AM_CONDITIONAL([WITH_FIREWALLD], [test "x$with_firewalld" != "xno"])
41 AC_DEFUN([LIBVIRT_RESULT_FIREWALLD], [
42   LIBVIRT_RESULT_LIB([FIREWALLD])