Reverting configure.pl to Eugens corrected version.