autotools addition

Added full autotools support except missing docs generation (detection of lyx and hevea is not functional but in place for future extension trough configure.ac checks)