From: Cyril Bonté Date: Sun, 1 Mar 2015 23:08:39 +0000 (+0100) Subject: MINOR: report the Lua version in -vv X-Git-Tag: v1.6-dev1~80 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=47eb2193d7ef23182ca582a6c2dff6f93e3ef8e5;p=thirdparty%2Fhaproxy.git MINOR: report the Lua version in -vv As of the other libraries used by haproxy, it can be useful to display the Lua version used at compilation time. A new line is added to "haproxy -vv", which shows if Lua is supported by the binary, and with which version it was compiled. --- diff --git a/src/haproxy.c b/src/haproxy.c index c3d6255af1..19687b2f29 100644 --- a/src/haproxy.c +++ b/src/haproxy.c @@ -334,6 +334,12 @@ void display_build_opts() printf("Built without PCRE support (using libc's regex instead)\n"); #endif +#ifdef USE_LUA + printf("Built with Lua version : %s\n", LUA_RELEASE); +#else + printf("Built without Lua support\n"); +#endif + #if defined(CONFIG_HAP_TRANSPARENT) || defined(CONFIG_HAP_CTTPROXY) printf("Built with transparent proxy support using:" #if defined(CONFIG_HAP_CTTPROXY)