--- /dev/null
+--- ghc-6.6.1/aclocal.m4~ 2008-02-25 02:59:57.000000000 +0200
++++ ghc-6.6.1/aclocal.m4 2008-02-25 09:54:07.863241936 +0200
+@@ -565,16 +565,20 @@
+ dnl
+ AC_DEFUN([FPTOOLS_CHECK_PERL_VERSION],
+ [$PerlCmd -v >conftest.out 2>&1
+- if grep "v5.6" conftest.out >/dev/null 2>&1; then
++ if fgrep "v5.6" conftest.out >/dev/null 2>&1; then
+ :
+ else
+- if grep "v5.8" conftest.out >/dev/null 2>&1; then
++ if fgrep "v5.8" conftest.out >/dev/null 2>&1; then
+ :
+ else
+- if grep "version 6" conftest.out >/dev/null 2>&1; then
++ if fgrep "v5.10" conftest.out >/dev/null 2>&1; then
+ :
+ else
+- AC_MSG_ERROR([your version of perl probably won't work, try upgrading it.])
++ if fgrep "version 6" conftest.out >/dev/null 2>&1; then
++ :
++ else
++ AC_MSG_ERROR([your version of perl probably won't work, try upgrading it.])
++ fi
+ fi
+ fi
+ fi