--- doc/Makefile.am.orig	2003-02-24 03:37:03.000000000 +1100
+++ doc/Makefile.am	2014-05-23 09:33:20.000000000 +1000
@@ -4,5 +4,5 @@
 DOC_FILES = html/* ../README ../COPYING ../AUTHORS ../INSTALL ../ChangeLog ../config.log
 
 install-data-local:
-	$(INSTALL) -m 755 -d $(prefix)/doc/libpcre++-$(VERSION)
-	$(INSTALL) -m 644 $(DOC_FILES) $(prefix)/doc/libpcre++-$(VERSION)/
\ No newline at end of file
+	$(INSTALL) -m 755 -d $(DESTDIR)$(datarootdir)/doc/libpcre++-$(VERSION)
+	$(INSTALL) -m 644 $(DOC_FILES) $(DESTDIR)$(datarootdir)/doc/libpcre++-$(VERSION)/
--- examples/Makefile.am.orig	2003-06-27 07:04:35.000000000 +1000
+++ examples/Makefile.am	2014-05-23 08:53:40.000000000 +1000
@@ -10,4 +10,4 @@
 search_demo_SOURCES  = search_demo.cc
 search_demo_LDADD    = $(pcre_linklib)
 
-CXXFLAGS        = -Wall -Wstrict-prototypes -O -g
\ No newline at end of file
+AM_CXXFLAGS        = -Wall -Wstrict-prototypes -O -g
--- libpcre++/Makefile.am.orig	2003-06-25 07:58:52.000000000 +1000
+++ libpcre++/Makefile.am	2014-05-23 08:55:55.000000000 +1000
@@ -5,4 +5,4 @@
 
 
 
-CXXFLAGS             = -Wall -Wstrict-prototypes -O -g
\ No newline at end of file
+AM_CXXFLAGS             = -Wall -Wstrict-prototypes -O -g
--- test/Makefile.am.orig	2003-06-27 23:33:48.000000000 +1000
+++ test/Makefile.am	2014-05-23 08:54:39.000000000 +1000
@@ -4,4 +4,4 @@
 test_SOURCES    = test.cc
 test_LDADD      = $(pcre_linklib)
 
-CXXFLAGS        = -Wall -Wstrict-prototypes -O -g
+AM_CXXFLAGS        = -Wall -Wstrict-prototypes -O -g
