# ###########################################################################
# Output
-TAB=" \\033[40G"
+TAB=" \\033[50G"
+TAB2=" \\033[50G"
# Text conversion
function toupper
local ver=$*
# Version test
- ver=$(echo $ver | sed 's/>=/ --atleast-version /'\
+ cver=$(echo $ver | sed 's/>=/ --atleast-version /'\
| sed 's/<=/ --max-version /'\
| sed 's/==/ --exact-version /')
- echo -ne "checking for pkg $pkg $ver ...${TAB}"
+ echo -ne "checking for pkg $pkg $ver ...${TAB2}"
# Check for package
- if pkg-config $pkg $ver; then
+ if pkg-config $pkg $cver; then
echo "ok"
enable_pkg $pkg
else
local nam=$2
[ -z "$nam" ] && nam=$hdr
- echo -ne "checking for cc $hdr.h ...${TAB}"
+ echo -ne "checking for cc $hdr.h ...${TAB2}"
# Enable if supported
if check_cc "#include <$1.h>"; then
local snp=$2
local opt=$3
- echo -ne "checking for cc $nam ...${TAB}"
+ echo -ne "checking for cc $nam ...${TAB2}"
# Check if supported
if check_cc "$snp" "$opt"; then
local nam=$2
[ -z "$nam" ] && nam=$opt
- echo -ne "checking for cc -m$opt ...${TAB}"
+ echo -ne "checking for cc -m$opt ...${TAB2}"
# Enable if supported
if check_cc "" -m${opt}; then
local nam=$2
[ -z "$nam" ] && nam=$opt
- echo -ne "checking for cc -l$opt ...${TAB}"
+ echo -ne "checking for cc -l$opt ...${TAB2}"
# Enable if supported
if check_cc "" -l${opt}; then
local nam=$2
[ -z "$nam" ] && nam=py_${hdr}
- echo -ne "checking for py module $hdr ...${TAB}"
+ echo -ne "checking for py module $hdr ...${TAB2}"
# Enable if supported
if check_py "import $hdr"; then
local bin=$1
local nam=$2
[ -z "$nam" ] && nam=bin_${bin}
- echo -ne "checking for $bin ...${TAB}"
+ echo -ne "checking for $bin ...${TAB2}"
if which $bin &> /dev/null; then
echo "ok"