[前][次][番号順一覧][スレッド一覧]

ruby-changes:61351

From: Nobuyoshi <ko1@a...>
Date: Sat, 23 May 2020 22:07:07 +0900 (JST)
Subject: [ruby-changes:61351] 39cb19303c (master): Search pkg-config with ac_tool_prefix [Bug #16909]

https://git.ruby-lang.org/ruby.git/commit/?id=39cb19303c

From 39cb19303c9f9dbd0bdd67d266bfbbe076c6ebc5 Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Sat, 23 May 2020 22:04:11 +0900
Subject: Search pkg-config with ac_tool_prefix [Bug #16909]

Should prefer a prefixed version over the bare pkg-config for
cross compiling.

diff --git a/configure.ac b/configure.ac
index 5993cf5..a33caa5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -406,8 +406,11 @@ AS_IF([test "$cross_compiling:$ac_cv_prog_DTRACE" = no: -a -n "$ac_tool_prefix"] https://github.com/ruby/ruby/blob/trunk/configure.ac#L406
 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
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]