Top Level Namespace

Defined Under Namespace

Modules: ZMQ

Constant Summary collapse

ZL =
ZMQ::Loop
LIBEXT =

XXX fallbacks specific to Darwin for JRuby (does not set these values in RbConfig::CONFIG)

RbConfig::CONFIG['LIBEXT'] || 'a'
DLEXT =
RbConfig::CONFIG['DLEXT'] || 'bundle'
CZMQ_CFLAGS =
%w(-g)

Instance Method Summary collapse

Instance Method Details

#check_heads(heads = [], fatal = false) ⇒ Object



38
39
40
# File 'ext/rbczmq/extconf.rb', line 38

def check_heads heads = [], fatal = false
  heads.all? { |head| have_header(head) || (abort("could not find header: #{head}") if fatal)}
end

#check_libs(libs = [], fatal = false) ⇒ Object

Courtesy of EventMachine and @tmm1



34
35
36
# File 'ext/rbczmq/extconf.rb', line 34

def check_libs libs = [], fatal = false
  libs.all? { |lib| have_library(lib) || (abort("could not find library: #{lib}") if fatal) }
end

#fail(msg) ⇒ Object



11
12
13
14
# File 'ext/rbczmq/extconf.rb', line 11

def fail(msg)
  STDERR.puts msg
  exit(1)
end

#sys(cmd, err_msg) ⇒ Object



6
7
8
9
# File 'ext/rbczmq/extconf.rb', line 6

def sys(cmd, err_msg)
  p cmd
  system(cmd) || fail(err_msg)
end