Karsten Hopp a37a4c
To: vim_dev@googlegroups.com
Karsten Hopp a37a4c
Subject: Patch 7.3.897
Karsten Hopp a37a4c
Fcc: outbox
Karsten Hopp a37a4c
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp a37a4c
Mime-Version: 1.0
Karsten Hopp a37a4c
Content-Type: text/plain; charset=UTF-8
Karsten Hopp a37a4c
Content-Transfer-Encoding: 8bit
Karsten Hopp a37a4c
------------
Karsten Hopp a37a4c
Karsten Hopp a37a4c
Patch 7.3.897
Karsten Hopp a37a4c
Problem:    Configure doesn't always find the shared library.
Karsten Hopp a37a4c
Solution:   Change the configure script. (Ken Takata)
Karsten Hopp a37a4c
Files:	    src/configure.in, src/auto/configure
Karsten Hopp a37a4c
Karsten Hopp a37a4c
Karsten Hopp a37a4c
*** ../vim-7.3.896/src/configure.in	2013-02-26 14:56:24.000000000 +0100
Karsten Hopp a37a4c
--- src/configure.in	2013-04-15 14:28:02.000000000 +0200
Karsten Hopp a37a4c
***************
Karsten Hopp a37a4c
*** 494,510 ****
Karsten Hopp a37a4c
        if test -f "${vi_cv_path_lua_pfx}/bin/cyglua-${vi_cv_version_lua}.dll"; then
Karsten Hopp a37a4c
  	vi_cv_dll_name_lua="cyglua-${vi_cv_version_lua}.dll"
Karsten Hopp a37a4c
        else
Karsten Hopp a37a4c
! 	dnl Determine the SONAME for the current version, but fallback to
Karsten Hopp a37a4c
! 	dnl liblua${vi_cv_version_lua}.so if no SONAME-versioned file is found.
Karsten Hopp a37a4c
! 	for LUA_SOVER in "${vi_cv_version_lua}.so" ".so.${vi_cv_version_lua}"; do
Karsten Hopp a37a4c
! 	  for i in 0 1 2 3 4 5 6 7 8 9; do
Karsten Hopp a37a4c
! 	    if test -f "${vi_cv_path_lua_pfx}/lib/liblua${LUA_SOVER}.$i"; then
Karsten Hopp a37a4c
! 	      LUA_SONAME=".$i"
Karsten Hopp a37a4c
! 	      break
Karsten Hopp a37a4c
! 	    fi
Karsten Hopp a37a4c
  	  done
Karsten Hopp a37a4c
- 	  vi_cv_dll_name_lua="liblua${LUA_SOVER}$LUA_SONAME"
Karsten Hopp a37a4c
  	done
Karsten Hopp a37a4c
        fi
Karsten Hopp a37a4c
        AC_DEFINE(DYNAMIC_LUA)
Karsten Hopp a37a4c
        LUA_LIBS=""
Karsten Hopp a37a4c
--- 494,519 ----
Karsten Hopp a37a4c
        if test -f "${vi_cv_path_lua_pfx}/bin/cyglua-${vi_cv_version_lua}.dll"; then
Karsten Hopp a37a4c
  	vi_cv_dll_name_lua="cyglua-${vi_cv_version_lua}.dll"
Karsten Hopp a37a4c
        else
Karsten Hopp a37a4c
! 	multiarch=`dpkg-architecture -qDEB_HOST_MULTIARCH 2> /dev/null`
Karsten Hopp a37a4c
! 	if test "X$multiarch" != "X"; then
Karsten Hopp a37a4c
! 	  lib_multiarch="lib/${multiarch}"
Karsten Hopp a37a4c
! 	fi
Karsten Hopp a37a4c
! 	dnl Determine the sover for the current version, but fallback to
Karsten Hopp a37a4c
! 	dnl liblua${vi_cv_version_lua}.so if no sover-versioned file is found.
Karsten Hopp a37a4c
! 	for subdir in "${lib_multiarch}" lib64 lib; do
Karsten Hopp a37a4c
! 	  if test -z "$subdir"; then
Karsten Hopp a37a4c
! 	    continue
Karsten Hopp a37a4c
! 	  fi
Karsten Hopp a37a4c
! 	  for sover in "${vi_cv_version_lua}.so" "-${vi_cv_version_lua}.so" ".so.${vi_cv_version_lua}"; do
Karsten Hopp a37a4c
! 	    for i in .0 .1 .2 .3 .4 .5 .6 .7 .8 .9 ""; do
Karsten Hopp a37a4c
! 	      if test -f "${vi_cv_path_lua_pfx}/${subdir}/liblua${sover}$i"; then
Karsten Hopp a37a4c
! 		sover2="$i"
Karsten Hopp a37a4c
! 		break 3
Karsten Hopp a37a4c
! 	      fi
Karsten Hopp a37a4c
! 	    done
Karsten Hopp a37a4c
  	  done
Karsten Hopp a37a4c
  	done
Karsten Hopp a37a4c
+ 	vi_cv_dll_name_lua="liblua${sover}$sover2"
Karsten Hopp a37a4c
        fi
Karsten Hopp a37a4c
        AC_DEFINE(DYNAMIC_LUA)
Karsten Hopp a37a4c
        LUA_LIBS=""
Karsten Hopp a37a4c
*** ../vim-7.3.896/src/auto/configure	2013-02-26 14:56:24.000000000 +0100
Karsten Hopp a37a4c
--- src/auto/configure	2013-04-15 14:28:06.000000000 +0200
Karsten Hopp a37a4c
***************
Karsten Hopp a37a4c
*** 4737,4751 ****
Karsten Hopp a37a4c
        if test -f "${vi_cv_path_lua_pfx}/bin/cyglua-${vi_cv_version_lua}.dll"; then
Karsten Hopp a37a4c
  	vi_cv_dll_name_lua="cyglua-${vi_cv_version_lua}.dll"
Karsten Hopp a37a4c
        else
Karsten Hopp a37a4c
! 			for LUA_SOVER in "${vi_cv_version_lua}.so" ".so.${vi_cv_version_lua}"; do
Karsten Hopp a37a4c
! 	  for i in 0 1 2 3 4 5 6 7 8 9; do
Karsten Hopp a37a4c
! 	    if test -f "${vi_cv_path_lua_pfx}/lib/liblua${LUA_SOVER}.$i"; then
Karsten Hopp a37a4c
! 	      LUA_SONAME=".$i"
Karsten Hopp a37a4c
! 	      break
Karsten Hopp a37a4c
! 	    fi
Karsten Hopp a37a4c
  	  done
Karsten Hopp a37a4c
- 	  vi_cv_dll_name_lua="liblua${LUA_SOVER}$LUA_SONAME"
Karsten Hopp a37a4c
  	done
Karsten Hopp a37a4c
        fi
Karsten Hopp a37a4c
        $as_echo "#define DYNAMIC_LUA 1" >>confdefs.h
Karsten Hopp a37a4c
  
Karsten Hopp a37a4c
--- 4737,4760 ----
Karsten Hopp a37a4c
        if test -f "${vi_cv_path_lua_pfx}/bin/cyglua-${vi_cv_version_lua}.dll"; then
Karsten Hopp a37a4c
  	vi_cv_dll_name_lua="cyglua-${vi_cv_version_lua}.dll"
Karsten Hopp a37a4c
        else
Karsten Hopp a37a4c
! 	multiarch=`dpkg-architecture -qDEB_HOST_MULTIARCH 2> /dev/null`
Karsten Hopp a37a4c
! 	if test "X$multiarch" != "X"; then
Karsten Hopp a37a4c
! 	  lib_multiarch="lib/${multiarch}"
Karsten Hopp a37a4c
! 	fi
Karsten Hopp a37a4c
! 			for subdir in "${lib_multiarch}" lib64 lib; do
Karsten Hopp a37a4c
! 	  if test -z "$subdir"; then
Karsten Hopp a37a4c
! 	    continue
Karsten Hopp a37a4c
! 	  fi
Karsten Hopp a37a4c
! 	  for sover in "${vi_cv_version_lua}.so" "-${vi_cv_version_lua}.so" ".so.${vi_cv_version_lua}"; do
Karsten Hopp a37a4c
! 	    for i in .0 .1 .2 .3 .4 .5 .6 .7 .8 .9 ""; do
Karsten Hopp a37a4c
! 	      if test -f "${vi_cv_path_lua_pfx}/${subdir}/liblua${sover}$i"; then
Karsten Hopp a37a4c
! 		sover2="$i"
Karsten Hopp a37a4c
! 		break 3
Karsten Hopp a37a4c
! 	      fi
Karsten Hopp a37a4c
! 	    done
Karsten Hopp a37a4c
  	  done
Karsten Hopp a37a4c
  	done
Karsten Hopp a37a4c
+ 	vi_cv_dll_name_lua="liblua${sover}$sover2"
Karsten Hopp a37a4c
        fi
Karsten Hopp a37a4c
        $as_echo "#define DYNAMIC_LUA 1" >>confdefs.h
Karsten Hopp a37a4c
  
Karsten Hopp a37a4c
*** ../vim-7.3.896/src/version.c	2013-04-15 13:49:17.000000000 +0200
Karsten Hopp a37a4c
--- src/version.c	2013-04-15 14:43:52.000000000 +0200
Karsten Hopp a37a4c
***************
Karsten Hopp a37a4c
*** 730,731 ****
Karsten Hopp a37a4c
--- 730,733 ----
Karsten Hopp a37a4c
  {   /* Add new patch number below this line */
Karsten Hopp a37a4c
+ /**/
Karsten Hopp a37a4c
+     897,
Karsten Hopp a37a4c
  /**/
Karsten Hopp a37a4c
Karsten Hopp a37a4c
-- 
Karsten Hopp a37a4c
If Microsoft would build a car...
Karsten Hopp a37a4c
... the oil, water temperature, and alternator warning lights would
Karsten Hopp a37a4c
all be replaced by a single "General Protection Fault" warning light.
Karsten Hopp a37a4c
Karsten Hopp a37a4c
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp a37a4c
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp a37a4c
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp a37a4c
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///