summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2022-03-26 07:37:39 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2022-03-26 07:37:39 +0900
commita876de5a82b8a60ccd3e83563b5f3b7064db14b8 (patch)
treec6f3a25de735e3d1fb3b737e15b70777aaf07d80 /ext
parentd27e2cb110fc524d4210a27029f0f507be3a9dc9 (diff)
downloadpsych-a876de5a82b8a60ccd3e83563b5f3b7064db14b8.tar.gz
Added condition for macOS homebrew
Co-authored-by: David Rodríguez <deivid.rodriguez@riseup.net>
Diffstat (limited to 'ext')
-rw-r--r--ext/psych/extconf.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/psych/extconf.rb b/ext/psych/extconf.rb
index 857f8e6..7da7376 100644
--- a/ext/psych/extconf.rb
+++ b/ext/psych/extconf.rb
@@ -7,7 +7,7 @@ require 'fileutils'
dir_config 'libyaml'
-if enable_config("bundled-libyaml", false) || !(find_header('yaml.h') && find_library('yaml', 'yaml_get_version'))
+if enable_config("bundled-libyaml", false) || !pkg_config('yaml-0.1') && !(find_header('yaml.h') && find_library('yaml', 'yaml_get_version'))
# Embed libyaml since we could not find it.
$VPATH << "$(srcdir)/yaml"