Sha256: 0aa07d0079d1b43ff69e2864e72307685b8e5b6cf990f587b9aa1fc2ff6c989b

Contents?: true

Size: 765 Bytes

Versions: 9

Compression:

Stored size: 765 Bytes

Contents

# encoding: UTF-8
require 'mkmf'
require 'rbconfig'

# 1.9-only
have_func('rb_thread_blocking_region')

$CFLAGS << ' -DHAVE_RBTRAP' if have_var('rb_trap_immediate', ['ruby.h', 'rubysig.h'])
# add_define 'HAVE_RBTRAP' if have_var('rb_trap_immediate', ['ruby.h', 'rubysig.h'])

# Borrowed from taf2-curb
dir_config('curl')
if find_executable('curl-config')
  $CFLAGS << " #{`curl-config --cflags`.strip}"
  $LIBS << " #{`curl-config --libs`.strip}"
elsif !have_library('curl') or !have_header('curl/curl.h')
  fail <<-EOM
  Can't find libcurl or curl/curl.h

  Try passing --with-curl-dir or --with-curl-lib and --with-curl-include
  options to extconf.
  EOM
end

$CFLAGS << ' -Wall -Wextra -funroll-loops'
# $CFLAGS << ' -O0 -ggdb'

create_makefile("streamly_ext")

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
streamly_ffi-0.2.6 ext/extconf.rb
streamly_ffi-0.2.4 ext/extconf.rb
streamly_ffi-0.2.3 ext/extconf.rb
streamly_ffi-0.2.2 ext/extconf.rb
streamly_ffi-0.2.1 ext/extconf.rb
streamly_ffi-0.2.0 ext/extconf.rb
streamly_ffi-0.1.6 ext/extconf.rb
streamly_ffi-0.1.5 ext/extconf.rb
streamly-0.1.4 ext/extconf.rb