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

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