After installing MSys DTK, it's recommended to install the latest autotools packages.
The "latest" packages from the MinGW website are also outdated. So it's preferable to rebuild them yourself.
Installing m4
M4 must be built using msysDVLPR. It will not work if you build it using your normal MinGW environment!
M4 needs to be patched to run properly under MSYS. The change involves consuming carriage returns that might exist in frozen files created in text-mode. Get the patch here.
Run the following in an msysDVLPR shell:
tar xfvj m4-1.4.12.tar.bz2 patch -p0 < ../m4-1.4.12-MSYS.diff cd m4-1.4.12 ./configure make cp src/m4.exe /c/msys/bin/m4.exe
Installing autoconf
Note: If you experience an endlessly recursive make, try using an older version of make.exe like 3.79.
If you followed this wiki, you should be able to just rename your existing c:\msys\bin\make.exe to c:\msys\bin\make.exe.bak, and use the backup c:\msys\bin\make-3.79.exe by renaming it to c:\msys\bin\make.exe Don't forget to switch them back after these packages!!!