This fixes (part of) https://bugs.gnu.org/67891
and follows up on https://bugs.gnu.org/55025.
* bin/automake.in (generate_makefile) <posix>: avoid use of
\K when removing comment and blank lines before a .POSIX target,
since Solaris 10 has perl 5.8.4, and \K was added in 5.10.
# otherwise, the behavior of "make" is unspecified by POSIX.
if (option 'posix')
{
- $output =~ s/^((#.*)?\n)*\K/.POSIX:\n\n/;
+ $output =~ s/^((#.*)?\n)*/.POSIX:\n\n/;
}
# Decide whether we must update the output file or not.