1use ExtUtils::MakeMaker; 2 3# See lib/ExtUtils/MakeMaker.pm for details of how to influence 4# the contents of the Makefile that is written. 5WriteMakefile( 6 'NAME' => 'DBD::LDAP', 7 'VERSION_FROM' => 'lib/DBD/LDAP.pm', # finds $VERSION 8 'INC' => $DBI_INC_DIR, 9 'dist' => { 10 'SUFFIX' => '.gz', 11 'COMPRESS' => 'gzip -9f' 12 }, 13 'realclean' => {FILES => '*.xsi'}, 14 'CONFIGURE_REQUIRES' => { 15 'DBI' => 1.03, 16 'ExtUtils::MakeMaker' => 6.52, 17 }, 18 'PREREQ_PM' => { 19 'DBI' => 1.03, 20 'Net::LDAP' => 0.01 21 } 22); 23 24package MY; 25 26sub postamble { 27 eval {require DBI;}; 28 return '' if ($@); 29 eval {require DBI::DBD;}; 30 return $@ ? '' : DBI::DBD::dbd_postamble(@_); 31} 32 33sub libscan { 34 my ($self, $path) = @_; 35 ($path =~ /\~$/) ? undef : $path; 36} 37