From 5fc6887c0116c71d6bd305f317e7f59f2ff543d7 Mon Sep 17 00:00:00 2001 From: fyodor Date: Sat, 16 Jun 2012 19:44:25 +0000 Subject: [PATCH] Regenerate configure. This regenerated version seems to include more of the Lua 5.2 changes than appear in trunk --- configure | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/configure b/configure index a5cfbe0ec..2d0ee75f5 100755 --- a/configure +++ b/configure @@ -6854,6 +6854,46 @@ if test "x$ac_cv_lib_lua_lua_yieldk" = xyes; then : have_lua=yes; LIBLUA_LIBS="-llua"; CPPFLAGS="-I/usr/include/lua $CPPFLAGS"; break fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua_yieldk in -llua52" >&5 +$as_echo_n "checking for lua_yieldk in -llua52... " >&6; } +if ${ac_cv_lib_lua52_lua_yieldk+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-llua52 -lm $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char lua_yieldk (); +int +main () +{ +return lua_yieldk (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_lua52_lua_yieldk=yes +else + ac_cv_lib_lua52_lua_yieldk=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_lua52_lua_yieldk" >&5 +$as_echo "$ac_cv_lib_lua52_lua_yieldk" >&6; } +if test "x$ac_cv_lib_lua52_lua_yieldk" = xyes; then : + have_lua=yes; LIBLUA_LIBS="-llua52"; CPPFLAGS="-I/usr/include/lua52 $CPPFLAGS"; break +fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua_yieldk in -llua5.2" >&5 $as_echo_n "checking for lua_yieldk in -llua5.2... " >&6; } if ${ac_cv_lib_lua5_2_lua_yieldk+:} false; then :