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