BUILD: Makefile: Add Lua 5.4 autodetect

This patch is based on:
https://www.mail-archive.com/haproxy@formilux.org/msg39689.html
Thanks to Callum Farmer!

Signed-off-by: Christian Ruppert <idl0r@qasl.de>
(cherry picked from commit 3214b44702d4a4fb7564f8561396fb96d40e3881)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit 28389ee271b78f9fd1dfac659ab14c56d4cce8b7)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit 18873a85e75b3dc3c2728fb84c958dc167604892)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
diff --git a/INSTALL b/INSTALL
index 526bf08..b07d6a6 100644
--- a/INSTALL
+++ b/INSTALL
@@ -318,9 +318,9 @@
 advanced scripting capabilities. Only versions 5.3 and above are supported.
 In order to enable Lua support, please specify "USE_LUA=1" on the command line.
 Some systems provide this library under various names to avoid conflicts with
-previous versions. By default, HAProxy looks for "lua5.3", "lua53", "lua". If
-your system uses a different naming, you may need to set the library name in
-the "LUA_LIB_NAME" variable.
+previous versions. By default, HAProxy looks for "lua5.4", "lua54", "lua5.3",
+"lua53", "lua". If your system uses a different naming, you may need to set the
+library name in the "LUA_LIB_NAME" variable.
 
 If Lua is not provided on your system, it can be very simply built locally. It
 can be downloaded from https://www.lua.org/, extracted and built, for example :