[vim/vim] configure failed with latest LuaJIT (Issue #12896)

22 views
Skip to first unread message

依云

unread,
Aug 23, 2023, 8:56:20 AM8/23/23
to vim/vim, Subscribed

Steps to reproduce

  1. try to build with luajit version 2.1.1692616192
  2. it failed with
checking --with-luajit... yes
checking for luajit... /usr/bin/luajit
checking LuaJIT version... LuaJIT 2.1.1692616192 -- Copyright (C) 2005-2023 Mike Pall. https://luajit.org/
checking Lua version of LuaJIT... 5.1
checking if lua.h can be found in /usr/include/luajit-LuaJIT 2.1.1692616192 -- Copyright (C) 2005-2023 Mike Pall. https://luajit.org/... checking if lua.h can be found in /usr/include... no
checking if lua.h can be found in /usr/include/lua5.1... no
checking if lua.h can be found in /usr/include/moonjit-2.3... no
configure: error: could not configure lua

This is because LuaJIT no longer has a - in its version:

$ luajit -v 2>&1 | sed 's/LuaJIT \([0-9.]*\)\.[0-9]\(-[a-z0-9]*\)* .*/\1/'
LuaJIT 2.1.1692616192 -- Copyright (C) 2005-2023 Mike Pall. https://luajit.org/

Expected behaviour

Success.

Version of Vim

9.0.1757

Environment

Arch Linux

Logs and stack traces

No response


Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/12896@github.com>

Christian Brabandt

unread,
Aug 23, 2023, 1:48:03 PM8/23/23
to vim/vim, Subscribed

so, this one fixes it?

diff --git a/src/auto/configure b/src/auto/configure
index 9fd688819..94f0b6488 100755
--- a/src/auto/configure
+++ b/src/auto/configure
@@ -5435,7 +5435,7 @@ $as_echo_n "checking LuaJIT version... " >&6; }
 if ${vi_cv_version_luajit+:} false; then :
   $as_echo_n "(cached) " >&6
 else
-   vi_cv_version_luajit=`${vi_cv_path_luajit} -v 2>&1 | sed 's/LuaJIT \([0-9.]*\)\.[0-9]\(-[a-z0-9]*\)* .*/\1/'`
+   vi_cv_version_luajit=`${vi_cv_path_luajit} -v 2>&1 | sed 's/LuaJIT \([0-9.]*\)\.[0-9]\(-\?[a-z0-9]*\)* .*/\1/'`
 fi
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_version_luajit" >&5
 $as_echo "$vi_cv_version_luajit" >&6; }
diff --git a/src/configure.ac b/src/configure.ac
index cefd0c3b3..dad839f98 100644
--- a/src/configure.ac
+++ b/src/configure.ac
@@ -638,7 +638,7 @@ if test "$enable_luainterp" = "yes" -o "$enable_luainterp" = "dynamic"; then
       if test "X$vi_cv_path_luajit" != "X"; then
        dnl -- find LuaJIT version
        AC_CACHE_CHECK(LuaJIT version, vi_cv_version_luajit,
-       [ vi_cv_version_luajit=`${vi_cv_path_luajit} -v 2>&1 | sed 's/LuaJIT \([[0-9.]]*\)\.[[0-9]]\(-[[a-z0-9]]*\)* .*/\1/'` ])
+       [ vi_cv_version_luajit=`${vi_cv_path_luajit} -v 2>&1 | sed 's/LuaJIT \([[0-9.]]*\)\.[[0-9]]\(-\?[[a-z0-9]]*\)* .*/\1/'` ])
        AC_CACHE_CHECK(Lua version of LuaJIT, vi_cv_version_lua_luajit,
        [ vi_cv_version_lua_luajit=`${vi_cv_path_luajit} -e "print(_VERSION)" | sed 's/.* //'` ])
        vi_cv_path_lua="$vi_cv_path_luajit"


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/12896/1690382718@github.com>

依云

unread,
Aug 24, 2023, 12:25:59 AM8/24/23
to vim/vim, Subscribed

Yes!


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/12896/1690977456@github.com>

Christian Brabandt

unread,
Aug 24, 2023, 2:17:56 AM8/24/23
to vim/vim, Subscribed

Closed #12896 as completed via d42f95b.


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issue/12896/issue_event/10177292477@github.com>

Reply all
Reply to author
Forward
0 new messages