X-Git-Url: https://git.liburcu.org/?p=urcu.git;a=blobdiff_plain;f=configure.ac;h=1790bb8f97211ba2668b2ed038c9083873f24c87;hp=5b4322bab2c9c184b5c5e87ac12df82807382b8a;hb=a767fdc348289dc37026ee3ab46d1d4102ff57f7;hpb=aee1715b914e5f4ba5003079d5d954ef2209f04e diff --git a/configure.ac b/configure.ac index 5b4322b..1790bb8 100644 --- a/configure.ac +++ b/configure.ac @@ -15,6 +15,8 @@ AC_CANONICAL_HOST AM_INIT_AUTOMAKE([foreign dist-bzip2 no-dist-gzip]) m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) +m4_include([config/ax_tls.m4]) + AC_CONFIG_SRCDIR([urcu.h]) AC_CONFIG_HEADERS([config.h urcu/config.h]) @@ -24,6 +26,9 @@ AH_TEMPLATE([CONFIG_RCU_HAVE_FENCE], [Defined when on a system that has memory f AH_TEMPLATE([CONFIG_RCU_HAVE_FUTEX], [Defined when on a system with futex support.]) AH_TEMPLATE([CONFIG_RCU_COMPAT_ARCH], [Compatibility mode for i386 which lacks cmpxchg instruction.]) AH_TEMPLATE([CONFIG_RCU_ARM_HAVE_DMB], [Use the dmb instruction if available for use on ARM.]) +AH_TEMPLATE([CONFIG_RCU_TLS], [TLS provided by the compiler.]) + +AX_TLS([AC_DEFINE_UNQUOTED([CONFIG_RCU_TLS], $ac_cv_tls)], []) # Checks for programs. AC_PROG_CC @@ -229,6 +234,7 @@ AC_CONFIG_LINKS([ ]) AC_CONFIG_FILES([ Makefile + doc/Makefile tests/Makefile liburcu.pc liburcu-bp.pc