Address Bug #115057: add a --with-suffix option to set the EXE
variable in the Makefiles from the configure script.  Usefil for
Cygwin and Mac OS X builds.
diff --git a/configure.in b/configure.in
index 4dd8e72..c881890 100644
--- a/configure.in
+++ b/configure.in
@@ -193,6 +193,15 @@
 fi
 
 AC_PROG_CC
+AC_SUBST(EXE)
+AC_MSG_CHECKING(for --with-suffix)
+AC_ARG_WITH(suffix, [  --with-suffix=.exe              set executable suffix],[
+	case $withval in
+	no)	EXE=;;
+	yes)	EXE=.exe;;
+	*)	EXE=$withval;;
+	esac])
+AC_MSG_RESULT($EXE)
 
 case $MACHDEP in
 bsdos*)