# File glib/src/lib/mkmf-gnome2.rb, line 226
def check_ruby_func
  $CPPFLAGS << " -I$(sitearchdir) "

  #Other options

  have_func("rb_define_alloc_func") # for ruby-1.8

  have_func("rb_block_proc") # for ruby-1.8


  STDOUT.print("checking for new allocation framework... ") # for ruby-1.7

  if Object.respond_to? :allocate
    STDOUT.print "yes\n"
    $defs << "-DHAVE_OBJECT_ALLOCATE"
  else
    STDOUT.print "no\n"
  end

  STDOUT.print("checking for attribute assignment... ") # for ruby-1.7

  STDOUT.flush
  if defined? try_compile and try_compile "#include \"ruby.h\"\n#include \"node.h\"\nint node_attrasgn = (int)NODE_ATTRASGN;\n"
    STDOUT.print "yes\n"
    $defs << "-DHAVE_NODE_ATTRASGN"
  else
    STDOUT.print "no\n"
  end
end