Changeset 22348 for Makefile.PL

Show
Ignore:
Timestamp:
09/24/08 22:39:14 (2 months ago)
Author:
azawawi
Message:

[pugs] Fixed Use of uninitialized value $ENV{"PUGS_EMBED"} in pattern match (m//)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • Makefile.PL

    r22346 r22348  
    155155    my $config_h = "src/Pugs/pugs_config.h"; 
    156156 
    157     my $EMBED_SMOP = ''; 
    158     $EMBED_SMOP='--flags=SMOP' if $ENV{PUGS_EMBED} =~ /\bsmop\b/i;  
     157    my $EMBED_SMOP = ($ENV{PUGS_EMBED} // '') ? '--flags=SMOP' : '';  
    159158    # Ok, now we have Cabal-Install and all the deps.  Let's be lazy and write a simple makefile. 
    160159    postamble(<<".");