--- Makefile.PL.orig	2008-11-14 12:34:13.000000000 +0100
+++ Makefile.PL	2008-11-14 12:39:19.000000000 +0100
@@ -791,7 +791,7 @@
     setup_for_static() unless $USE_APXS;
 
     iedit "$APACHE_SRC/modules/perl/Makefile",
-        "s!^PERL\\s*=.*!PERL=$Config{'perlpath'}!" unless $USE_APACI or $USE_APXS;
+        "BEGIN { require Config; Config->import } s!^PERL\\s*=.*!PERL=\$Config{'perlpath'}!" unless $USE_APACI or $USE_APXS;
 
     for (@callback_hooks) {
         ($k,$v) = ($_,$callback_hooks{$_});