Blame SOURCES/lua-5.2.2-configure-linux.patch

1266ef
diff -up lua-5.2.2/configure.ac.linux lua-5.2.2/configure.ac
1266ef
--- lua-5.2.2/configure.ac.linux	2013-05-10 15:42:27.269437631 -0400
1266ef
+++ lua-5.2.2/configure.ac	2013-05-10 15:43:23.530435620 -0400
1266ef
@@ -50,6 +50,7 @@ AC_SUBST(READLINE_LIBS)
1266ef
 case "$host" in
1266ef
   *-mingw*)  use_os=win32  ;;
1266ef
   *-darwin*) use_os=macosx ;;
1266ef
+  *-linux*)  use_os=linux  ;;
1266ef
   *)         use_os=posix  ;;
1266ef
 esac
1266ef
 
1266ef
@@ -62,6 +63,10 @@ if test "x$use_os" == "xwin32"; then
1266ef
 elif test "x$use_os" == "xmacosx"; then
1266ef
   POSIX_DEFS="#define LUA_USE_POSIX"
1266ef
   LUA_DL_DEFS="#define LUA_DL_DYLD"
1266ef
+elif test "x$use_os" == "xlinux"; then
1266ef
+  POSIX_DEFS="#define LUA_USE_LINUX"
1266ef
+  LUA_DL_DEFS="#define LUA_DL_DLOPEN"
1266ef
+  LUA_LIBS="$LUA_LIBS -ldl"
1266ef
 elif test "x$use_os" == "xposix"; then
1266ef
   POSIX_DEFS="#define LUA_USE_POSIX"
1266ef
   LUA_DL_DEFS="#define LUA_DL_DLOPEN"