ext/convolver/extconf.rb in convolver-0.3.1 vs ext/convolver/extconf.rb in convolver-0.3.2
- old
+ new
@@ -2,10 +2,14 @@
require "mkmf"
require "rubygems"
# Following code stolen shamelessly from fftw3 gem:
narray_dir = File.dirname(Gem.find_files("narray.h").first) rescue $sitearchdir
-dir_config('narray', narray_dir, narray_dir)
+if /cygwin|mingw/ =~ RUBY_PLATFORM
+ dir_config('narray', narray_dir, "#{narray_dir}/src")
+else
+ dir_config('narray', narray_dir, narray_dir)
+end
if ( ! ( have_header("narray.h") && have_header("narray_config.h") ) ) then
print <<-EOS
** configure error **
Header narray.h or narray_config.h is not found. If you have these files in