Skip to content

Commit

Permalink
Merge pull request #12 from sauoq/master
Browse files Browse the repository at this point in the history
Fixes libgd ver check in Makefile.PL and Build.PL
  • Loading branch information
lstein committed Apr 2, 2015
2 parents 7fe04cb + 58eceb8 commit 8da19c8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions Build.PL
Original file line number Diff line number Diff line change
Expand Up @@ -280,8 +280,10 @@ sub try_to_autoconfigure {
($$lib_gd_path = $libdir) =~ s!/[^/]+$!!;
$$options = $features;

my ($minor) = $version =~ /^2\.\d+\.(\d+)$/;
$$options .= " GD_UNCLOSEDPOLY GD_ANIMGIF GD_FTCIRCLE VERSION_33" if defined($minor) && $minor >= 33;
my ($minor, $patch) = $version =~ /^2\.(\d+)\.(\d+)$/;
if ((defined($minor) && $minor > 0) or (defined($patch) && $patch >=33)) {
$$options .= " GD_UNCLOSEDPOLY GD_ANIMGIF GD_FTCIRCLE VERSION_33";
}

my @correct_inc = map {s/^-I// && $_} split /\s+/,$cflags;
check_for_stray_headers($includedir,@correct_inc);
Expand Down
6 changes: 4 additions & 2 deletions Makefile.PL
Original file line number Diff line number Diff line change
Expand Up @@ -301,8 +301,10 @@ sub try_to_autoconfigure {
($$lib_gd_path = $libdir) =~ s!/[^/]+$!!;
$$options = $features;

my ($minor) = $version =~ /^2\.\d+\.(\d+)$/;
$$options .= " GD_UNCLOSEDPOLY GD_ANIMGIF GD_FTCIRCLE VERSION_33" if defined($minor) && $minor >= 33;
my ($minor, $patch) = $version =~ /^2\.(\d+)\.(\d+)$/;
if ((defined($minor) && $minor > 0) or (defined($patch) && $patch >= 33)) {
$$options .= " GD_UNCLOSEDPOLY GD_ANIMGIF GD_FTCIRCLE VERSION_33";
}

my @correct_inc = map {s/^-I// && $_} split /\s+/,$cflags;
check_for_stray_headers($includedir,@correct_inc);
Expand Down

0 comments on commit 8da19c8

Please sign in to comment.