summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--configure.ac6
-rw-r--r--xlators/mount/fuse/utils/Makefile.am2
2 files changed, 7 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 76e9d7efa39..aee4dd07e86 100644
--- a/configure.ac
+++ b/configure.ac
@@ -133,6 +133,12 @@ AC_CANONICAL_HOST
AC_PROG_CC
AC_PROG_LIBTOOL
+AC_ARG_WITH(mountutildir,
+ [ --with-mountutildir=DIR mount helper utility in DIR @<:@/sbin@:>@],
+ [mountutildir=$withval],
+ [mountutildir='/sbin'])
+AC_SUBST(mountutildir)
+
# LEX needs a check
AC_PROG_LEX
if test "x${LEX}" != "xflex" -a "x${FLEX}" != "xlex"; then
diff --git a/xlators/mount/fuse/utils/Makefile.am b/xlators/mount/fuse/utils/Makefile.am
index 1217c30dafa..c626e2769fe 100644
--- a/xlators/mount/fuse/utils/Makefile.am
+++ b/xlators/mount/fuse/utils/Makefile.am
@@ -1,4 +1,4 @@
-utildir = $(destdir)/sbin
+utildir = @mountutildir@
if GF_DARWIN_HOST_OS
util_SCRIPTS = mount_glusterfs