On Tue, Feb 19, 2013 at 05:57:12PM +0100, demerphq wrote:

> I want to fix this.
> 
> My current plan is to create a new module ExtUtils::PerlHeaders and
> then move the list there.
> 
> EU::MakeMaker can then require this module, and if it exists use it
> for the header list.
> 
> I am curious if anyone has any better suggestions or comments?
> 
> The code involved is in lib/ExtUtils/MM_Unix.pm as the sub perldepend():

It's also in ExtUtils::MM_VMS as perldepend(). The intent is the same. The
list is different.


I noticed this problem a while back. I got some way towards addressing it -
I added a routine Config::header_files() to give the list of header files.
(So that's your ExtUtils::PerlHeaders already done)

However, at the time I didn't have access to VMS, so couldn't fix up the
forked code to do it in one place.

However, since then, it's been suggested by someone (forget who, sorry) -
why do we need a list? Given that the directory of installed header files
is under our control, why not just glob it, and depend on everything that
is <*.h> ?

This seems a simpler suggestion than having to maintain an explicit list.

Nicholas Clark

Reply via email to