Lua 5.2.4...
Yes, i can't compile vanilla TPT.
From compilation log -
Checking for C library lua5.1... (cached) no
Checking for C library lua-5.1... (cached) no
Checking for C library lua51... (cached) no
Here's a link to the error - https://bpaste.net/ONKQ
UPD : successfully compiled with the --lua52 flag.