Require FUSE-2.5.0 for FreeBSD
parent
bb864c9f98
commit
69240e3c50
29
configure.ac
29
configure.ac
|
@ -204,14 +204,27 @@ AM_CONDITIONAL(ENABLE_GNOME_VFS, $compile_gnome_vfs)
|
|||
# Autodetect whether to build FUSE module or not.
|
||||
compile_fuse_module=false
|
||||
if test "$enable_fuse_module" != "no"; then
|
||||
PKG_CHECK_MODULES(FUSE_MODULE, fuse >= 2.3.0, [ compile_fuse_module=true ],
|
||||
[
|
||||
if test "$enable_fuse_module" = "yes"; then
|
||||
AC_MSG_ERROR([Linux-NTFS FUSE module requires FUSE version >= 2.3.0.])
|
||||
else
|
||||
AC_MSG_WARN([Linux-NTFS FUSE module requires FUSE version >= 2.3.0.])
|
||||
fi
|
||||
])
|
||||
case "$target_os" in
|
||||
linux*)
|
||||
PKG_CHECK_MODULES(FUSE_MODULE, fuse >= 2.3.0, [ compile_fuse_module=true ],
|
||||
[
|
||||
if test "$enable_fuse_module" = "yes"; then
|
||||
AC_MSG_ERROR([ntfsmount requires FUSE version >= 2.3.0.])
|
||||
else
|
||||
AC_MSG_WARN([ntfsmount requires FUSE version >= 2.3.0.])
|
||||
fi
|
||||
]);;
|
||||
freebsd*)
|
||||
PKG_CHECK_MODULES(FUSE_MODULE, fuse >= 2.5.0, [ compile_fuse_module=true ],
|
||||
[
|
||||
if test "$enable_fuse_module" = "yes"; then
|
||||
AC_MSG_ERROR([ntfsmount requires FUSE version >= 2.5.0.])
|
||||
else
|
||||
AC_MSG_WARN([ntfsmount requires FUSE version >= 2.5.0.])
|
||||
fi
|
||||
]);;
|
||||
*) AC_MSG_ERROR([ntfsmount can be built only under Linux and FreeBSD.]);;
|
||||
esac
|
||||
fi
|
||||
AM_CONDITIONAL(ENABLE_FUSE_MODULE, $compile_fuse_module)
|
||||
|
||||
|
|
Loading…
Reference in New Issue