@FaheemMitha Only if you really need to. Many tests that one may put into a configure.ac
file will have a macro already made for it, and other things can be done with shell code. Only if there are very complicated things that needs macrofying do you need to write m4
macros.