[Asterisk-code-review] BuildSystem: Enable Lua in NetBSD. (asterisk[13])
Alexander Traud
asteriskteam at digium.com
Mon Mar 5 08:01:53 CST 2018
Alexander Traud has uploaded this change for review. ( https://gerrit.asterisk.org/8428
Change subject: BuildSystem: Enable Lua in NetBSD.
......................................................................
BuildSystem: Enable Lua in NetBSD.
ASTERISK-27718
Change-Id: I9c8c8880315ee36ab740d7c40153306c0bfd6f71
---
M configure
M configure.ac
2 files changed, 13 insertions(+), 13 deletions(-)
git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/28/8428/1
diff --git a/configure b/configure
index bbd6297..796680a 100755
--- a/configure
+++ b/configure
@@ -28969,7 +28969,7 @@
fi
fi
-# Some distributions (like SuSE) remove the 5.1 suffix.
+# Some distributions (like openSUSE and NetBSD) remove the 5.x suffix.
if test "x${PBX_LUA}" != "x1" -a "${USE_LUA}" != "no"; then
pbxlibdir=""
@@ -28984,9 +28984,9 @@
ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
CFLAGS="${CFLAGS} "
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for luaL_openlib in -llua" >&5
-$as_echo_n "checking for luaL_openlib in -llua... " >&6; }
-if ${ac_cv_lib_lua_luaL_openlib+:} false; then :
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for luaL_newstate in -llua" >&5
+$as_echo_n "checking for luaL_newstate in -llua... " >&6; }
+if ${ac_cv_lib_lua_luaL_newstate+:} false; then :
$as_echo_n "(cached) " >&6
else
ac_check_lib_save_LIBS=$LIBS
@@ -29000,27 +29000,27 @@
#ifdef __cplusplus
extern "C"
#endif
-char luaL_openlib ();
+char luaL_newstate ();
int
main ()
{
-return luaL_openlib ();
+return luaL_newstate ();
;
return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_lua_luaL_openlib=yes
+ ac_cv_lib_lua_luaL_newstate=yes
else
- ac_cv_lib_lua_luaL_openlib=no
+ ac_cv_lib_lua_luaL_newstate=no
fi
rm -f core conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lua_luaL_openlib" >&5
-$as_echo "$ac_cv_lib_lua_luaL_openlib" >&6; }
-if test "x$ac_cv_lib_lua_luaL_openlib" = xyes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lua_luaL_newstate" >&5
+$as_echo "$ac_cv_lib_lua_luaL_newstate" >&6; }
+if test "x$ac_cv_lib_lua_luaL_newstate" = xyes; then :
AST_LUA_FOUND=yes
else
AST_LUA_FOUND=no
diff --git a/configure.ac b/configure.ac
index 71c70d6..445552c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2343,8 +2343,8 @@
fi
fi
-# Some distributions (like SuSE) remove the 5.1 suffix.
-AST_EXT_LIB_CHECK([LUA], [lua], [luaL_openlib], [lua.h], [-lm])
+# Some distributions (like openSUSE and NetBSD) remove the 5.x suffix.
+AST_EXT_LIB_CHECK([LUA], [lua], [luaL_newstate], [lua.h], [-lm])
# Accept either RADIUS client library, their APIs are fully compatible,
# just different header filenames and different SONAMEs
--
To view, visit https://gerrit.asterisk.org/8428
To unsubscribe, visit https://gerrit.asterisk.org/settings
Gerrit-Project: asterisk
Gerrit-Branch: 13
Gerrit-MessageType: newchange
Gerrit-Change-Id: I9c8c8880315ee36ab740d7c40153306c0bfd6f71
Gerrit-Change-Number: 8428
Gerrit-PatchSet: 1
Gerrit-Owner: Alexander Traud <pabstraud at compuserve.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20180305/83fc0241/attachment-0001.html>
More information about the asterisk-code-review
mailing list