File 0019-Update-apxs-to-use-the-correct-path-for-top_builddir.patch of Package ea-apache2

From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Tim Mullin <tim@cpanel.net>
Date: Wed, 1 Apr 2020 12:38:04 -0500
Subject: [PATCH 19/21] Update apxs to use the correct path for top_builddir

---
 support/apxs.in | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/support/apxs.in b/support/apxs.in
index 9c45f07..54de784 100644
--- a/support/apxs.in
+++ b/support/apxs.in
@@ -55,6 +55,7 @@ my $includedir     = $destdir . get_vars("includedir");
 my $CFG_INCLUDEDIR = eval qq("$includedir");
 my $CFG_CC         = get_vars("CC");
 my $libexecdir     = $destdir . get_vars("libexecdir");
+my $libdir         = get_vars("libdir");
 my $CFG_LIBEXECDIR = eval qq("$libexecdir");
 my $sbindir        = get_vars("sbindir");
 my $CFG_SBINDIR    = eval qq("$sbindir");
@@ -286,6 +287,7 @@ if ($opt_g) {
     $data =~ s|%TARGET%|$CFG_TARGET|sg;
     $data =~ s|%PREFIX%|$prefix|sg;
     $data =~ s|%INSTALLBUILDDIR%|$installbuilddir|sg;
+    $data =~ s|%LIBDIR%|$libdir|sg;
 
     my ($mkf, $mods, $src) = ($data =~ m|^(.+)-=#=-\n(.+)-=#=-\n(.+)|s);
 
@@ -598,7 +600,7 @@ __DATA__
 
 builddir=.
 top_srcdir=%PREFIX%
-top_builddir=%PREFIX%
+top_builddir=%LIBDIR%/apache2
 include %INSTALLBUILDDIR%/special.mk
 
 #   the used tools
openSUSE Build Service is sponsored by