I cant build rev 13634 on AlmaLinux 9 because something goes wrong in bootstrap. I didn't try to build since 13586. wxWidgets version is 3.2.6.
libtoolize: putting auxiliary files in '.'.
libtoolize: copying file './ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
libtoolize: copying file 'm4/libtool.m4'
libtoolize: copying file 'm4/ltoptions.m4'
libtoolize: copying file 'm4/ltsugar.m4'
libtoolize: copying file 'm4/ltversion.m4'
libtoolize: copying file 'm4/lt~obsolete.m4'
configure.ac:139: warning: macro 'AM_OPTIONS_WXCONFIG' not found in library
configure.ac:140: warning: macro 'AM_PATH_WXCONFIG' not found in library
configure.ac:26: installing './compile'
configure.ac:7: installing './config.guess'
configure.ac:7: installing './config.sub'
configure.ac:22: installing './install-sh'
configure.ac:22: installing './missing'
src/base/tinyxml/Makefile.am: installing './depcomp'
configure.ac:139: error: possibly undefined macro: AM_OPTIONS_WXCONFIG
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
configure.ac:140: error: possibly undefined macro: AM_PATH_WXCONFIG
I had a similar problem in the past after installing a custom version of libtool.
One quick thing to test : Look for file wxwin.m4 and add that path to ACLOCAL_FLAGS. For example, I have wxwin.m4 in /usr/local/share/aclocal , so I run below command.
ACLOCAL_FLAGS="-I /usr/local/share/aclocal" ./bootstrap
Hope this helps