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