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

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