build: Require MinGW-w64 for crossbuilds.

Since dc7504c7fc we require "-municode"
support from cross compilers. Older MinGW32 doesn't support this option.
This commit is contained in:
Józef Kucia 2016-10-05 11:34:07 +02:00
parent 42c1e0c0fb
commit 663f2b4ae1

View File

@ -1,8 +1,7 @@
dnl VKD3D_CHECK_MINGW32_PROG(cc-variable, crosstarget-variable, [value-if-not-found], [path]) dnl VKD3D_CHECK_MINGW32_PROG(cc-variable, crosstarget-variable, [value-if-not-found], [path])
AC_DEFUN([VKD3D_CHECK_MINGW32_PROG], AC_DEFUN([VKD3D_CHECK_MINGW32_PROG],
[AC_SUBST([$2], [$3]) [AC_SUBST([$2], [$3])
vkd3d_mingw_list="m4_foreach([vkd3d_mingw_prefix], [w64-mingw32, pc-mingw32, mingw32, mingw32msvc], vkd3d_mingw_list="m4_foreach([vkd3d_cpu], [i686, i586, i486, i386], [vkd3d_cpu-w64-mingw32-gcc ])"
m4_foreach([vkd3d_cpu], [i686, i586, i486, i386], [vkd3d_cpu-vkd3d_mingw_prefix-gcc ])) mingw32-gcc"
AC_CHECK_PROGS([$1], [$vkd3d_mingw_list], [$3], [$4]) AC_CHECK_PROGS([$1], [$vkd3d_mingw_list], [$3], [$4])
AS_VAR_PUSHDEF([vkd3d_cross_cc], [$1])dnl AS_VAR_PUSHDEF([vkd3d_cross_cc], [$1])dnl
AS_VAR_IF([vkd3d_cross_cc], [$3], AS_VAR_IF([vkd3d_cross_cc], [$3],
@ -21,8 +20,7 @@ AS_VAR_POPDEF([vkd3d_cross_cc])dnl
dnl VKD3D_CHECK_MINGW64_PROG(cc-variable, crosstarget-variable, [value-if-not-found], [path]) dnl VKD3D_CHECK_MINGW64_PROG(cc-variable, crosstarget-variable, [value-if-not-found], [path])
AC_DEFUN([VKD3D_CHECK_MINGW64_PROG], AC_DEFUN([VKD3D_CHECK_MINGW64_PROG],
[AC_SUBST([$2], [$3]) [AC_SUBST([$2], [$3])
vkd3d_mingw_list="m4_foreach([vkd3d_mingw_prefix], [pc-mingw32, w64-mingw32, mingw32msvc], vkd3d_mingw_list="m4_foreach([vkd3d_cpu], [x86_64, amd64], [vkd3d_cpu-w64-mingw32-gcc ])"
m4_foreach([vkd3d_cpu], [x86_64, amd64], [vkd3d_cpu-vkd3d_mingw_prefix-gcc ]))"
AC_CHECK_PROGS([$1], [$vkd3d_mingw_list], [$3], [$4]) AC_CHECK_PROGS([$1], [$vkd3d_mingw_list], [$3], [$4])
AS_VAR_PUSHDEF([vkd3d_cross_cc], [$1])dnl AS_VAR_PUSHDEF([vkd3d_cross_cc], [$1])dnl
AS_VAR_IF([vkd3d_cross_cc], [$3], AS_VAR_IF([vkd3d_cross_cc], [$3],