# HG changeset patch
# User etisserant
# Date 1201885265 -3600
# Node ID b082ffeef254c7231b0dd3d8d8e5c1ecc690f35e
# Parent  03fb0bfccc1fdb5daf3c92b3d1726b0f58296d2e
little fix on arch detection when using mingw32-only compiler from within cygwin's bash

diff -r 03fb0bfccc1f -r b082ffeef254 configure
--- a/configure	Thu Jan 31 15:20:59 2008 +0100
+++ b/configure	Fri Feb 01 18:01:05 2008 +0100
@@ -223,14 +223,19 @@
 	SUB_ARCH_NAME=arm
 fi
 
+# mingw32
+if [ "$A_NAME" = "mingw32" ]; then
+	SUB_ARCH_NAME=mingw32
+fi
+
 if [ "$SUB_ARCH_NAME" = "" ]; then
 	echo "Error: could not detect what architecture this system is running!"
 	echo "Please supply manually instead with \"--arch=foo\""
 	exit -1
 fi
 
-echo "Using OS: ${SUB_OS_NAME}"
-echo "Using architecture: ${SUB_ARCH_NAME}"
+echo "Host OS: ${SUB_OS_NAME}"
+echo "Host arch: ${SUB_ARCH_NAME}"
 
 if [ "$SUB_ARCH_NAME" = "x86_64" -a "$CC" = "gcc" ]; then
 	# Only if we are on x86_64 and using gcc