ext/congruence_solver/extconf.rb in congruence_solver-0.4.0 vs ext/congruence_solver/extconf.rb in congruence_solver-0.5.0

- old
+ new

@@ -11,6 +11,16 @@ congruence_solver.c congruences.c prime_gen.c ] -create_makefile "congruence_solver/congruence_solver" \ No newline at end of file +omp_opt = arg_config("--openmp") +if omp_opt + if have_header("omp.h") + $CFLAGS += " " + omp_opt + $DLDFLAGS += " " + omp_opt + else + raise "OpenMP unsupported by this compiler" + end +end + +create_makefile "congruence_solver/congruence_solver"