use ExtUtils::MakeMaker; use strict; require 5.008002; # Remember (like I didn't) that WriteMakefile looks at @ARGV, # so an alternative way to configure a debugging build is: # perl Makefile.PL DEFINE=-DPADWALKER_DEBUGGING. my $DEBUGGING = ''; if (@ARGV && $ARGV[0] eq '-d') { warn "Configuring a debugging build of PadWalker\n"; print STDERR < 'PadWalker', 'VERSION_FROM' => 'PadWalker.pm', # finds $VERSION 'LIBS' => [''], # e.g., '-lm' 'DEFINE' => $DEBUGGING, 'INC' => '', # e.g., '-I/usr/include/other', ($DEBUGGING ? (CCFLAGS => '-Wall -ansi') : ()), 'NO_META' => 1, dist => {TAR => 'gnutar'} );