Permalink
Browse files

Make the time.h capability check quiessent.

Also let the user know there may be C errors.
  • Loading branch information...
1 parent 1a781f8 commit 7608cbe914b3ea435e0f5918313d708953470089 @schwern schwern committed Feb 13, 2010
Showing with 3 additions and 0 deletions.
  1. +3 −0 perl/Time-y2038/inc/Local/Module/Build.pm
@@ -15,6 +15,7 @@ sub probe_system_time {
sub note_time_capabilities {
my $self = shift;
+ return if $self->up_to_date(["Build", "y2038/time64_config.h.in"], ["y2038/time64_config.h"]);
my %tests = (
HAS_TIMEGM => <<'END',
struct tm *date;
@@ -55,6 +56,8 @@ END
END
);
+ warn "Probing time.h capabilities.\n";
+ warn "You may see some C errors, that's ok.\n";
my $cb = ExtUtils::CBuilder->new( quiet => 1 );
for my $test (keys %tests) {
my $code = $tests{$test};

0 comments on commit 7608cbe

Please sign in to comment.