Blame SOURCES/apr-util-1.2.7-pkgconf.patch

5e0cd6
--- apr-util-1.2.7/Makefile.in.pkgconf
5e0cd6
+++ apr-util-1.2.7/Makefile.in
5e0cd6
@@ -51,7 +51,7 @@
5e0cd6
 
5e0cd6
 # Create apu-config script suitable for the install tree
5e0cd6
 apu-config.out: $(APU_CONFIG)
5e0cd6
-	sed 's,^\(location=\).*$$,\1installed,' < $(APU_CONFIG) > $@
5e0cd6
+	sed 's,^\(location=\).*$$,\1installed,;s,^\(APR_.*_DIR\)=.*,\1="$${libdir}/build",' < $(APU_CONFIG) > $@
5e0cd6
 
5e0cd6
 install: $(TARGETS) install-modules
5e0cd6
 	$(APR_MKDIR) $(DESTDIR)$(includedir) $(DESTDIR)$(libdir)/pkgconfig \
5e0cd6
--- apr-util-1.2.7/apu-config.in.pkgconf
5e0cd6
+++ apr-util-1.2.7/apu-config.in
5e0cd6
@@ -24,9 +24,10 @@
5e0cd6
 prefix="@prefix@"
5e0cd6
 exec_prefix="@exec_prefix@"
5e0cd6
 bindir="@bindir@"
5e0cd6
-libdir="@libdir@"
5e0cd6
 includedir="@includedir@"
5e0cd6
 
5e0cd6
+libdir=`pkg-config --variable=libdir apr-util-@APRUTIL_MAJOR_VERSION@`
5e0cd6
+
5e0cd6
 LIBS="@APRUTIL_EXPORT_LIBS@"
5e0cd6
 INCLUDES="@APRUTIL_INCLUDES@"
5e0cd6
 LDFLAGS="@APRUTIL_LDFLAGS@"