diff options
Diffstat (limited to 'ext/ripper/extconf.rb')
-rw-r--r-- | ext/ripper/extconf.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ext/ripper/extconf.rb b/ext/ripper/extconf.rb index f1716b84c0..fd9370c337 100644 --- a/ext/ripper/extconf.rb +++ b/ext/ripper/extconf.rb @@ -5,8 +5,10 @@ require 'rbconfig' def main unless have_command('bison') - $stderr.puts 'Ripper requires bison; abort' - exit 1 + unless File.exist?('ripper.c') or File.exist?("#{$srcdir}/ripper.c") + $stderr.puts 'missing bison; abort' + exit 1 + end end $objs = %w(ripper.o) $cleanfiles.concat %w(ripper.y ripper.c ripper.E ripper.output eventids1.c ids1 ids2) |