g3/scripts/package/detect_lua_feature.sh
2023-03-09 17:55:45 +08:00

18 lines
224 B
Bash
Executable file

#!/bin/sh
set -e
if $(pkg-config --exists lua)
then
pkg-config --variable=lib_name lua | tr -d '.'
else
for lib in lua54 lua53 lua51
do
if $(pkg-config --exists ${lib})
then
echo "${lib}"
break
fi
done
fi