From 1fd0f96b49b6a7f54834610508a941fa78a4241d Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Wed, 19 Feb 2014 12:50:57 +0100 Subject: [PATCH] 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). --- src/runmodes.c | 8 ++++++++ 1 file changed, 8 insertions(+) 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 }