1 dnl FUSE Autoconf glue. Build with FUSE if it's available; if it's not,
2 dnl don't enable the FUSE build. If --enable is given explicitly, FUSE
3 dnl must be found or we bail out.
5 AC_DEFUN([OPENAFS_FUSE],
9 AC_ARG_ENABLE([fuse-client],
10 [AS_HELP_STRING([--disable-fuse-client],
11 [disable building of the FUSE userspace client, afsd.fuse
12 (defaults to enabled)])],
13 [openafs_fuse="$enableval"])
14 AS_IF([test -z "$openafs_fuse"],
15 [PKG_CHECK_EXISTS([fuse], [openafs_fuse=yes])])
16 AS_IF([test x"$openafs_fuse" = xyes],
17 [PKG_CHECK_MODULES([FUSE], [fuse])
18 ENABLE_FUSE_CLIENT=afsd.fuse
19 CLIENT_UAFS_DEP=libuafs])
20 AC_SUBST([ENABLE_FUSE_CLIENT])
21 AC_SUBST([CLIENT_UAFS_DEP])
22 AC_SUBST([FUSE_CFLAGS])
23 AC_SUBST([FUSE_LIBS])])