diff options
author | Kim Alvefur <zash@zash.se> | 2016-08-19 15:30:42 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2016-08-19 15:30:42 +0200 |
commit | 4a913a573e5293208433f9e628555283e81e2b54 (patch) | |
tree | 49e34d15ab539bf697a7e9348e80c9bc94302e55 | |
parent | 75e324559292a24a8c820ba57c3b26173bd9dcc0 (diff) | |
download | prosody-4a913a573e5293208433f9e628555283e81e2b54.tar.gz prosody-4a913a573e5293208433f9e628555283e81e2b54.zip |
configure: Respect Lua suffix in Debian preset if already set
-rwxr-xr-x | configure | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -106,10 +106,12 @@ do OSTYPE="$value" OSTYPE_SET=yes if [ "$OSTYPE" = "debian" ]; then - LUA_SUFFIX="5.1"; - LUA_SUFFIX_SET=yes - RUNWITH="lua5.1" - LUA_INCDIR=/usr/include/lua5.1; + if [ "$LUA_SUFFIX_SET" != "yes" ]; then + LUA_SUFFIX="5.1"; + LUA_SUFFIX_SET=yes + fi + RUNWITH="lua$LUA_SUFFIX" + LUA_INCDIR="/usr/include/lua$LUA_SUFFIX" LUA_INCDIR_SET=yes CFLAGS="$CFLAGS -D_GNU_SOURCE" fi |