Sha256: b79bfb83ba35d92c050f74d574cd078b2585f45e935d529d5b7e7931d5dea91f

Contents?: true

Size: 768 Bytes

Versions: 2

Compression:

Stored size: 768 Bytes

Contents

# Loads mkmf which is used to make makefiles for Ruby extensions
require 'mkmf'
require 'date'

# Allow for custom compiler to be specified.
RbConfig::MAKEFILE_CONFIG['CC'] = ENV['CC'] if ENV['CC']

# Use some default search paths
dir_config('sqlite3', %w[/usr/local /opt/local /usr])

# NOTE: use GCC flags unless Visual C compiler is used
$CFLAGS << ' -Wall '

$CFLAGS << ' -DHAVE_NO_DATETIME_NEWBANG' unless DateTime.respond_to?(:new!)

# Do the work
# create_makefile(extension_name)
if have_header('sqlite3.h') && have_library('sqlite3', 'sqlite3_open')
  have_func('localtime_r')
  have_func('gmtime_r')
  have_func('sqlite3_prepare_v2')
  have_func('sqlite3_open_v2')
  have_func('sqlite3_enable_load_extension')

  create_makefile('do_sqlite3/do_sqlite3')
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
sbf-do_sqlite3-0.11.0 ext/do_sqlite3/extconf.rb
sbf-do_sqlite3-0.10.17 ext/do_sqlite3/extconf.rb