If MinGW includes Busybox, it could help to have an "sh", runned from a normal cmd.exe with the tools required to run "./configure" and then continue with mingw's make, with a very low footprint. It contains several downsized normal linux command line applications used in ./configure.
I required to install a full MSYS2 just for this and use pacman to continue install all things manually.