Sha256: 5e447fd073bd35b0b6f9f292fa09f2b262d538fcec623f5f9010203edc667aca

Contents?: true

Size: 1.2 KB

Versions: 21

Compression:

Stored size: 1.2 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')

create_makefile('sqlite3/sqlite3_native')

Version data entries

21 entries across 21 versions & 2 rubygems

Version Path
challah-0.6.2 vendor/bundle/gems/sqlite3-1.3.5/ext/sqlite3/extconf.rb
challah-0.6.1 vendor/bundle/gems/sqlite3-1.3.5/ext/sqlite3/extconf.rb
challah-0.6.0 vendor/bundle/gems/sqlite3-1.3.5/ext/sqlite3/extconf.rb
challah-0.5.4 vendor/bundle/gems/sqlite3-1.3.5/ext/sqlite3/extconf.rb
challah-0.5.3 vendor/bundle/gems/sqlite3-1.3.5/ext/sqlite3/extconf.rb
challah-0.5.2 vendor/bundle/gems/sqlite3-1.3.5/ext/sqlite3/extconf.rb
challah-0.5.1 vendor/bundle/gems/sqlite3-1.3.5/ext/sqlite3/extconf.rb
challah-0.5.0 vendor/bundle/gems/sqlite3-1.3.5/ext/sqlite3/extconf.rb
challah-0.4.1 vendor/bundle/gems/sqlite3-1.3.5/ext/sqlite3/extconf.rb
challah-0.4.0 vendor/bundle/gems/sqlite3-1.3.5/ext/sqlite3/extconf.rb
challah-0.3.5 vendor/bundle/gems/sqlite3-1.3.5/ext/sqlite3/extconf.rb
challah-0.3.4 vendor/bundle/gems/sqlite3-1.3.5/ext/sqlite3/extconf.rb
challah-0.3.3 vendor/bundle/gems/sqlite3-1.3.5/ext/sqlite3/extconf.rb
challah-0.3.2 vendor/bundle/gems/sqlite3-1.3.5/ext/sqlite3/extconf.rb
challah-0.3.1 vendor/bundle/gems/sqlite3-1.3.5/ext/sqlite3/extconf.rb
challah-0.3.0 vendor/bundle/gems/sqlite3-1.3.5/ext/sqlite3/extconf.rb
challah-0.2.1 vendor/bundle/gems/sqlite3-1.3.5/ext/sqlite3/extconf.rb
challah-0.2.0 vendor/bundle/gems/sqlite3-1.3.5/ext/sqlite3/extconf.rb
sqlite3-1.3.5-x86-mswin32-60 ext/sqlite3/extconf.rb
sqlite3-1.3.5-x86-mingw32 ext/sqlite3/extconf.rb