Don't install threads files on non-threaded Perls
Jerry D. Hedden [Fri, 15 Feb 2008 11:02:54 +0000 (06:02 -0500)]
From: "Jerry D. Hedden" <jdhedden@cpan.org>
Message-ID: <1ff86f510802150802g5bf52a52nc9543eb236063b86@mail.gmail.com>

p4raw-id: //depot/perl@33326

installperl

index f635918..fddb66e 100755 (executable)
@@ -819,6 +819,12 @@ sub installlib {
     return if $name =~ m{^(?:SIGNATURE|PAUSE200\d\.pub)$}; # CPAN files
     return if $name =~ m{^(?:NOTES|PATCHING)$}; # ExtUtils files
 
+    # If not a threaded Perl, then ignore files that support threads
+    if (! $Config{'useithreads'}) {
+        return if $dir =~ m{Thread};
+        return if $name =~ m{Thread};
+    }
+
     # if using a shared perl library then ignore:
     # - static library files [of statically linked extensions];
     # - import library files and export library files (only present on Win32