blob: e475da45b1bc7d24d38c6a8284969dd5bce1b023 [file] [edit]
From 9429b0ebb355ace13678f37f560c7a7e6cd412ed Mon Sep 17 00:00:00 2001
From: Weizhong Xia <weizhong@google.com>
Date: Wed, 12 Jan 2022 17:59:18 -0800
Subject: [PATCH] Make httpd relocatable
---
support/apxs.in | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/support/apxs.in b/support/apxs.in
index ad1287f..49f5a61 100644
--- a/support/apxs.in
+++ b/support/apxs.in
@@ -18,6 +18,8 @@
require 5.004;
use strict;
package apxs;
+use File::Basename;
+use Cwd 'abs_path';
##
## Configuration
@@ -25,7 +27,8 @@ package apxs;
my %config_vars = ();
-my $installbuilddir = "@exp_installbuilddir@";
+my $this_path = dirname(dirname(abs_path(__FILE__)));
+my $installbuilddir = "$this_path/build";
get_config_vars("$installbuilddir/config_vars.mk",\%config_vars);
# read the configuration variables once
--
2.34.1.703.g22d0c6ccf7-goog