Adding autotools macros and template.