The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
use strict;
use warnings;
use ExtUtils::MakeMaker;

# Note Slatec now handles f77 availability itself
# Func contains the Interpolate code

undef &MY::postamble; # suppress warning
*MY::postamble = sub { '' };

WriteMakefile(
  NAME => 'PDL::Lib',
  VERSION_FROM => '../Basic/Core/Version.pm',
  DIR =>  [ qw/Simplex ImageRGB Fit FFT Filter Image2D ImageND
               CallExt Slatec GSL GIS Transform Minuit Compression
               / ],
  PM => { map {($_ => '$(INST_LIBDIR)/'.$_)}
    grep {
      !defined $PDL::Config{WITH_SLATEC} ||
      $PDL::Config{WITH_SLATEC}==1 ||
      !($_ eq 'Gaussian.pm')
    } <*.pm>
  },
  NO_MYMETA => 1,
#              Interpolate
# Interpolate is broken
);