summaryrefslogtreecommitdiff
path: root/ext/Digest
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2001-04-06 13:42:23 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2001-04-06 13:42:23 +0000
commit92dc35679cb164be847199993634f6d2cabffe53 (patch)
treed17ec416b1d51390ee49ef05a03e5330e3996270 /ext/Digest
parent26d9b02fa65570745e70dcbd0d92c1354fc4ecff (diff)
downloadperl-92dc35679cb164be847199993634f6d2cabffe53.tar.gz
Define the U32_ALIGNMENT_REQUIRED only if it's not already defined.
p4raw-id: //depot/perl@9589
Diffstat (limited to 'ext/Digest')
-rw-r--r--ext/Digest/MD5/Makefile.PL10
1 files changed, 6 insertions, 4 deletions
diff --git a/ext/Digest/MD5/Makefile.PL b/ext/Digest/MD5/Makefile.PL
index 31dcabf891..d86c57714f 100644
--- a/ext/Digest/MD5/Makefile.PL
+++ b/ext/Digest/MD5/Makefile.PL
@@ -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',