tests: Move tap-driver.sh out of the autotools aux directory We have made local modifications to this script, move it to the test suite directory so it doesn't get overwritten by an updated version from autotools. This is part of an effort to standardise our autotools setup across project to simplify maintenance. Change-Id: I4bc0bdbff05d03d8e4c0f9dcda51cf6a6cf7fec4 Signed-off-by: Michael Jeanson <mjeanson@efficios.com> Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
tap-driver.sh: flush stdout after each test result This is useful in a CI system where stdout is fully buffered and you look at the console output to see which test is hanging. Signed-off-by: Michael Jeanson <mjeanson@efficios.com> Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tests: Add tap-driver.sh for automake < 1.12 Add the tap-driver.sh script in the aux directory to enable systems with an automake version prior to 1.12 to bootstrap the source tree from git. Signed-off-by: Michael Jeanson <mjeanson@efficios.com> Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Port: Fixes to build system for portability Move our own m4 scripts to m4/. Scripts in this directory are automatically included. Make nproc command configurable. Make grep command configurable. Signed-off-by: Michael Jeanson <mjeanson@efficios.com> Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fix TLS detection: test with linker, add --disable-compiler-tls NetBSD 5.1 and older, as well as Darwin, succeed to compile code containing TLS, but cannot link it. Test with linker in addition to compiler for TLS support. Also add a --disable-compiler-tls configure option to allow users to force using the pthread getspecific fall back. Fixes #288 Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fix: re-enable compatibility with autoconf < 2.64 > I tried to build the latest urcu (git master e51500) on a Centos 6.2 box, and got: > > jscott@dxi0-62:~/src/userspace-rcu$ make -j4 > CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/sh /users/jscott/src/userspace-rcu/config/missing --run aclocal-1.11 -I > +config > CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/sh /users/jscott/src/userspace-rcu/config/missing --run autoconf > cd . && /bin/sh /users/jscott/src/userspace-rcu/config/missing --run automake-1.11 --foreign > configure:4010: error: possibly undefined macro: m4_ifnblank > If this token and others are legitimate, please use m4_pattern_allow. > See the Autoconf documentation. > make: *** [configure] Error 1 > make: *** Waiting for unfinished jobs.... > > Some digging showed that the macro m4_ifnblank requires autoconf 2.64. Centos 6.2 has autoconf 2.63. :( > > I just worked around it by reverting commit a767fd locally, then I can build fine. Reported-by: John Steele Scott <toojays@toojays.net> Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>