summaryrefslogtreecommitdiff
path: root/Config.hs
diff options
context:
space:
mode:
authorAlberto Ruiz <aruiz@um.es>2011-09-21 13:00:29 +0000
committerAlberto Ruiz <aruiz@um.es>2011-09-21 13:00:29 +0000
commit0234c29e0467aabf70304ef95375643455f7ff24 (patch)
tree3386015fcf91b24ae733a9e723fceec15c4ccd98 /Config.hs
parent3797b187d1747f1971c112084976fb2808fc87b0 (diff)
fix Config.hs
Diffstat (limited to 'Config.hs')
-rw-r--r--Config.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Config.hs b/Config.hs
index 3e83eff..2ea0fa8 100644
--- a/Config.hs
+++ b/Config.hs
@@ -40,7 +40,7 @@ opts = [ "" -- Ubuntu/Debian
40 40
41-- compile a simple program with symbols from GSL and LAPACK with the given libs 41-- compile a simple program with symbols from GSL and LAPACK with the given libs
42testprog bInfo buildInfo libs fmks = 42testprog bInfo buildInfo libs fmks =
43 "echo \"#include <gsl/gsl_sf_gamma.h>\nint main(){zgesvd_(); gsl_sf_gamma(5);}\"" 43 "echo \"#include <gsl/gsl_sf_gamma.h>\nint main(){dgemm_(); zgesvd_(); gsl_sf_gamma(5);}\""
44 ++" > " ++ (buildDir bInfo) ++ "/dummy.c; gcc " 44 ++" > " ++ (buildDir bInfo) ++ "/dummy.c; gcc "
45 ++ (join $ ccOptions buildInfo) ++ " " 45 ++ (join $ ccOptions buildInfo) ++ " "
46 ++ (join $ cppOptions buildInfo) ++ " " 46 ++ (join $ cppOptions buildInfo) ++ " "
@@ -90,7 +90,7 @@ try l i b f (opt:rest) = do
90 else try l i b f rest 90 else try l i b f rest
91 91
92-- read --configure-option=link:lib1,lib2,lib3,etc 92-- read --configure-option=link:lib1,lib2,lib3,etc
93linkop = "link:" 93linkop = "--configure-option=link:"
94getUserLink = concatMap (g . drop (length linkop)) . filter (isPrefixOf linkop) 94getUserLink = concatMap (g . drop (length linkop)) . filter (isPrefixOf linkop)
95 where g = map cs 95 where g = map cs
96 cs ',' = ' ' 96 cs ',' = ' '