Sync ax_lua.m4 with autoconf-archive

This merges changes that came in in the meantime.