diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-05-23 19:52:14 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-05-23 19:52:14 +0900 |
commit | 6006ab8cf93a0e06d9d65213eff3117965c9bd0c (patch) | |
tree | 3fb55dc1e6e0300316662369b9a4990879f3d192 | |
parent | b2976a4fcab70bf9323180fd5ba6c29a5bca0747 (diff) | |
download | ruby-6006ab8cf93a0e06d9d65213eff3117965c9bd0c.tar.gz |
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.
-rw-r--r-- | configure.ac | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 5993cf52dc..ba4b471a81 100644 --- a/configure.ac +++ b/configure.ac @@ -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 |