projects
/
urcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Document sigaltstack(2) limitation
[urcu.git]
/
configure.ac
diff --git
a/configure.ac
b/configure.ac
index d83e0270fd3b4fd49a26fb3ae741f3ddea62ddd6..33e8df799d2a3e13a8f55f1e4eb26fdeaaf964c7 100644
(file)
--- a/
configure.ac
+++ b/
configure.ac
@@
-2,7
+2,7
@@
# Process this file with autoconf to produce a configure script.
# Process this file with autoconf to produce a configure script.
-AC_INIT([userspace-rcu],[0.
6.7
],[mathieu dot desnoyers at efficios dot com])
+AC_INIT([userspace-rcu],[0.
7.4
],[mathieu dot desnoyers at efficios dot com])
# Following the numbering scheme proposed by libtool for the library version
# http://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html
# Following the numbering scheme proposed by libtool for the library version
# http://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html
@@
-15,6
+15,8
@@
AC_CANONICAL_HOST
AM_INIT_AUTOMAKE([foreign dist-bzip2 no-dist-gzip])
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
AM_INIT_AUTOMAKE([foreign dist-bzip2 no-dist-gzip])
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
+m4_include([config/ax_tls.m4])
+
AC_CONFIG_SRCDIR([urcu.h])
AC_CONFIG_HEADERS([config.h urcu/config.h])
AC_CONFIG_SRCDIR([urcu.h])
AC_CONFIG_HEADERS([config.h urcu/config.h])
@@
-24,6
+26,9
@@
AH_TEMPLATE([CONFIG_RCU_HAVE_FENCE], [Defined when on a system that has memory f
AH_TEMPLATE([CONFIG_RCU_HAVE_FUTEX], [Defined when on a system with futex support.])
AH_TEMPLATE([CONFIG_RCU_COMPAT_ARCH], [Compatibility mode for i386 which lacks cmpxchg instruction.])
AH_TEMPLATE([CONFIG_RCU_ARM_HAVE_DMB], [Use the dmb instruction if available for use on ARM.])
AH_TEMPLATE([CONFIG_RCU_HAVE_FUTEX], [Defined when on a system with futex support.])
AH_TEMPLATE([CONFIG_RCU_COMPAT_ARCH], [Compatibility mode for i386 which lacks cmpxchg instruction.])
AH_TEMPLATE([CONFIG_RCU_ARM_HAVE_DMB], [Use the dmb instruction if available for use on ARM.])
+AH_TEMPLATE([CONFIG_RCU_TLS], [TLS provided by the compiler.])
+
+AX_TLS(AC_DEFINE_UNQUOTED([CONFIG_RCU_TLS], $ac_cv_tls), [:])
# Checks for programs.
AC_PROG_CC
# Checks for programs.
AC_PROG_CC
@@
-58,6
+63,7
@@
AS_CASE([$host_cpu],
[alpha*], [ARCHTYPE="alpha"],
[ia64], [ARCHTYPE="gcc"],
[arm*], [ARCHTYPE="arm"],
[alpha*], [ARCHTYPE="alpha"],
[ia64], [ARCHTYPE="gcc"],
[arm*], [ARCHTYPE="arm"],
+ [mips*], [ARCHTYPE="mips"],
[ARCHTYPE="unknown"]
)
[ARCHTYPE="unknown"]
)
@@
-78,7
+84,14
@@
AS_IF([test "$host_cpu" = "armv7l"],[
# ARM-specific checks
AS_IF([test "x$ARCHTYPE" = "xarm"],[
AC_MSG_CHECKING([for dmb instruction])
# ARM-specific checks
AS_IF([test "x$ARCHTYPE" = "xarm"],[
AC_MSG_CHECKING([for dmb instruction])
- AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[asm volatile("dmb":::"memory");]])],[
+ AC_COMPILE_IFELSE([AC_LANG_SOURCE([[
+ int main()
+ {
+ asm volatile("dmb":::"memory");
+ return 0;
+ }
+ ]])
+ ],[
AC_MSG_RESULT([yes])
AC_DEFINE([CONFIG_RCU_ARM_HAVE_DMB], [1])
],[
AC_MSG_RESULT([yes])
AC_DEFINE([CONFIG_RCU_ARM_HAVE_DMB], [1])
],[
@@
-102,9
+115,8
@@
AS_IF([test "x$ARCHTYPE" = "xx86"],[
# Check if sys_futex() is available
AC_MSG_CHECKING([for sys_futex()])
# Check if sys_futex() is available
AC_MSG_CHECKING([for sys_futex()])
-AC_COMPILE_IFELSE([AC_LANG_
PROGRAM
([[
+AC_COMPILE_IFELSE([AC_LANG_
SOURCE
([[
#include <sys/syscall.h>
#include <sys/syscall.h>
- ]],[[
#ifndef __NR_futex
#error "futexes not available"
#endif
#ifndef __NR_futex
#error "futexes not available"
#endif
@@
-173,11
+185,14
@@
AC_CHECK_FUNCS([sched_setaffinity],[
# We do have it. Confirm that we have CPU_ZERO, and it actually works.
AC_MSG_CHECKING([whether CPU_ZERO works])
AH_TEMPLATE([HAVE_CPU_ZERO], [Defined to 1 if we have CPU_ZERO and it works])
# We do have it. Confirm that we have CPU_ZERO, and it actually works.
AC_MSG_CHECKING([whether CPU_ZERO works])
AH_TEMPLATE([HAVE_CPU_ZERO], [Defined to 1 if we have CPU_ZERO and it works])
- AC_COMPILE_IFELSE([AC_LANG_
PROGRAM
([[
+ AC_COMPILE_IFELSE([AC_LANG_
SOURCE
([[
#define _GNU_SOURCE
#include <sched.h>
#define _GNU_SOURCE
#include <sched.h>
- ]],[[
- cpu_set_t foo; CPU_ZERO (&foo);
+ int main()
+ {
+ cpu_set_t foo; CPU_ZERO (&foo);
+ return 0;
+ }
]])
],[
# Works!
]])
],[
# Works!
@@
-190,11
+205,14
@@
AC_CHECK_FUNCS([sched_setaffinity],[
# Check how many arguments does sched_setaffinity take.
# Should be 3 or 2.
AC_MSG_CHECKING([how many arguments sched_setaffinity takes])
# Check how many arguments does sched_setaffinity take.
# Should be 3 or 2.
AC_MSG_CHECKING([how many arguments sched_setaffinity takes])
- AC_COMPILE_IFELSE([AC_LANG_
PROGRAM
([[
+ AC_COMPILE_IFELSE([AC_LANG_
SOURCE
([[
#include <sched.h>
#include <sched.h>
- ]],[[
- cpu_set_t foo;
- sched_setaffinity (0, sizeof (foo), &foo);
+ int main()
+ {
+ cpu_set_t foo;
+ sched_setaffinity (0, sizeof (foo), &foo);
+ return 0;
+ }
]])
],
[sched_set_affinity_args=3],
]])
],
[sched_set_affinity_args=3],
@@
-217,6
+235,7
@@
AC_CONFIG_LINKS([
])
AC_CONFIG_FILES([
Makefile
])
AC_CONFIG_FILES([
Makefile
+ doc/Makefile
tests/Makefile
liburcu.pc
liburcu-bp.pc
tests/Makefile
liburcu.pc
liburcu-bp.pc
This page took
0.024875 seconds
and
4
git commands to generate.