Enable utf8 I/O stuff when compiling with MinGW.
diff --git a/configure.ac b/configure.ac
index bda568f..12e2907 100644
--- a/configure.ac
+++ b/configure.ac
@@ -124,16 +124,19 @@
 esac
 AM_CONDITIONAL(FLaC__CPU_PPC_SPE, test "x$abi_spe" = xtrue)
 
+os_is_windows=no
 case "$host" in
 	*-*-cygwin|*mingw*|*emx*)
 		# define this variable for enabling strict exports with libtool; for now, it's supported by Win32 and OS/2
 		LT_NO_UNDEFINED="-no-undefined"
+		os_is_windows=yes
 		;;
 	*)
 		LT_NO_UNDEFINED=
 		;;
 esac
 AC_SUBST(LT_NO_UNDEFINED)
+AM_CONDITIONAL(OS_IS_WINDOWS, test "x$os_is_windows" = xyes)
 
 case "$host" in
 	*-pc-linux-gnu)