summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2014-01-03 07:50:27 -0800
committerLamont Granquist <lamont@scriptkiddie.org>2014-01-03 07:50:27 -0800
commit41a29eb8d878065a51576275708759bb4834c4f8 (patch)
tree67ab9fedb1f142931cc0a1fba968f1c9da378562 /ext
parent5e0cd6394edd06d0d2253ad693d48c30f0702135 (diff)
downloadffi-yajl-41a29eb8d878065a51576275708759bb4834c4f8.tar.gz
ensure libyajl2-dev is installed or use vendored
Diffstat (limited to 'ext')
-rw-r--r--ext/libyajl2/extconf.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/libyajl2/extconf.rb b/ext/libyajl2/extconf.rb
index 25cc1a5..24f24a1 100644
--- a/ext/libyajl2/extconf.rb
+++ b/ext/libyajl2/extconf.rb
@@ -24,7 +24,7 @@ if !defined?(RUBY_ENGINE) || RUBY_ENGINE == 'ruby' || RUBY_ENGINE == 'rbx'
require 'mkmf'
# yajl_complete_parse is only in >= 2.0
- libyajl2_ok = have_library("yajl", "yajl_complete_parse", [ "yajl/yajl_parse.h" ])
+ libyajl2_ok = have_library("yajl", "yajl_complete_parse", [ "yajl/yajl_parse.h" ]) && have_func("yajl_complete_parse")
else
# always install libyajl2 on Jruby
# FIXME: get the conditional mkmf stuff to work on Jruby