summaryrefslogtreecommitdiff
path: root/www/apache24/patches/patch-ai
blob: aa8d8a63d5feb2f27467cf37dc95893f82d3ac5f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
$NetBSD: patch-ai,v 1.2 2019/08/15 08:03:39 adam Exp $

--- support/apxs.in.orig	2010-06-22 17:12:44.000000000 +0000
+++ support/apxs.in
@@ -352,8 +352,12 @@ if ($apr_major_version < 2) {
     }
 }
 
-my $libtool = `$apr_config --apr-libtool`;
-chomp($libtool);
+my $libtool = $ENV{'APR_LIBTOOL'};
+unless ($libtool) {
+	$libtool = `@PREFIX@/bin/apr-1-config --installbuilddir`;
+	chomp($libtool);
+	$libtool = "$libtool/libtool";
+}
 
 my $apr_includedir = `$apr_config --includes`;
 chomp($apr_includedir);