+dnl Should we use a locking directory?
+AC_ARG_WITH(lockdir,
+ AS_HELP_STRING([--with-lockdir=dir], [Store dot-lock files in "dir"]), [
+ AS_IF([test "x$with_lockdir" = xyes],[
+ AC_MSG_ERROR([--with-lockdir requires an argument])])
+])
+
+if test x"$with_lockdir" != x; then
+ LOCKDIR="$with_lockdir"
+ AC_DEFINE_UNQUOTED(LOCKDIR, ["$with_lockdir"],
+ [Directory to store dot-locking lock files.])dnl
+fi
+