X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=Makefile.PL;h=b6ca640d3fccbe8e752d74d4b46eada358fb6320;hb=2e30600a5827deb1686d56ea00c27c232b22b7bc;hp=46a35249bcf1b4d1bc1f4e1669e3f9cac35fd976;hpb=374b6f4b9f33a776d04cdaa696b40e8e033dda32;p=koha.git diff --git a/Makefile.PL b/Makefile.PL index 46a35249bc..b6ca640d3f 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -1358,6 +1358,8 @@ sub _add_destdir { sub display_configuration { my $config = shift; my $dirmap = shift; + my @version = grep /\/usr\/share\/perl\//, @INC; + push @version, ('/usr/share/perl/5.10') if !$version[0]; print "\n\nKoha will be installed with the following configuration parameters:\n\n"; foreach my $key (sort keys %$config) { print sprintf("%-25.25s%s\n", $key, $config->{$key}); @@ -1370,7 +1372,7 @@ sub display_configuration { print "\n\nTo change any configuration setting, please run\n"; print "perl Makefile.PL again. To override one of the target\n"; print "directories, you can do so on the command line like this:\n"; - print "\nperl Makefile.PL PERL_MODULE_DIR=/usr/share/perl/5.8\n\n"; + print "\nperl Makefile.PL PERL_MODULE_DIR=$version[0]\n\n"; print "You can also set different default values for parameters\n"; print "or override directory locations by using environment variables.\n"; print "\nFor example:\n\n";