fix: add missing pkgconfig file for memb flavour lib
[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])
ee966010 9m4_define([urcu_version_minor], [13])
23975ca7 10m4_define([urcu_version_patch], [0])
6558e7a3 11m4_define([urcu_version_dev_stage], [])
23975ca7
MJ
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
3a50dfc2 17m4_define([urcu_lib_version_current], [8])
23975ca7 18m4_define([urcu_lib_version_revision], [0])
3a50dfc2 19m4_define([urcu_lib_version_age], [0])
23975ca7
MJ
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
8b2f0590
MJ
58## ##
59## C compiler checks ##
60## ##
61
62# Choose the C compiler
63AC_PROG_CC
64# AC_PROG_CC_STDC was merged in AC_PROG_CC in autoconf 2.70
65m4_version_prereq([2.70], [], [AC_PROG_CC_STDC])
66
67# Make sure the C compiler supports C99
68AS_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
71AC_USE_SYSTEM_EXTENSIONS
72AC_SYS_LARGEFILE
73
153b081a
SM
74## ##
75## C++ compiler checks ##
76## ##
77
78# Require a C++11 compiler without GNU extensions (-std=c++11)
79AX_CXX_COMPILE_STDCXX([11], [noext], [mandatory])
80
8b2f0590
MJ
81# Make sure the C compiler supports __attribute__
82AX_C___ATTRIBUTE__
83AS_IF([test "x$ax_cv___attribute__" != "xyes"],
84 [AC_MSG_ERROR([The compiler does not support __attribute__ extensions])])
85
86# Make sure we have pthread support
87AX_PTHREAD([], [AC_MSG_ERROR([Could not configure pthread support])])
88
8b2f0590
MJ
89# Checks for typedefs, structures, and compiler characteristics.
90AC_C_INLINE
91AC_C_TYPEOF
92AC_TYPE_INT32_T
93AC_TYPE_PID_T
94AC_TYPE_SIZE_T
95AC_TYPE_SSIZE_T
96AC_TYPE_UINT16_T
97AC_TYPE_UINT32_T
98AC_TYPE_UINT64_T
99AC_TYPE_UINT8_T
100
ee334e48
MJ
101# Detect warning flags supported by the C compiler and append them to
102# WARN_CFLAGS.
103m4_define([WARN_FLAGS_LIST], [ dnl
104 -Wall dnl
105 -Wextra dnl
106 -Wmissing-prototypes dnl
107 -Wmissing-declarations dnl
108 -Wnull-dereference dnl
109 -Wundef dnl
110 -Wshadow dnl
111 -Wjump-misses-init dnl
112 -Wsuggest-attribute=format dnl
113 -Wtautological-constant-out-of-range-compare dnl
114 -Wnested-externs dnl
115 -Wwrite-strings dnl
116 -Wformat=2 dnl
117 -Wstrict-aliasing dnl
118 -Wmissing-noreturn dnl
119 -Winit-self dnl
120 -Wduplicated-cond dnl
121 -Wduplicated-branches dnl
122 -Wlogical-op dnl
123 dnl
124 dnl-Wredundant-decls dnl
125 -Wno-null-dereference dnl
126])
127
128# Pass -Werror as an extra flag during the test: this is needed to make the
129# -Wunknown-warning-option diagnostic fatal with clang.
130AC_LANG_PUSH([C])
131AX_APPEND_COMPILE_FLAGS([WARN_FLAGS_LIST], [WARN_CFLAGS], [-Werror])
132AC_LANG_POP([C])
133
153b081a
SM
134AC_LANG_PUSH([C++])
135AX_APPEND_COMPILE_FLAGS([WARN_FLAGS_LIST], [WARN_CXXFLAGS], [-Werror])
136AC_LANG_POP([C++])
137
35701ce9 138AE_IF_FEATURE_ENABLED([Werror], [WARN_CFLAGS="${WARN_CFLAGS} -Werror"])
153b081a 139AE_IF_FEATURE_ENABLED([Werror], [WARN_CXXFLAGS="${WARN_CXXFLAGS} -Werror"])
35701ce9 140
8b2f0590 141
6b5533b0
MJ
142## ##
143## Header checks ##
144## ##
145
146AC_HEADER_STDBOOL
147AC_CHECK_HEADERS([ \
148 limits.h \
149 stddef.h \
150 sys/param.h \
151 sys/time.h \
152])
153
154
155## ##
156## Programs checks ##
157## ##
158
159AC_PROG_AWK
160AC_PROG_GREP
161AC_PROG_MAKE_SET
162AC_CHECK_PROGS(NPROC, [nproc gnproc])
f0124a5a 163AC_CHECK_PROGS(GETCONF, [getconf])
6b5533b0
MJ
164AS_IF([test "x$NPROC" != "x"],
165 [NPROC_CMD=$NPROC],
166 [AS_IF([test "x$GETCONF" != "x"],
167 [NPROC_CMD="$GETCONF _NPROCESSORS_ONLN"],
168 [NPROC_CMD="echo 1"]
169 )]
170)
171AC_SUBST([NPROC_CMD], [$NPROC_CMD])
172
173# Initialize and configure libtool
174LT_INIT
175
176
c673679b
MJ
177## ##
178## Library checks ##
179## ##
180
181# Checks for library functions.
182AC_FUNC_MMAP
183AC_FUNC_FORK
184AC_CHECK_FUNCS([ \
185 atexit \
186 getcpuid \
187 gettid \
188 gettimeofday \
189 memeset \
190 memset \
191 munmap \
192 rand_r \
193 sched_getcpu \
0614a2e6 194 sched_setaffinity \
c673679b
MJ
195 strerror \
196 strtoul \
197 sysconf \
198])
199
200# AC_FUNC_MALLOC causes problems when cross-compiling.
201#AC_FUNC_MALLOC
202
203# Search for clock_gettime() in -lrt
204AC_SEARCH_LIBS([clock_gettime], [rt], [
205 AC_DEFINE([CONFIG_RCU_HAVE_CLOCK_GETTIME], [1], [clock_gettime() is detected.])
206])
207
208
f99c6e92
MJ
209## ##
210## Optional features selection ##
211## ##
86bc2ad8
MJ
212
213# Allow to fallback to FIXME if the membarrier syscall is unavailable on the
214# running kernel, when disabled, abort if the syscall is unavailable. Applies
215# to default and bulletproof flavors.
216# Enabled by default
217AE_FEATURE_DEFAULT_ENABLE
218AE_FEATURE([sys-membarrier-fallback], [Abort if sys-membarrier is needed but not available rather than using a fallback.])
219
220# Use compiler Thread Local Storage, when disabled use pthread_getspecific() to emulate TLS.
221# Enabled by default
222AE_FEATURE_DEFAULT_ENABLE
223AE_FEATURE([compiler-tls], [Use pthread_getspecific() to emulate Thread Local Storage (TLS) variables.])
c673679b 224
86bc2ad8
MJ
225# smp-support configure option
226# Enabled by default
227AE_FEATURE_DEFAULT_ENABLE
228AE_FEATURE([smp-support], [Disable SMP support. Warning: only use this on uniprocessor systems.])
d8d9a340 229
86bc2ad8
MJ
230# RCU debugging option
231# Disabled by default
232AE_FEATURE_DEFAULT_DISABLE
233AE_FEATURE([rcu-debug], [Enable internal debugging self-checks. Introduces a performance penalty.])
a767fdc3 234
86bc2ad8
MJ
235# rculfhash iterator debugging
236# Disabled by default
237AE_FEATURE_DEFAULT_DISABLE
238AE_FEATURE([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.])
75478b32 239
35701ce9
SM
240# When given, add -Werror to WARN_CFLAGS and WARN_CXXFLAGS.
241# Disabled by default
242AE_FEATURE_DEFAULT_DISABLE
243AE_FEATURE([Werror],[Treat compiler warnings as errors.])
48d848c7 244
86bc2ad8
MJ
245## ##
246## Set defines for optional features conditionnals in the source code ##
247## ##
48d848c7 248
86bc2ad8
MJ
249AE_IF_FEATURE_DISABLED([sys-membarrier-fallback], [
250 AC_DEFINE([CONFIG_RCU_FORCE_SYS_MEMBARRIER], [1], [Require the operating system to support the membarrier system call for default and bulletproof flavors.])
251])
cdadd34c 252
86bc2ad8
MJ
253AE_IF_FEATURE_ENABLED([compiler-tls], [
254 AC_DEFINE([CONFIG_RCU_TLS], [1], [Use compiler provided Thread Local Storage.])
255])
0854ccff 256
86bc2ad8
MJ
257AE_IF_FEATURE_ENABLED([smp-support], [
258 AC_DEFINE([CONFIG_RCU_SMP], [1], [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.])
259])
7d413817 260
86bc2ad8
MJ
261AE_IF_FEATURE_ENABLED([rcu-debug], [
262 AC_DEFINE([CONFIG_RCU_DEBUG], [1], [Enable internal debugging self-checks. Introduces a performance penalty.])
d4e640c0 263])
48d848c7 264
86bc2ad8
MJ
265AE_IF_FEATURE_ENABLED([cds-lfht-iter-debug], [
266 AC_DEFINE([CONFIG_CDS_LFHT_ITER_DEBUG], [1], [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.])
d7c76f85
MD
267])
268
86bc2ad8 269
1136f454
MJ
270## ##
271## Set automake variables for optional feature conditionnals in Makefile.am ##
272## ##
273
274# Building the examples requires the shared libraries to be enabled
275AM_CONDITIONAL([ENABLE_EXAMPLES], AE_IS_FEATURE_ENABLED([shared]))
276
277
23975ca7
MJ
278## ##
279## Substitute variables for use in Makefile.am ##
280## ##
281
282# Library versions for libtool
283AC_SUBST([URCU_LIBRARY_VERSION], [urcu_lib_version])
284
514079bb
MJ
285AC_SUBST(LT_NO_UNDEFINED)
286
01956342
MJ
287# The order in which the include folders are searched is important.
288# The top_builddir should always be searched first in the event that a build
289# time generated file is included.
290AM_CPPFLAGS="-I\$(top_builddir)/include -I\$(top_srcdir)/include -include config.h"
9a79c612
MJ
291AC_SUBST(AM_CPPFLAGS)
292
ee334e48 293AM_CFLAGS="$WARN_CFLAGS $PTHREAD_CFLAGS"
9a79c612 294AC_SUBST(AM_CFLAGS)
d8540fc5 295
153b081a
SM
296AM_CXXFLAGS="$WARN_CXXFLAGS $PTHREAD_CFLAGS"
297AC_SUBST(AM_CXXFLAGS)
298
0614a2e6
MJ
299
300## ##
301## Output files generated by configure ##
302## ##
303
48d848c7
PMF
304AC_CONFIG_FILES([
305 Makefile
fe999c05 306 doc/Makefile
8bad63a0 307 doc/examples/Makefile
c0ecb6ea 308 extras/Makefile
6893800a
MJ
309 include/Makefile
310 src/Makefile
48d848c7 311 tests/Makefile
f5ab766e
MD
312 tests/common/Makefile
313 tests/unit/Makefile
314 tests/benchmark/Makefile
315 tests/regression/Makefile
1b387491 316 tests/utils/Makefile
6893800a
MJ
317 src/liburcu.pc
318 src/liburcu-bp.pc
319 src/liburcu-cds.pc
320 src/liburcu-qsbr.pc
321 src/liburcu-mb.pc
799d344f 322 src/liburcu-memb.pc
6893800a 323 src/liburcu-signal.pc
48d848c7 324])
03c5782e
MJ
325
326AC_CONFIG_FILES([tests/regression/rcutorture_urcu_bp_perf_global.tap], [chmod +x tests/regression/rcutorture_urcu_bp_perf_global.tap])
153b081a 327AC_CONFIG_FILES([tests/regression/rcutorture_urcu_bp_perf_global_cxx.tap], [chmod +x tests/regression/rcutorture_urcu_bp_perf_global_cxx.tap])
03c5782e 328AC_CONFIG_FILES([tests/regression/rcutorture_urcu_bp_perf_percpu.tap], [chmod +x tests/regression/rcutorture_urcu_bp_perf_percpu.tap])
153b081a 329AC_CONFIG_FILES([tests/regression/rcutorture_urcu_bp_perf_percpu_cxx.tap], [chmod +x tests/regression/rcutorture_urcu_bp_perf_percpu_cxx.tap])
03c5782e 330AC_CONFIG_FILES([tests/regression/rcutorture_urcu_bp_perf_perthread.tap], [chmod +x tests/regression/rcutorture_urcu_bp_perf_perthread.tap])
153b081a 331AC_CONFIG_FILES([tests/regression/rcutorture_urcu_bp_perf_perthread_cxx.tap], [chmod +x tests/regression/rcutorture_urcu_bp_perf_perthread_cxx.tap])
03c5782e 332AC_CONFIG_FILES([tests/regression/rcutorture_urcu_bp_rperf_global.tap], [chmod +x tests/regression/rcutorture_urcu_bp_rperf_global.tap])
153b081a 333AC_CONFIG_FILES([tests/regression/rcutorture_urcu_bp_rperf_global_cxx.tap], [chmod +x tests/regression/rcutorture_urcu_bp_rperf_global_cxx.tap])
03c5782e 334AC_CONFIG_FILES([tests/regression/rcutorture_urcu_bp_rperf_percpu.tap], [chmod +x tests/regression/rcutorture_urcu_bp_rperf_percpu.tap])
153b081a 335AC_CONFIG_FILES([tests/regression/rcutorture_urcu_bp_rperf_percpu_cxx.tap], [chmod +x tests/regression/rcutorture_urcu_bp_rperf_percpu_cxx.tap])
03c5782e 336AC_CONFIG_FILES([tests/regression/rcutorture_urcu_bp_rperf_perthread.tap], [chmod +x tests/regression/rcutorture_urcu_bp_rperf_perthread.tap])
153b081a 337AC_CONFIG_FILES([tests/regression/rcutorture_urcu_bp_rperf_perthread_cxx.tap], [chmod +x tests/regression/rcutorture_urcu_bp_rperf_perthread_cxx.tap])
03c5782e 338AC_CONFIG_FILES([tests/regression/rcutorture_urcu_bp_stress_global.tap], [chmod +x tests/regression/rcutorture_urcu_bp_stress_global.tap])
153b081a 339AC_CONFIG_FILES([tests/regression/rcutorture_urcu_bp_stress_global_cxx.tap], [chmod +x tests/regression/rcutorture_urcu_bp_stress_global_cxx.tap])
03c5782e 340AC_CONFIG_FILES([tests/regression/rcutorture_urcu_bp_stress_percpu.tap], [chmod +x tests/regression/rcutorture_urcu_bp_stress_percpu.tap])
153b081a 341AC_CONFIG_FILES([tests/regression/rcutorture_urcu_bp_stress_percpu_cxx.tap], [chmod +x tests/regression/rcutorture_urcu_bp_stress_percpu_cxx.tap])
03c5782e 342AC_CONFIG_FILES([tests/regression/rcutorture_urcu_bp_stress_perthread.tap], [chmod +x tests/regression/rcutorture_urcu_bp_stress_perthread.tap])
153b081a 343AC_CONFIG_FILES([tests/regression/rcutorture_urcu_bp_stress_perthread_cxx.tap], [chmod +x tests/regression/rcutorture_urcu_bp_stress_perthread_cxx.tap])
03c5782e 344AC_CONFIG_FILES([tests/regression/rcutorture_urcu_bp_uperf_global.tap], [chmod +x tests/regression/rcutorture_urcu_bp_uperf_global.tap])
153b081a 345AC_CONFIG_FILES([tests/regression/rcutorture_urcu_bp_uperf_global_cxx.tap], [chmod +x tests/regression/rcutorture_urcu_bp_uperf_global_cxx.tap])
03c5782e 346AC_CONFIG_FILES([tests/regression/rcutorture_urcu_bp_uperf_percpu.tap], [chmod +x tests/regression/rcutorture_urcu_bp_uperf_percpu.tap])
153b081a 347AC_CONFIG_FILES([tests/regression/rcutorture_urcu_bp_uperf_percpu_cxx.tap], [chmod +x tests/regression/rcutorture_urcu_bp_uperf_percpu_cxx.tap])
03c5782e 348AC_CONFIG_FILES([tests/regression/rcutorture_urcu_bp_uperf_perthread.tap], [chmod +x tests/regression/rcutorture_urcu_bp_uperf_perthread.tap])
153b081a 349AC_CONFIG_FILES([tests/regression/rcutorture_urcu_bp_uperf_perthread_cxx.tap], [chmod +x tests/regression/rcutorture_urcu_bp_uperf_perthread_cxx.tap])
03c5782e 350AC_CONFIG_FILES([tests/regression/rcutorture_urcu_mb_perf_global.tap], [chmod +x tests/regression/rcutorture_urcu_mb_perf_global.tap])
153b081a 351AC_CONFIG_FILES([tests/regression/rcutorture_urcu_mb_perf_global_cxx.tap], [chmod +x tests/regression/rcutorture_urcu_mb_perf_global_cxx.tap])
03c5782e 352AC_CONFIG_FILES([tests/regression/rcutorture_urcu_mb_perf_percpu.tap], [chmod +x tests/regression/rcutorture_urcu_mb_perf_percpu.tap])
153b081a 353AC_CONFIG_FILES([tests/regression/rcutorture_urcu_mb_perf_percpu_cxx.tap], [chmod +x tests/regression/rcutorture_urcu_mb_perf_percpu_cxx.tap])
03c5782e 354AC_CONFIG_FILES([tests/regression/rcutorture_urcu_mb_perf_perthread.tap], [chmod +x tests/regression/rcutorture_urcu_mb_perf_perthread.tap])
153b081a 355AC_CONFIG_FILES([tests/regression/rcutorture_urcu_mb_perf_perthread_cxx.tap], [chmod +x tests/regression/rcutorture_urcu_mb_perf_perthread_cxx.tap])
03c5782e 356AC_CONFIG_FILES([tests/regression/rcutorture_urcu_mb_rperf_global.tap], [chmod +x tests/regression/rcutorture_urcu_mb_rperf_global.tap])
153b081a 357AC_CONFIG_FILES([tests/regression/rcutorture_urcu_mb_rperf_global_cxx.tap], [chmod +x tests/regression/rcutorture_urcu_mb_rperf_global_cxx.tap])
03c5782e 358AC_CONFIG_FILES([tests/regression/rcutorture_urcu_mb_rperf_percpu.tap], [chmod +x tests/regression/rcutorture_urcu_mb_rperf_percpu.tap])
153b081a 359AC_CONFIG_FILES([tests/regression/rcutorture_urcu_mb_rperf_percpu_cxx.tap], [chmod +x tests/regression/rcutorture_urcu_mb_rperf_percpu_cxx.tap])
03c5782e 360AC_CONFIG_FILES([tests/regression/rcutorture_urcu_mb_rperf_perthread.tap], [chmod +x tests/regression/rcutorture_urcu_mb_rperf_perthread.tap])
153b081a 361AC_CONFIG_FILES([tests/regression/rcutorture_urcu_mb_rperf_perthread_cxx.tap], [chmod +x tests/regression/rcutorture_urcu_mb_rperf_perthread_cxx.tap])
03c5782e 362AC_CONFIG_FILES([tests/regression/rcutorture_urcu_mb_stress_global.tap], [chmod +x tests/regression/rcutorture_urcu_mb_stress_global.tap])
153b081a 363AC_CONFIG_FILES([tests/regression/rcutorture_urcu_mb_stress_global_cxx.tap], [chmod +x tests/regression/rcutorture_urcu_mb_stress_global_cxx.tap])
03c5782e 364AC_CONFIG_FILES([tests/regression/rcutorture_urcu_mb_stress_percpu.tap], [chmod +x tests/regression/rcutorture_urcu_mb_stress_percpu.tap])
153b081a 365AC_CONFIG_FILES([tests/regression/rcutorture_urcu_mb_stress_percpu_cxx.tap], [chmod +x tests/regression/rcutorture_urcu_mb_stress_percpu_cxx.tap])
03c5782e 366AC_CONFIG_FILES([tests/regression/rcutorture_urcu_mb_stress_perthread.tap], [chmod +x tests/regression/rcutorture_urcu_mb_stress_perthread.tap])
153b081a 367AC_CONFIG_FILES([tests/regression/rcutorture_urcu_mb_stress_perthread_cxx.tap], [chmod +x tests/regression/rcutorture_urcu_mb_stress_perthread_cxx.tap])
03c5782e 368AC_CONFIG_FILES([tests/regression/rcutorture_urcu_mb_uperf_global.tap], [chmod +x tests/regression/rcutorture_urcu_mb_uperf_global.tap])
153b081a 369AC_CONFIG_FILES([tests/regression/rcutorture_urcu_mb_uperf_global_cxx.tap], [chmod +x tests/regression/rcutorture_urcu_mb_uperf_global_cxx.tap])
03c5782e 370AC_CONFIG_FILES([tests/regression/rcutorture_urcu_mb_uperf_percpu.tap], [chmod +x tests/regression/rcutorture_urcu_mb_uperf_percpu.tap])
153b081a 371AC_CONFIG_FILES([tests/regression/rcutorture_urcu_mb_uperf_percpu_cxx.tap], [chmod +x tests/regression/rcutorture_urcu_mb_uperf_percpu_cxx.tap])
03c5782e 372AC_CONFIG_FILES([tests/regression/rcutorture_urcu_mb_uperf_perthread.tap], [chmod +x tests/regression/rcutorture_urcu_mb_uperf_perthread.tap])
153b081a 373AC_CONFIG_FILES([tests/regression/rcutorture_urcu_mb_uperf_perthread_cxx.tap], [chmod +x tests/regression/rcutorture_urcu_mb_uperf_perthread_cxx.tap])
03c5782e 374AC_CONFIG_FILES([tests/regression/rcutorture_urcu_membarrier_perf_global.tap], [chmod +x tests/regression/rcutorture_urcu_membarrier_perf_global.tap])
153b081a 375AC_CONFIG_FILES([tests/regression/rcutorture_urcu_membarrier_perf_global_cxx.tap], [chmod +x tests/regression/rcutorture_urcu_membarrier_perf_global_cxx.tap])
03c5782e 376AC_CONFIG_FILES([tests/regression/rcutorture_urcu_membarrier_perf_percpu.tap], [chmod +x tests/regression/rcutorture_urcu_membarrier_perf_percpu.tap])
153b081a 377AC_CONFIG_FILES([tests/regression/rcutorture_urcu_membarrier_perf_percpu_cxx.tap], [chmod +x tests/regression/rcutorture_urcu_membarrier_perf_percpu_cxx.tap])
03c5782e 378AC_CONFIG_FILES([tests/regression/rcutorture_urcu_membarrier_perf_perthread.tap], [chmod +x tests/regression/rcutorture_urcu_membarrier_perf_perthread.tap])
153b081a 379AC_CONFIG_FILES([tests/regression/rcutorture_urcu_membarrier_perf_perthread_cxx.tap], [chmod +x tests/regression/rcutorture_urcu_membarrier_perf_perthread_cxx.tap])
03c5782e 380AC_CONFIG_FILES([tests/regression/rcutorture_urcu_membarrier_rperf_global.tap], [chmod +x tests/regression/rcutorture_urcu_membarrier_rperf_global.tap])
153b081a 381AC_CONFIG_FILES([tests/regression/rcutorture_urcu_membarrier_rperf_global_cxx.tap], [chmod +x tests/regression/rcutorture_urcu_membarrier_rperf_global_cxx.tap])
03c5782e 382AC_CONFIG_FILES([tests/regression/rcutorture_urcu_membarrier_rperf_percpu.tap], [chmod +x tests/regression/rcutorture_urcu_membarrier_rperf_percpu.tap])
153b081a 383AC_CONFIG_FILES([tests/regression/rcutorture_urcu_membarrier_rperf_percpu_cxx.tap], [chmod +x tests/regression/rcutorture_urcu_membarrier_rperf_percpu_cxx.tap])
03c5782e 384AC_CONFIG_FILES([tests/regression/rcutorture_urcu_membarrier_rperf_perthread.tap], [chmod +x tests/regression/rcutorture_urcu_membarrier_rperf_perthread.tap])
153b081a 385AC_CONFIG_FILES([tests/regression/rcutorture_urcu_membarrier_rperf_perthread_cxx.tap], [chmod +x tests/regression/rcutorture_urcu_membarrier_rperf_perthread_cxx.tap])
03c5782e 386AC_CONFIG_FILES([tests/regression/rcutorture_urcu_membarrier_stress_global.tap], [chmod +x tests/regression/rcutorture_urcu_membarrier_stress_global.tap])
153b081a 387AC_CONFIG_FILES([tests/regression/rcutorture_urcu_membarrier_stress_global_cxx.tap], [chmod +x tests/regression/rcutorture_urcu_membarrier_stress_global_cxx.tap])
03c5782e 388AC_CONFIG_FILES([tests/regression/rcutorture_urcu_membarrier_stress_percpu.tap], [chmod +x tests/regression/rcutorture_urcu_membarrier_stress_percpu.tap])
153b081a 389AC_CONFIG_FILES([tests/regression/rcutorture_urcu_membarrier_stress_percpu_cxx.tap], [chmod +x tests/regression/rcutorture_urcu_membarrier_stress_percpu_cxx.tap])
03c5782e 390AC_CONFIG_FILES([tests/regression/rcutorture_urcu_membarrier_stress_perthread.tap], [chmod +x tests/regression/rcutorture_urcu_membarrier_stress_perthread.tap])
153b081a 391AC_CONFIG_FILES([tests/regression/rcutorture_urcu_membarrier_stress_perthread_cxx.tap], [chmod +x tests/regression/rcutorture_urcu_membarrier_stress_perthread_cxx.tap])
03c5782e 392AC_CONFIG_FILES([tests/regression/rcutorture_urcu_membarrier_uperf_global.tap], [chmod +x tests/regression/rcutorture_urcu_membarrier_uperf_global.tap])
153b081a 393AC_CONFIG_FILES([tests/regression/rcutorture_urcu_membarrier_uperf_global_cxx.tap], [chmod +x tests/regression/rcutorture_urcu_membarrier_uperf_global_cxx.tap])
03c5782e 394AC_CONFIG_FILES([tests/regression/rcutorture_urcu_membarrier_uperf_percpu.tap], [chmod +x tests/regression/rcutorture_urcu_membarrier_uperf_percpu.tap])
153b081a 395AC_CONFIG_FILES([tests/regression/rcutorture_urcu_membarrier_uperf_percpu_cxx.tap], [chmod +x tests/regression/rcutorture_urcu_membarrier_uperf_percpu_cxx.tap])
03c5782e 396AC_CONFIG_FILES([tests/regression/rcutorture_urcu_membarrier_uperf_perthread.tap], [chmod +x tests/regression/rcutorture_urcu_membarrier_uperf_perthread.tap])
153b081a 397AC_CONFIG_FILES([tests/regression/rcutorture_urcu_membarrier_uperf_perthread_cxx.tap], [chmod +x tests/regression/rcutorture_urcu_membarrier_uperf_perthread_cxx.tap])
03c5782e 398AC_CONFIG_FILES([tests/regression/rcutorture_urcu_qsbr_perf_global.tap], [chmod +x tests/regression/rcutorture_urcu_qsbr_perf_global.tap])
153b081a 399AC_CONFIG_FILES([tests/regression/rcutorture_urcu_qsbr_perf_global_cxx.tap], [chmod +x tests/regression/rcutorture_urcu_qsbr_perf_global_cxx.tap])
03c5782e 400AC_CONFIG_FILES([tests/regression/rcutorture_urcu_qsbr_perf_percpu.tap], [chmod +x tests/regression/rcutorture_urcu_qsbr_perf_percpu.tap])
153b081a 401AC_CONFIG_FILES([tests/regression/rcutorture_urcu_qsbr_perf_percpu_cxx.tap], [chmod +x tests/regression/rcutorture_urcu_qsbr_perf_percpu_cxx.tap])
03c5782e 402AC_CONFIG_FILES([tests/regression/rcutorture_urcu_qsbr_perf_perthread.tap], [chmod +x tests/regression/rcutorture_urcu_qsbr_perf_perthread.tap])
153b081a 403AC_CONFIG_FILES([tests/regression/rcutorture_urcu_qsbr_perf_perthread_cxx.tap], [chmod +x tests/regression/rcutorture_urcu_qsbr_perf_perthread_cxx.tap])
03c5782e 404AC_CONFIG_FILES([tests/regression/rcutorture_urcu_qsbr_rperf_global.tap], [chmod +x tests/regression/rcutorture_urcu_qsbr_rperf_global.tap])
153b081a 405AC_CONFIG_FILES([tests/regression/rcutorture_urcu_qsbr_rperf_global_cxx.tap], [chmod +x tests/regression/rcutorture_urcu_qsbr_rperf_global_cxx.tap])
03c5782e 406AC_CONFIG_FILES([tests/regression/rcutorture_urcu_qsbr_rperf_percpu.tap], [chmod +x tests/regression/rcutorture_urcu_qsbr_rperf_percpu.tap])
153b081a 407AC_CONFIG_FILES([tests/regression/rcutorture_urcu_qsbr_rperf_percpu_cxx.tap], [chmod +x tests/regression/rcutorture_urcu_qsbr_rperf_percpu_cxx.tap])
03c5782e 408AC_CONFIG_FILES([tests/regression/rcutorture_urcu_qsbr_rperf_perthread.tap], [chmod +x tests/regression/rcutorture_urcu_qsbr_rperf_perthread.tap])
153b081a 409AC_CONFIG_FILES([tests/regression/rcutorture_urcu_qsbr_rperf_perthread_cxx.tap], [chmod +x tests/regression/rcutorture_urcu_qsbr_rperf_perthread_cxx.tap])
03c5782e 410AC_CONFIG_FILES([tests/regression/rcutorture_urcu_qsbr_stress_global.tap], [chmod +x tests/regression/rcutorture_urcu_qsbr_stress_global.tap])
153b081a 411AC_CONFIG_FILES([tests/regression/rcutorture_urcu_qsbr_stress_global_cxx.tap], [chmod +x tests/regression/rcutorture_urcu_qsbr_stress_global_cxx.tap])
03c5782e 412AC_CONFIG_FILES([tests/regression/rcutorture_urcu_qsbr_stress_percpu.tap], [chmod +x tests/regression/rcutorture_urcu_qsbr_stress_percpu.tap])
153b081a 413AC_CONFIG_FILES([tests/regression/rcutorture_urcu_qsbr_stress_percpu_cxx.tap], [chmod +x tests/regression/rcutorture_urcu_qsbr_stress_percpu_cxx.tap])
03c5782e 414AC_CONFIG_FILES([tests/regression/rcutorture_urcu_qsbr_stress_perthread.tap], [chmod +x tests/regression/rcutorture_urcu_qsbr_stress_perthread.tap])
153b081a 415AC_CONFIG_FILES([tests/regression/rcutorture_urcu_qsbr_stress_perthread_cxx.tap], [chmod +x tests/regression/rcutorture_urcu_qsbr_stress_perthread_cxx.tap])
03c5782e 416AC_CONFIG_FILES([tests/regression/rcutorture_urcu_qsbr_uperf_global.tap], [chmod +x tests/regression/rcutorture_urcu_qsbr_uperf_global.tap])
153b081a 417AC_CONFIG_FILES([tests/regression/rcutorture_urcu_qsbr_uperf_global_cxx.tap], [chmod +x tests/regression/rcutorture_urcu_qsbr_uperf_global_cxx.tap])
03c5782e 418AC_CONFIG_FILES([tests/regression/rcutorture_urcu_qsbr_uperf_percpu.tap], [chmod +x tests/regression/rcutorture_urcu_qsbr_uperf_percpu.tap])
153b081a 419AC_CONFIG_FILES([tests/regression/rcutorture_urcu_qsbr_uperf_percpu_cxx.tap], [chmod +x tests/regression/rcutorture_urcu_qsbr_uperf_percpu_cxx.tap])
03c5782e 420AC_CONFIG_FILES([tests/regression/rcutorture_urcu_qsbr_uperf_perthread.tap], [chmod +x tests/regression/rcutorture_urcu_qsbr_uperf_perthread.tap])
153b081a 421AC_CONFIG_FILES([tests/regression/rcutorture_urcu_qsbr_uperf_perthread_cxx.tap], [chmod +x tests/regression/rcutorture_urcu_qsbr_uperf_perthread_cxx.tap])
03c5782e 422AC_CONFIG_FILES([tests/regression/rcutorture_urcu_signal_perf_global.tap], [chmod +x tests/regression/rcutorture_urcu_signal_perf_global.tap])
153b081a 423AC_CONFIG_FILES([tests/regression/rcutorture_urcu_signal_perf_global_cxx.tap], [chmod +x tests/regression/rcutorture_urcu_signal_perf_global_cxx.tap])
03c5782e 424AC_CONFIG_FILES([tests/regression/rcutorture_urcu_signal_perf_percpu.tap], [chmod +x tests/regression/rcutorture_urcu_signal_perf_percpu.tap])
153b081a 425AC_CONFIG_FILES([tests/regression/rcutorture_urcu_signal_perf_percpu_cxx.tap], [chmod +x tests/regression/rcutorture_urcu_signal_perf_percpu_cxx.tap])
03c5782e 426AC_CONFIG_FILES([tests/regression/rcutorture_urcu_signal_perf_perthread.tap], [chmod +x tests/regression/rcutorture_urcu_signal_perf_perthread.tap])
153b081a 427AC_CONFIG_FILES([tests/regression/rcutorture_urcu_signal_perf_perthread_cxx.tap], [chmod +x tests/regression/rcutorture_urcu_signal_perf_perthread_cxx.tap])
03c5782e 428AC_CONFIG_FILES([tests/regression/rcutorture_urcu_signal_rperf_global.tap], [chmod +x tests/regression/rcutorture_urcu_signal_rperf_global.tap])
153b081a 429AC_CONFIG_FILES([tests/regression/rcutorture_urcu_signal_rperf_global_cxx.tap], [chmod +x tests/regression/rcutorture_urcu_signal_rperf_global_cxx.tap])
03c5782e 430AC_CONFIG_FILES([tests/regression/rcutorture_urcu_signal_rperf_percpu.tap], [chmod +x tests/regression/rcutorture_urcu_signal_rperf_percpu.tap])
153b081a 431AC_CONFIG_FILES([tests/regression/rcutorture_urcu_signal_rperf_percpu_cxx.tap], [chmod +x tests/regression/rcutorture_urcu_signal_rperf_percpu_cxx.tap])
03c5782e 432AC_CONFIG_FILES([tests/regression/rcutorture_urcu_signal_rperf_perthread.tap], [chmod +x tests/regression/rcutorture_urcu_signal_rperf_perthread.tap])
153b081a 433AC_CONFIG_FILES([tests/regression/rcutorture_urcu_signal_rperf_perthread_cxx.tap], [chmod +x tests/regression/rcutorture_urcu_signal_rperf_perthread_cxx.tap])
03c5782e 434AC_CONFIG_FILES([tests/regression/rcutorture_urcu_signal_stress_global.tap], [chmod +x tests/regression/rcutorture_urcu_signal_stress_global.tap])
153b081a 435AC_CONFIG_FILES([tests/regression/rcutorture_urcu_signal_stress_global_cxx.tap], [chmod +x tests/regression/rcutorture_urcu_signal_stress_global_cxx.tap])
03c5782e 436AC_CONFIG_FILES([tests/regression/rcutorture_urcu_signal_stress_percpu.tap], [chmod +x tests/regression/rcutorture_urcu_signal_stress_percpu.tap])
153b081a 437AC_CONFIG_FILES([tests/regression/rcutorture_urcu_signal_stress_percpu_cxx.tap], [chmod +x tests/regression/rcutorture_urcu_signal_stress_percpu_cxx.tap])
03c5782e 438AC_CONFIG_FILES([tests/regression/rcutorture_urcu_signal_stress_perthread.tap], [chmod +x tests/regression/rcutorture_urcu_signal_stress_perthread.tap])
153b081a 439AC_CONFIG_FILES([tests/regression/rcutorture_urcu_signal_stress_perthread_cxx.tap], [chmod +x tests/regression/rcutorture_urcu_signal_stress_perthread_cxx.tap])
03c5782e 440AC_CONFIG_FILES([tests/regression/rcutorture_urcu_signal_uperf_global.tap], [chmod +x tests/regression/rcutorture_urcu_signal_uperf_global.tap])
153b081a 441AC_CONFIG_FILES([tests/regression/rcutorture_urcu_signal_uperf_global_cxx.tap], [chmod +x tests/regression/rcutorture_urcu_signal_uperf_global_cxx.tap])
03c5782e 442AC_CONFIG_FILES([tests/regression/rcutorture_urcu_signal_uperf_percpu.tap], [chmod +x tests/regression/rcutorture_urcu_signal_uperf_percpu.tap])
153b081a 443AC_CONFIG_FILES([tests/regression/rcutorture_urcu_signal_uperf_percpu_cxx.tap], [chmod +x tests/regression/rcutorture_urcu_signal_uperf_percpu_cxx.tap])
03c5782e 444AC_CONFIG_FILES([tests/regression/rcutorture_urcu_signal_uperf_perthread.tap], [chmod +x tests/regression/rcutorture_urcu_signal_uperf_perthread.tap])
153b081a 445AC_CONFIG_FILES([tests/regression/rcutorture_urcu_signal_uperf_perthread_cxx.tap], [chmod +x tests/regression/rcutorture_urcu_signal_uperf_perthread_cxx.tap])
03c5782e
MJ
446
447
48d848c7 448AC_OUTPUT
a6412536 449
628a1a72
MJ
450#
451# Mini-report on what will be built.
452#
453
454PPRINT_INIT
455PPRINT_SET_INDENT(1)
456PPRINT_SET_TS(38)
457
458AS_ECHO
459AS_ECHO("${PPRINT_COLOR_BLDBLU}Userspace-RCU $PACKAGE_VERSION${PPRINT_COLOR_RST}")
460AS_ECHO
461
462PPRINT_SUBTITLE([Features])
463
464PPRINT_PROP_STRING([Target architecture], $host_cpu)
465
466# SMP support enabled/disabled
86bc2ad8 467AE_IS_FEATURE_ENABLED([smp-support]) && value=1 || value=0
628a1a72
MJ
468PPRINT_PROP_BOOL([SMP support], $value)
469
628a1a72 470# TLS
86bc2ad8 471AE_IS_FEATURE_ENABLED([compiler-tls]) && value="compiler TLS" || value="pthread_getspecific()"
628a1a72
MJ
472PPRINT_PROP_STRING([Thread Local Storage (TLS)], [$value])
473
474# clock_gettime() available
c673679b 475test "x$ac_cv_search_function_clock_gettime" != "xno" && value=1 || value=0
628a1a72
MJ
476PPRINT_PROP_BOOL([clock_gettime()], $value)
477
478# Require membarrier
86bc2ad8 479AE_IS_FEATURE_ENABLED([sys-membarrier-fallback]) && value=0 || value=1
628a1a72
MJ
480PPRINT_PROP_BOOL([Require membarrier], $value)
481
482# RCU debug enabled/disabled
86bc2ad8 483AE_IS_FEATURE_ENABLED([rcu-debug]) && value=1 || value=0
628a1a72
MJ
484PPRINT_PROP_BOOL([Internal debugging], $value)
485
d7c76f85 486# rculfhash iterator debug enabled/disabled
86bc2ad8
MJ
487AE_IS_FEATURE_ENABLED([cds-lfht-iter-debug]) && value=1 || value=0
488PPRINT_PROP_BOOL([Lock-free HT iterator debugging], $value)
d7c76f85 489
4477a870
MD
490PPRINT_PROP_BOOL([Multi-flavor support], 1)
491
628a1a72
MJ
492report_bindir="`eval eval echo $bindir`"
493report_libdir="`eval eval echo $libdir`"
494
86bc2ad8 495# Print the bindir and libdir this 'make install' will install into.
628a1a72
MJ
496AS_ECHO
497PPRINT_SUBTITLE([Install directories])
498PPRINT_PROP_STRING([Binaries], [$report_bindir])
499PPRINT_PROP_STRING([Libraries], [$report_libdir])
75478b32 500
This page took 0.10279 seconds and 4 git commands to generate.