# HG changeset patch # User Matthew Wild # Date 1538404367 -3600 # Node ID 03b50f5bd8cd75d2a57f625dc0fb2afbca83f667 # Parent 3b8c4b2c6ba198c11a63f1284fc5f26a89be7c69 configure: Replace logic constructs with explicit if/else statements diff -r 3b8c4b2c6ba1 -r 03b50f5bd8cd configure --- a/configure Mon Oct 01 15:31:14 2018 +0100 +++ b/configure Mon Oct 01 15:32:47 2018 +0100 @@ -418,8 +418,16 @@ if [ "$lua_interp_found" != "yes" -a "$RUNWITH_SET" != "yes" ] then - [ "$LUA_VERSION_SET" ] && { interp="Lua $LUA_VERSION" ;} || { interp="Lua" ;} - [ "$LUA_DIR_SET" -o "$LUA_BINDIR_SET" ] && { where="$LUA_BINDIR" ;} || { where="\$PATH" ;} + if [ "$LUA_VERSION_SET" ]; then + interp="Lua $LUA_VERSION"; + else + interp="Lua"; + fi + if [ "$LUA_DIR_SET" -o "$LUA_BINDIR_SET" ]; then + where="$LUA_BINDIR"; + else + where="\$PATH"; + fi echo "$interp interpreter not found in $where" die "You may want to use the flags --with-lua, --with-lua-bin and/or --lua-suffix. See --help." fi