From: Aaron Bannert Date: Fri, 8 Mar 2002 18:00:40 +0000 (+0000) Subject: Fix a bug that would cause SERVER_CONFIG_FILE to be an absolute path, X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=68f1eeb382b4d1564192ce2e547d91fcbeeda094;p=apache Fix a bug that would cause SERVER_CONFIG_FILE to be an absolute path, which would prevent the relocation of an httpd binary without having to specify the -f flag. Now it will be relative to the $prefix if $sysconfdir shares a common prefix, or it will remain relative to $sysconfdir. Submitted by: Thom May , Aaron Bannert git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93798 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/configure.in b/configure.in index 8a74ec2946..9b0681cc9a 100644 --- a/configure.in +++ b/configure.in @@ -444,7 +444,8 @@ APR_EXPAND_VAR(ap_prefix, $prefix) AC_DEFINE_UNQUOTED(HTTPD_ROOT, "${ap_prefix}", [Root directory of the Apache install area]) APR_EXPAND_VAR(ap_sysconfdir, $sysconfdir) -AC_DEFINE_UNQUOTED(SERVER_CONFIG_FILE, "${ap_sysconfdir}/${progname}.conf", +APR_PATH_RELATIVE(rel_sysconfdir, $ap_sysconfdir, $prefix) +AC_DEFINE_UNQUOTED(SERVER_CONFIG_FILE, "${rel_sysconfdir}/${progname}.conf", [Location of the config file, relative to the Apache root directory]) AC_DEFINE_UNQUOTED(APACHE_MPM_DIR, "$MPM_DIR", [Location of the source for the current MPM])