2009-05-07 16:38:06 +04:00
|
|
|
AC_DEFUN([AC_PREPARE_MVFS],
|
|
|
|
[
|
2009-07-26 17:11:53 +04:00
|
|
|
AM_CONDITIONAL(ENABLE_MVFS, [test x"$enable_mvfs" = x"yes"])
|
2009-05-07 16:38:06 +04:00
|
|
|
])
|
|
|
|
|
|
|
|
AC_DEFUN([AC_REQUIRE_MVFS],
|
|
|
|
[
|
|
|
|
echo "libmvfs required ... checking ...";
|
2009-07-26 17:11:53 +04:00
|
|
|
if test x"$got_mvfs" = x"yes" ; then
|
2009-05-07 16:38:06 +04:00
|
|
|
echo "mvfs already enabled"
|
|
|
|
else
|
|
|
|
PKG_CHECK_MODULES([MVFS], [libmvfs])
|
|
|
|
AC_DEFINE(ENABLE_MVFS, 1, [Enabled mvfs-based virtual filesystems])
|
|
|
|
got_mvfs="yes"
|
|
|
|
AC_MC_VFS_ADDNAME([mvfs])
|
|
|
|
fi
|
2009-07-26 17:11:53 +04:00
|
|
|
AM_CONDITIONAL(ENABLE_MVFS, [test x"$enable_mvfs" = x"yes"])
|
2009-05-07 16:38:06 +04:00
|
|
|
])
|
|
|
|
|
|
|
|
AC_DEFUN([AC_MVFS_FS], [
|
|
|
|
AC_PREPARE_MVFS
|
2009-07-30 17:48:40 +04:00
|
|
|
AC_ARG_ENABLE([mvfs-$1],[ --enable-mvfs-$1 Support for $3 (via libmvfs)])
|
2009-07-26 17:11:53 +04:00
|
|
|
if test x"$enable_mvfs_$1" = x"yes" ; then
|
2009-05-07 16:38:06 +04:00
|
|
|
AC_REQUIRE_MVFS
|
|
|
|
AC_DEFINE(ENABLE_MVFS_$2, 1, [$1 (via libmvfs)])
|
|
|
|
AC_MC_VFS_ADDNAME([mvfs-$1])
|
|
|
|
fi
|
2009-07-26 17:11:53 +04:00
|
|
|
AM_CONDITIONAL(ENABLE_MVFS_$2, [test x"$enable_mvfs_$1" = x"yes"])
|
2009-05-07 16:38:06 +04:00
|
|
|
])
|
|
|
|
|
|
|
|
AC_DEFUN([AC_MVFS_NINEP], [AC_MVFS_FS([9p], [NINEP], [9P Filesystem])])
|
|
|
|
AC_DEFUN([AC_MVFS_LOCAL], [AC_MVFS_FS([local], [LOCAL], [Local filesystem])])
|
|
|
|
AC_DEFUN([AC_MVFS_FISH], [AC_MVFS_FS([fish], [FISH], [Fish remote filesystem])])
|
|
|
|
|
|
|
|
AC_DEFUN([AC_MC_MVFS_FILESYSTEMS],
|
|
|
|
[
|
|
|
|
AC_PREPARE_MVFS
|
|
|
|
AC_MVFS_NINEP
|
|
|
|
AC_MVFS_LOCAL
|
|
|
|
AC_MVFS_FISH
|
|
|
|
])
|