>>>>> On Sun, 10 Dec 2000 13:50:41 -0800, "Richard Anderson" <[EMAIL PROTECTED]> 
>said:

 > And how do I hook this subroutine into Makefile.PL so that typing "perl
 > Makefile.PL will insert the needed lines into the Makefile?  Or do I need to
 > add another step to the normal installation procedure?

It may sound weird, but it has historical reasons: MakeMaker looks
into the MY namespace and handles subroutines there as if they had
been written in its own namespace so that your subroutine
MY::postamble will be executed. Its return value will end up in the
Makefile. So all you do is write something like

sub MY::postamble {
        return "# See me in the Makefile\n";
}

in your Makefile.PL

 > I don't like using /usr/local/etc/http-webtest either, but I don't think it
 > is appropriate to install a subdirectory structure in
 > /usr/lib/perl5/site_perl/5.005/HTTP - this seems reserved for .pm files.  At
 > least /usr/local/etc/http-webtest will persist even after an upgrade to perl
 > v 6.0.  The only problem with that directory would be if another app uses
 > /usr/local/etc/http-webtest, which seems unlikely.  Or is your point that
 > even the mere presence of a subdirectory in /usr/local/etc give MYSQL
 > problems?

The latter. But mind you, I have no solution for that, just the
recommendation that you let the users decide where they prefer the
files installed. A safer default place might be ~/.http-webtest.

-- 
andreas

Reply via email to