Why not write a small library for this (and let it live in inc / lib / FindHeaders.pm or some of them below the top level of your dir package). Just use Config (see Incpath) along with File :: Find and glob, and you should have a small library that can go by default, include the path and display the hash of headers on your system, returning it to the call from Makefile.PL. It would be trivial to extend this to include non-standard include paths, as well as a constructor argument for your library. Easy peasy.
source share