Is caused by using CRLFs in Makefile.am. "m4<CR>" != "m4" and thus the libtoolize script will produce an error.
If you're using git, I strongly advise adding a .gitattributes file with the following:
If you're using git, I strongly advise adding a .gitattributes file with the following:
*.sh -crlf *.ac -crlf *.am -crlf
http://pete.akeo.ie/2010/12/that-darn-libtoolize-acconfigmacrodirm4.html