summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@users.noreply.github.com>2021-07-05 06:13:20 +0200
committerGitHub <noreply@github.com>2021-07-05 06:13:20 +0200
commit71bae95e4aa78a5f269d7d26171911169e0810b1 (patch)
tree36a3633d7eddd2d549366a5f8883d7868bacea8a /configure.ac
parentMerge pull request #7674 from oerdnj/embedded-deb-packages (diff)
parentdoc: space code block (diff)
downloadfrr-71bae95e4aa78a5f269d7d26171911169e0810b1.tar.xz
frr-71bae95e4aa78a5f269d7d26171911169e0810b1.zip
Merge pull request #8888 from dlqs/lua-call
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac4
1 files changed, 4 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index c04956928..6108a3752 100644
--- a/configure.ac
+++ b/configure.ac
@@ -280,6 +280,8 @@ if test "$enable_clang_coverage" = "yes"; then
])
fi
+AM_CONDITIONAL([SCRIPTING], [test "$enable_scripting" = "yes"])
+
if test "$enable_scripting" = "yes"; then
AX_PROG_LUA([5.3], [5.4], [], [
AC_MSG_ERROR([Lua 5.3 is required to build with Lua support. No other version is supported.])
@@ -290,7 +292,9 @@ if test "$enable_scripting" = "yes"; then
AX_LUA_LIBS([
AC_DEFINE([HAVE_SCRIPTING], [1], [Have support for scripting])
LIBS="$LIBS $LUA_LIB"
+ SCRIPTING=true
], [
+ SCRIPTING=false
AC_MSG_ERROR([Lua 5.3 libraries are required to build with Lua support. No other version is supported.])
])
fi