Index: configure.in =================================================================== RCS file: /home/cvspublic/httpd-2.0/configure.in,v retrieving revision 1.211 diff -U3 -r1.211 configure.in --- configure.in 21 Mar 2002 19:40:06 -0000 1.211 +++ configure.in 3 Apr 2002 11:01:26 -0000 @@ -480,7 +480,7 @@ ;; esac -AC_OUTPUT($APACHE_OUTPUT_FILES support/apxs support/apachectl support/dbmmanage support/envvars-std support/log_server_status support/logresolve.pl support/phf_abuse_log.cgi support/split-logfile build/rules.mk,[true],[ +AC_OUTPUT($APACHE_OUTPUT_FILES include/ap_config_layout.h support/apxs support/apachectl support/dbmmanage support/envvars-std support/log_server_status support/logresolve.pl support/phf_abuse_log.cgi support/split-logfile build/rules.mk,[true],[ APACHE_GEN_MAKEFILES ]) Index: include/ap_config.h =================================================================== RCS file: /home/cvspublic/httpd-2.0/include/ap_config.h,v retrieving revision 1.67 diff -U3 -r1.67 ap_config.h --- include/ap_config.h 13 Mar 2002 20:47:42 -0000 1.67 +++ include/ap_config.h 3 Apr 2002 11:01:27 -0000 @@ -268,8 +268,8 @@ #include "os.h" #if !defined(WIN32) && !defined(NETWARE) #include "ap_config_auto.h" +#include "ap_config_layout.h" #endif - /* TODO - We need to put OS detection back to make all the following work */ Index: server/mpm/beos/mpm_default.h =================================================================== RCS file: /home/cvspublic/httpd-2.0/server/mpm/beos/mpm_default.h,v retrieving revision 1.8 diff -U3 -r1.8 mpm_default.h --- server/mpm/beos/mpm_default.h 13 Mar 2002 20:48:02 -0000 1.8 +++ server/mpm/beos/mpm_default.h 3 Apr 2002 11:01:28 -0000 @@ -98,7 +98,7 @@ /* Where the main/parent process's pid is logged */ #ifndef DEFAULT_PIDLOG -#define DEFAULT_PIDLOG "logs/httpd.pid" +#define DEFAULT_PIDLOG DEFAULT_REL_RUNTIMEDIR "/httpd.pid" #endif /* Index: server/mpm/mpmt_os2/mpm_default.h =================================================================== RCS file: /home/cvspublic/httpd-2.0/server/mpm/mpmt_os2/mpm_default.h,v retrieving revision 1.3 diff -U3 -r1.3 mpm_default.h --- server/mpm/mpmt_os2/mpm_default.h 13 Mar 2002 20:48:02 -0000 1.3 +++ server/mpm/mpmt_os2/mpm_default.h 3 Apr 2002 11:01:28 -0000 @@ -81,7 +81,7 @@ /* Where the main/parent process's pid is logged */ #ifndef DEFAULT_PIDLOG -#define DEFAULT_PIDLOG "logs/httpd.pid" +#define DEFAULT_PIDLOG DEFAULT_REL_RUNTIMEDIR "/httpd.pid" #endif /* Index: server/mpm/netware/mpm_default.h =================================================================== RCS file: /home/cvspublic/httpd-2.0/server/mpm/netware/mpm_default.h,v retrieving revision 1.7 diff -U3 -r1.7 mpm_default.h --- server/mpm/netware/mpm_default.h 13 Mar 2002 20:48:03 -0000 1.7 +++ server/mpm/netware/mpm_default.h 3 Apr 2002 11:01:28 -0000 @@ -116,15 +116,20 @@ #define DEFAULT_MIN_FREE_THREADS 10 #endif +/* Check for definition of DEFAULT_REL_RUNTIMEDIR */ +#ifndef DEFAULT_REL_RUNTIMEDIR +#define DEFAULT_REL_RUNTIMEDIR "logs" +#endif + /* File used for accept locking, when we use a file */ /*#ifndef DEFAULT_LOCKFILE - #define DEFAULT_LOCKFILE "logs/accept.lock" + #define DEFAULT_LOCKFILE DEFAULT_REL_RUNTIMEDIR "/accept.lock" #endif */ /* Where the main/parent process's pid is logged */ /*#ifndef DEFAULT_PIDLOG - #define DEFAULT_PIDLOG "logs/httpd.pid" + #define DEFAULT_PIDLOG DEFAULT_REL_RUNTIMEDIR "/httpd.pid" #endif */ Index: server/mpm/perchild/mpm_default.h =================================================================== RCS file: /home/cvspublic/httpd-2.0/server/mpm/perchild/mpm_default.h,v retrieving revision 1.10 diff -U3 -r1.10 mpm_default.h --- server/mpm/perchild/mpm_default.h 13 Mar 2002 20:48:03 -0000 1.10 +++ server/mpm/perchild/mpm_default.h 3 Apr 2002 11:01:28 -0000 @@ -88,12 +88,12 @@ /* File used for accept locking, when we use a file */ #ifndef DEFAULT_LOCKFILE -#define DEFAULT_LOCKFILE "logs/accept.lock" +#define DEFAULT_LOCKFILE DEFAULT_REL_RUNTIMEDIR "/accept.lock" #endif /* Where the main/parent process's pid is logged */ #ifndef DEFAULT_PIDLOG -#define DEFAULT_PIDLOG "logs/httpd.pid" +#define DEFAULT_PIDLOG DEFAULT_REL_RUNTIMEDIR "/httpd.pid" #endif /* Index: server/mpm/prefork/mpm_default.h =================================================================== RCS file: /home/cvspublic/httpd-2.0/server/mpm/prefork/mpm_default.h,v retrieving revision 1.9 diff -U3 -r1.9 mpm_default.h --- server/mpm/prefork/mpm_default.h 13 Mar 2002 20:48:04 -0000 1.9 +++ server/mpm/prefork/mpm_default.h 3 Apr 2002 11:01:28 -0000 @@ -82,12 +82,12 @@ /* File used for accept locking, when we use a file */ #ifndef DEFAULT_LOCKFILE -#define DEFAULT_LOCKFILE "logs/accept.lock" +#define DEFAULT_LOCKFILE DEFAULT_REL_RUNTIMEDIR "/accept.lock" #endif /* Where the main/parent process's pid is logged */ #ifndef DEFAULT_PIDLOG -#define DEFAULT_PIDLOG "logs/httpd.pid" +#define DEFAULT_PIDLOG DEFAULT_REL_RUNTIMEDIR "/httpd.pid" #endif /* Index: server/mpm/prefork/prefork.c =================================================================== RCS file: /home/cvspublic/httpd-2.0/server/mpm/prefork/prefork.c,v retrieving revision 1.257 diff -U3 -r1.257 prefork.c --- server/mpm/prefork/prefork.c 29 Mar 2002 14:33:50 -0000 1.257 +++ server/mpm/prefork/prefork.c 3 Apr 2002 11:01:29 -0000 @@ -184,8 +184,8 @@ /* * change directory for gprof to plop the gmon.out file * configure in httpd.conf: - * GprofDir logs/ -> $ServerRoot/logs/gmon.out - * GprofDir logs/% -> $ServerRoot/logs/gprof.$pid/gmon.out + * GprofDir $RuntimeDir/ -> $ServerRoot/$RuntimeDir/gmon.out + * GprofDir $RuntimeDir/% -> $ServerRoot/$RuntimeDir/gprof.$pid/gmon.out */ static void chdir_for_gprof(void) { @@ -210,7 +210,7 @@ } } else { - use_dir = ap_server_root_relative(pconf, "logs"); + use_dir = ap_server_root_relative(pconf, DEFAULT_REL_RUNTIMEDIR); } chdir(use_dir); Index: server/mpm/winnt/mpm_default.h =================================================================== RCS file: /home/cvspublic/httpd-2.0/server/mpm/winnt/mpm_default.h,v retrieving revision 1.12 diff -U3 -r1.12 mpm_default.h --- server/mpm/winnt/mpm_default.h 13 Mar 2002 20:48:04 -0000 1.12 +++ server/mpm/winnt/mpm_default.h 3 Apr 2002 11:01:29 -0000 @@ -86,9 +86,14 @@ #define DEFAULT_NUM_DAEMON 1 #endif +/* Check for definition of DEFAULT_REL_RUNTIMEDIR */ +#ifndef DEFAULT_REL_RUNTIMEDIR +#define DEFAULT_REL_RUNTIMEDIR "logs" +#endif + /* Where the main/parent process's pid is logged */ #ifndef DEFAULT_PIDLOG -#define DEFAULT_PIDLOG "logs/httpd.pid" +#define DEFAULT_PIDLOG DEFAULT_REL_RUNTIMEDIR "/httpd.pid" #endif /* Index: server/mpm/worker/mpm_default.h =================================================================== RCS file: /home/cvspublic/httpd-2.0/server/mpm/worker/mpm_default.h,v retrieving revision 1.5 diff -U3 -r1.5 mpm_default.h --- server/mpm/worker/mpm_default.h 13 Mar 2002 20:48:05 -0000 1.5 +++ server/mpm/worker/mpm_default.h 3 Apr 2002 11:01:29 -0000 @@ -86,12 +86,12 @@ /* File used for accept locking, when we use a file */ #ifndef DEFAULT_LOCKFILE -#define DEFAULT_LOCKFILE "logs/accept.lock" +#define DEFAULT_LOCKFILE DEFAULT_REL_RUNTIMEDIR "/accept.lock" #endif /* Where the main/parent process's pid is logged */ #ifndef DEFAULT_PIDLOG -#define DEFAULT_PIDLOG "logs/httpd.pid" +#define DEFAULT_PIDLOG DEFAULT_REL_RUNTIMEDIR "/httpd.pid" #endif /*