*/
/*
- * If you have defined DOT_LOCKING, then the default is to
- * place the lock files in the same directory as the file that
- * is to be locked. Alternately, if you define LOCKDIR, you
- * can specify that all lock files go in a specific directory.
- * Don't define this unless you know you need it.
- */
-/* #define LOCKDIR "/usr/spool/locks" */
-
-/*
* Define this if your passwords are stored in some type of
* distributed name service, such as NIS, or NIS+.
*/
AC_DEFINE(DOT_LOCKING)dnl
fi
+dnl Should we use a locking directory?
+AC_ARG_ENABLE([lockdir], [
+ AS_HELP_STRING([--enable-lockdir=dir], [Store dot-lock files in "dir"])], [
+ AS_IF([test "x$enableval" = xyes],[
+ AC_MSG_ERROR([--enable-lockdir requires an argument])])
+ AS_IF([test "x$LOCKTYPE" != xdot],[
+ AC_MSG_ERROR([Can only use --enable-lockdir with dot locking])])
+ AC_DEFINE_UNQUOTED([LOCKDIR], ["$enableval"],
+ [Directory to store dot-locking lock files])
+])
+
dnl What method of posting should post use?
AC_ARG_WITH(mts,
AS_HELP_STRING([--with-mts=@<:@smtp|sendmail@:>@],
garbage collected.
- Old code enabled by the UCI preprocessor definition has been
garbage-collected.
+- LOCKDIR is now configurable via --enable-lockdir
a file should be created whose existence means \*(lqlocked\*(rq and
whose non-existence means \*(lqunlocked\*(rq. The name of this file is
constructed by appending \*(lq.lock\*(rq to the name of the file being
-locked. If
-.B LOCKDIR
-is not specified, lock files will be created
+locked. If \*(lq--enable-lockdir=directory\*(rq
+is not specified at build time, lock files will be created
in the directory where the file being locked resides. Otherwise, lock
files will be created in the directory specified by
-.BR LOCKDIR .
+\*(lq--enable-lockdir\*(rq.
.PP
Prior to installing
.BR nmh ,