Created attachment 433764 [details, diff]
The patch calls uses pkg-config directly which calls it for host, not for target as intended. A proposed patch is attached.
The right way to do it is to put PKG_CHECK_MODULES calls for lua in the configure.ac we already provide and not call pkg-config in the Makefile at all.
here is a bumped redis with a configure.ac implementing the suggested way:
Please note: it requires either lua:5.1 (still p.masked) or luajit.