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
http://hi.baidu.com/sallenbring/blog/item/08a35113edaeab75cb80c479.html