]> git.imager.perl.org - imager.git/blobdiff - TIFF/Makefile.PL
[rt #86658] add a missing AUTHOR heading
[imager.git] / TIFF / Makefile.PL
index f3804b21d7c1df028a3b3da58ea33107a08d53f9..82fb46a5311be867543fc99d2097f58cfa06d6fc 100644 (file)
@@ -17,11 +17,18 @@ our %IMAGER_LIBS;
 
 my $MM_ver = eval $ExtUtils::MakeMaker::VERSION;
 
+my $define = "";
+my $fp_rep = unpack("H*", pack("f", 1.25));
+if ($fp_rep eq "0000a03f" || $fp_rep eq "3fa00000") {
+  $define = "-DIEEEFP_TYPES";
+}
+
 my %opts = 
   (
    NAME => 'Imager::File::TIFF',
    VERSION_FROM => 'TIFF.pm',
    OBJECT => 'TIFF.o imtiff.o',
+   DEFINE => $define,
    clean => { FILES => 'testout' },
   );
 
@@ -38,7 +45,7 @@ else {
   $opts{TYPEMAPS} = [ Imager::ExtUtils->typemap ];
 
   # Imager required configure through use
-  my @Imager_req = ( Imager => "0.86" );
+  my @Imager_req = ( Imager => "0.94" );
   if ($MM_ver >= 6.46) {
     $opts{META_MERGE} =
       {
@@ -77,6 +84,7 @@ my %probe =
    testcodeheaders => [ "tiffio.h", "stdio.h", "string.h" ],
    incpath => \@incpaths,
    libpath => \@libpaths,
+   verbose => $verbose,
   );
 
 my $probe_res = Imager::Probe->probe(\%probe);
@@ -85,7 +93,7 @@ if ($probe_res) {
 
   push @inc, $probe_res->{INC};
   $opts{LIBS} = $probe_res->{LIBS};
-  $opts{DEFINE} = $probe_res->{DEFINE};
+  $opts{DEFINE} .= " $probe_res->{DEFINE}";
   $opts{INC} = "@inc";
 
   if ($MM_ver > 6.06) {