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

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