<p>Jenkins2 <strong>merged</strong> this change.</p><p><a href="https://gerrit.asterisk.org/8429">View Change</a></p><div style="white-space:pre-wrap">Approvals:
Kevin Harwell: Looks good to me, but someone else must approve
Joshua Colp: Looks good to me, approved
Jenkins2: Approved for Submit
</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">BuildSystem: Enable Lua in NetBSD.<br><br>luaL_openlib got removed with Lua 5.2.<br>luaL_newstate is available in all versions.<br><br>ASTERISK-27718<br><br>Change-Id: I9c8c8880315ee36ab740d7c40153306c0bfd6f71<br>---<br>M configure<br>M configure.ac<br>2 files changed, 13 insertions(+), 13 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/configure b/configure<br>index 2456b0c..aa02a2c 100755<br>--- a/configure<br>+++ b/configure<br>@@ -29567,7 +29567,7 @@<br> fi<br> fi<br> <br>-# Some distributions (like SuSE) remove the 5.1 suffix.<br>+# Some distributions (like openSUSE and NetBSD) remove the 5.x suffix.<br> <br> if test "x${PBX_LUA}" != "x1" -a "${USE_LUA}" != "no"; then<br> pbxlibdir=""<br>@@ -29582,9 +29582,9 @@<br> <br> ast_ext_lib_check_save_CFLAGS="${CFLAGS}"<br> CFLAGS="${CFLAGS} "<br>- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for luaL_openlib in -llua" >&5<br>-$as_echo_n "checking for luaL_openlib in -llua... " >&6; }<br>-if ${ac_cv_lib_lua_luaL_openlib+:} false; then :<br>+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for luaL_newstate in -llua" >&5<br>+$as_echo_n "checking for luaL_newstate in -llua... " >&6; }<br>+if ${ac_cv_lib_lua_luaL_newstate+:} false; then :<br> $as_echo_n "(cached) " >&6<br> else<br> ac_check_lib_save_LIBS=$LIBS<br>@@ -29598,27 +29598,27 @@<br> #ifdef __cplusplus<br> extern "C"<br> #endif<br>-char luaL_openlib ();<br>+char luaL_newstate ();<br> int<br> main ()<br> {<br>-return luaL_openlib ();<br>+return luaL_newstate ();<br> ;<br> return 0;<br> }<br> _ACEOF<br> if ac_fn_c_try_link "$LINENO"; then :<br>- ac_cv_lib_lua_luaL_openlib=yes<br>+ ac_cv_lib_lua_luaL_newstate=yes<br> else<br>- ac_cv_lib_lua_luaL_openlib=no<br>+ ac_cv_lib_lua_luaL_newstate=no<br> fi<br> rm -f core conftest.err conftest.$ac_objext \<br> conftest$ac_exeext conftest.$ac_ext<br> LIBS=$ac_check_lib_save_LIBS<br> fi<br>-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lua_luaL_openlib" >&5<br>-$as_echo "$ac_cv_lib_lua_luaL_openlib" >&6; }<br>-if test "x$ac_cv_lib_lua_luaL_openlib" = xyes; then :<br>+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lua_luaL_newstate" >&5<br>+$as_echo "$ac_cv_lib_lua_luaL_newstate" >&6; }<br>+if test "x$ac_cv_lib_lua_luaL_newstate" = xyes; then :<br> AST_LUA_FOUND=yes<br> else<br> AST_LUA_FOUND=no<br>diff --git a/configure.ac b/configure.ac<br>index 571987c..b410c5d 100644<br>--- a/configure.ac<br>+++ b/configure.ac<br>@@ -2389,8 +2389,8 @@<br> fi<br> fi<br> <br>-# Some distributions (like SuSE) remove the 5.1 suffix.<br>-AST_EXT_LIB_CHECK([LUA], [lua], [luaL_openlib], [lua.h], [-lm])<br>+# Some distributions (like openSUSE and NetBSD) remove the 5.x suffix.<br>+AST_EXT_LIB_CHECK([LUA], [lua], [luaL_newstate], [lua.h], [-lm])<br> <br> # Accept either RADIUS client library, their APIs are fully compatible,<br> # just different header filenames and different SONAMEs<br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/8429">change 8429</a>. To unsubscribe, visit <a href="https://gerrit.asterisk.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.asterisk.org/8429"/><meta itemprop="name" content="View Change"/></div></div>
<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 15 </div>
<div style="display:none"> Gerrit-MessageType: merged </div>
<div style="display:none"> Gerrit-Change-Id: I9c8c8880315ee36ab740d7c40153306c0bfd6f71 </div>
<div style="display:none"> Gerrit-Change-Number: 8429 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </div>
<div style="display:none"> Gerrit-Owner: Alexander Traud <pabstraud@compuserve.com> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins2 </div>
<div style="display:none"> Gerrit-Reviewer: Joshua Colp <jcolp@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Kevin Harwell <kharwell@digium.com> </div>