You could get completely rid of this custom CompileScript by also adding the --build and PERL*=* lines to ConfigureParams. The latter works since autoconf allows (and in fact, encourages), setting env var values by passing them in the NAME=VALUE form.