diff --git a/configure b/configure index bf997a51f..807e28c98 100755 --- a/configure +++ b/configure @@ -4055,7 +4055,7 @@ esac # are we on MinGW? if uname -s 2>&1 | grep MINGW32 >/dev/null; then on_mingw="yes" else - if echo $target | grep mingw32 >/dev/null; then on_mingw="yes" + if echo $host $target | grep mingw32 >/dev/null; then on_mingw="yes" else on_mingw="no"; fi fi diff --git a/configure.ac b/configure.ac index a007e8d34..b0ad763c9 100644 --- a/configure.ac +++ b/configure.ac @@ -108,7 +108,7 @@ esac # are we on MinGW? if uname -s 2>&1 | grep MINGW32 >/dev/null; then on_mingw="yes" else - if echo $target | grep mingw32 >/dev/null; then on_mingw="yes" + if echo $host $target | grep mingw32 >/dev/null; then on_mingw="yes" else on_mingw="no"; fi fi diff --git a/doc/Changelog b/doc/Changelog index d8b35e9cb..3edb17d1d 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -1,5 +1,6 @@ 5 July 2016: Wouter - Fix dynamic link of anchor-update.exe on windows. + - Fix detect of mingw for MXE package build. 4 July 2016: Wouter - For #787: prefer-ip6 option for unbound.conf prefers to send