Ticket #581: fix-LUA_LIB-envvar.patch

File fix-LUA_LIB-envvar.patch, 1.1 KB (added by Anthony G. Basile, 13 years ago)

Patch against configure.ac to respect LUA_LIB env var

  • xapian-bindings-1.2.8

    diff -Naur xapian-bindings-1.2.8.orig//configure.ac xapian-bindings-1.2.8/configure.ac
    old new  
    926926    if test -n "$LUA" ; then
    927927      AC_MSG_RESULT([$lua_version])
    928928      AC_ARG_VAR(LUA_LIB, [Directory to install xapian.so into])
    929       AC_MSG_CHECKING(for Lua library to install xapian.so)
    930       LUA_LIB=`$LUA -e 'require("package") print(package.cpath)' | cut -f 2 -d ';' | cut -f 1 -d '?'`
    931       LUA_LIB=`expr X"$LUA_LIB" : X'\(.*\)/$'`
    932       if test -z "$LUA_LIB"; then
    933         AC_MSG_RESULT(not found)
    934       else
    935         AC_MSG_RESULT($LUA_LIB)
     929      if test -z "$LUA_LIB" ; then
     930        AC_MSG_CHECKING([for Lua library to install xapian.so])
     931        LUA_LIB=`$LUA -e 'require("package") print(package.cpath)' | cut -f 2 -d ';' | cut -f 1 -d '?'`
     932        LUA_LIB=`expr X"$LUA_LIB" : X'\(.*\)/$'`
     933        if test -z "$LUA_LIB"; then
     934          AC_MSG_RESULT(not found)
     935        else
     936          AC_MSG_RESULT($LUA_LIB)
     937        fi
    936938      fi
    937939      AC_SUBST(LUA_LIB)
    938940