Alien-ZMQ
view release on metacpan or search on metacpan
lib/Alien/ZMQ.pm view on Meta::CPAN
Pass extra flags to the compiler when probing for an existing installation of
libzmq. You can use this, along with L</--zmq-libs>, to help the probing
function locate libzmq if it is installed in an unexpected place. For
example, if your libzmq is installed at F</opt/zeromq>, you can do something
like this:
perl Build.PL --zmq-cflags="-I/opt/zeromq/include" \
--zmq-libs="-L/opt/zeromq/lib -lzmq"
These flags are only used by the probing function to locate libzmq; they will
not be used when compiling libzmq from source (if it needs to be). To affect
the compiling of libzmq, using the L</--zmq-config> flag instead.
A better alternative to using L</--zmq-cflags> and L</--zmq-libs> is to help
the L<pkg-config> program find your libzmq by using the C<PKG_CONFIG_PATH>
environment variable. Of course, this method requires that you have the
L<pkg-config> program installed. Here's an example:
perl Build.PL
PKG_CONFIG_PATH=/opt/zeromq/lib/pkgconfig ./Build
=item --zmq-libs
Pass extra flags to the linker when probing for an existing installation of
libzmq. You can use this, along with L</--zmq-cflags>, to help the probing
function locate libzmq if it is installed in an unexpected place. Like
L</--zmq-cflags>, these flags are only used by the probing function to locate
libzmq.
=item --zmq-config
Pass extra flags to the libzmq F<configure> script. You may want to consider
passing either C<--with-pgm> or C<--with-system-pgm> if you need support for
PGM; this is not enabled by default because it is not supported by every
system.
=back
=head1 CAVEATS
Probing is only done during the installation of this module, so if you are
using a system-installed version of libzmq and you uninstall or upgrade it,
you will also need to reinstall L<Alien::ZMQ>.
If S<libzmq-2.x> is found on the system, L<Alien::ZMQ> will use it. There are
a few incompatibilities between S<libzmq-2.x> and S<libzmq-3.x>, so your
program may want to use the L</lib_version> method to check which version of
libzmq is installed.
=head1 BUGS
MSWin32 is not yet supported, but cygwin works.
=head1 SEE ALSO
=over 4
=item * L<GitHub project|https://github.com/chazmcgarvey/p5-Alien-ZMQ>
=item * L<ZMQ> - good perl bindings for zeromq
=item * L<ZeroMQ|http://www.zeromq.org/> - official libzmq website
=back
=head1 ACKNOWLEDGEMENTS
The design and implementation of this module were influenced by other L<Alien>
modules, including L<Alien::GMP> and L<Alien::Tidyp>.
=head1 AUTHOR
Charles McGarvey <ccm@cpan.org>
=head1 COPYRIGHT AND LICENSE
This software is copyright (c) 2013 by Charles McGarvey.
This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.
=cut
( run in 2.014 seconds using v1.01-cache-2.11-cpan-2398b32b56e )