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
[perl5.git] / 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 {