Skip to content

Commit 1271543

Browse files
committed
configure: check for Lua posix module
Problem: The flux-core configure will pass all checks when the Lua posix module is not available, but subsquently `make check` will fail. While strictly not a build requirement, it would reduce user confusion if configure ensured presence of this required Lua module. Add a check for the Lua posix module in configure.
1 parent e6ca1cd commit 1271543

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

configure.ac

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -390,6 +390,13 @@ AM_CONDITIONAL([ENABLE_PYLINT], [test "x$PYLINT" = "xpylint"])
390390
AX_PROG_LUA([5.1],[5.5])
391391
AX_LUA_HEADERS
392392
AX_LUA_LIBS
393+
AC_MSG_CHECKING([for luaposix])
394+
if $LUA -l posix -e ''; then
395+
AC_MSG_RESULT([yes])
396+
else
397+
AC_MSG_RESULT([no])
398+
AC_MSG_FAILURE([Could not find required Lua posix module])
399+
fi
393400
X_AC_ZEROMQ
394401
X_AC_JANSSON
395402
PKG_CHECK_MODULES([LIBSYSTEMD], [libsystemd >= 0.23],

0 commit comments

Comments
 (0)