[zeromq-dev] [patch] 0001-Added-support-for-latest-OpenPGM-5.1.99-on-OSX10.6.patch

Mikko Koppanen mikko.koppanen at gmail.com
Tue Dec 21 10:28:01 CET 2010

On Tue, Dec 21, 2010 at 8:49 AM, Scott <alcoholiday at gmail.com> wrote:
> Well... after a little testing, I find that it's exploding when I try
> to do a connect("epgm://en1;"), so we're not quite
> there yet! At the same time openpgm  does compile and complete its
> tests.
> However, I'd still appreciate some feedback regarding the format of
> the changes, or if folks think I should make an OSX branch?

Hi Scott,

overall the patch looks good. Following things came into mind when
skimming through it:

1) rather than having a switch to checkout directly from openpgm svn
it might make more sense to add --with-pgm-source=/path/to switch that
would allow specifying a path in the filesystem. This approach would
allow testing local changes a lot more easily and doesn't break if
openpgm decides to change repository location in the future. What do
you think?

2) The automake conditional uses ON_DARWIN but the code uses
ZMQ_HAVE_OSX. I think it would be safe to use ON_OSX in automake as


4) libpgm_diff_flags inside ON_DARWIN should be one per line.

I think the plan is to add support for building libzmq with openpgm on
Solaris and FreeBSD as well. It might even make sense to split
operating system specifics into their respective automake files and
include based on operating system. It might be a bit cleaner approach
than using conditionals. I am not sure whether this is possible just
by doing AC_CONFIG_FILES([foreign/Makefile.linux.am]) or something

Can you send the patch as attachment as well so that I can properly
test it? It seems that my mail client doesn't handle inline patches
very well.

Mikko Koppanen

More information about the zeromq-dev mailing list