--- a/configure.orig	2012-06-30 01:06:41.000000000 +0200
+++ a/configure	2012-06-30 01:09:59.000000000 +0200
@@ -1876,7 +1876,7 @@
 #define HAVE_PERL_DYNALOADER 1
 _ACEOF
 
-        perl_dla=`perl -MExtUtils::Embed -e ldopts`
+        perl_dla=`$perlprog -MExtUtils::Embed -e ldopts`
         ;;
     * )
         rc=no
