mirror of
https://github.com/octoleo/lsyncd.git
synced 2024-12-13 14:43:09 +00:00
Fix Lua compat detection for when lauxlib.h is not in /usr/include
This commit is contained in:
parent
023f0efa3c
commit
91a7a78b4f
10
configure.ac
10
configure.ac
@ -69,7 +69,11 @@ else
|
||||
fi
|
||||
|
||||
_LIBS="${LIBS}"
|
||||
LIBS="${LUA_LIBS}"
|
||||
_CFLAGS="${CFLAGS}"
|
||||
_CPPFLAGS="${CPPFLAGS}"
|
||||
LIBS="${LIBS} ${LUA_LIBS}"
|
||||
CFLAGS="${CFLAGS} ${LUA_CFLAGS}"
|
||||
CPPFLAGS="${CPPFLAGS} ${LUA_CFLAGS}"
|
||||
|
||||
AC_MSG_CHECKING([whether Lua library was compiled with compat support])
|
||||
AC_LINK_IFELSE(
|
||||
@ -87,7 +91,9 @@ if test "x${lua_compat_support}" = xno ; then
|
||||
fi
|
||||
|
||||
LIBS="${_LIBS}"
|
||||
unset _LIBS
|
||||
CFLAGS="${_CFLAGS}"
|
||||
CPPFLAGS="${_CPPFLAGS}"
|
||||
unset _LIBS _CFLAGS _CPPFLAGS
|
||||
|
||||
AX_SUBST_L([LUA_CFLAGS], [LUA_LIBS], [LUA], [LUAC])
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user