Dist::Zilla::Plugin::CheckLib - Require that our distribution has a particular library available
In your dist.ini:
[CheckLib] lib = jpeg header = jpeglib.h
This is a Dist::Zilla plugin that modifies the Makefile.PL or Build.PL in your distribution to contain a Devel::CheckLib call, that asserts that a particular library and/or header is available. If it is not available, the program exits with a status of zero, which on a CPAN Testers machine will result in a NA result.
All options are as documented in Devel::CheckLib:
A string with the name of a single library name. Can be used more than once. Depending on the compiler found, library names will be fed to the compiler either as
-l arguments or as
.lib file names. (e.g.
Additional path to search for libraries. Can be used more than once.
A ExtUtils::MakeMaker-style space-separated list of libraries (each preceded by
-l) and directories (preceded by
If true, emit information during processing that can be used for debugging.
The name of a single header file name. Can be used more than once.
An additional path to search for headers. Can be used more than once.
A ExtUtils::MakeMaker-style space-separated list of incpaths, each preceded by
Karen Etheridge <email@example.com>
This software is copyright (c) 2014 by Karen Etheridge.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.