summaryrefslogtreecommitdiff
path: root/src/auto
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-04-19 17:46:53 +0200
committerBram Moolenaar <Bram@vim.org>2020-04-19 17:46:53 +0200
commitf49e5640821d8ef752fb50d99edcf40bb62a4d4d (patch)
tree4aaa93000ae30bae32bd7823de49a319798843b4 /src/auto
parent7e0868efcf094f2cc59fa4e18af3a8dc7aedd64f (diff)
downloadvim-git-f49e5640821d8ef752fb50d99edcf40bb62a4d4d.tar.gz
patch 8.2.0603: configure does not detect moonjitv8.2.0603
Problem: Configure does not detect moonjit. Solution: Add check for moonjit. (Shlomi Fish, closes #5947)
Diffstat (limited to 'src/auto')
-rwxr-xr-xsrc/auto/configure24
1 files changed, 23 insertions, 1 deletions
diff --git a/src/auto/configure b/src/auto/configure
index e72cf70cd..b6d4bf975 100755
--- a/src/auto/configure
+++ b/src/auto/configure
@@ -5480,7 +5480,29 @@ $as_echo "yes" >&6; }
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
- vi_cv_path_lua_pfx=
+
+ # Detect moonjit:
+ # https://groups.google.com/forum/#!topic/vim_use/O0vek60WuTk
+ lua_suf=/moonjit-2.3
+ inc_path="$vi_cv_path_lua_pfx/include"
+ for dir in "$inc_path"/moonjit-0-9* ; do
+ if test -d "$dir" ; then
+ lua_suf=`basename '$dir'`
+ lua_suf="/$lua_suf"
+ break
+ fi
+ done
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking if lua.h can be found in $inc_path$lua_suf" >&5
+$as_echo_n "checking if lua.h can be found in $inc_path$lua_suf... " >&6; }
+ if test -f "$inc_path$lua_suf/lua.h"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+ LUA_INC=$lua_suf
+ else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+ vi_cv_path_lua_pfx=
+ fi
fi
fi
fi