Using m4_pattern_allow is definitely wrong.

You are right that these scripts should produce a working a aclocal.m4, and it is essential that you find out why it is not doing in your case.

For example, do you have all the necessary files in the share directory?