Define the U32_ALIGNMENT_REQUIRED only if it's not already defined.
Jarkko Hietaniemi [Fri, 6 Apr 2001 13:42:23 +0000 (13:42 +0000)]
p4raw-id: //depot/perl@9589

ext/Digest/MD5/Makefile.PL

index 31dcabf..d86c577 100644 (file)
@@ -4,10 +4,12 @@ use Config qw(%Config);
 use ExtUtils::MakeMaker;
 
 my @extra;
-@extra = (DEFINE => "-DU32_ALIGNMENT_REQUIRED")
-    if !($Config{'byteorder'} eq '1234' || $Config{'byteorder'} eq '4321') ||
-       $^O eq 'VMS' ||
-       $Config{d_u32align};
+
+unless ($Config{d_u32align}) {
+    @extra = (DEFINE => "-DU32_ALIGNMENT_REQUIRED")
+       if !($Config{'byteorder'} eq '1234' ||
+            $Config{'byteorder'} eq '4321');
+}
 
 WriteMakefile(
     'NAME'        => 'Digest::MD5',