more m4 macros and autotools checks