ExtUtils::FindFunctions - Find functions in external libraries
Version 0.02
use ExtUtils::FindFunctions; my @check = qw(pcap_findalldevs pcap_open_dead pcap_setnonblock pcap_lib_version); my @funcs = have_functions(libs => '-lpcap', funcs => \@check, return_as => 'array');
This module provides the have_functions() function which can be used to check if given functions are provided by an external library. Its aim is to be used as an embedded library by Makefile.PL which needs such facilities. Use the install-extutils-findfunctions command to embed it in your distribution.
have_functions()
The module exports by default the have_functions() function.
Load the specified libraries and search for the given functions names. The results are returned as an array or as an hash depending on the return_as parameter.
return_as
Parameters
libs - specify the libraries to load; this argument will be given to DynaLoader::dl_findfile()
libs
DynaLoader::dl_findfile()
funcs - a reference to the list of functions to search
funcs
return_as - specify the type of the result, either as an array or as a hash. As an array, only the functions found in the libraries are returned. As a hash, the keys are the function names and their value indicates if the function is present or not.
array
hash
Sébastien Aperghis-Tramoni, <sebastien at aperghis.net>
<sebastien at aperghis.net>
Please report any bugs or feature requests to bug-extutils-findfunctions at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=ExtUtils-FindFunctions. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-extutils-findfunctions at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc ExtUtils::FindFunctions
You can also look for information at:
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/ExtUtils-FindFunctions
CPAN Ratings
http://cpanratings.perl.org/d/ExtUtils-FindFunctions
RT: CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=ExtUtils-FindFunctions
Search CPAN
http://search.cpan.org/dist/ExtUtils-FindFunctions
Copyright 2006 Sébastien Aperghis-Tramoni, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install ExtUtils::FindFunctions, copy and paste the appropriate command in to your terminal.
cpanm
cpanm ExtUtils::FindFunctions
CPAN shell
perl -MCPAN -e shell install ExtUtils::FindFunctions
For more information on module installation, please visit the detailed CPAN module installation guide.