mirror of
https://github.com/bytedance/g3.git
synced 2026-05-06 16:22:04 +00:00
18 lines
224 B
Bash
Executable file
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
|
|
|