ext/extconf.rb in nyara-0.0.1.pre.8 vs ext/extconf.rb in nyara-0.0.1.pre.9

- old
+ new

@@ -17,9 +17,16 @@ $CPPFLAGS << ' $(xflags)' puts "To enable debug: make xflags='-DDEBUG -O0'" end +# for debugging low versions of gcc +def use_gcc42 + RbConfig::MAKEFILE_CONFIG['CC'] = `which gcc-4.2`.strip + RbConfig::MAKEFILE_CONFIG['CXX'] = `which g++-4.2`.strip +end +# use_gcc42 + have_kqueue = (have_header("sys/event.h") and have_header("sys/queue.h")) have_epoll = have_func('epoll_create', 'sys/epoll.h') abort('no kqueue nor epoll') if !have_kqueue and !have_epoll $defs << "-DNDEBUG -D#{have_epoll ? 'HAVE_EPOLL' : 'HAVE_KQUEUE'}"