1 --- Makefile.in.orig 2013-07-15 14:21:05.208308731 +0400
2 +++ Makefile.in 2013-07-15 14:24:56.873283315 +0400
5 # Create apr-config script suitable for the install tree
6 apr-config.out: $(APR_CONFIG)
7 - sed 's,^\(location=\).*$$,\1installed,' < $(APR_CONFIG) > $@
8 + sed -e 's,^\(location=\).*$$,\1installed,' \
9 + -e '/^CC=/s,/.*/,,' \
10 + -e '/^CPP=/s,/.*/,,' \
11 + -e '/^APR_SOURCE_DIR=/s,/.*",/usr/apr",' \
12 + -e '/^APR_BUILD_DIR=/s,/.*",/usr/apr",' \
13 + < $(APR_CONFIG) > $@
15 # Create apr_rules.mk suitable for the install tree
16 build/apr_rules.out: build/apr_rules.mk
17 - sed -e 's,^\(apr_build.*=\).*$$,\1$(installbuilddir),' -e 's,^\(top_build.*=\).*$$,\1$(installbuilddir),' < build/apr_rules.mk > $@
18 + sed -e 's,^\(apr_build.*=\).*$$,\1$(installbuilddir),' -e 's,^\(top_build.*=\).*$$,\1$(installbuilddir),' \
19 + -e '/^CC=/s,/.*/,,' \
20 + -e '/^MKDEP = /s,/.*/,,' \
21 + < build/apr_rules.mk > $@
24 $(APR_MKDIR) $(DESTDIR)$(libdir) $(DESTDIR)$(bindir) $(DESTDIR)$(installbuilddir) \
26 $(INSTALL_DATA) apr.exp $(DESTDIR)$(libdir)/apr.exp
27 $(INSTALL_DATA) apr.pc $(DESTDIR)$(libdir)/pkgconfig/$(APR_PCFILE)
28 for f in libtool shlibtool; do \
29 - if test -f $${f}; then $(INSTALL) -m 755 $${f} $(DESTDIR)$(installbuilddir); fi; \
30 + if test -f $${f}; then \
31 + sed -e '/^LTCC=/s,/.*/,,' \
32 + -e '/^CC=/s,/.*/,,' \
33 + < $${f} > $${f}.out; \
34 + $(INSTALL) -m 755 $${f}.out $(DESTDIR)$(installbuilddir)/$${f}; \
38 $(INSTALL) -m 755 $(top_srcdir)/build/mkdir.sh $(DESTDIR)$(installbuilddir)
39 for f in make_exports.awk make_var_export.awk; do \