Well I don't know how to solve your autotools problem, so I'll take a crack at readmore and code. To do the readmore thing, surround the big block of code with
<readmore>
<code>
Big block here
</code>
</readmore>
Like this:
#!/usr/bin/perl
use strict;
use warnings;
l0: print "Hello ";
Z0: goto l0;
__END__