File: extconf.rb

package info (click to toggle)
ruby-tioga 1.19.1-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 10,812 kB
  • sloc: ansic: 39,883; ruby: 17,312; sh: 79; makefile: 32
file content (23 lines) | stat: -rw-r--r-- 680 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Dtable installation file
require 'mkmf'

$CFLAGS << ' -Wno-incompatible-pointer-types '
# Conditional use of fftw3
if have_header("fftw3.h") and have_library("fftw3", "fftw_execute", "fftw3.h")
  puts "fftw3 was found on this system: Fourier transforms will be available"
else
  puts "fftw3 was not found on this system: no Fourier transforms"
end

# "Safe" way to store doubles (ie in a platform-independant way)
unless have_header("ieee754.h")
  puts "You lack the ieee754.h header file, which might mean lower " +
    "reliability when Marshalling Dvectors and Dtables"
end


# We add include directories
$INCFLAGS += " -I../../includes"


create_makefile 'Dobjects/Dvector'