--- config/mkcommon.inc.in	2007-03-13 13:32:10.000000000 +0100
+++ config/mkcommon.inc.in.new	2007-04-18 21:37:26.000000000 +0200
@@ -42,7 +42,7 @@
 # build related stuff (configure)
 LDFLAGS		= @LDFLAGS@
 CFLAGS		= @CFLAGS@ @DEFS@ $(PDFWALL) $(PDFPEDANTIC) $(MYCFLAGS) 
-CPPFLAGS	= @CPPFLAGS@ $(INCLUDES)
+CPPFLAGS	= $(INCLUDES) @CPPFLAGS@ 
 CXXFLAGS	= @CXXFLAGS@
 PDFWALL		= @PDFWALL@
 PDFPEDANTIC	= @PDFPEDANTIC@
@@ -65,7 +65,7 @@
 
 
 # Perl
-PERLLIBDIR	= @PERLLIBDIR@
+PERLLIBDIR	= ${DESTDIR}@PERLLIBDIR@
 PERLINCLUDE	= @PERLINCLUDE@
 PERLLINK	= @PERLLINK@
 PERL		= @PERL@
@@ -79,7 +79,7 @@
 RUBY       	= @RUBY@
 
 TCLINCLUDE	= @TCLINCLUDE@
-TCLPACKAGEDIR	= @TCLPACKAGEDIR@
+TCLPACKAGEDIR	= ${DESTDIR}@TCLPACKAGEDIR@
 TCLBIN		= @TCLBIN@
 
 # PDFlib includes
@@ -145,7 +145,7 @@
 PDULIBLINK	= @PDULIBLINK@
 
 # installation directories (configure)
-prefix          = @prefix@
+prefix          = ${DESTDIR}@prefix@
 exec_prefix     = @exec_prefix@
 libdir          = @libdir@
 includedir      = @includedir@
