]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: report the Lua version in -vv
authorCyril Bonté <cyril.bonte@free.fr>
Sun, 1 Mar 2015 23:08:39 +0000 (00:08 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 2 Mar 2015 12:41:09 +0000 (13:41 +0100)
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.

src/haproxy.c

index c3d6255af154826bf1faf7b2ccbdae6430106bc5..19687b2f2931bbb24ae6cea83a1f71b281742c99 100644 (file)
@@ -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)