source: project/release/4/statistics/tags/0.7/statistics.setup @ 33029

Last change on this file since 33029 was 33029, checked in by Ivan Raikov, 6 years ago

statistics release 0.7

File size: 857 bytes
Line 
1;; -*- Hen -*-
2
3(define (gsl-try-compile header ldflags)
4  (and (try-compile
5        (string-append "#include " header "\n"
6                       "int main() { cblas_ddot(0, NULL, 0, NULL, 0); return 0; }\n")
7        ldflags: ldflags)
8       ldflags ))
9
10(define-syntax gsl-test
11  (syntax-rules ()
12    ((_ (flags ...))
13     (condition-case (gsl-try-compile flags ...)
14                     (t ()    #f)))))
15
16(define ld-options
17  (or (gsl-test  ("<gsl/gsl_cblas.h>" "-lgsl -lgslcblas -lm"))
18      (error "unable to figure out location of GSL library")))
19
20(compile -s -O3 -d1 "statistics.scm" -j statistics -L "\"" ,ld-options "\"" )
21(compile -c -O3 -d1 "statistics.scm" -unit statistics -L "\"" ,ld-options "\"" )
22(compile -s -O3 -d0 "statistics.import.scm"  -L "\"" ,ld-options "\"" )
23
24
25(install-extension
26 'statistics
27 '("statistics.o" "statistics.so" "statistics.import.so")
28 '((version 0.7)))
29
Note: See TracBrowser for help on using the repository browser.