configure: host specific config
[urcu.git] / configure.ac
CommitLineData
23975ca7
MJ
1dnl SPDX-License-Identifier: LGPL-2.1-only
2dnl
3dnl Copyright (C) 2021 EfficiOS, Inc.
4dnl
5dnl Process this file with autoconf to produce a configure script.
6
7# Project version information
8m4_define([urcu_version_major], [0])
9m4_define([urcu_version_minor], [12])
10m4_define([urcu_version_patch], [0])
11m4_define([urcu_version_dev_stage], [])
12m4_define([urcu_version], urcu_version_major[.]urcu_version_minor[.]urcu_version_patch[]urcu_version_dev_stage)
13
14# Library version information of "liburcu"
98bc124a
YB
15# Following the numbering scheme proposed by libtool for the library version
16# http://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html
23975ca7
MJ
17m4_define([urcu_lib_version_current], [7])
18m4_define([urcu_lib_version_revision], [0])
19m4_define([urcu_lib_version_age], [1])
20m4_define([urcu_lib_version], urcu_lib_version_current[:]urcu_lib_version_revision[:]urcu_lib_version_age)
21
22
23## ##
24## Autoconf base setup ##
25## ##
26
afb6113f 27AC_PREREQ([2.69])
23975ca7 28AC_INIT([userspace-rcu],[urcu_version],[mathieu dot desnoyers at efficios dot com],[],[http://liburcu.org/])
98bc124a 29
6893800a 30AC_CONFIG_HEADERS([include/config.h include/urcu/config.h])
48d848c7 31AC_CONFIG_AUX_DIR([config])
074c3a1b
MJ
32AC_CONFIG_MACRO_DIR([m4])
33
7d413817
MD
34AC_CANONICAL_TARGET
35AC_CANONICAL_HOST
074c3a1b 36
afb6113f
MJ
37
38## ##
39## Automake base setup ##
40## ##
41
42AM_INIT_AUTOMAKE([1.12 foreign dist-bzip2 no-dist-gzip nostdinc -Wall -Wno-portability -Werror])
35eb2d6c 43AM_MAINTAINER_MODE([enable])
7d413817 44
afb6113f
MJ
45# Enable silent rules by default
46AM_SILENT_RULES([yes])
e72596d1 47
514079bb
MJ
48
49## ##
50## OS and Arch specific defaults ##
51## ##
52
53AS_CASE([$host],
54 [*-cygwin*], [LT_NO_UNDEFINED="-no-undefined"]
55)
56
57
02be5561 58AH_TEMPLATE([CONFIG_RCU_SMP], [Enable SMP support. With SMP support enabled, uniprocessors are also supported. With SMP support disabled, UP systems work fine, but the behavior of SMP systems is undefined.])
a767fdc3 59AH_TEMPLATE([CONFIG_RCU_TLS], [TLS provided by the compiler.])
a0307b90 60AH_TEMPLATE([CONFIG_RCU_HAVE_CLOCK_GETTIME], [clock_gettime() is detected.])
d8d9a340 61AH_TEMPLATE([CONFIG_RCU_FORCE_SYS_MEMBARRIER], [Require the operating system to support the membarrier system call for default and bulletproof flavors.])
a9a42447 62AH_TEMPLATE([CONFIG_RCU_DEBUG], [Enable internal debugging self-checks. Introduces a performance penalty.])
d7c76f85 63AH_TEMPLATE([CONFIG_CDS_LFHT_ITER_DEBUG], [Enable extra debugging checks for lock-free hash table iterator traversal. Alters the rculfhash ABI. Make sure to compile both library and application with matching configuration.])
d8d9a340
MD
64
65# Allow requiring the operating system to support the membarrier system
66# call. Applies to default and bulletproof flavors.
67AC_ARG_ENABLE([sys-membarrier-fallback],
68 AS_HELP_STRING([--disable-sys-membarrier-fallback], [Abort if sys-membarrier is needed but not available rather than using a fallback.]),
69 [def_sys_membarrier_fallback=$enableval],
70 [def_sys_membarrier_fallback="yes"])
71AS_IF([test "x$def_sys_membarrier_fallback" != "xyes"], [AC_DEFINE([CONFIG_RCU_FORCE_SYS_MEMBARRIER], [1])])
a767fdc3 72
75478b32
MD
73# Allow overriding storage used for TLS variables.
74AC_ARG_ENABLE([compiler-tls],
75 AS_HELP_STRING([--disable-compiler-tls], [Use pthread_getspecific() to emulate Thread Local Storage (TLS) variables.]),
76 [def_compiler_tls=$enableval],
77 [def_compiler_tls="yes"])
78
e9fa4876
MJ
79# Checks for C compiler
80AC_USE_SYSTEM_EXTENSIONS
81AC_PROG_CC
b72f6acb
JG
82# AC_PROG_CC_STDC was merged in AC_PROG_CC in autoconf 2.70
83m4_version_prereq([2.70], [], [AC_PROG_CC_STDC])
109267f6 84AS_IF([test "x$def_compiler_tls" = "xyes"], AC_DEFINE([CONFIG_RCU_TLS], [1]), [:])
48d848c7 85
074c3a1b 86# Checks for programs.
27d5e306 87AC_PROG_AWK
48d848c7 88AC_PROG_MAKE_SET
074c3a1b 89AC_CHECK_PROGS(NPROC, [nproc gnproc])
2350bf7b
MJ
90AC_CHECK_PROGS(GETCONF, [getconf])
91AS_IF([test "x$NPROC" != "x"],
92 [NPROC_CMD=$NPROC],
93 [AS_IF([test "x$GETCONF" != "x"],
94 [NPROC_CMD="$GETCONF _NPROCESSORS_ONLN"],
95 [NPROC_CMD="echo 1"]
96 )]
97)
98AC_SUBST([NPROC_CMD], [$NPROC_CMD])
99
b14a378a 100LT_INIT
48d848c7
PMF
101
102# Checks for typedefs, structures, and compiler characteristics.
103AC_C_INLINE
104AC_TYPE_PID_T
105AC_TYPE_SIZE_T
27d5e306
MJ
106AC_TYPE_SSIZE_T
107AC_TYPE_UINT16_T
991d28ca
JR
108AC_TYPE_INT32_T
109AC_TYPE_UINT32_T
110AC_TYPE_UINT64_T
111AC_TYPE_UINT8_T
48d848c7 112
074c3a1b
MJ
113AX_C___ATTRIBUTE__
114AS_IF([test "x$ax_cv___attribute__" = "xyes"],
115 [:],
116 [AC_MSG_ERROR([The compiler does not support __attribute__ extensions])])
117
118AX_PTHREAD(,[AC_MSG_ERROR([Could not configure pthreads support])])
074c3a1b 119
cdadd34c
MJ
120AM_CFLAGS="$AM_CFLAGS $PTHREAD_CFLAGS"
121
48d848c7 122# Checks for library functions.
48d848c7 123AC_FUNC_MMAP
27d5e306
MJ
124AC_FUNC_FORK
125AC_CHECK_FUNCS([ \
126 atexit \
27d5e306
MJ
127 getcpuid \
128 gettid \
129 gettimeofday \
130 memeset \
131 memset \
132 munmap \
3e4ae45a 133 rand_r \
27d5e306
MJ
134 sched_getcpu \
135 strerror \
136 strtoul \
137 sysconf \
138])
48d848c7 139
9a62b0f0
MJ
140# AC_FUNC_MALLOC causes problems when cross-compiling.
141#AC_FUNC_MALLOC
142
bb6afa9a 143# Check for headers
7dea28e7 144AC_HEADER_STDBOOL
27d5e306
MJ
145AC_CHECK_HEADERS([ \
146 limits.h \
147 stddef.h \
148 sys/param.h \
149 sys/time.h \
150])
bb6afa9a 151
8be0fb5f 152# Search for clock_gettime
a0307b90
MD
153AC_SEARCH_LIBS([clock_gettime], [rt], [
154 AC_DEFINE([CONFIG_RCU_HAVE_CLOCK_GETTIME], [1])
628a1a72 155 config_rcu_have_clock_gettime=yes
a0307b90 156], [])
8be0fb5f 157
2f49a496 158AM_CONDITIONAL([NO_SHARED], [test "x$enable_shared" = "xno"])
0854ccff 159
a6412536
AM
160# smp-support configure option
161AC_ARG_ENABLE([smp-support],
162 AS_HELP_STRING([--disable-smp-support], [Disable SMP support. Warning: only use this on uniprocessor systems. [default=enabled]]),
163 [def_smp_support=$enableval],
164 [def_smp_support="yes"])
165AS_IF([test "x$def_smp_support" = "xyes"], [AC_DEFINE([CONFIG_RCU_SMP], [1])])
7d413817 166
d4e640c0
JR
167# RCU debugging option
168AC_ARG_ENABLE([rcu-debug],
169 AS_HELP_STRING([--enable-rcu-debug], [Enable internal debugging
a9a42447 170 self-checks. Introduces a performance penalty.]))
d4e640c0
JR
171AS_IF([test "x$enable_rcu_debug" = "xyes"], [
172 AC_DEFINE([CONFIG_RCU_DEBUG], [1])
173])
48d848c7 174
d7c76f85
MD
175# rculfhash iterator debugging
176AC_ARG_ENABLE([cds-lfht-iter-debug],
177 AS_HELP_STRING([--enable-cds-lfht-iter-debug], [Enable extra debugging checks for lock-free hash table iterator traversal. Alters the rculfhash ABI. Make sure to compile both library and application with matching configuration.]))
178AS_IF([test "x$enable_cds_lfht_iter_debug" = "xyes"], [
179 AC_DEFINE([CONFIG_CDS_LFHT_ITER_DEBUG], [1])
180])
181
d8540fc5
PA
182# From the sched_setaffinity(2)'s man page:
183# ~~~~
184# The CPU affinity system calls were introduced in Linux kernel 2.5.8.
185# The library interfaces were introduced in glibc 2.3. Initially, the
186# glibc interfaces included a cpusetsize argument. In glibc 2.3.3,
187# the cpuset size argument was removed, but this argument was
188# restored in glibc 2.3.4.
189# ~~~~
190
191# In addition to that, some vendors ported the system call to 2.4
192# kernels.
193
194# Furthermore, when the function first appeared, the MASK argument was
195# an unsigned long pointer, while later it was made into a cpu_set_t
196# pointer. Systems that have the cpu_set_t version also should have
197# the CPU_ZERO, CPU_SET, etc. macros.
198
199# All this mess means we have to cater for at least 3 different
200# sched_setaffinity prototypes:
201
202# ~~~~
203# int sched_setaffinity (pid_t pid, unsigned int len, unsigned long *mask);
204# int sched_setaffinity (pid_t __pid, size_t __cpusetsize, const cpu_set_t *__cpuset);
205# int sched_setaffinity (pid_t __pid, const cpu_set_t *__mask);
206# ~~~~
207
b3231c17
MD
208AC_CHECK_TYPES([cpu_set_t],
209 [have_cpu_set_t="yes"],
210 [have_cpu_set_t="no"],
211 [#include <sched.h>])
212
213# Confirm that we have CPU_ZERO, and it actually works.
214AC_MSG_CHECKING([whether CPU_ZERO works])
215AH_TEMPLATE([HAVE_CPU_ZERO], [Defined to 1 if we have CPU_ZERO and it works])
216AC_COMPILE_IFELSE([AC_LANG_SOURCE([[
b3231c17
MD
217 #include <sched.h>
218 int main()
219 {
220 cpu_set_t foo; CPU_ZERO(&foo);
221 return 0;
222 }
223 ]])
224],[
225 AC_DEFINE(HAVE_CPU_ZERO, 1)
226 AC_MSG_RESULT([yes])
227],[
228 AC_MSG_RESULT([no])
229])
230
231# Confirm that we have CPU_SET, and it actually works.
232AC_MSG_CHECKING([whether CPU_SET works])
233AH_TEMPLATE([HAVE_CPU_SET], [Defined to 1 if we have CPU_SET and it works])
234AC_COMPILE_IFELSE([AC_LANG_SOURCE([[
b3231c17
MD
235 #include <sched.h>
236 int main()
237 {
5bed6565 238 cpu_set_t foo; CPU_SET(0, &foo);
b3231c17
MD
239 return 0;
240 }
241 ]])
242],[
243 AC_DEFINE(HAVE_CPU_SET, 1)
244 AC_MSG_RESULT([yes])
245],[
246 AC_MSG_RESULT([no])
247])
248
d8540fc5 249# First check if the function is available at all.
a6412536
AM
250AC_CHECK_FUNCS([sched_setaffinity],[
251 # Okay, we have it. Check if also have cpu_set_t. If we don't,
252 # then we have the first version using unsigned long, and no
253 # CPU_ZERO, etc. macros. If we do have cpu_set_t, we may have the
254 # version with 2 or 3 arguments. In that case, CPU_ZERO, etc.,
255 # should also be present, but we confirm nonetheless.
256
b3231c17
MD
257 AS_IF([test "x$have_cpu_set_t" = "xyes"], [
258 # We do have it.
a6412536
AM
259 # Check how many arguments does sched_setaffinity take.
260 # Should be 3 or 2.
261 AC_MSG_CHECKING([how many arguments sched_setaffinity takes])
ec5e2d14 262 AC_COMPILE_IFELSE([AC_LANG_SOURCE([[
a6412536 263 #include <sched.h>
fe0707ab
MD
264 int main()
265 {
266 cpu_set_t foo;
b3231c17 267 sched_setaffinity(0, sizeof (foo), &foo);
fe0707ab
MD
268 return 0;
269 }
a6412536
AM
270 ]])
271 ],
272 [sched_set_affinity_args=3],
273 [sched_set_affinity_args=2])
b3231c17
MD
274 AC_DEFINE_UNQUOTED(SCHED_SETAFFINITY_ARGS,
275 $sched_set_affinity_args,
a6412536
AM
276 [Defined to sched_setaffinity's number of arguments.])
277 AC_MSG_RESULT([$sched_set_affinity_args])
278 ],[
279 # No cpu_set_t, always 3 args.
280 AC_DEFINE(SCHED_SETAFFINITY_ARGS, 3)
b3231c17 281 ])
a6412536 282])
d8540fc5 283
23975ca7
MJ
284## ##
285## Substitute variables for use in Makefile.am ##
286## ##
287
288# Library versions for libtool
289AC_SUBST([URCU_LIBRARY_VERSION], [urcu_lib_version])
290
514079bb
MJ
291AC_SUBST(LT_NO_UNDEFINED)
292
9a79c612
MJ
293AM_CPPFLAGS="-include config.h"
294AC_SUBST(AM_CPPFLAGS)
295
83e334d0 296AM_CFLAGS="-Wall -Wextra -Wno-unused-parameter $AM_CFLAGS"
9a79c612 297AC_SUBST(AM_CFLAGS)
d8540fc5 298
48d848c7
PMF
299AC_CONFIG_FILES([
300 Makefile
fe999c05 301 doc/Makefile
8bad63a0 302 doc/examples/Makefile
6893800a
MJ
303 include/Makefile
304 src/Makefile
48d848c7 305 tests/Makefile
f5ab766e
MD
306 tests/common/Makefile
307 tests/unit/Makefile
308 tests/benchmark/Makefile
309 tests/regression/Makefile
1b387491 310 tests/utils/Makefile
6893800a
MJ
311 src/liburcu.pc
312 src/liburcu-bp.pc
313 src/liburcu-cds.pc
314 src/liburcu-qsbr.pc
315 src/liburcu-mb.pc
316 src/liburcu-signal.pc
48d848c7 317])
03c5782e
MJ
318
319AC_CONFIG_FILES([tests/regression/rcutorture_urcu_bp_perf_global.tap], [chmod +x tests/regression/rcutorture_urcu_bp_perf_global.tap])
320AC_CONFIG_FILES([tests/regression/rcutorture_urcu_bp_perf_percpu.tap], [chmod +x tests/regression/rcutorture_urcu_bp_perf_percpu.tap])
321AC_CONFIG_FILES([tests/regression/rcutorture_urcu_bp_perf_perthread.tap], [chmod +x tests/regression/rcutorture_urcu_bp_perf_perthread.tap])
322AC_CONFIG_FILES([tests/regression/rcutorture_urcu_bp_rperf_global.tap], [chmod +x tests/regression/rcutorture_urcu_bp_rperf_global.tap])
323AC_CONFIG_FILES([tests/regression/rcutorture_urcu_bp_rperf_percpu.tap], [chmod +x tests/regression/rcutorture_urcu_bp_rperf_percpu.tap])
324AC_CONFIG_FILES([tests/regression/rcutorture_urcu_bp_rperf_perthread.tap], [chmod +x tests/regression/rcutorture_urcu_bp_rperf_perthread.tap])
325AC_CONFIG_FILES([tests/regression/rcutorture_urcu_bp_stress_global.tap], [chmod +x tests/regression/rcutorture_urcu_bp_stress_global.tap])
326AC_CONFIG_FILES([tests/regression/rcutorture_urcu_bp_stress_percpu.tap], [chmod +x tests/regression/rcutorture_urcu_bp_stress_percpu.tap])
327AC_CONFIG_FILES([tests/regression/rcutorture_urcu_bp_stress_perthread.tap], [chmod +x tests/regression/rcutorture_urcu_bp_stress_perthread.tap])
328AC_CONFIG_FILES([tests/regression/rcutorture_urcu_bp_uperf_global.tap], [chmod +x tests/regression/rcutorture_urcu_bp_uperf_global.tap])
329AC_CONFIG_FILES([tests/regression/rcutorture_urcu_bp_uperf_percpu.tap], [chmod +x tests/regression/rcutorture_urcu_bp_uperf_percpu.tap])
330AC_CONFIG_FILES([tests/regression/rcutorture_urcu_bp_uperf_perthread.tap], [chmod +x tests/regression/rcutorture_urcu_bp_uperf_perthread.tap])
331AC_CONFIG_FILES([tests/regression/rcutorture_urcu_mb_perf_global.tap], [chmod +x tests/regression/rcutorture_urcu_mb_perf_global.tap])
332AC_CONFIG_FILES([tests/regression/rcutorture_urcu_mb_perf_percpu.tap], [chmod +x tests/regression/rcutorture_urcu_mb_perf_percpu.tap])
333AC_CONFIG_FILES([tests/regression/rcutorture_urcu_mb_perf_perthread.tap], [chmod +x tests/regression/rcutorture_urcu_mb_perf_perthread.tap])
334AC_CONFIG_FILES([tests/regression/rcutorture_urcu_mb_rperf_global.tap], [chmod +x tests/regression/rcutorture_urcu_mb_rperf_global.tap])
335AC_CONFIG_FILES([tests/regression/rcutorture_urcu_mb_rperf_percpu.tap], [chmod +x tests/regression/rcutorture_urcu_mb_rperf_percpu.tap])
336AC_CONFIG_FILES([tests/regression/rcutorture_urcu_mb_rperf_perthread.tap], [chmod +x tests/regression/rcutorture_urcu_mb_rperf_perthread.tap])
337AC_CONFIG_FILES([tests/regression/rcutorture_urcu_mb_stress_global.tap], [chmod +x tests/regression/rcutorture_urcu_mb_stress_global.tap])
338AC_CONFIG_FILES([tests/regression/rcutorture_urcu_mb_stress_percpu.tap], [chmod +x tests/regression/rcutorture_urcu_mb_stress_percpu.tap])
339AC_CONFIG_FILES([tests/regression/rcutorture_urcu_mb_stress_perthread.tap], [chmod +x tests/regression/rcutorture_urcu_mb_stress_perthread.tap])
340AC_CONFIG_FILES([tests/regression/rcutorture_urcu_mb_uperf_global.tap], [chmod +x tests/regression/rcutorture_urcu_mb_uperf_global.tap])
341AC_CONFIG_FILES([tests/regression/rcutorture_urcu_mb_uperf_percpu.tap], [chmod +x tests/regression/rcutorture_urcu_mb_uperf_percpu.tap])
342AC_CONFIG_FILES([tests/regression/rcutorture_urcu_mb_uperf_perthread.tap], [chmod +x tests/regression/rcutorture_urcu_mb_uperf_perthread.tap])
343AC_CONFIG_FILES([tests/regression/rcutorture_urcu_membarrier_perf_global.tap], [chmod +x tests/regression/rcutorture_urcu_membarrier_perf_global.tap])
344AC_CONFIG_FILES([tests/regression/rcutorture_urcu_membarrier_perf_percpu.tap], [chmod +x tests/regression/rcutorture_urcu_membarrier_perf_percpu.tap])
345AC_CONFIG_FILES([tests/regression/rcutorture_urcu_membarrier_perf_perthread.tap], [chmod +x tests/regression/rcutorture_urcu_membarrier_perf_perthread.tap])
346AC_CONFIG_FILES([tests/regression/rcutorture_urcu_membarrier_rperf_global.tap], [chmod +x tests/regression/rcutorture_urcu_membarrier_rperf_global.tap])
347AC_CONFIG_FILES([tests/regression/rcutorture_urcu_membarrier_rperf_percpu.tap], [chmod +x tests/regression/rcutorture_urcu_membarrier_rperf_percpu.tap])
348AC_CONFIG_FILES([tests/regression/rcutorture_urcu_membarrier_rperf_perthread.tap], [chmod +x tests/regression/rcutorture_urcu_membarrier_rperf_perthread.tap])
349AC_CONFIG_FILES([tests/regression/rcutorture_urcu_membarrier_stress_global.tap], [chmod +x tests/regression/rcutorture_urcu_membarrier_stress_global.tap])
350AC_CONFIG_FILES([tests/regression/rcutorture_urcu_membarrier_stress_percpu.tap], [chmod +x tests/regression/rcutorture_urcu_membarrier_stress_percpu.tap])
351AC_CONFIG_FILES([tests/regression/rcutorture_urcu_membarrier_stress_perthread.tap], [chmod +x tests/regression/rcutorture_urcu_membarrier_stress_perthread.tap])
352AC_CONFIG_FILES([tests/regression/rcutorture_urcu_membarrier_uperf_global.tap], [chmod +x tests/regression/rcutorture_urcu_membarrier_uperf_global.tap])
353AC_CONFIG_FILES([tests/regression/rcutorture_urcu_membarrier_uperf_percpu.tap], [chmod +x tests/regression/rcutorture_urcu_membarrier_uperf_percpu.tap])
354AC_CONFIG_FILES([tests/regression/rcutorture_urcu_membarrier_uperf_perthread.tap], [chmod +x tests/regression/rcutorture_urcu_membarrier_uperf_perthread.tap])
355AC_CONFIG_FILES([tests/regression/rcutorture_urcu_qsbr_perf_global.tap], [chmod +x tests/regression/rcutorture_urcu_qsbr_perf_global.tap])
356AC_CONFIG_FILES([tests/regression/rcutorture_urcu_qsbr_perf_percpu.tap], [chmod +x tests/regression/rcutorture_urcu_qsbr_perf_percpu.tap])
357AC_CONFIG_FILES([tests/regression/rcutorture_urcu_qsbr_perf_perthread.tap], [chmod +x tests/regression/rcutorture_urcu_qsbr_perf_perthread.tap])
358AC_CONFIG_FILES([tests/regression/rcutorture_urcu_qsbr_rperf_global.tap], [chmod +x tests/regression/rcutorture_urcu_qsbr_rperf_global.tap])
359AC_CONFIG_FILES([tests/regression/rcutorture_urcu_qsbr_rperf_percpu.tap], [chmod +x tests/regression/rcutorture_urcu_qsbr_rperf_percpu.tap])
360AC_CONFIG_FILES([tests/regression/rcutorture_urcu_qsbr_rperf_perthread.tap], [chmod +x tests/regression/rcutorture_urcu_qsbr_rperf_perthread.tap])
361AC_CONFIG_FILES([tests/regression/rcutorture_urcu_qsbr_stress_global.tap], [chmod +x tests/regression/rcutorture_urcu_qsbr_stress_global.tap])
362AC_CONFIG_FILES([tests/regression/rcutorture_urcu_qsbr_stress_percpu.tap], [chmod +x tests/regression/rcutorture_urcu_qsbr_stress_percpu.tap])
363AC_CONFIG_FILES([tests/regression/rcutorture_urcu_qsbr_stress_perthread.tap], [chmod +x tests/regression/rcutorture_urcu_qsbr_stress_perthread.tap])
364AC_CONFIG_FILES([tests/regression/rcutorture_urcu_qsbr_uperf_global.tap], [chmod +x tests/regression/rcutorture_urcu_qsbr_uperf_global.tap])
365AC_CONFIG_FILES([tests/regression/rcutorture_urcu_qsbr_uperf_percpu.tap], [chmod +x tests/regression/rcutorture_urcu_qsbr_uperf_percpu.tap])
366AC_CONFIG_FILES([tests/regression/rcutorture_urcu_qsbr_uperf_perthread.tap], [chmod +x tests/regression/rcutorture_urcu_qsbr_uperf_perthread.tap])
367AC_CONFIG_FILES([tests/regression/rcutorture_urcu_signal_perf_global.tap], [chmod +x tests/regression/rcutorture_urcu_signal_perf_global.tap])
368AC_CONFIG_FILES([tests/regression/rcutorture_urcu_signal_perf_percpu.tap], [chmod +x tests/regression/rcutorture_urcu_signal_perf_percpu.tap])
369AC_CONFIG_FILES([tests/regression/rcutorture_urcu_signal_perf_perthread.tap], [chmod +x tests/regression/rcutorture_urcu_signal_perf_perthread.tap])
370AC_CONFIG_FILES([tests/regression/rcutorture_urcu_signal_rperf_global.tap], [chmod +x tests/regression/rcutorture_urcu_signal_rperf_global.tap])
371AC_CONFIG_FILES([tests/regression/rcutorture_urcu_signal_rperf_percpu.tap], [chmod +x tests/regression/rcutorture_urcu_signal_rperf_percpu.tap])
372AC_CONFIG_FILES([tests/regression/rcutorture_urcu_signal_rperf_perthread.tap], [chmod +x tests/regression/rcutorture_urcu_signal_rperf_perthread.tap])
373AC_CONFIG_FILES([tests/regression/rcutorture_urcu_signal_stress_global.tap], [chmod +x tests/regression/rcutorture_urcu_signal_stress_global.tap])
374AC_CONFIG_FILES([tests/regression/rcutorture_urcu_signal_stress_percpu.tap], [chmod +x tests/regression/rcutorture_urcu_signal_stress_percpu.tap])
375AC_CONFIG_FILES([tests/regression/rcutorture_urcu_signal_stress_perthread.tap], [chmod +x tests/regression/rcutorture_urcu_signal_stress_perthread.tap])
376AC_CONFIG_FILES([tests/regression/rcutorture_urcu_signal_uperf_global.tap], [chmod +x tests/regression/rcutorture_urcu_signal_uperf_global.tap])
377AC_CONFIG_FILES([tests/regression/rcutorture_urcu_signal_uperf_percpu.tap], [chmod +x tests/regression/rcutorture_urcu_signal_uperf_percpu.tap])
378AC_CONFIG_FILES([tests/regression/rcutorture_urcu_signal_uperf_perthread.tap], [chmod +x tests/regression/rcutorture_urcu_signal_uperf_perthread.tap])
379
380
48d848c7 381AC_OUTPUT
a6412536 382
628a1a72
MJ
383#
384# Mini-report on what will be built.
385#
386
387PPRINT_INIT
388PPRINT_SET_INDENT(1)
389PPRINT_SET_TS(38)
390
391AS_ECHO
392AS_ECHO("${PPRINT_COLOR_BLDBLU}Userspace-RCU $PACKAGE_VERSION${PPRINT_COLOR_RST}")
393AS_ECHO
394
395PPRINT_SUBTITLE([Features])
396
397PPRINT_PROP_STRING([Target architecture], $host_cpu)
398
399# SMP support enabled/disabled
400test "x$def_smp_support" = "xyes" && value=1 || value=0
401PPRINT_PROP_BOOL([SMP support], $value)
402
628a1a72 403# TLS
109267f6 404test "x$def_compiler_tls" = "xyes" && value="compiler TLS" || value="pthread_getspecific()"
628a1a72
MJ
405PPRINT_PROP_STRING([Thread Local Storage (TLS)], [$value])
406
407# clock_gettime() available
408test "x$config_rcu_have_clock_gettime" = "xyes" && value=1 || value=0
409PPRINT_PROP_BOOL([clock_gettime()], $value)
410
411# Require membarrier
412test "x$def_sys_membarrier_fallback" != "xyes" && value=1 || value=0
413PPRINT_PROP_BOOL([Require membarrier], $value)
414
415# RCU debug enabled/disabled
416test "x$enable_rcu_debug" = "xyes" && value=1 || value=0
417PPRINT_PROP_BOOL([Internal debugging], $value)
418
d7c76f85
MD
419# rculfhash iterator debug enabled/disabled
420test "x$enable_cds_lfht_iter_debug" = "xyes" && value=1 || value=0
421PPRINT_PROP_BOOL([Lock-free hash table iterator debugging], $value)
422
4477a870
MD
423PPRINT_PROP_BOOL([Multi-flavor support], 1)
424
628a1a72
MJ
425report_bindir="`eval eval echo $bindir`"
426report_libdir="`eval eval echo $libdir`"
427
428# Print the bindir and libdir this `make install' will install into.
429AS_ECHO
430PPRINT_SUBTITLE([Install directories])
431PPRINT_PROP_STRING([Binaries], [$report_bindir])
432PPRINT_PROP_STRING([Libraries], [$report_libdir])
75478b32 433
This page took 0.108603 seconds and 4 git commands to generate.