summaryrefslogtreecommitdiff
path: root/acinclude.m4
AgeCommit message (Collapse)Author
2012-04-27Replaced obsolete autoconf and automake macrosGabriele Svelto
This patch cleans up a number of obsolete constructs in the build system, these include: - Replacing AC_TRY_RUN with AC_RUN_IFELSE for the SOCK_CLOEXEC test - Using AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER - Using LT_INIT with the win32-dll parameter instead of the obsolete AC_PROG_LIBTOOL and AC_LIBTOOL_WIN32_DLL macros - Removing the unused and obsolete AC_TYPE_SIGNAL check - Removing the unused alloca.h header check - Replacing the deprecated INCLUDES macro with AM_CPPFLAGS Signed-off-by: Gabriele Svelto <gabriele.svelto@gmail.com>
2012-04-21Change the way the polling system is selectedGabriele Svelto
All polling systems are now checked and corresponding macros set accordingly (e.g. detection of a working poll() function will define XS_HAVE_POLL). Additionally if the user selects a specific polling system via the --with-poller switch a corresponding XS_FORCE_* macro will be defined. The select() and poll() tests now conditionally include headers which makes them more robust on various target platforms. Signed-off-by: Gabriele Svelto <gabriele.svelto@gmail.com>
2012-04-09Fix /dev/poll detection on SolarisGabriele Svelto
The /dev/poll facility wasn't correctly recognized because of a missing header. The check was fixed and overhauled in the process. Signed-off-by: Gabriele Svelto <gabriele.svelto@gmail.com>
2012-04-04Define the XS_HAVE_* poller macros in a more robust wayGabriele Svelto
The existing code for definining the XS_HAVE_* macros for the polling mechanism may fail if the platform's `tr' command does not support the GNU syntax. Replacing the hand-made declaration with autoconf macros yields the same results on all platforms. Signed-off-by: Gabriele Svelto <gabriele.svelto@gmail.com>
2012-02-16Simplify mechanism for choosing polling mechanismMartin Sustrik
Till now the selection process was implemented both in autotools build system and in the code itself. From now on, it's exclusively build system's taks to choose the right polling mechanism. Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2012-02-16Small layout fix in acinlcude.m4 Signed-off-by: Martin Sustrik ↵Martin Sustrik
<sustrik@250bpm.com>
2012-02-16Revert "Fix: Case where system library has epoll but kernel does not support ↵Martin Sustrik
it." Configure-time checking for features should not invoke any code. It won't work for the case of cross-compilation. This reverts commit 5d6abb9379c6860ca6864a02520e5f7443f0b2d6.
2012-02-16Fix: Case where system library has epoll but kernel does not support it.Michael Fox
2012-02-16ZeroMQ renamed to CrossroadsMartin Sustrik
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2011-10-26Added compile-time test for SOCK_CLOEXECMikko Koppanen
Signed-off-by: Mikko Koppanen <mkoppanen@php.net>
2011-09-06Fix polling system detection on mingw32 buildMikko Koppanen
Signed-off-by: Mikko Koppanen <mkoppanen@php.net>
2011-09-04Added option to choose internal polling systemMikko Koppanen
Signed-off-by: Mikko Koppanen <mkoppanen@php.net>
2011-04-03Additional gcov changesMikko Koppanen
Signed-off-by: Mikko Koppanen <mkoppanen@php.net>
2011-04-02Large rename: AC_ZMQ_ to LIBZMQ_ and ac_zmq_ to libzmq_. Fixes "warning ↵Mikko Koppanen
suspicious cache-id" Signed-off-by: Mikko Koppanen <mkoppanen@php.net>
2011-04-02Added code coverage checkingMikko Koppanen
Signed-off-by: Mikko Koppanen <mkoppanen@php.net>
2010-12-18Fix passing through CFLAGS/CPPFLAGS/CXXFLAGS when using --enable-debugMikko Koppanen
Signed-off-by: Mikko Koppanen <mkoppanen@php.net>
2010-12-07Fix werror flag store/restoreMikko Koppanen
Signed-off-by: Mikko Koppanen <mkoppanen@php.net>
2010-12-07Fix visibility on rhel4Mikko Koppanen
Signed-off-by: Mikko Koppanen <mkoppanen@php.net>
2010-12-01Prefix variables with "ac_zmq_"Mikko Koppanen
- 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-11-19Add a check that the compiler actually works.Mikko Koppanen
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-18Run autoupdate on the configure.inMikko Koppanen
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-17Allow building without documentation.Mikko Koppanen
Allows building without documentation even if asciidoc and xmlto are installed. This eases up working with the build system because doc generation take quite a while on repeated builds. Signed-off-by: Mikko Koppanen <mkoppanen@php.net>
2010-11-17MinGW32 build fixesMikko Koppanen
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-15Build refactoringMikko Koppanen
Signed-off-by: Mikko Koppanen <mkoppanen@php.net>
2010-10-16Don't set pedantic to yes if using ICCMikko Koppanen
Signed-off-by: Mikko Koppanen <mkoppanen@php.net>