]> diplodocus.org Git - nmh/blobdiff - m4/locking.m4
Clean up mhbuild backup files left by test-header-encode.
[nmh] / m4 / locking.m4
index b70f225f3bb0e189f3a166d93e5f900bd22d0dfc..2895d882779f5214a5bfb98416e8223a5b054e87 100644 (file)
@@ -35,9 +35,17 @@ AS_CASE([$with_locking],
 
 AC_DEFINE_UNQUOTED([DEFAULT_LOCKING], ["$with_locking"],
   [The default lock type for the mail spool file])
+AC_SUBST([default_locking], [$with_locking])
 
 AC_MSG_RESULT([$with_locking])
 
+supported_locks="fcntl dot"
+AS_IF([test x"$ac_cv_func_flock" = x"yes"],
+  [supported_locks="$supported_locks flock"])
+AS_IF([test x"$ac_cv_func_lockf" = x"yes"],
+  [supported_locks="$supported_locks lockf"])
+AC_SUBST([supported_locks])
+
 dnl Should we use a locking directory?
 AC_ARG_ENABLE([lockdir],
   [AS_HELP_STRING([--enable-lockdir=dir], [Store dot-lock files in "dir"])], [