Check $host rather than $build when deciding native Win32

The host triplet describes the machine the program will run on while the
build triplet describes the machine the program is being built on. The
determination of native Win32 should be based on where pkg-config is
going to be running. This makes pkg-config cross-compiled for windows
work as if it was built on windows.
This commit is contained in:
Dan Nicholson 2013-03-21 02:14:08 +01:00
parent 4ccdb947dd
commit df1ac943d4

View file

@ -138,7 +138,7 @@ fi
AC_SUBST(WARN_CFLAGS)
AC_MSG_CHECKING([for Win32])
case "$build" in
case "$host" in
*-*-mingw*)
native_win32=yes
;;