Karsten Hopp 703515
To: vim_dev@googlegroups.com
Karsten Hopp 703515
Subject: Patch 7.4.093
Karsten Hopp 703515
Fcc: outbox
Karsten Hopp 703515
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 703515
Mime-Version: 1.0
Karsten Hopp 703515
Content-Type: text/plain; charset=UTF-8
Karsten Hopp 703515
Content-Transfer-Encoding: 8bit
Karsten Hopp 703515
------------
Karsten Hopp 703515
Karsten Hopp 703515
Patch 7.4.093
Karsten Hopp 703515
Problem:    Configure can't use LuaJIT on ubuntu 12.04.
Karsten Hopp 703515
Solution:   Adjust the configure regexp that locates the version number.
Karsten Hopp 703515
	    (Charles Strahan)
Karsten Hopp 703515
Files:	    src/configure.in, src/auto/configure
Karsten Hopp 703515
Karsten Hopp 703515
Karsten Hopp 703515
*** ../vim-7.4.092/src/configure.in	2013-11-04 04:57:46.000000000 +0100
Karsten Hopp 703515
--- src/configure.in	2013-11-17 20:12:04.000000000 +0100
Karsten Hopp 703515
***************
Karsten Hopp 703515
*** 496,502 ****
Karsten Hopp 703515
        if test "X$vi_cv_path_luajit" != "X"; then
Karsten Hopp 703515
  	dnl -- find LuaJIT version
Karsten Hopp 703515
  	AC_CACHE_CHECK(LuaJIT version, vi_cv_version_luajit,
Karsten Hopp 703515
! 	[ vi_cv_version_luajit=`${vi_cv_path_luajit} -v | sed 's/LuaJIT \([[0-9.]]*\)\.[[0-9]] .*/\1/'` ])
Karsten Hopp 703515
  	AC_CACHE_CHECK(Lua version of LuaJIT, vi_cv_version_lua_luajit,
Karsten Hopp 703515
  	[ vi_cv_version_lua_luajit=`${vi_cv_path_luajit} -e "print(_VERSION)" | sed 's/.* //'` ])
Karsten Hopp 703515
  	vi_cv_path_lua="$vi_cv_path_luajit"
Karsten Hopp 703515
--- 496,502 ----
Karsten Hopp 703515
        if test "X$vi_cv_path_luajit" != "X"; then
Karsten Hopp 703515
  	dnl -- find LuaJIT version
Karsten Hopp 703515
  	AC_CACHE_CHECK(LuaJIT version, vi_cv_version_luajit,
Karsten Hopp 703515
! 	[ vi_cv_version_luajit=`${vi_cv_path_luajit} -v 2>&1 | sed 's/LuaJIT \([[0-9.]]*\)\.[[0-9]]\(-[[a-z0-9]]\+\)\? .*/\1/'` ])
Karsten Hopp 703515
  	AC_CACHE_CHECK(Lua version of LuaJIT, vi_cv_version_lua_luajit,
Karsten Hopp 703515
  	[ vi_cv_version_lua_luajit=`${vi_cv_path_luajit} -e "print(_VERSION)" | sed 's/.* //'` ])
Karsten Hopp 703515
  	vi_cv_path_lua="$vi_cv_path_luajit"
Karsten Hopp 703515
*** ../vim-7.4.092/src/auto/configure	2013-11-04 04:57:46.000000000 +0100
Karsten Hopp 703515
--- src/auto/configure	2013-11-17 20:13:30.000000000 +0100
Karsten Hopp 703515
***************
Karsten Hopp 703515
*** 4743,4749 ****
Karsten Hopp 703515
  if test "${vi_cv_version_luajit+set}" = set; then :
Karsten Hopp 703515
    $as_echo_n "(cached) " >&6
Karsten Hopp 703515
  else
Karsten Hopp 703515
!    vi_cv_version_luajit=`${vi_cv_path_luajit} -v | sed 's/LuaJIT \([0-9.]*\)\.[0-9] .*/\1/'`
Karsten Hopp 703515
  fi
Karsten Hopp 703515
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_version_luajit" >&5
Karsten Hopp 703515
  $as_echo "$vi_cv_version_luajit" >&6; }
Karsten Hopp 703515
--- 4743,4749 ----
Karsten Hopp 703515
  if test "${vi_cv_version_luajit+set}" = set; then :
Karsten Hopp 703515
    $as_echo_n "(cached) " >&6
Karsten Hopp 703515
  else
Karsten Hopp 703515
!    vi_cv_version_luajit=`${vi_cv_path_luajit} -v 2>&1 | sed 's/LuaJIT \([0-9.]*\)\.[0-9]\(-[a-z0-9]\+\)\? .*/\1/'`
Karsten Hopp 703515
  fi
Karsten Hopp 703515
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_version_luajit" >&5
Karsten Hopp 703515
  $as_echo "$vi_cv_version_luajit" >&6; }
Karsten Hopp 703515
*** ../vim-7.4.092/src/version.c	2013-11-14 03:54:02.000000000 +0100
Karsten Hopp 703515
--- src/version.c	2013-11-17 20:13:43.000000000 +0100
Karsten Hopp 703515
***************
Karsten Hopp 703515
*** 740,741 ****
Karsten Hopp 703515
--- 740,743 ----
Karsten Hopp 703515
  {   /* Add new patch number below this line */
Karsten Hopp 703515
+ /**/
Karsten Hopp 703515
+     93,
Karsten Hopp 703515
  /**/
Karsten Hopp 703515
Karsten Hopp 703515
-- 
Karsten Hopp 703515
"Beware of bugs in the above code; I have only proved
Karsten Hopp 703515
it correct, not tried it." -- Donald Knuth
Karsten Hopp 703515
Karsten Hopp 703515
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 703515
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 703515
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp 703515
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///