--- a/tools/build/src/engine/build.sh 2015-07-07 09:46:25.813659600 +0300 +++ b/tools/build/src/engine/build.sh 2015-07-07 09:47:50.111229000 +0300 @@ -58,11 +58,24 @@ test `uname` = $* fi } + +test_msystem () +{ + if [ -n $MSYSTEM ]; then + test "$MSYSTEM" = "$*" + fi +} # Try and guess the toolset to bootstrap the build with... Guess_Toolset () { if test_uname Darwin ; then BOOST_JAM_TOOLSET=darwin + elif test_msystem MINGW32 ; then + BOOST_JAM_TOOLSET=gcc + BOOST_JAM_TOOLSET_ROOT=/mingw32/ + elif test_msystem MINGW64 ; then + BOOST_JAM_TOOLSET=gcc + BOOST_JAM_TOOLSET_ROOT=/mingw64/ elif test_uname IRIX ; then BOOST_JAM_TOOLSET=mipspro elif test_uname IRIX64 ; then BOOST_JAM_TOOLSET=mipspro elif test_uname OSF1 ; then BOOST_JAM_TOOLSET=tru64cxx