From: Victor Julien Date: Wed, 19 Feb 2014 11:50:57 +0000 (+0100) Subject: output-lua: display warning if no lua support X-Git-Tag: suricata-2.1beta2~163 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1fd0f96b49b6a7f54834610508a941fa78a4241d;p=thirdparty%2Fsuricata.git output-lua: display warning if no lua support Display a warning that the lua module is not available if we're not compiled against lua(jit). --- diff --git a/src/runmodes.c b/src/runmodes.c index 03f28d7c37..2546384a9c 100644 --- a/src/runmodes.c +++ b/src/runmodes.c @@ -674,6 +674,14 @@ void RunModeInitializeOutputs(void) "recompile with libjansson and its development " "files installed to add eve-log support."); continue; +#endif + } else if (strcmp(output->val, "lua") == 0) { +#ifndef HAVE_LUA + SCLogWarning(SC_ERR_NOT_SUPPORTED, + "lua support not compiled in. Reconfigure/" + "recompile with lua(jit) and its development " + "files installed to add lua support."); + continue; #endif }