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

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