--- configure.orig	Sun Sep 15 17:27:44 2002
+++ configure	Sun Sep 15 17:28:09 2002
@@ -1224,7 +1224,7 @@
 else
   ${GHC-ghc} --version > conftestghc 2>&1
   cat conftestghc >&5
-  ports_cv_ghc_version=`cat conftestghc | sed -n -e 's/, patchlevel *\([0-9]\)/.\1/;s/.* version \([0-9.]\+\).*/\1/p'`
+  ports_cv_ghc_version=`cat conftestghc | sed -n -e 's/, patchlevel *\([0-9]\)/.\1/;s/.* version \([0-9.][0-9.]*\).*/\1/p'`
   rm -fr conftest*
   if test "$ports_cv_ghc_version" = ""
   then
