--- configure
+++ configure
@@ -1653,11 +1653,11 @@
 
     { $as_echo "$as_me:${as_lineno-$LINENO}: checking executable extension based on host type" >&5
 $as_echo_n "checking executable extension based on host type... " >&6; }
 
     case "`uname -s`" in
-	*win32* | *WIN32* | *CYGWIN_NT* |*CYGWIN_98*|*CYGWIN_95*)
+	*win32* | *WIN32* | *CYGWIN_NT* |*CYGWIN_98*|*CYGWIN_95* | *MSYS*)
 	    EXEEXT=".exe"
 	;;
 	*)
 	    EXEEXT=""
 	;;

