Config
[Math-GSL.git] / trunk / makegsl
blobe876e3174da63940eed463c1c5f9e8c9eb0fe8e7
1 #!/usr/bin/perl -w
4 use Config;
5 # Build.PL needs to do this
7 my $archlib = $Config{archlib};
8 my $swig = "swig";
9 my $opt = "-shadow -Wall -perl5";
11 my @swigs = qw/
12 Blas Block Bspline Cblas Cdf Chebyshev CheckRange Combination Complex
13 Const Deriv Dft Dht Diff Eigen Errno Fft Fit Heapsort Histogram Histogram2d
14 Ieee_utils Integration Interp Linalg Machine Math Matrix Message Min Mode Monte
15 Multifit Multimin Multiroots Nan Ntuple Odeiv Permutation Permute Poly Pow_int Precision
16 Qrng Randist Rng Roots Sf Siman Sort Specfunc Spline Statistics Sum Sys Test Types Vector
17 Version Wavelet Wavelet2d
20 # to do all
21 #map { system "$swig $opt -module Math::GSL::$_ $_.i" } @swigs;
23 system "$swig $opt -module Math::GSL::Sf Sf.i";
25 my $cmd2= q{gcc -Wall -fpic -c Sf_wrap.c -Dbool=char -I}.$archlib.q{/CORE -I/usr/local/include/};
27 my $cmd3= q{ gcc -L/usr/local/lib -shared Sf_wrap.o -lgsl -o Sf.so};
29 system "$cmd2 && $cmd3";