Comparison

configure @ 12825:ee5fcfef5200 0.12

configure: Fix quoting of $LUA_SUFFIX (thanks shellcheck/Zash) Transplanted 6b43bf85032b from trunk
author Matthew Wild <mwild1@gmail.com>
date Thu, 29 Dec 2022 16:29:03 +0000
parent 11966:4c5087ce3c2e
child 12826:944c7f0f1a9e
comparison
equal deleted inserted replaced
12823:dd6c35325241 12825:ee5fcfef5200
301 if [ "$OSPRESET" = "pkg-config" ]; then 301 if [ "$OSPRESET" = "pkg-config" ]; then
302 if [ "$LUA_SUFFIX_SET" != "yes" ]; then 302 if [ "$LUA_SUFFIX_SET" != "yes" ]; then
303 LUA_SUFFIX="5.1"; 303 LUA_SUFFIX="5.1";
304 LUA_SUFFIX_SET=yes 304 LUA_SUFFIX_SET=yes
305 fi 305 fi
306 LUA_CF="$(pkg-config --cflags-only-I lua$LUA_SUFFIX)" 306 LUA_CF="$(pkg-config --cflags-only-I lua"$LUA_SUFFIX")"
307 LUA_CF="${LUA_CF#*-I}" 307 LUA_CF="${LUA_CF#*-I}"
308 LUA_CF="${LUA_CF%% *}" 308 LUA_CF="${LUA_CF%% *}"
309 if [ "$LUA_CF" != "" ]; then 309 if [ "$LUA_CF" != "" ]; then
310 LUA_INCDIR="$LUA_CF" 310 LUA_INCDIR="$LUA_CF"
311 LUA_INCDIR_SET=yes 311 LUA_INCDIR_SET=yes