On Tue, Oct 13, 2009 at 10:12:41AM -0400, Jerry D. Hedden wrote:
> On Tue, Oct 13, 2009 at 6:17 AM, O. STeffen BEYer <ost...@gmail.com> wrote:
> > what would be the best way to detect whether a working C compiler is
> > available at build time of a module (i.e., in Makefile.PL)?
> See the Makefile.PL for the 'threads' module.  I have reused this
> technique in several other modules and it works well.

If all you need is a compiler, then that's the way to go.  If what you
want to do is compile some stuff and link it to some other stuff, then
I'd use Devel::CheckLib, which will check for both a compiler, the
necessary libraries/headers, and a working linker.

-- 
David Cantrell | Official London Perl Mongers Bad Influence

    [OS X] appeals to me as a monk, a user, a compiler-of-apps, a
    sometime coder, and an easily amused primate with a penchant
    for those that are pretty, colorful, and make nice noises.
        -- Dan Birchall, in The Monastery

Reply via email to