libfuse: configure: detect new util-linux
authorMiklos Szeredi <mszeredi@suse.cz>
Mon, 4 Feb 2013 17:30:14 +0000 (18:30 +0100)
committerMiklos Szeredi <mszeredi@suse.cz>
Mon, 4 Feb 2013 17:30:14 +0000 (18:30 +0100)
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.

ChangeLog
configure.in

index 5a648be99f116d8a817b1ac306e9f232e644b407..fa4ff2e137d3c40cfd3d005ee87b73b5bfa81524 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -6,6 +6,8 @@
        initialized for the "/" path.  This resulted in remove_node_lru()
        crashing on LOOKUP-DOTDOT.  Patch by Madan Valluri
 
+       * libfuse: configure: detect new util-linux
+
 2012-10-01  Miklos Szeredi <miklos@szeredi.hu>
 
        * Released 2.9.2
index 83878ad8f57f9a8de2141a6b46b1307596720af2..671d670b939b06e7a8e9b2af40cf6fbcbdc1f84d 100644 (file)
@@ -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