Charles Strahan wrote:
> I came up against a couple problems compiling the latest vim source against
> the version of LuaJIT that Ubuntu 12.04 officially supports (2.0.0-beta9);
> a regexp in the autoconf file needs some tweaking to support the "-beta9"
> portion of version string.
>
> I've attached the patch, and reproduced it below:
>
> diff --git a/src/configure.in b/src/configure.in
> index 8f0dce4..83d0ea8 100644
> --- a/src/configure.in
> +++ b/src/configure.in2
> @@ -496,7 +496,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 | sed 's/LuaJIT
> \([[0-9.]]*\)\.[[0-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"
Thanks, I'll include it.
> The other problem I had: autoconf attempts to find luajit on the path, but
> the Ubuntu package places the binary at /usr/bin/luajit-2.0.0-beta9; that
> was easy enough to fix with symlink (sudo ln -sv
> /usr/bin/luajit-2.0.0-beta9 /usr/bin/luajit).
Let's call this a Ubuntu bug.
> Let me know if there's anything else I can do. Thanks!
>
> -Charles
--
Any resemblance between the above views and those of my employer, my terminal,
or the view out my window are purely coincidental. Any resemblance between
the above and my own views is non-deterministic. The question of the
existence of views in the absence of anyone to hold them is left as an
exercise for the reader. The question of the existence of the reader is left
as an exercise for the second god coefficient. (A discussion of
non-orthogonal, non-integral polytheism is beyond the scope of this article.)
(Ralph Jennings)
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.