diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2016-04-19 09:23:44 +0300 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2016-04-19 09:23:44 +0300 |
commit | 30c0456f7568b4b9e6212f1a05b863dd18c4e471 (patch) | |
tree | cc76ecae263bb76e4ddfc4550bb38eb592df9014 | |
parent | 4dde93deb41b492e53951e3f92237370c610ddfa (diff) | |
download | libatomic_ops-30c0456f7568b4b9e6212f1a05b863dd18c4e471.tar.gz |
Add AO_DISABLE_GCC_ATOMICS, AO_PREFER_BUILTIN_ATOMICS macros to configure
* configure.ac (AO_DISABLE_GCC_ATOMICS, AO_PREFER_BUILTIN_ATOMICS):
Declare and document (using AH_TEMPLATE).
-rw-r--r-- | configure.ac | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 32764aa..758cd58 100644 --- a/configure.ac +++ b/configure.ac @@ -143,6 +143,12 @@ AH_TEMPLATE([AO_USE_SYNC_CAS_BUILTIN], AH_TEMPLATE([AO_WEAK_DOUBLE_CAS_EMULATION], [Emulate double-width CAS via pthread locking in case of no hardware \ support (only gcc/x86_64, the emulation is unsafe)]) +AH_TEMPLATE([AO_DISABLE_GCC_ATOMICS], + [Do not use C11 atomic intrinsics even if available]) +AH_TEMPLATE([AO_PREFER_BUILTIN_ATOMICS], + [Prefer C11 atomic intrinsics over assembly-based implementation \ + even in case of inefficient implementation (do not use assembly for \ + any atomic_ops primitive if C11/GCC atomic intrinsics available)]) AC_DEFINE(_REENTRANT, 1, [Required define if using POSIX threads.]) |