aboutsummaryrefslogtreecommitdiffstats
path: root/aclocal.m4
diff options
context:
space:
mode:
Diffstat (limited to 'aclocal.m4')
-rw-r--r--aclocal.m416
1 files changed, 16 insertions, 0 deletions
diff --git a/aclocal.m4 b/aclocal.m4
index c50de12..5e4e73c 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -15,3 +15,19 @@ else
HAVE_$1=0
fi
AC_SUBST(HAVE_$1)])
+
+dnl --------------------------------------------------------------------------
+dnl AF_SLOPPY_MOUNT
+dnl
+dnl Check to see if mount(8) supports the sloppy (-s) option, and define
+dnl the cpp variable HAVE_SLOPPY_MOUNT if so. This requires that MOUNT is
+dnl already defined by a call to AF_PATH_INCLUDE or AC_PATH_PROGS.
+dnl --------------------------------------------------------------------------
+AC_DEFUN(AF_SLOPPY_MOUNT,
+[AC_MSG_CHECKING([if mount accepts the -s option])
+if "$MOUNT" -s > /dev/null 2>&1 ; then
+ AC_DEFINE(HAVE_SLOPPY_MOUNT)
+ AC_MSG_RESULT(yes)
+else
+ AC_MSG_RESULT(no)
+fi])