clogger.git  about / heads / tags
configurable request logging for Rack
blob 8cc8b5e7370fedfd21da1c72ffda7b044d8cdf2b 352 bytes (raw)
$ git show v0.0.4:ext/clogger_ext/extconf.rb	# shows this blob on the CLI

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
 
require 'mkmf'

if have_header('fcntl.h')
  have_macro('F_GETFL', %w(fcntl.h))
  have_macro('O_NONBLOCK', %w(unistd.h fcntl.h))
end

have_func('localtime_r', 'time.h') or abort "localtime_r needed"
have_func('gmtime_r', 'time.h') or abort "gmtime_r needed"
have_func('rb_str_set_len', 'ruby.h')
dir_config('clogger_ext')
create_makefile('clogger_ext')

git clone https://yhbt.net/clogger.git