Blame SOURCES/autofs-5.0.7-add-enable-sloppy-mount-option-to-configure.patch

304803
autofs-5.0.7 - add enable sloppy mount option to configure
304803
304803
From: Ian Kent <ikent@redhat.com>
304803
304803
Add an option --enable-sloppy-mount or --disable-sloppy-mount to force
304803
or prevent the use of the -s option to mount, thus avoiding the
304803
autodetection. This can be useful in setups where executing mount
304803
might be undesirable, particularly in packaging environments.
304803
304803
2013-04-04 Martin von Gagern
304803
304803
References:
304803
 * https://bugs.gentoo.org/453778
304803
---
304803
 CHANGELOG    |    1 
304803
 aclocal.m4   |    2 
304803
 configure    |  252 +++++++++++++++++++++++++++++++---------------------------
304803
 configure.in |   10 ++
304803
 4 files changed, 146 insertions(+), 119 deletions(-)
304803
304803
diff --git a/CHANGELOG b/CHANGELOG
304803
index 61edddf..66c11de 100644
304803
--- a/CHANGELOG
304803
+++ b/CHANGELOG
304803
@@ -42,6 +42,7 @@
304803
 - fix submount tree not all expiring.
304803
 - make dump maps check for duplicate indirect mounts.
304803
 - document allowed map sources in auto.master.
304803
+- add enable sloppy mount option to configure.
304803
 
304803
 25/07/2012 autofs-5.0.7
304803
 =======================
304803
diff --git a/aclocal.m4 b/aclocal.m4
304803
index 47bca0c..c5de159 100644
304803
--- a/aclocal.m4
304803
+++ b/aclocal.m4
304803
@@ -66,7 +66,7 @@ AC_DEFUN(AF_SLOPPY_MOUNT,
304803
 [if test -n "$MOUNT" ; then
304803
   AC_MSG_CHECKING([if mount accepts the -s option])
304803
   if "$MOUNT" -s > /dev/null 2>&1 ; then
304803
-    AC_DEFINE(HAVE_SLOPPY_MOUNT, 1, [define if the mount command supports the -s option])
304803
+    enable_sloppy_mount=yes
304803
     AC_MSG_RESULT(yes)
304803
   else
304803
     AC_MSG_RESULT(no)
304803
diff --git a/configure b/configure
304803
index c1423d8..08b7ccc 100755
304803
--- a/configure
304803
+++ b/configure
304803
@@ -1,11 +1,9 @@
304803
 #! /bin/sh
304803
 # Guess values for system-dependent variables and create Makefiles.
304803
-# Generated by GNU Autoconf 2.68.
304803
+# Generated by GNU Autoconf 2.69.
304803
 #
304803
 #
304803
-# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
304803
-# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
304803
-# Foundation, Inc.
304803
+# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
304803
 #
304803
 #
304803
 # This configure script is free software; the Free Software Foundation
304803
@@ -134,6 +132,31 @@ export LANGUAGE
304803
 # CDPATH.
304803
 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
304803
 
304803
+# Use a proper internal environment variable to ensure we don't fall
304803
+  # into an infinite loop, continuously re-executing ourselves.
304803
+  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
304803
+    _as_can_reexec=no; export _as_can_reexec;
304803
+    # We cannot yet assume a decent shell, so we have to provide a
304803
+# neutralization value for shells without unset; and this also
304803
+# works around shells that cannot unset nonexistent variables.
304803
+# Preserve -v and -x to the replacement shell.
304803
+BASH_ENV=/dev/null
304803
+ENV=/dev/null
304803
+(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
304803
+case $- in # ((((
304803
+  *v*x* | *x*v* ) as_opts=-vx ;;
304803
+  *v* ) as_opts=-v ;;
304803
+  *x* ) as_opts=-x ;;
304803
+  * ) as_opts= ;;
304803
+esac
304803
+exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
304803
+# Admittedly, this is quite paranoid, since all the known shells bail
304803
+# out after a failed `exec'.
304803
+$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
304803
+as_fn_exit 255
304803
+  fi
304803
+  # We don't want this to propagate to other subprocesses.
304803
+          { _as_can_reexec=; unset _as_can_reexec;}
304803
 if test "x$CONFIG_SHELL" = x; then
304803
   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
304803
   emulate sh
304803
@@ -167,7 +190,8 @@ if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
304803
 else
304803
   exitcode=1; echo positional parameters were not saved.
304803
 fi
304803
-test x\$exitcode = x0 || exit 1"
304803
+test x\$exitcode = x0 || exit 1
304803
+test -x / || exit 1"
304803
   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
304803
   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
304803
   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
304803
@@ -212,21 +236,25 @@ IFS=$as_save_IFS
304803
 
304803
 
304803
       if test "x$CONFIG_SHELL" != x; then :
304803
-  # We cannot yet assume a decent shell, so we have to provide a
304803
-	# neutralization value for shells without unset; and this also
304803
-	# works around shells that cannot unset nonexistent variables.
304803
-	# Preserve -v and -x to the replacement shell.
304803
-	BASH_ENV=/dev/null
304803
-	ENV=/dev/null
304803
-	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
304803
-	export CONFIG_SHELL
304803
-	case $- in # ((((
304803
-	  *v*x* | *x*v* ) as_opts=-vx ;;
304803
-	  *v* ) as_opts=-v ;;
304803
-	  *x* ) as_opts=-x ;;
304803
-	  * ) as_opts= ;;
304803
-	esac
304803
-	exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
304803
+  export CONFIG_SHELL
304803
+             # We cannot yet assume a decent shell, so we have to provide a
304803
+# neutralization value for shells without unset; and this also
304803
+# works around shells that cannot unset nonexistent variables.
304803
+# Preserve -v and -x to the replacement shell.
304803
+BASH_ENV=/dev/null
304803
+ENV=/dev/null
304803
+(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
304803
+case $- in # ((((
304803
+  *v*x* | *x*v* ) as_opts=-vx ;;
304803
+  *v* ) as_opts=-v ;;
304803
+  *x* ) as_opts=-x ;;
304803
+  * ) as_opts= ;;
304803
+esac
304803
+exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
304803
+# Admittedly, this is quite paranoid, since all the known shells bail
304803
+# out after a failed `exec'.
304803
+$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
304803
+exit 255
304803
 fi
304803
 
304803
     if test x$as_have_required = xno; then :
304803
@@ -328,6 +356,14 @@ $as_echo X"$as_dir" |
304803
 
304803
 
304803
 } # as_fn_mkdir_p
304803
+
304803
+# as_fn_executable_p FILE
304803
+# -----------------------
304803
+# Test if FILE is an executable regular file.
304803
+as_fn_executable_p ()
304803
+{
304803
+  test -f "$1" && test -x "$1"
304803
+} # as_fn_executable_p
304803
 # as_fn_append VAR VALUE
304803
 # ----------------------
304803
 # Append the text in VALUE to the end of the definition contained in VAR. Take
304803
@@ -449,6 +485,10 @@ as_cr_alnum=$as_cr_Letters$as_cr_digits
304803
   chmod +x "$as_me.lineno" ||
304803
     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
304803
 
304803
+  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
304803
+  # already done that, so ensure we don't try to do so again and fall
304803
+  # in an infinite loop.  This has already happened in practice.
304803
+  _as_can_reexec=no; export _as_can_reexec
304803
   # Don't try to exec as it changes $[0], causing all sort of problems
304803
   # (the dirname of $[0] is not the place where we might find the
304803
   # original and so on.  Autoconf is especially sensitive to this).
304803
@@ -483,16 +523,16 @@ if (echo >conf$$.file) 2>/dev/null; then
304803
     # ... but there are two gotchas:
304803
     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
304803
     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
304803
-    # In both cases, we have to default to `cp -p'.
304803
+    # In both cases, we have to default to `cp -pR'.
304803
     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
304803
-      as_ln_s='cp -p'
304803
+      as_ln_s='cp -pR'
304803
   elif ln conf$$.file conf$$ 2>/dev/null; then
304803
     as_ln_s=ln
304803
   else
304803
-    as_ln_s='cp -p'
304803
+    as_ln_s='cp -pR'
304803
   fi
304803
 else
304803
-  as_ln_s='cp -p'
304803
+  as_ln_s='cp -pR'
304803
 fi
304803
 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
304803
 rmdir conf$$.dir 2>/dev/null
304803
@@ -504,28 +544,8 @@ else
304803
   as_mkdir_p=false
304803
 fi
304803
 
304803
-if test -x / >/dev/null 2>&1; then
304803
-  as_test_x='test -x'
304803
-else
304803
-  if ls -dL / >/dev/null 2>&1; then
304803
-    as_ls_L_option=L
304803
-  else
304803
-    as_ls_L_option=
304803
-  fi
304803
-  as_test_x='
304803
-    eval sh -c '\''
304803
-      if test -d "$1"; then
304803
-	test -d "$1/.";
304803
-      else
304803
-	case $1 in #(
304803
-	-*)set "./$1";;
304803
-	esac;
304803
-	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
304803
-	???[sx]*):;;*)false;;esac;fi
304803
-    '\'' sh
304803
-  '
304803
-fi
304803
-as_executable_p=$as_test_x
304803
+as_test_x='test -x'
304803
+as_executable_p=as_fn_executable_p
304803
 
304803
 # Sed expression to map a string onto a valid CPP name.
304803
 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
304803
@@ -715,6 +735,7 @@ with_fifodir
304803
 with_flagdir
304803
 with_libtirpc
304803
 with_dmalloc
304803
+enable_sloppy_mount
304803
 with_hesiod
304803
 with_openldap
304803
 with_sasl
304803
@@ -1187,8 +1208,6 @@ target=$target_alias
304803
 if test "x$host_alias" != x; then
304803
   if test "x$build_alias" = x; then
304803
     cross_compiling=maybe
304803
-    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
304803
-    If a cross compiler is detected then cross compile mode will be used" >&2
304803
   elif test "x$build_alias" != "x$host_alias"; then
304803
     cross_compiling=yes
304803
   fi
304803
@@ -1341,6 +1360,7 @@ Optional Features:
304803
   --disable-option-checking  ignore unrecognized --enable/--with options
304803
   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
304803
   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
304803
+  --enable-sloppy-mount   enable the use of the -s option to mount
304803
   --disable-ext-env	  disable search in environment for substitution variable
304803
   --disable-mount-locking disable use of locking when spawning mount command
304803
   --enable-force-shutdown enable USR1 signal to force unlink umount of any
304803
@@ -1442,9 +1462,9 @@ test -n "$ac_init_help" && exit $ac_status
304803
 if $ac_init_version; then
304803
   cat <<\_ACEOF
304803
 configure
304803
-generated by GNU Autoconf 2.68
304803
+generated by GNU Autoconf 2.69
304803
 
304803
-Copyright (C) 2010 Free Software Foundation, Inc.
304803
+Copyright (C) 2012 Free Software Foundation, Inc.
304803
 This configure script is free software; the Free Software Foundation
304803
 gives unlimited permission to copy, distribute and modify it.
304803
 _ACEOF
304803
@@ -1520,7 +1540,7 @@ $as_echo "$ac_try_echo"; } >&5
304803
 	 test ! -s conftest.err
304803
        } && test -s conftest$ac_exeext && {
304803
 	 test "$cross_compiling" = yes ||
304803
-	 $as_test_x conftest$ac_exeext
304803
+	 test -x conftest$ac_exeext
304803
        }; then :
304803
   ac_retval=0
304803
 else
304803
@@ -1740,7 +1760,7 @@ This file contains any messages produced by compilers while
304803
 running configure, to aid debugging if configure makes a mistake.
304803
 
304803
 It was created by $as_me, which was
304803
-generated by GNU Autoconf 2.68.  Invocation command line was
304803
+generated by GNU Autoconf 2.69.  Invocation command line was
304803
 
304803
   $ $0 $@
304803
 
304803
@@ -2324,7 +2344,7 @@ do
304803
   IFS=$as_save_IFS
304803
   test -z "$as_dir" && as_dir=.
304803
     for ac_exec_ext in '' $ac_executable_extensions; do
304803
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
304803
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
304803
     ac_cv_prog_CC="${ac_tool_prefix}gcc"
304803
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
304803
     break 2
304803
@@ -2364,7 +2384,7 @@ do
304803
   IFS=$as_save_IFS
304803
   test -z "$as_dir" && as_dir=.
304803
     for ac_exec_ext in '' $ac_executable_extensions; do
304803
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
304803
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
304803
     ac_cv_prog_ac_ct_CC="gcc"
304803
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
304803
     break 2
304803
@@ -2417,7 +2437,7 @@ do
304803
   IFS=$as_save_IFS
304803
   test -z "$as_dir" && as_dir=.
304803
     for ac_exec_ext in '' $ac_executable_extensions; do
304803
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
304803
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
304803
     ac_cv_prog_CC="${ac_tool_prefix}cc"
304803
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
304803
     break 2
304803
@@ -2458,7 +2478,7 @@ do
304803
   IFS=$as_save_IFS
304803
   test -z "$as_dir" && as_dir=.
304803
     for ac_exec_ext in '' $ac_executable_extensions; do
304803
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
304803
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
304803
     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
304803
        ac_prog_rejected=yes
304803
        continue
304803
@@ -2516,7 +2536,7 @@ do
304803
   IFS=$as_save_IFS
304803
   test -z "$as_dir" && as_dir=.
304803
     for ac_exec_ext in '' $ac_executable_extensions; do
304803
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
304803
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
304803
     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
304803
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
304803
     break 2
304803
@@ -2560,7 +2580,7 @@ do
304803
   IFS=$as_save_IFS
304803
   test -z "$as_dir" && as_dir=.
304803
     for ac_exec_ext in '' $ac_executable_extensions; do
304803
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
304803
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
304803
     ac_cv_prog_ac_ct_CC="$ac_prog"
304803
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
304803
     break 2
304803
@@ -3006,8 +3026,7 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
304803
 /* end confdefs.h.  */
304803
 #include <stdarg.h>
304803
 #include <stdio.h>
304803
-#include <sys/types.h>
304803
-#include <sys/stat.h>
304803
+struct stat;
304803
 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
304803
 struct buf { int x; };
304803
 FILE * (*rcsopen) (struct buf *, struct stat *, int);
304803
@@ -3209,7 +3228,7 @@ do
304803
   IFS=$as_save_IFS
304803
   test -z "$as_dir" && as_dir=.
304803
     for ac_exec_ext in '' $ac_executable_extensions; do
304803
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
304803
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
304803
     ac_cv_path_MOUNT="$as_dir/$ac_word$ac_exec_ext"
304803
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
304803
     break 2
304803
@@ -3269,7 +3288,7 @@ do
304803
   IFS=$as_save_IFS
304803
   test -z "$as_dir" && as_dir=.
304803
     for ac_exec_ext in '' $ac_executable_extensions; do
304803
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
304803
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
304803
     ac_cv_path_MOUNT_NFS="$as_dir/$ac_word$ac_exec_ext"
304803
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
304803
     break 2
304803
@@ -3329,7 +3348,7 @@ do
304803
   IFS=$as_save_IFS
304803
   test -z "$as_dir" && as_dir=.
304803
     for ac_exec_ext in '' $ac_executable_extensions; do
304803
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
304803
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
304803
     ac_cv_path_UMOUNT="$as_dir/$ac_word$ac_exec_ext"
304803
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
304803
     break 2
304803
@@ -3389,7 +3408,7 @@ do
304803
   IFS=$as_save_IFS
304803
   test -z "$as_dir" && as_dir=.
304803
     for ac_exec_ext in '' $ac_executable_extensions; do
304803
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
304803
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
304803
     ac_cv_path_E2FSCK="$as_dir/$ac_word$ac_exec_ext"
304803
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
304803
     break 2
304803
@@ -3448,7 +3467,7 @@ do
304803
   IFS=$as_save_IFS
304803
   test -z "$as_dir" && as_dir=.
304803
     for ac_exec_ext in '' $ac_executable_extensions; do
304803
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
304803
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
304803
     ac_cv_path_E3FSCK="$as_dir/$ac_word$ac_exec_ext"
304803
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
304803
     break 2
304803
@@ -3507,7 +3526,7 @@ do
304803
   IFS=$as_save_IFS
304803
   test -z "$as_dir" && as_dir=.
304803
     for ac_exec_ext in '' $ac_executable_extensions; do
304803
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
304803
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
304803
     ac_cv_path_E4FSCK="$as_dir/$ac_word$ac_exec_ext"
304803
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
304803
     break 2
304803
@@ -3566,7 +3585,7 @@ do
304803
   IFS=$as_save_IFS
304803
   test -z "$as_dir" && as_dir=.
304803
     for ac_exec_ext in '' $ac_executable_extensions; do
304803
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
304803
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
304803
     ac_cv_path_MODPROBE="$as_dir/$ac_word$ac_exec_ext"
304803
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
304803
     break 2
304803
@@ -3626,7 +3645,7 @@ do
304803
   IFS=$as_save_IFS
304803
   test -z "$as_dir" && as_dir=.
304803
     for ac_exec_ext in '' $ac_executable_extensions; do
304803
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
304803
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
304803
     ac_cv_path_LEX="$as_dir/$ac_word$ac_exec_ext"
304803
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
304803
     break 2
304803
@@ -3682,7 +3701,7 @@ do
304803
   IFS=$as_save_IFS
304803
   test -z "$as_dir" && as_dir=.
304803
     for ac_exec_ext in '' $ac_executable_extensions; do
304803
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
304803
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
304803
     ac_cv_path_YACC="$as_dir/$ac_word$ac_exec_ext"
304803
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
304803
     break 2
304803
@@ -3738,7 +3757,7 @@ do
304803
   IFS=$as_save_IFS
304803
   test -z "$as_dir" && as_dir=.
304803
     for ac_exec_ext in '' $ac_executable_extensions; do
304803
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
304803
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
304803
     ac_cv_path_RANLIB="$as_dir/$ac_word$ac_exec_ext"
304803
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
304803
     break 2
304803
@@ -3794,7 +3813,7 @@ do
304803
   IFS=$as_save_IFS
304803
   test -z "$as_dir" && as_dir=.
304803
     for ac_exec_ext in '' $ac_executable_extensions; do
304803
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
304803
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
304803
     ac_cv_path_RPCGEN="$as_dir/$ac_word$ac_exec_ext"
304803
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
304803
     break 2
304803
@@ -3858,13 +3877,19 @@ fi
304803
 # Newer mounts have the -s (sloppy) option to ignore unknown options,
304803
 # good for portability
304803
 #
304803
-if test -n "$MOUNT" ; then
304803
+# Check whether --enable-sloppy-mount was given.
304803
+if test "${enable_sloppy_mount+set}" = set; then :
304803
+  enableval=$enable_sloppy_mount;
304803
+else
304803
+  enable_sloppy_mount=auto
304803
+fi
304803
+
304803
+if test x$enable_sloppy_mount = xauto; then
304803
+	if test -n "$MOUNT" ; then
304803
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mount accepts the -s option" >&5
304803
 $as_echo_n "checking if mount accepts the -s option... " >&6; }
304803
   if "$MOUNT" -s > /dev/null 2>&1 ; then
304803
-
304803
-$as_echo "#define HAVE_SLOPPY_MOUNT 1" >>confdefs.h
304803
-
304803
+    enable_sloppy_mount=yes
304803
     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
304803
 $as_echo "yes" >&6; }
304803
   else
304803
@@ -3872,6 +3897,12 @@ $as_echo "yes" >&6; }
304803
 $as_echo "no" >&6; }
304803
   fi
304803
 fi
304803
+fi
304803
+if test x$enable_sloppy_mount = xyes; then
304803
+
304803
+$as_echo "#define HAVE_SLOPPY_MOUNT 1" >>confdefs.h
304803
+
304803
+fi
304803
 
304803
 # LDAP SASL auth needs libxml and Kerberos
304803
 for ac_prog in xml2-config
304803
@@ -3894,7 +3925,7 @@ do
304803
   IFS=$as_save_IFS
304803
   test -z "$as_dir" && as_dir=.
304803
     for ac_exec_ext in '' $ac_executable_extensions; do
304803
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
304803
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
304803
     ac_cv_path_XML_CONFIG="$as_dir/$ac_word$ac_exec_ext"
304803
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
304803
     break 2
304803
@@ -3969,7 +4000,7 @@ do
304803
   IFS=$as_save_IFS
304803
   test -z "$as_dir" && as_dir=.
304803
     for ac_exec_ext in '' $ac_executable_extensions; do
304803
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
304803
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
304803
     ac_cv_path_KRB5_CONFIG="$as_dir/$ac_word$ac_exec_ext"
304803
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
304803
     break 2
304803
@@ -4387,7 +4418,7 @@ do
304803
     for ac_prog in grep ggrep; do
304803
     for ac_exec_ext in '' $ac_executable_extensions; do
304803
       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
304803
-      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
304803
+      as_fn_executable_p "$ac_path_GREP" || continue
304803
 # Check for GNU ac_path_GREP and select it if it is found.
304803
   # Check for GNU $ac_path_GREP
304803
 case `"$ac_path_GREP" --version 2>&1` in
304803
@@ -4453,7 +4484,7 @@ do
304803
     for ac_prog in egrep; do
304803
     for ac_exec_ext in '' $ac_executable_extensions; do
304803
       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
304803
-      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
304803
+      as_fn_executable_p "$ac_path_EGREP" || continue
304803
 # Check for GNU ac_path_EGREP and select it if it is found.
304803
   # Check for GNU $ac_path_EGREP
304803
 case `"$ac_path_EGREP" --version 2>&1` in
304803
@@ -4928,7 +4959,7 @@ do
304803
   IFS=$as_save_IFS
304803
   test -z "$as_dir" && as_dir=.
304803
     for ac_exec_ext in '' $ac_executable_extensions; do
304803
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
304803
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
304803
     ac_cv_prog_CC="${ac_tool_prefix}gcc"
304803
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
304803
     break 2
304803
@@ -4968,7 +4999,7 @@ do
304803
   IFS=$as_save_IFS
304803
   test -z "$as_dir" && as_dir=.
304803
     for ac_exec_ext in '' $ac_executable_extensions; do
304803
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
304803
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
304803
     ac_cv_prog_ac_ct_CC="gcc"
304803
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
304803
     break 2
304803
@@ -5021,7 +5052,7 @@ do
304803
   IFS=$as_save_IFS
304803
   test -z "$as_dir" && as_dir=.
304803
     for ac_exec_ext in '' $ac_executable_extensions; do
304803
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
304803
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
304803
     ac_cv_prog_CC="${ac_tool_prefix}cc"
304803
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
304803
     break 2
304803
@@ -5062,7 +5093,7 @@ do
304803
   IFS=$as_save_IFS
304803
   test -z "$as_dir" && as_dir=.
304803
     for ac_exec_ext in '' $ac_executable_extensions; do
304803
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
304803
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
304803
     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
304803
        ac_prog_rejected=yes
304803
        continue
304803
@@ -5120,7 +5151,7 @@ do
304803
   IFS=$as_save_IFS
304803
   test -z "$as_dir" && as_dir=.
304803
     for ac_exec_ext in '' $ac_executable_extensions; do
304803
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
304803
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
304803
     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
304803
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
304803
     break 2
304803
@@ -5164,7 +5195,7 @@ do
304803
   IFS=$as_save_IFS
304803
   test -z "$as_dir" && as_dir=.
304803
     for ac_exec_ext in '' $ac_executable_extensions; do
304803
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
304803
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
304803
     ac_cv_prog_ac_ct_CC="$ac_prog"
304803
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
304803
     break 2
304803
@@ -5360,8 +5391,7 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
304803
 /* end confdefs.h.  */
304803
 #include <stdarg.h>
304803
 #include <stdio.h>
304803
-#include <sys/types.h>
304803
-#include <sys/stat.h>
304803
+struct stat;
304803
 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
304803
 struct buf { int x; };
304803
 FILE * (*rcsopen) (struct buf *, struct stat *, int);
304803
@@ -5882,16 +5912,16 @@ if (echo >conf$$.file) 2>/dev/null; then
304803
     # ... but there are two gotchas:
304803
     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
304803
     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
304803
-    # In both cases, we have to default to `cp -p'.
304803
+    # In both cases, we have to default to `cp -pR'.
304803
     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
304803
-      as_ln_s='cp -p'
304803
+      as_ln_s='cp -pR'
304803
   elif ln conf$$.file conf$$ 2>/dev/null; then
304803
     as_ln_s=ln
304803
   else
304803
-    as_ln_s='cp -p'
304803
+    as_ln_s='cp -pR'
304803
   fi
304803
 else
304803
-  as_ln_s='cp -p'
304803
+  as_ln_s='cp -pR'
304803
 fi
304803
 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
304803
 rmdir conf$$.dir 2>/dev/null
304803
@@ -5951,28 +5981,16 @@ else
304803
   as_mkdir_p=false
304803
 fi
304803
 
304803
-if test -x / >/dev/null 2>&1; then
304803
-  as_test_x='test -x'
304803
-else
304803
-  if ls -dL / >/dev/null 2>&1; then
304803
-    as_ls_L_option=L
304803
-  else
304803
-    as_ls_L_option=
304803
-  fi
304803
-  as_test_x='
304803
-    eval sh -c '\''
304803
-      if test -d "$1"; then
304803
-	test -d "$1/.";
304803
-      else
304803
-	case $1 in #(
304803
-	-*)set "./$1";;
304803
-	esac;
304803
-	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
304803
-	???[sx]*):;;*)false;;esac;fi
304803
-    '\'' sh
304803
-  '
304803
-fi
304803
-as_executable_p=$as_test_x
304803
+
304803
+# as_fn_executable_p FILE
304803
+# -----------------------
304803
+# Test if FILE is an executable regular file.
304803
+as_fn_executable_p ()
304803
+{
304803
+  test -f "$1" && test -x "$1"
304803
+} # as_fn_executable_p
304803
+as_test_x='test -x'
304803
+as_executable_p=as_fn_executable_p
304803
 
304803
 # Sed expression to map a string onto a valid CPP name.
304803
 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
304803
@@ -5994,7 +6012,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
304803
 # values after options handling.
304803
 ac_log="
304803
 This file was extended by $as_me, which was
304803
-generated by GNU Autoconf 2.68.  Invocation command line was
304803
+generated by GNU Autoconf 2.69.  Invocation command line was
304803
 
304803
   CONFIG_FILES    = $CONFIG_FILES
304803
   CONFIG_HEADERS  = $CONFIG_HEADERS
304803
@@ -6056,10 +6074,10 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
304803
 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
304803
 ac_cs_version="\\
304803
 config.status
304803
-configured by $0, generated by GNU Autoconf 2.68,
304803
+configured by $0, generated by GNU Autoconf 2.69,
304803
   with options \\"\$ac_cs_config\\"
304803
 
304803
-Copyright (C) 2010 Free Software Foundation, Inc.
304803
+Copyright (C) 2012 Free Software Foundation, Inc.
304803
 This config.status script is free software; the Free Software Foundation
304803
 gives unlimited permission to copy, distribute and modify it."
304803
 
304803
@@ -6147,7 +6165,7 @@ fi
304803
 _ACEOF
304803
 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
304803
 if \$ac_cs_recheck; then
304803
-  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
304803
+  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
304803
   shift
304803
   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
304803
   CONFIG_SHELL='$SHELL'
304803
diff --git a/configure.in b/configure.in
304803
index 4029375..559045a 100644
304803
--- a/configure.in
304803
+++ b/configure.in
304803
@@ -157,7 +157,15 @@ AC_SUBST(sssldir)
304803
 # Newer mounts have the -s (sloppy) option to ignore unknown options,
304803
 # good for portability
304803
 #
304803
-AF_SLOPPY_MOUNT()
304803
+AC_ARG_ENABLE(sloppy-mount,
304803
+[  --enable-sloppy-mount   enable the use of the -s option to mount],,
304803
+	enable_sloppy_mount=auto)
304803
+if test x$enable_sloppy_mount = xauto; then
304803
+	AF_SLOPPY_MOUNT()
304803
+fi
304803
+if test x$enable_sloppy_mount = xyes; then
304803
+	AC_DEFINE(HAVE_SLOPPY_MOUNT, 1, [define if the mount command supports the -s option])
304803
+fi
304803
 
304803
 # LDAP SASL auth needs libxml and Kerberos
304803
 AF_CHECK_LIBXML()