Authen-PAM
view release on metacpan or search on metacpan
Makefile.PL view on Meta::CPAN
sub configure {
$ENV{'CC'} # If a compiler is not specified on the command line then
or $ENV{'CC'} = $Config{'cc'}; # use the one with which perl was built
system("./configure") == 0 or
die "Error in configuring the Authen::PAM module.\n";
# returns a reference to anonymous hash which is then interpreted as
# additional options to the WriteMakeFile
$options = require "pam.cfg";
if ( $Config{'osname'} eq 'solaris' && $Config{'osvers'} eq '2.6') {
print "Adding a workaround for a bug in the Solaris 2.6 pam library\n";
${$options}{'DEFINE'} .= ' -DSTATIC_CONV_FUNC ';
}
foreach (@ARGV) {
if (/^-D.+/) {
print "Adding a definition '$_' from the command line\n";
$options->{DEFINE} .= " $_ " ;
( run in 0.282 second using v1.01-cache-2.11-cpan-0d8aa00de5b )