We need to re-generate the configure script, or else we get an error:
configure.ac:15: error: version mismatch. This is Automake 1.16.4,
configure.ac:15: but the definition used by this AM_INIT_AUTOMAKE
configure.ac:15: comes from Automake 1.16.1. You should recreate
configure.ac:15: aclocal.m4 with aclocal and run automake again.
However, running autoreconf -vfi reveals that some of the autoconf
macros are *only* defined in aclocal.m4, and autoreconfiguring
replaces that file and causes the macros to be undefined, giving
errors like:
/home/builder/.termux-build/mate-terminal/src/configure: line 2931: MATE_COMMON_INIT: command not found
/home/builder/.termux-build/mate-terminal/src/configure: line 2932: syntax error near unexpected token `no'
/home/builder/.termux-build/mate-terminal/src/configure: line 2932: `MATE_DEBUG_CHECK(no)'
Lets move all the custom macros from aclocal.m4 to the m4/ directory
to solve that issue.
Fixestermux/termux-packages#11145.