In order to use fspool use --with-fs configuration option.
It is is turned off by default.
Signed-off-by: Olga Krishtal <okrishtal(a)virtuozzo.com>
---
configure.ac | 6 ++++++
m4/virt-driver-fspool.m4 | 33 +++++++++++++++++++++++++++++++++
2 files changed, 39 insertions(+)
create mode 100644 m4/virt-driver-fspool.m4
diff --git a/configure.ac b/configure.ac
index 9e26b8c..2f9b78d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1074,6 +1074,11 @@ dnl
LIBVIRT_DRIVER_CHECK_BHYVE
+dnl
+dnl Checks for FSPOOL driver
+dnl
+
+LIBVIRT_DRIVER_CHECK_FSPOOL
dnl
dnl check for kernel headers required by src/bridge.c
@@ -2636,6 +2641,7 @@ AC_MSG_NOTICE([ ESX: $with_esx])
AC_MSG_NOTICE([ Hyper-V: $with_hyperv])
LIBVIRT_DRIVER_RESULT_VZ
LIBVIRT_DRIVER_RESULT_BHYVE
+LIBVIRT_DRIVER_RESULT_FSPOOL
AC_MSG_NOTICE([ Test: $with_test])
AC_MSG_NOTICE([ Remote: $with_remote])
AC_MSG_NOTICE([ Network: $with_network])
diff --git a/m4/virt-driver-fspool.m4 b/m4/virt-driver-fspool.m4
new file mode 100644
index 0000000..634cb7f
--- /dev/null
+++ b/m4/virt-driver-fspool.m4
@@ -0,0 +1,33 @@
+dnl The FSPool driver checks
+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_CHECK_FSPOOL],[
+ AC_ARG_WITH([fs],
+ [AS_HELP_STRING([--with-fs],
+ [add FS driver @<:@default=check@:>@])])
+ m4_divert_text([DEFAULTS], [with_fs=check])
+
+ if test "$with_fs" = "yes"; then
+ AC_DEFINE_UNQUOTED([WITH_FS], 1,
+ [whether fs driver is enabled])
+ fi
+ AM_CONDITIONAL([WITH_FS], [test "$with_fs" = "yes"])
+])
+
+AC_DEFUN([LIBVIRT_DRIVER_RESULT_FSPOOL],[
+ AC_MSG_NOTICE([ FSPool: $with_fs])
+])
--
1.8.3.1