This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Configure: reuse "cached" value of "none" for dir
authorH.Merijn Brand - Tux <h.m.brand@xs4all.nl>
Thu, 25 Jul 2019 14:10:27 +0000 (16:10 +0200)
committerH.Merijn Brand - Tux <h.m.brand@xs4all.nl>
Thu, 25 Jul 2019 14:10:27 +0000 (16:10 +0200)
commit05791050f9134cbded072e1273f82e619c102c3e
treecb1d0530cf68fd854dea0a454a440b27b23ed3af
parent0e18c0f4c5727fab6d2d4e17b91ffa1c9ab15312
Configure: reuse "cached" value of "none" for dir

When value of a directory (i.e. man1dir) is set to "none" because of:
- '-D' option set on cmdline (i.e. -Dman1dir=none) OR
- because value is reused from previous configure run

And when the prefix is different from the previous configure run(*) then
keep the value of "none". predefined/cached value does not contain the
old prefix so there is no harm in keeping it.

(*): due to another bug this also happens when prefix ends with a
     trailing slash

See https://rt.perl.org/Ticket/Display.html?id=134284
dist/U/Prefixit.U