-
-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2136 from alerque/autoconf-upstream
Update autoconf macros as merged upstream"
- Loading branch information
Showing
3 changed files
with
90 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#serial 0 | ||
|
||
AC_DEFUN([AX_LUA_MODULE], | ||
[ | ||
AX_PROG_LUA([5.1], [], [], [], [prefer]) | ||
AC_MSG_CHECKING([whether Lua can load module $1]) | ||
AS_IF([$LUA -e 'require("$1")' 2>/dev/null], [ | ||
AC_MSG_RESULT([loaded]) | ||
$3 | ||
], [ | ||
AC_MSG_RESULT([unable to load]) | ||
m4_default([$4], [AC_MSG_ERROR([cannot find Lua library $1 - install from luarocks package $2])]) | ||
]) | ||
]) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters