1 dnl Copyright (C) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
2 dnl Copyright (C) 2016 Red Hat, Inc.
4 dnl This library is free software; you can redistribute it and/or
5 dnl modify it under the terms of the GNU Lesser General Public
6 dnl License as published by the Free Software Foundation; either
7 dnl version 2.1 of the License, or (at your option) any later version.
9 dnl This library is distributed in the hope that it will be useful,
10 dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
11 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 dnl Lesser General Public License for more details.
14 dnl You should have received a copy of the GNU Lesser General Public
15 dnl License along with this library. If not, see
16 dnl <http://www.gnu.org/licenses/>.
18 AC_DEFUN([LIBVIRT_ARG_HOST_VALIDATE], [
19 LIBVIRT_ARG_WITH([HOST_VALIDATE], [build virt-host-validate], [check])
22 AC_DEFUN([LIBVIRT_CHECK_HOST_VALIDATE], [
23 if test "x$with_host_validate" != "xno"; then
24 if test "x$with_win" = "xyes"; then
25 if test "x$with_host_validate" = "xyes"; then
26 AC_MSG_ERROR([virt-host-validate is not supported on Windows])
28 with_host_validate=no;
31 with_host_validate=yes;
35 if test "x$with_host_validate" = "xyes" ; then
36 AC_DEFINE_UNQUOTED([WITH_HOST_VALIDATE], 1, [whether virt-host-validate is built])
38 AM_CONDITIONAL([WITH_HOST_VALIDATE], [test "x$with_host_validate" = "xyes"])
41 AC_DEFUN([LIBVIRT_RESULT_HOST_VALIDATE], [
42 AC_MSG_NOTICE([virt-host-validate: $with_host_validate])