0
0
mirror of https://github.com/zeromq/libzmq.git synced 2025-01-05 10:43:19 +08:00

168 Commits

Author SHA1 Message Date
Cyril Holweck
01919774dc Making Android&pyzmq friendly version with avoid-version 2012-07-03 12:20:37 +02:00
Sergey KHripchenko
4b303402a7 more flexible keepalive options detection + awful options documentation 2012-04-06 20:04:35 +04:00
Sergey KHripchenko
0c3d917926 initial implementation of tuning TCP keep-alives for TCP socket
currently not fully cross-platform
work on linux
possibly work in *bsd
and could be enhanced to work on windows
2012-04-05 19:39:53 +04:00
skaller
f59fff7bf2 Add check for sys/uio.h to configure script.
sys/uio.h contains the XSI vector I/O data structure.
2012-02-08 02:47:51 +11:00
AJ Lewis
2e0c4330fa Patch from Mikko Koppanen for #LIBZMQ-301
Add the '-Ae' flag and check for gethrtime() on HPUX

Check if CLOCK_MONOTONIC defined before using it - if not, use
gethrtime() if it's available, otherwise fall back to the old
behavior.

Signed-off-by: AJ Lewis <aj.lewis@quantum.com>
2012-01-19 13:09:23 -06:00
Martin Sustrik
0df86c41b5 rt library required on all platforms
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2011-12-03 13:25:44 +01:00
Mika Fischer
aaac96d94a This makes clock_t insensitive to the system clock being reset by NTP or
the sysadmin, which could previously cause long hangs for instance in
zmq_poll.

Signed-off-by: Mika Fischer <mika.fischer@zoopnet.de>
2011-12-03 13:07:30 +01:00
Martin Lucina
27524908c1 Set libzmq ABI version to 3
libzmq master (3.1) is not ABI compatible with libzmq 2.1.x or 3.0 (removed
functionality), hence the ABI version needs to be set to 3.

Signed-off-by: Martin Lucina <martin@lucina.net>
2011-11-09 15:39:33 +01:00
Martin Sustrik
626099aa2a VTCP transport removed
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2011-10-31 16:37:20 +01:00
Mikko Koppanen
6c1b50cfab Added compile-time test for SOCK_CLOEXEC
Signed-off-by: Mikko Koppanen <mkoppanen@php.net>
2011-10-26 11:26:00 +02:00
Steven McCoy
f5f1a8b184 New upstream OpenPGM maintenance release 5.1.118.
Signed-off-by: Steven McCoy <steven.mccoy@miru.hk>
2011-10-04 09:39:55 +02:00
Mikko Koppanen
9d0e122bfa Added option to choose internal polling system
Signed-off-by: Mikko Koppanen <mkoppanen@php.net>
2011-09-04 10:28:15 +02:00
Martin Sustrik
41457e1ff1 Semaphores are not used anymore, build system is adjusted accordingly
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2011-08-15 22:02:15 +02:00
Mikko Koppanen
0354d4d37f Added Android support
Signed-off-by: Mikko Koppanen <mkoppanen@php.net>
2011-08-15 19:09:04 +02:00
Martin Sustrik
279302c5f5 Experimental VTCP listener added
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2011-07-26 18:35:40 +02:00
Martin Sustrik
c8e8f2a24c ZMQ_IDENTITY socket option removed
This patch simplifies the whole codebase significantly,
including dropping depedency on libuuid.

Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2011-07-15 11:24:33 +02:00
Martin Sustrik
8d96036fcd Build system checks for presence of eventfd.h header
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2011-07-03 16:11:11 +02:00
Mikko Koppanen
e62686aca5 RPM packaging improvements
Signed-off-by: Mikko Koppanen <mkoppanen@php.net>
2011-04-09 08:45:12 +02:00
Mikko Koppanen
6fd403c4d8 Make pkg-config dependency conditional
Signed-off-by: Mikko Koppanen <mkoppanen@php.net>
2011-04-04 22:52:02 +02:00
Mikko Koppanen
656b646bc6 Large rename: AC_ZMQ_ to LIBZMQ_ and ac_zmq_ to libzmq_. Fixes "warning suspicious cache-id"
Signed-off-by: Mikko Koppanen <mkoppanen@php.net>
2011-04-02 22:50:46 +02:00
Mikko Koppanen
bdeddb89f7 Added code coverage checking
Signed-off-by: Mikko Koppanen <mkoppanen@php.net>
2011-04-02 22:49:41 +02:00
Mikko Koppanen
7af18468f8 Add option to build with system opepgm
Signed-off-by: Mikko Koppanen <mkoppanen@php.net>
2011-04-02 22:48:52 +02:00
Mikko Koppanen
fbf1f51468 Upstream the openpgm build fixes. Add DSO symbol visibility to OpenPGM builds
Signed-off-by: Mikko Koppanen <mkoppanen@php.net>
2011-03-31 18:42:09 +02:00
Martin Sustrik
d4d184a750 Pre-compiled devices removed
Along with the devices, xmlParser which is no longer needed
is removed.

Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2011-03-23 17:33:07 +01:00
Mikko Koppanen
908b39bf83 m4_esyscmd_s doesnt seem to be portable across different systems
Signed-off-by: Mikko Koppanen <mikko.koppanen@gmail.com>
2011-02-07 15:06:20 +01:00
Chris Rempel
4efead1bbb Fixed autogen.sh warnings on Debian 6 systems.
Signed-off-by: Chris Rempel <csrl@gmx.com>

Please enter the commit message for your changes. Lines starting
2011-02-05 14:42:21 +01:00
Neale Ferguson
7051387108 Support dynamic generation of C preprocessor definitions for PGM rather than hardcoding them.
Signed-off-by: Neale Ferguson <neale@sinenomine.net>
2011-01-12 09:22:25 +01:00
Mikko Koppanen
cbbb1e925d Fix passing through CFLAGS/CPPFLAGS/CXXFLAGS when using --enable-debug
Signed-off-by: Mikko Koppanen <mkoppanen@php.net>
2010-12-18 12:13:10 +01:00
Mikko Koppanen
1d81d2f1d4 tar doesn't accept -C flag on solaris while extracting
Signed-off-by: Mikko Koppanen <mkoppanen@php.net>
2010-12-07 11:15:51 +01:00
Mikko Koppanen
aed2eeafdc Fix visibility on rhel4
Signed-off-by: Mikko Koppanen <mkoppanen@php.net>
2010-12-07 11:14:46 +01:00
Steven McCoy
4a3ed39a22 Bump OpenPGM to 5.0.92.
Signed-off-by: Steven McCoy <steven.mccoy@miru.hk>
2010-12-01 11:52:05 +01:00
Martin Lucina
520d621016 Bump ABI version to 1:0:0 for ZeroMQ 2.1.0 release
Signed-off-by: Martin Lucina <mato@kotelna.sk>
2010-12-01 11:11:25 +01:00
Mikko Koppanen
5bb0a339be Prefix variables with "ac_zmq_"
- Added a macro for checking clang compiler
 - Moved basic compiler checks to a macro
 - Added a macro for checking if compiler supports a flag
 - Added --enable-debug flag
 - Added a macro for running normal autoconf check with compiler flags
 - Added a macro for checking for verbose flag for different compilers (-Wall)
 - Added a macro for turning on strict standards compliance
 - Added a macro for turning warnings to errors
 - Added a macro for checking if compiler supports given pragma
 - Most of the flags now go through checks if the compilers supports them
   rather than enumerating different compilers
 - Added DSO symbol visibility for sun compiler
 - Enabled verbose mode for sun compiler
 - Fixed build for ICC 12.x by adding -wd279 to size_t checks
 - Removed pkg-config checks as those don't seem to be used anywhere

Signed-off-by: Mikko Koppanen <mkoppanen@php.net>
2010-12-01 10:33:07 +01:00
Martin Lucina
c9584096e0 Control symbol exports using -fvisibility
On systems using GCC 4.0 or newer which support symbol visibility in shared
libraries, use -fvisibility=hidden and only export explict API functions
defined in zmq.cpp. We do not enable -fvisibility on MinGW since this uses a
separate mechanism (__declspec).

Signed-off-by: Martin Lucina <mato@kotelna.sk>
2010-11-25 17:12:31 +01:00
Mikko Koppanen
edf7c18d79 Add a check that the compiler actually works.
The patch tests that the C and C++ compilers actually exist
and work. autoconf seems to default to 'g++' when C++ compiler is not
found, which causes the following error (when the compiler isn't
there):

checking for uuid_generate in -luuid... no
configure: error: cannot link with -luuid, install uuid-dev.

The config.log contains the real error message "g++ command not found"
but the error message shown to the user is misleading.

Signed-off-by: Mikko Koppanen <mkoppanen@php.net>
2010-11-19 09:10:26 +01:00
Mikko Koppanen
945c931daf Run autoupdate on the configure.in
I ran autoupdate on the configure.in, which generated most of the
patch attached. There is also a small manual fix in which removes the
warning "Remember to add LT_INIT to configure.in" which I assume is
because AC_PROG_LIBTOOL was called inside a macro.

Signed-off-by: Mikko Koppanen <mkoppanen@php.net>
2010-11-18 11:51:27 +01:00
Mikko Koppanen
c86375831d Remove unneeded substitutions
Couldn't find a place where these substs were actually used

Signed-off-by: Mikko Koppanen <mkoppanen@php.net>
2010-11-17 15:09:06 +01:00
Mikko Koppanen
b83d0a1bc0 Remove unnecessary conditional
This conditional is unnecessary as BUILD_PGM can be negated in the test.

Signed-off-by: Mikko Koppanen <mkoppanen@php.net>
2010-11-17 15:07:59 +01:00
Mikko Koppanen
925595259b MinGW32 build fixes
After long discussions in IRC we came to conclusion that there is no
elegant way to handle static builds with MinGW32. This patch sets
AC_DISABLE_STATIC by default on MinGW32 and Cygwin

Signed-off-by: Mikko Koppanen <mkoppanen@php.net>
2010-11-17 15:06:51 +01:00
Mikko Koppanen
3dbd5d5872 Fix mingw32 build
MinGW32 defines __int64_t as long long, which causes the build to fail
unless -Wno-long-long is used. In addition the shutdown_stress test
isn't currently compatible with Win.

Signed-off-by: Mikko Koppanen <mkoppanen@php.net>
2010-11-17 15:05:01 +01:00
Mikko Koppanen
da3327cf87 Build refactoring
Signed-off-by: Mikko Koppanen <mkoppanen@php.net>
2010-11-15 17:02:36 +01:00
Martin Sustrik
f77c8ca47f Merge branch 'maint'
* maint:
  Couple of patches for AIX build
2010-11-13 18:16:13 +01:00
Martin Sustrik
ffcb0baa73 Couple of patches for AIX build
- RAND_bytes function resides in crypto library
- pollfd on AIX used 'reqevents' instead of events and 'retnevents'
  instead of 'revents'

Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2010-11-13 18:08:18 +01:00
Martin Sustrik
de93f6359f crypto library is needed on HP-UX to generate UUIDs
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2010-11-02 13:30:20 +01:00
Steven McCoy
e1debf15bb Update to OpenPGM 5.0.91.
Signed-off-by: Steven McCoy <steven.mccoy@miru.hk>
2010-10-26 14:24:07 +02:00
Mikko Koppanen
8ef53c0dc6 Fixes build on Linux using Sun Studio compiler
Signed-off-by: Mikko Koppanen <mkoppanen@php.net>
2010-10-23 22:09:13 +02:00
Mikko Koppanen
b95f11aa0a Don't set pedantic to yes if using ICC
Signed-off-by: Mikko Koppanen <mkoppanen@php.net>
2010-10-16 01:05:15 +02:00
Martin Lucina
5b44025602 maint: Upgrade OpenPGM to 2.1.28~dfsg
Upgrade OpenPGM to version 2.1.28 for ZeroMQ 2.0.x. Now we also use the
DFSG-compliant upstream release tarball.

Signed-off-by: Martin Lucina <mato@kotelna.sk>
2010-10-15 17:27:10 +02:00
Martin Sustrik
eeb8e7c8be Merge branch 'maint'
* maint:
  Makefile.am: Add missing files to distribution, improve maintainer-clean
  configure.in: Extract API version from zmq.h
  Added bin directory to ignore list.

Conflicts:
	configure.in
	include/zmq.h
2010-10-15 17:13:36 +02:00
Martin Lucina
3b3df731e6 configure.in: Extract API version from zmq.h
* Added a version.sh and relevant changes to configure.in to extract the API
  version from zmq.h at the time autogen.sh is run.
* Moved the version macros to be next to zmq_version in zmq.h and improved
  the comments.
* Modified ZMQ_MAKE_VERSION to use (x) instead of plain x when expanding
  macro parameters.

Signed-off-by: Martin Lucina <mato@kotelna.sk>
2010-10-15 16:53:15 +02:00
Mikko Koppanen
e288f7a347 Fixes build on Linux using Sun Studio compiler
Signed-off-by: Mikko Koppanen <mkoppanen@php.net>
2010-10-15 10:43:22 +02:00
Martin Sustrik
e168173162 Merge branch 'maint'
* maint:
  configure.in: Do not patch libtool rpath handling
  Fixing the Red Hat packaging
2010-10-11 16:42:10 +02:00
Martin Lucina
57428db898 configure.in: Do not patch libtool rpath handling
For historic reasons (mainly compatbility with really old libtool), configure was
patching libtool to not use rpath in binaries. This breaks (among other things)
correct operation of "make check" since the test binaries may not be run with
the correct shared library version.

Current best practice as seen e.g. at http://wiki.debian.org/RpathIssue suggests
that this is no longer an issue, so I'm removing the code that patches libtool.

Signed-off-by: Martin Lucina <mato@kotelna.sk>
2010-10-11 16:39:48 +02:00
Martin Sustrik
6cd0867f02 Fixing the Red Hat packaging
When adding ZMQ_VERSION macros, I incorrectly removed
the PACKAGE_VERSION macro. Adding it back.

Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2010-10-11 16:32:27 +02:00
Martin Sustrik
318cdd1f24 Merge branch 'maint'
* maint:
  Version macros added

Conflicts:
	builds/msvc/platform.hpp

Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2010-10-09 08:03:58 +02:00
Martin Sustrik
ef8db789a1 Version macros added
Macro ZMQ_VERSION represents the current version of 0MQ
Macro ZMQ_MAKE_VERSION(major,minor,patch) allows to create
a representation of the specified version.
The versions can be compared using simple <, >, ==, etc.
operators.

Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2010-10-09 07:53:24 +02:00
Martin Lucina
965fb7755b configure.in: OpenPGM no longer requires pkg-config 2010-10-04 16:22:30 +02:00
Steven McCoy
d62d721f1a configure.in: Add amd64 to OpenPGM supported platforms 2010-10-04 16:14:57 +02:00
Steven McCoy
00cd7d49c7 Upgrade to OpenPGM-5.0.78 2010-09-28 16:35:29 +02:00
Martin Sustrik
01c463cc89 Version number incremented to 2.0.10 2010-09-04 19:08:55 +02:00
Martin Lucina
d4c8de5050 Merge branch 'maint'
* maint:
  Update .gitignore
  doc: Add 0MQ version to XHTML11 backend footer
  build: Generate ChangeLog in 'make dist', ZIP automatically
2010-09-04 17:49:40 +02:00
Martin Lucina
a6d3629fb4 build: Generate ChangeLog in 'make dist', ZIP automatically
Change 'make dist' to generate the Git ChangeLog file, that way it doesn't
have to be manually updated nor kept in Git which causes unnecessary work.

Also change 'make dist' to invoke 'dist-zip' automatically to generate a
ZIP as well as a .tar.gz.

Thanks to http://live.gnome.org/Git/ChangeLog for the inspiration to
automatically generate ChangeLog.
2010-09-04 17:42:12 +02:00
Martin Sustrik
99ddfa7d65 maint: will become 2.0.9 2010-09-01 18:22:03 +02:00
Martin Lucina
35cb1fade6 Add a basic framework for a test suite
The test suite uses the standard automake support. Tests are always built,
but run only when you do a "make check".
2010-08-27 18:35:59 +02:00
Martin Sustrik
b7e0fa972f 'master' will become 2.1.x release 2010-08-25 15:38:43 +02:00
Martin Lucina
c06a3cc510 Update version number to 2.0.8 2010-08-25 11:24:24 +02:00
Piotr Trojanek
8782b4d696 -lcrypto added to linking flags for QNX 2010-06-10 07:34:11 +02:00
Martin Lucina
d844a90690 zmqd: Removing for now, not ready for 2.0.7 2010-06-04 15:00:31 +02:00
Martin Lucina
05b4a7ae78 Remove PGM examples from build 2010-06-04 13:58:49 +02:00
Jon Dyte
f40ce4e500 single 0MQ daemon (zmqd) - initial version 2010-05-15 12:37:45 +02:00
Martin Lucina
2cf9f04a46 Update OpenPGM to version 2.1.26 2010-05-10 16:26:09 +02:00
Martin Sustrik
1ffc6dd41f eventfd-style signaling removed 2010-04-29 18:03:54 +02:00
Martin Lucina
0024d29076 Build fixes for cross compiling and Win32 2010-04-12 16:49:13 +02:00
Martin Lucina
b668387d91 Remove -Wxxx gcc-isms from subdir Makefiles 2010-04-10 17:04:33 +02:00
Martin Lucina
f6fa41dd7b Compile perf tests with the C++ compiler
This lets us build the binaries in a portable fashion w/o having to worry
about how to link with the C++ runtime.
2010-04-10 16:51:22 +02:00
Martin Lucina
770aedbd09 Build fixes for Solaris and non-GNU compilers
Compiling C++ code with -D_POSIX_SOURCE on Solaris is unsupported, so remove it.
Isolate GCC-isms inside checks that we are actually using GCC/G++.
Only check for -lstdc++ when on GCC and doing static linking.
2010-04-10 16:18:34 +02:00
Martin Lucina
1d28dc9059 Fix for Issue #14
Don't fail hard if an unreleased tarball is being built and asciidoc is
not installed; instead just print a big fat warning
2010-04-09 19:15:40 +02:00
Martin Sustrik
6ea76e9573 version bumped to 2.0.7 2010-04-09 16:24:21 +02:00
Vitaly Mayatskikh
c802a72a0b configure does not mention xmlto when missing 2010-03-22 22:31:37 +01:00
Martin Sustrik
ad75d02134 Add MSVC build files to distribution 2010-03-16 15:48:16 +01:00
Martin Sustrik
c08a7f8896 C perf tests are built non-optionally; C++ perf tests removed 2010-03-12 20:02:19 +01:00
Martin Sustrik
1fbeba2fe3 simplify configuration summary 2010-03-12 19:05:56 +01:00
Martin Sustrik
66b67fbdf2 devices are built unconditionally 2010-03-12 18:58:29 +01:00
Martin Sustrik
430aa53334 text concerning language bindings removed from configure 2010-03-12 18:42:38 +01:00
Martin Lucina
27e2d08449 Restructure language bindings
C and C++ headers moved from bindings/ to include/, bindings/ removed
--with-c and --with-cpp options to configure removed, C and C++ now built
and installed by default
2010-03-11 20:33:27 +01:00
Martin Lucina
90944759b6 Removed Java binding from core distribution 2010-03-11 20:12:55 +01:00
Martin Sustrik
d790940fd0 udp transport renamed to epgm 2010-03-09 18:14:49 +01:00
Martin Lucina
26b0aea24f Win32 build fixes 2010-03-03 17:01:08 +01:00
Martin Sustrik
ea0a44c8a9 Ruby binding removed 2010-02-27 14:18:02 +01:00
Martin Sustrik
45414b5444 python binding removed 2010-02-27 12:23:22 +01:00
Martin Lucina
efefa069b2 Cygwin support 2010-02-26 20:03:58 +01:00
Martin Lucina
39b8961974 Update OpenPGM to 2.0.24 (stable) 2010-02-24 09:41:10 +01:00
Martin Sustrik
ccd47f1ee8 chat example moved to separate repo 2010-02-24 09:17:05 +01:00
Martin Lucina
61f0ef569b NetBSD: Check for and use atomic_ops(3) if available 2010-02-22 18:16:40 +01:00
Martin Lucina
3a69cca386 Fix $build_doc/$install_man check yet again 2010-02-22 16:42:13 +01:00
malosek
ff99d753ae Minor buid system tunning 2010-02-20 21:03:12 +01:00
Martin Lucina
57148b1fde Add missing check for install_man=yes
Fixes git builds w/o asciidoc, bug introduced in 46824abe
2010-02-19 18:23:54 +01:00
Martin Sustrik
8b86dcf81c build on cygwin enabled 2010-02-19 17:50:47 +01:00
Martin Lucina
2a79a943de Add NetBSD support 2010-02-18 19:38:15 +01:00
Martin Lucina
776b126339 Fix typo 2010-02-18 19:27:35 +01:00