Added mcollective 2.3.1 package
[packages/trusty/mcollective.git] / lib / mcollective / vendor / json / ext / json / ext / parser / extconf.rb
1 require 'mkmf'
2 require 'rbconfig'
3
4 unless $CFLAGS.gsub!(/ -O[\dsz]?/, ' -O3')
5   $CFLAGS << ' -O3'
6 end
7 if CONFIG['CC'] =~ /gcc/
8   $CFLAGS << ' -Wall'
9   #unless $CFLAGS.gsub!(/ -O[\dsz]?/, ' -O0 -ggdb')
10   #  $CFLAGS << ' -O0 -ggdb'
11   #end
12 end
13
14 have_header("re.h")
15 have_header("ruby/st.h")
16 create_makefile 'json/ext/parser'