8335b1
Index: acinclude.m4
8335b1
===================================================================
8335b1
--- a/acinclude.m4	(revision 1667671)
8335b1
+++ b/acinclude.m4	(working copy)
8335b1
@@ -43,6 +43,7 @@
8335b1
   APACHE_SUBST(installbuilddir)
8335b1
   APACHE_SUBST(runtimedir)
8335b1
   APACHE_SUBST(proxycachedir)
8335b1
+  APACHE_SUBST(davlockdb)
8335b1
   APACHE_SUBST(other_targets)
8335b1
   APACHE_SUBST(progname)
8335b1
   APACHE_SUBST(prefix)
8335b1
@@ -710,6 +711,7 @@
8335b1
   APACHE_SUBST_EXPANDED_ARG(runtimedir)
8335b1
   APACHE_SUBST_EXPANDED_ARG(logfiledir)
8335b1
   APACHE_SUBST_EXPANDED_ARG(proxycachedir)
8335b1
+  APACHE_SUBST_EXPANDED_ARG(davlockdb)
8335b1
 ])
8335b1
 
8335b1
 dnl 
8335b1
Index: build/mkconfNW.awk
8335b1
===================================================================
8335b1
--- a/build/mkconfNW.awk	(revision 1667671)
8335b1
+++ b/build/mkconfNW.awk	(working copy)
8335b1
@@ -26,6 +26,7 @@
8335b1
     A["runtimedir"] = "logs"
8335b1
     A["errordir"] = "error"
8335b1
     A["proxycachedir"] = "proxy"
8335b1
+    A["davlockdb"] = "davlockdb"
8335b1
 
8335b1
     B["htdocsdir"] = A["ServerRoot"]"/"A["htdocsdir"]
8335b1
     B["iconsdir"] = A["ServerRoot"]"/"A["iconsdir"]
8335b1
@@ -32,6 +33,7 @@
8335b1
     B["manualdir"] = A["ServerRoot"]"/"A["manualdir"]
8335b1
     B["errordir"] = A["ServerRoot"]"/"A["errordir"]
8335b1
     B["proxycachedir"] = A["ServerRoot"]"/"A["proxycachedir"]
8335b1
+    B["davlockdb"] = A["ServerRoot"]"/"A["davlockdb"]
8335b1
     B["cgidir"] = A["ServerRoot"]"/"A["cgidir"]
8335b1
     B["logfiledir"] = A["logfiledir"]
8335b1
     B["sysconfdir"] = A["sysconfdir"]
8335b1
Index: include/ap_config_layout.h.in
8335b1
===================================================================
8335b1
--- a/include/ap_config_layout.h.in	(revision 1667671)
8335b1
+++ b/include/ap_config_layout.h.in	(working copy)
8335b1
@@ -60,5 +60,7 @@
8335b1
 #define DEFAULT_REL_LOGFILEDIR "@rel_logfiledir@"
8335b1
 #define DEFAULT_EXP_PROXYCACHEDIR "@exp_proxycachedir@"
8335b1
 #define DEFAULT_REL_PROXYCACHEDIR "@rel_proxycachedir@"
8335b1
+#define DEFAULT_EXP_DAVLOCKDB "@exp_davlockdb@"
8335b1
+#define DEFAULT_REL_DAVLOCKDB "@rel_davlockdb@"
8335b1
 
8335b1
 #endif /* AP_CONFIG_LAYOUT_H */
8335b1
Index: modules/dav/fs/mod_dav_fs.c
8335b1
===================================================================
8335b1
--- a/modules/dav/fs/mod_dav_fs.c	(revision 1667671)
8335b1
+++ b/modules/dav/fs/mod_dav_fs.c	(working copy)
8335b1
@@ -17,6 +17,7 @@
8335b1
 #include "httpd.h"
8335b1
 #include "http_config.h"
8335b1
 #include "apr_strings.h"
8335b1
+#include "ap_config_auto.h"
8335b1
 
8335b1
 #include "mod_dav.h"
8335b1
 #include "repos.h"
8335b1
@@ -39,7 +40,15 @@
8335b1
 
8335b1
 static void *dav_fs_create_server_config(apr_pool_t *p, server_rec *s)
8335b1
 {
8335b1
-    return apr_pcalloc(p, sizeof(dav_fs_server_conf));
8335b1
+    dav_fs_server_conf *conf = apr_pcalloc(p, sizeof(dav_fs_server_conf));
8335b1
+#ifdef DEFAULT_EXP_DAVLOCKDB
8335b1
+    conf->lockdb_path = DEFAULT_EXP_DAVLOCKDB;
8335b1
+    if (*conf->lockdb_path == '\0') {
8335b1
+        conf->lockdb_path = NULL;
8335b1
+    }
8335b1
+#endif
8335b1
+
8335b1
+    return conf;
8335b1
 }
8335b1
 
8335b1
 static void *dav_fs_merge_server_config(apr_pool_t *p,