mirror of
https://github.com/vgough/encfs.git
synced 2025-06-20 03:37:50 +02:00
rework fuse version check
This commit is contained in:
parent
fe4300a53e
commit
14b228d185
13
configure.ac
13
configure.ac
@ -89,18 +89,13 @@ AC_MSG_CHECKING([For supported FUSE API version])
|
|||||||
AC_RUN_IFELSE([
|
AC_RUN_IFELSE([
|
||||||
AC_LANG_PROGRAM([[#include "fuse.h"]],
|
AC_LANG_PROGRAM([[#include "fuse.h"]],
|
||||||
[[
|
[[
|
||||||
if(FUSE_MAJOR_VERSION == 2 && FUSE_MINOR_VERSION >= 5)
|
if (FUSE_MAJOR_VERSION < 2) return -1;
|
||||||
{
|
if (FUSE_MAJOR_VERSION > 2) return 0;
|
||||||
return 0;
|
return FUSE_MINOR_VERSION >= 5 ? 0 : -1;
|
||||||
} else
|
|
||||||
return -1;
|
|
||||||
]])],
|
]])],
|
||||||
[AC_MSG_RESULT([yes])],
|
[AC_MSG_RESULT([yes])],
|
||||||
[AC_MSG_RESULT([no])
|
[AC_MSG_RESULT([no])
|
||||||
AC_MSG_FAILURE([
|
AC_MSG_FAILURE([Encfs 1.3 requires FUSE 2.5 or newer.])
|
||||||
Encfs 1.3 requires FUSE 2.5 or newer. Please check config.log for errors. If
|
|
||||||
you cannot determine the problem, mail encfs-users@lists.sourceforge.net
|
|
||||||
and include the config.log file])
|
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user