added support for autotools