Sha256: 794c10aefaf0650a9e3d8ef6c9c441de7f11c1383213f3f410473e59cd5d514f

Contents?: true

Size: 1.34 KB

Versions: 30

Compression:

Stored size: 1.34 KB

Contents

ENV['RC_ARCHS'] = '' if RUBY_PLATFORM =~ /darwin/

require 'mkmf'

# :stopdoc:

RbConfig::MAKEFILE_CONFIG['CC'] = ENV['CC'] if ENV['CC']

# --with-sqlite3-{dir,include,lib}
dir_config("sqlite3")

# prioritize local builds
if enable_config("local", false)
  $LDFLAGS = ENV.fetch("LDFLAGS", nil)
end

if RbConfig::CONFIG["host_os"] =~ /mswin/
  $CFLAGS << ' -W3'
end

def asplode missing
  if RUBY_PLATFORM =~ /mingw|mswin/
    abort "#{missing} is missing. Install SQLite3 from " +
          "http://www.sqlite.org/ first."
  else
    abort <<-error
#{missing} is missing. Try 'port install sqlite3 +universal'
or 'yum install sqlite-devel' and check your shared library search path (the
location where your sqlite3 shared library is located).
    error
  end
end

asplode('sqlite3.h')  unless find_header  'sqlite3.h'
asplode('sqlite3') unless find_library 'sqlite3', 'sqlite3_libversion_number'

# Functions defined in 1.9 but not 1.8
have_func('rb_proc_arity')

# These functions may not be defined
have_func('sqlite3_initialize')
have_func('sqlite3_backup_init')
have_func('sqlite3_column_database_name')
have_func('sqlite3_enable_load_extension')
have_func('sqlite3_load_extension')
have_func('sqlite3_open_v2')
have_func('sqlite3_prepare_v2')
have_type('sqlite3_int64', 'sqlite3.h')
have_type('sqlite3_uint64', 'sqlite3.h')

create_makefile('sqlite3/sqlite3_native')

Version data entries

30 entries across 27 versions & 6 rubygems

Version Path
challah-1.0.0.beta vendor/bundle/gems/sqlite3-1.3.6/ext/sqlite3/extconf.rb
challah-0.9.1.beta.3 vendor/bundle/gems/sqlite3-1.3.6/ext/sqlite3/extconf.rb
challah-0.9.1.beta vendor/bundle/gems/sqlite3-1.3.6/ext/sqlite3/extconf.rb
challah-0.9.0 vendor/bundle/gems/sqlite3-1.3.6/ext/sqlite3/extconf.rb
challah-rolls-0.2.0 vendor/bundle/gems/challah-0.8.0.pre/vendor/bundle/gems/sqlite3-1.3.6/ext/sqlite3/extconf.rb
challah-rolls-0.2.0 vendor/bundle/gems/challah-0.8.3/vendor/bundle/gems/sqlite3-1.3.6/ext/sqlite3/extconf.rb
challah-rolls-0.2.0 vendor/bundle/gems/sqlite3-1.3.6/ext/sqlite3/extconf.rb
challah-0.8.3 vendor/bundle/gems/sqlite3-1.3.6/ext/sqlite3/extconf.rb
challah-0.8.1 vendor/bundle/gems/sqlite3-1.3.6/ext/sqlite3/extconf.rb
challah-rolls-0.1.0 vendor/bundle/gems/challah-0.8.0.pre/vendor/bundle/gems/sqlite3-1.3.6/ext/sqlite3/extconf.rb
challah-rolls-0.1.0 vendor/bundle/gems/sqlite3-1.3.6/ext/sqlite3/extconf.rb
challah-0.8.0.pre vendor/bundle/gems/sqlite3-1.3.6/ext/sqlite3/extconf.rb
challah-0.7.1 vendor/bundle/gems/sqlite3-1.3.6/ext/sqlite3/extconf.rb
challah-0.7.0 vendor/bundle/gems/sqlite3-1.3.6/ext/sqlite3/extconf.rb
challah-0.7.0.pre2 vendor/bundle/gems/sqlite3-1.3.6/ext/sqlite3/extconf.rb
challah-0.7.0.pre vendor/bundle/gems/sqlite3-1.3.6/ext/sqlite3/extconf.rb
challah-0.6.2 vendor/bundle/gems/sqlite3-1.3.6/ext/sqlite3/extconf.rb
sunrise-cms-0.3.3 vendor/bundle/ruby/1.9.1/gems/rails-uploader-0.0.1/vendor/bundle/ruby/1.9.1/gems/sqlite3-1.3.6/ext/sqlite3/extconf.rb
initforthe-cookies-0.0.1 vendor/bundle/gems/sqlite3-1.3.6/ext/sqlite3/extconf.rb
sunrise-cms-0.3.2 vendor/bundle/ruby/1.9.1/gems/rails-uploader-0.0.1/vendor/bundle/ruby/1.9.1/gems/sqlite3-1.3.6/ext/sqlite3/extconf.rb