Sha256: b322e807d3dd43cb5ad504c512a73bd01decde9da69b1e45e1b57c512259c49f

Contents?: true

Size: 381 Bytes

Versions: 3

Compression:

Stored size: 381 Bytes

Contents

# encoding: UTF-8
require 'mkmf'
dir_config('bz2')
have_header('bzlib.h')

if have_library("bz2", "BZ2_bzWriteOpen")
  if enable_config("shared", true)
     $static = nil
  end
  
  if RUBY_VERSION =~ /1.9/
    $CFLAGS << ' -DRUBY_19_COMPATIBILITY'
  end
  
  create_makefile("bzip2_ext")
else
  puts "libbz2 not found, maybe try manually specifying --with-bz2-dir to find it?"
end

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
brianmario-bzip2-ruby-0.2.5 ext/extconf.rb
bzip2-ruby-0.2.5 ext/extconf.rb
bzip2-ruby-0.2.6 ext/extconf.rb