diff options
author | Bram Moolenaar <Bram@vim.org> | 2023-03-31 21:29:00 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2023-03-31 21:29:00 +0100 |
commit | 869113f3765d51fc822a61b2ba53d339797c1231 (patch) | |
tree | 1065e50878d5828e5a12a4b8df649ed49d0ff68b /src/auto/configure | |
parent | 6ac2e4392a9d8b89c8824bf94a9da24a6f07c74f (diff) |
patch 9.0.1433: on some systems the Lua library is not foundv9.0.1433
Problem: On some systems the Lua library is not found.
Solution: Check if a subdirectory for Lua exists. (closes #4475)
Diffstat (limited to 'src/auto/configure')
-rwxr-xr-x | src/auto/configure | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/auto/configure b/src/auto/configure index eddb7216a8..ba5a0744cb 100755 --- a/src/auto/configure +++ b/src/auto/configure @@ -5575,10 +5575,15 @@ $as_echo "no" >&6; } LUA_LIBS="-L${vi_cv_path_lua_pfx}/${lib_multiarch} -lluajit-$vi_cv_version_lua" fi else + if test -d "${vi_cv_path_lua_pfx}/lib/lua$vi_cv_version_lua"; then + LUALIBDIR="lib/lua$vi_cv_version_lua" + else + LUALIBDIR=lib + fi if test "X$LUA_INC" != "X"; then - LUA_LIBS="-L${vi_cv_path_lua_pfx}/lib -llua$vi_cv_version_lua" + LUA_LIBS="-L${vi_cv_path_lua_pfx}/${LUALIBDIR} -llua$vi_cv_version_lua" else - LUA_LIBS="-L${vi_cv_path_lua_pfx}/lib -llua" + LUA_LIBS="-L${vi_cv_path_lua_pfx}/${LUALIBDIR} -llua" fi fi if test "$enable_luainterp" = "dynamic"; then |