summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/mkmf/test_pkg_config.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/mkmf/test_pkg_config.rb b/test/mkmf/test_pkg_config.rb
index d0a2dc130a..abeaf548f8 100644
--- a/test/mkmf/test_pkg_config.rb
+++ b/test/mkmf/test_pkg_config.rb
@@ -3,7 +3,9 @@ require_relative 'base'
require 'shellwords'
class TestMkmfPkgConfig < TestMkmf
- PKG_CONFIG = config_string("PKG_CONFIG") {|path| find_executable0(path)}
+ PKG_CONFIG = config_string("PKG_CONFIG") do |path|
+ find_executable0(path, "--version") {$?.success?}
+ end
def setup
super