autoconf: added probe and check for perl before usage