I’m new to the autotools world, so I was rather helpless when I first looked at M4RI. Say I have patched a file in M4RI. The problem now is figuring out how to configure, build, and test the patched M4RI tree. The solution below was kindly communicated to me by the lead M4RI maintainer Martin Albrecht.
$ hg clone http://bitbucket.org/malb/m4ri $ cd m4ri/ $ autoreconf --install $ ./configure $ make $ make check