I'm trying to build libpsl from GutHub sources. Its requires an autoreconf. Autotools is failing with:
# Try to reconfigure. Autotools is so broken...
libtoolize --force && aclocal && autoheader && autoreconf --force --install
...
libtoolize: copying file 'm4/ltversion.m4'
libtoolize: copying file 'm4/lt~obsolete.m4'
configure.ac:62: error: possibly undefined macro: AC_MSG_ERROR
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
configure.ac:68: error: possibly undefined macro: AC_MSG_CHECKING
configure.ac:70: error: possibly undefined macro: AC_MSG_RESULT
configure.ac:87: error: possibly undefined macro: AC_LINK_IFELSE
configure.ac:88: error: possibly undefined macro: AC_LANG_PROGRAM
configure.ac:222: error: possibly undefined macro: AC_SEARCH_LIBS
...
I found Possibly undefined macro: AC_MSG_ERROR and AS_IF and AC_MSG_ERROR: error: possibly undefined macro, but the guesses are not solving my problem. I've spent about the last 4 hours trying the guesses.
I would like to stop guessing and troubleshoot the problem. The issue I am having is, I cannot find information or procedures on troubleshooting Autotools problems. Confer, "troubleshoot" autoconf site:gnu.org.
The best I have come up with is running the commands with -v, but I don't see an attempt to copy general.m4. If I am not mistaken, general.m4 provides AC_MSG_ERROR so I should see it accessed. So my procedures have obvious gaps or defects. And the files are present:
$ find /usr/local -name general.m4
/usr/local/share/autoconf/autoconf/general.m4
/usr/local/share/autoconf/autotest/general.m4
How does one troubleshoot a Possibly undefined macro: AC_MSG_ERROR problem with Autotools?
libtoolize,autoheader, andaclocal. If the project is not already a libtool project then converting it to one (withlibtoolize) may be more work than you wanted or needed. For their part,autoheaderandaclocalshould be run byautoreconfanyway, so it is redundant to run them separately. - John Bollinger