summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-09-22 14:40:37 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-09-22 14:40:37 +0000
commit6fb86f740b994108254982b954f8ad9df64bf5b4 (patch)
treefe96daf2bf2b62c6b074ade420cc9790323dd68d /ext
parent4857e1d30018e0fc7449af149449745410db01a6 (diff)
* ext/ripper/extconf.rb (have_command): replaced with find_executable.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9272 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r--ext/ripper/extconf.rb10
1 files changed, 1 insertions, 9 deletions
diff --git a/ext/ripper/extconf.rb b/ext/ripper/extconf.rb
index fd9370c..adf02cb 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