mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Search pkg-config with ac_tool_prefix [Bug #16909]
Should prefer a prefixed version over the bare pkg-config for cross compiling.
This commit is contained in:
parent
b722182e47
commit
39cb19303c
1 changed files with 5 additions and 2 deletions
|
@ -406,8 +406,11 @@ AS_IF([test "$cross_compiling:$ac_cv_prog_DTRACE" = no: -a -n "$ac_tool_prefix"]
|
|||
AC_CHECK_PROGS(DOT, dot)
|
||||
AC_CHECK_PROGS(DOXYGEN, doxygen)
|
||||
|
||||
AC_CHECK_PROG(PKG_CONFIG, pkg-config, [pkg-config], [], [],
|
||||
[`"$as_dir/$ac_word$ac_exec_ext" --print-errors --version > /dev/null 2>&1 || echo "$as_dir/$ac_word$ac_exec_ext"`])
|
||||
for prog in ${ac_tool_prefix:+${ac_tool_prefix}pkg-config} pkg-config; do
|
||||
AC_CHECK_PROG(PKG_CONFIG, $prog, [$prog], [], [],
|
||||
[`"$as_dir/$ac_word$ac_exec_ext" --print-errors --version > /dev/null 2>&1 || echo "$as_dir/$ac_word$ac_exec_ext"`])
|
||||
test -z "${PKG_CONFIG}" || break
|
||||
done
|
||||
|
||||
# checks for UNIX variants that set C preprocessor variables
|
||||
AC_USE_SYSTEM_EXTENSIONS
|
||||
|
|
Loading…
Add table
Reference in a new issue