This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Make Time/HiRes/Makefile.PL produce a Makefile if one is needed
authorMax Maischein <corion@corion.net>
Sat, 31 Jan 2009 13:50:34 +0000 (14:50 +0100)
committerNicholas Clark <nick@ccl4.org>
Sun, 1 Feb 2009 14:40:22 +0000 (14:40 +0000)
ext/Time/HiRes/Makefile.PL

index 16990ee..2fe6cf4 100644 (file)
@@ -832,7 +832,7 @@ sub doConstants {
 }
 
 sub main {
-    if (-f "xdefine" && !(@ARGV  && $ARGV[0] eq '--configure')) {
+    if (-f "Makefile" and -f "xdefine" && !(@ARGV  && $ARGV[0] eq '--configure')) {
        print qq[$0: The "xdefine" exists, skipping the configure step.\n];
        print qq[("$^X $0 --configure" to force the configure step)\n];
     } else {