put feature detection into build/auto.pm