GNUmakefile: rdoc 2.5.x compatibility
[unicorn.git] / ext / unicorn_http / extconf.rb
blob0c6a186dbb89d02362a5c9f56e5b49cb1bdbdf64
1 # -*- encoding: binary -*-
2 require 'mkmf'
4 dir_config("unicorn_http")
6 have_macro("SIZEOF_OFF_T", "ruby.h") or check_sizeof("off_t", "sys/types.h")
7 have_macro("SIZEOF_LONG", "ruby.h") or check_sizeof("long", "sys/types.h")
8 have_func("rb_str_set_len", "ruby.h")
9 have_func("rb_str_modify", "ruby.h")
11 # -fPIC is needed for Rubinius, MRI already uses it regardless
12 with_cflags($CFLAGS + " -fPIC ") do
13   create_makefile("unicorn_http")
14 end