Sha256: e9343a490df8328ca572063df7514072107157860e1982cd2c07d491a47cc9ff

Contents?: true

Size: 411 Bytes

Versions: 3

Compression:

Stored size: 411 Bytes

Contents

require 'mkmf'

$CFLAGS << ' -Wall' if ENV['WALL']
$LDFLAGS << ' -static-libgcc' if RUBY_PLATFORM =~ /cygwin|mingw|mswin/

dir_config('magic')
dir_config('gnurx')

have_library('gnurx')

if have_library('magic', 'magic_open') && have_header('magic.h')
  have_header('file/patchlevel.h')
  create_makefile('filemagic/ruby_filemagic')
else
  abort '*** ERROR: missing required library to compile this module'
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ruby-filemagic-0.6.3-x86-mswin32-60 ext/filemagic/extconf.rb
ruby-filemagic-0.6.3-x86-mingw32 ext/filemagic/extconf.rb
ruby-filemagic-0.6.3 ext/filemagic/extconf.rb