From f80f367815de08d7bf41939ee75e37909004d164 Mon Sep 17 00:00:00 2001 From: Miklos Szeredi Date: Mon, 4 Feb 2013 18:30:14 +0100 Subject: libfuse: configure: detect new util-linux Apparently new versions of util-linux umount return with an exit status of 1 even if the "--fake" option is recognised (despite being documented otherwise). Check this condition and don't complain about util-linux version. --- configure.in | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'configure.in') diff --git a/configure.in b/configure.in index 83878ad..671d670 100644 --- a/configure.in +++ b/configure.in @@ -103,8 +103,12 @@ if test "$arch" = linux -a "$cross_compiling" != "yes"; then AC_MSG_RESULT([yes]) else firstline=`umount --fake --no-canonicalize 2>&1 | head -1` - AC_MSG_RESULT([$firstline]) - util_linux_ok=no + if test "$firstline" = 'umount: only root can use "--fake" option'; then + AC_MSG_RESULT([yes]) + else + AC_MSG_RESULT([$firstline]) + util_linux_ok=no + fi fi fi -- cgit v1.2.3