ext/extconf.rb in google_hash-0.8.0 vs ext/extconf.rb in google_hash-0.8.1

- old
+ new

@@ -18,10 +18,11 @@ system "make install" end end $CFLAGS += " -I./local_installed/include " +$CPPFLAGS += " -I./local_installed/include " if RUBY_VERSION < '1.9' # appears to link using gcc on 1.8 [mingw at least] $LDFLAGS += " -lstdc++ " end @@ -104,6 +105,13 @@ # write our Init method template = ERB.new(File.read('template/main.cpp.erb')) File.write 'main.cpp', template.result(binding) +Config::CONFIG['CPP'] = "g++ -E" # else cannot check for c++ headers? huh wuh? +have_header('tr1/functional') + +if have_header('functional') && OS.x? + $CPPFLAGS += " -std=c++11 -stdlib=libc++ " # LLVM, no idea what I'm doing here... +end + create_makefile('google_hash')