diff options
Diffstat (limited to 'ext')
-rw-r--r-- | ext/ripper/extconf.rb | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/ext/ripper/extconf.rb b/ext/ripper/extconf.rb index fd9370c337..adf02cb3e4 100644 --- a/ext/ripper/extconf.rb +++ b/ext/ripper/extconf.rb @@ -4,7 +4,7 @@ require 'mkmf' require 'rbconfig' def main - unless have_command('bison') + unless find_executable('bison') unless File.exist?('ripper.c') or File.exist?("#{$srcdir}/ripper.c") $stderr.puts 'missing bison; abort' exit 1 @@ -17,12 +17,4 @@ def main create_makefile 'ripper' end -def have_command(cmd) - checking_for(cmd) { - ENV['PATH'].split(File::PATH_SEPARATOR).any? {|path| - File.executable?("#{path}/#{cmd}#{Config::CONFIG['EXEEXT']}") - } - } -end - main |