require 'mkmf' #have_library('stdc++', "main") #have_library('svm', "main") $CFLAGS = "#{ENV['CFLAGS']} -Wall -O3 " pkg_config 'libsvm' if CONFIG["MAJOR"].to_i >= 1 && CONFIG["MINOR"].to_i >= 8 $CFLAGS << " -DHAVE_DEFINE_ALLOC_FUNCTION" end create_makefile('svmc')