configure: When cross-compiling, propagate the target specification to winebuild.
diff --git a/configure.ac b/configure.ac
index a84c822..a266e53 100644
--- a/configure.ac
+++ b/configure.ac
@@ -159,6 +159,10 @@
      AC_MSG_ERROR([could not find Wine tools in $with_wine_tools.])
    fi])
 AC_SUBST(TOOLSDIR,$wine_cv_toolsdir)
+if test "$cross_compiling" = "yes"
+then
+    AC_SUBST(TARGET,"$host_alias")
+fi
 
 AC_PATH_XTRA