The configure script is currently hard-coded to look for lua 5.3, 5.2, and 5.1. I would suggest adding support for 5.4 and maybe future versions while you're in there. Also, the current lua checks appear to be full of redundancy and could probably be streamlined.