1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Search pkg-config by AC_CHECK_TOOL [Bug #16909]

It should use AC_CHECK_TOOL to automatically search for a prefixed
version and not just the bare pkg-config.
This commit is contained in:
Nobuyoshi Nakada 2020-05-23 19:52:14 +09:00
parent b2976a4fca
commit 6006ab8cf9
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6

View file

@ -406,7 +406,7 @@ 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], [], [],
AC_CHECK_TOOL(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"`])
# checks for UNIX variants that set C preprocessor variables