You can use Distribution::Guess::BuildSystem under the same terms as Perl itself.