diff options
Diffstat (limited to 'util/pkg-config.sh')
-rwxr-xr-x | util/pkg-config.sh | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/util/pkg-config.sh b/util/pkg-config.sh index cc70779b0..c1dc486c1 100755 --- a/util/pkg-config.sh +++ b/util/pkg-config.sh @@ -17,7 +17,7 @@ while [[ $# -ne 0 ]]; do case "$1" in args[${#args[@]}]=$1 ;; - (--errors-to-stdout|--exists|--modversion|--print-errors|--short-errors|--uninstalled) + (--errors-to-stdout|--exists|--modversion|--print-errors|--short-errors|--uninstalled|--debug) args[${#args[@]}]=$1 ;; @@ -27,6 +27,11 @@ while [[ $# -ne 0 ]]; do case "$1" in shift ;; + (--atleast-version=*) + args[${#args[@]}]=--atleast-version + args[${#args[@]}]=$(echo $1 | cut -d = -f 2) + ;; + (--*) echo "unknown pkg-config option $1" 1>&2 exit 1 @@ -56,7 +61,7 @@ for pkg in "${pkgs[@]}"; do done | head -n 1) && args_=(--define-variable=prefix="${dest}/usr" "${args_[@]}") fi - #echo @@@ pkg-config "${args_[@]}" "${pkg}" 1>&2 + echo @@@ pkg-config "${args_[@]}" "${pkg}" 1>&2 out=$(pkg-config "${args_[@]}" "${pkg}") || exit $? #echo "=== ${out}" 1>&2 outs+=\ ${out} |