configure: Get the check for libperl in sync with the way it's used.