Skip to content

Commit

Permalink
tidy Makefile.PL
Browse files Browse the repository at this point in the history
  • Loading branch information
mohawk2 committed Mar 12, 2021
1 parent ceae69e commit 16fb15a
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions Makefile.PL
Original file line number Diff line number Diff line change
Expand Up @@ -15,24 +15,14 @@ my $version = parseVersion( 'FFTW3.pd');
if( eval "require Alien::FFTW3" ) {
## Ensure at least version 3.3; die if we can't get it.
Alien::FFTW3->VERSION(3.3);

my $p = Alien::FFTW3->precision;
unless($p->{'d'} and $p->{'f'}) {
die "PDL::FFTW3 - needs both double-precision and single-precision fftw3 libraries\n\t(libfftw3 and libfftw3f). Alien::FFTW3 found only ".(join(",",keys %$p))."\n";
}

$cflags = Alien::FFTW3->cflags;
$libs = Alien::FFTW3->libs;
} else {
# if( $version =~ /_/ ) {
# die <<EOF;
#Alien::FFTW3 not found, but it is required for dev snapshots, such as this.
#Please use Alien::FFTW3 or use a release of this module.
#Or remove this check from the source.
#EOF
# }

printf "Alien::FFTW3 not found. Using pkg-config instead...\n";
print "Alien::FFTW3 not found. Using pkg-config instead...\n";

require IPC::Run;
$cflags = '';
Expand Down

0 comments on commit 16fb15a

Please sign in to comment.