diff options
author | Pavel Hrdina <phrdina@redhat.com> | 2016-12-01 10:27:19 +0100 |
---|---|---|
committer | Pavel Hrdina <phrdina@redhat.com> | 2016-12-21 15:39:42 +0100 |
commit | 5f1ace8e3827145be4408ab70160e993323d0e11 (patch) | |
tree | 26a34cb701e5eed8ac27f19e1c9b9449cb046691 /m4/virt-driver-remote.m4 | |
parent | da2cef55b2481333e8f35c98557fe16a12562ea1 (diff) | |
download | libvirt-5f1ace8e3827145be4408ab70160e993323d0e11.tar.gz |
configure: move remote driver check to its own file
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Diffstat (limited to 'm4/virt-driver-remote.m4')
-rw-r--r-- | m4/virt-driver-remote.m4 | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/m4/virt-driver-remote.m4 b/m4/virt-driver-remote.m4 new file mode 100644 index 0000000000..0b1f02e1a0 --- /dev/null +++ b/m4/virt-driver-remote.m4 @@ -0,0 +1,33 @@ +dnl The remote driver +dnl +dnl Copyright (C) 2016 Red Hat, Inc. +dnl +dnl This library is free software; you can redistribute it and/or +dnl modify it under the terms of the GNU Lesser General Public +dnl License as published by the Free Software Foundation; either +dnl version 2.1 of the License, or (at your option) any later version. +dnl +dnl This library is distributed in the hope that it will be useful, +dnl but WITHOUT ANY WARRANTY; without even the implied warranty of +dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +dnl Lesser General Public License for more details. +dnl +dnl You should have received a copy of the GNU Lesser General Public +dnl License along with this library. If not, see +dnl <http://www.gnu.org/licenses/>. +dnl + +AC_DEFUN([LIBVIRT_DRIVER_ARG_REMOTE], [ + LIBVIRT_ARG_WITH([REMOTE], [remote driver], [yes]) +]) + +AC_DEFUN([LIBVIRT_DRIVER_CHECK_REMOTE], [ + if test "$with_remote" = "yes" ; then + AC_DEFINE_UNQUOTED([WITH_REMOTE], 1, [whether Remote driver is enabled]) + fi + AM_CONDITIONAL([WITH_REMOTE], [test "$with_remote" = "yes"]) +]) + +AC_DEFUN([LIBVIRT_DRIVER_RESULT_REMOTE], [ + LIBVIRT_RESULT([Remote], [$with_remote]) +]) |