MM_Unix.pm : work around File::Find problem on VMS
Craig A. Berry [Thu, 11 Jul 2002 12:44:41 +0000 (07:44 -0500)]
From: "Craig A. Berry" <craigberry@mac.com>
Message-Id: <5.1.1.5.0.20020708172342.03422ac8@exchi01>

p4raw-id: //depot/perl@17488

lib/ExtUtils/MM_Unix.pm

index 0cd45eb..bb76013 100644 (file)
@@ -1349,8 +1349,15 @@ sub init_dirscan {       # --- File and Directory Lists (.xs .pm .pod etc)
     # (which includes PARENT_NAME). This is a subtle distinction but one
     # that's important for nested modules.
 
-    $self->{PMLIBDIRS} = ['lib', $self->{BASEEXT}]
+    if ($Is_VMS) {
+      # avoid logical name collisions by adding directory syntax
+      $self->{PMLIBDIRS} = ['./lib', './' . $self->{BASEEXT}]
        unless $self->{PMLIBDIRS};
+    }
+    else {
+      $self->{PMLIBDIRS} = ['lib', $self->{BASEEXT}]
+       unless $self->{PMLIBDIRS};
+    }
 
     #only existing directories that aren't in $dir are allowed