fix one prefix in Makefile.am
configure.ac: reorder tests
update m4 scripts from autoconf-archive

and add it as a new step to release.sh
ax_lua is not updated yet, it's changed too much