summaryrefslogtreecommitdiff
path: root/ext/fiddle
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-12-23 06:22:00 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-12-23 06:22:00 +0000
commit4c0a560cac00589060ef69638412d2607c2ababd (patch)
treea65ccd7593d2820bc05d9eae96f3fb831b950333 /ext/fiddle
parentb2c4e778ba10619ba76b5b4c6d554a47cb6d41ef (diff)
extconf.rb: try modversion ff pkg_config succeeded
* ext/fiddle/extconf.rb: when pkg_config failed, module version is not available. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48926 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/fiddle')
-rw-r--r--ext/fiddle/extconf.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/fiddle/extconf.rb b/ext/fiddle/extconf.rb
index edaba21..6da557b 100644
--- a/ext/fiddle/extconf.rb
+++ b/ext/fiddle/extconf.rb
@@ -5,8 +5,8 @@ require 'mkmf'
if ! enable_config('bundled-libffi', false)
dir_config 'libffi'
- pkg_config("libffi")
- ver = pkg_config("libffi", "modversion")
+ pkg_config("libffi") and
+ ver = pkg_config("libffi", "modversion")
if have_header(ffi_header = 'ffi.h')
true