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