diff options
author | David Vašek <david.vasek@nic.cz> | 2023-11-01 12:03:52 +0100 |
---|---|---|
committer | David Vašek <david.vasek@nic.cz> | 2023-11-01 15:28:51 +0100 |
commit | 5281a5885815900b0c046366688c12b9147300ea (patch) | |
tree | 5c7ea897a8ad3725d1fd956bad875c45bf861c0d /configure.ac | |
parent | contrib/spinlock: match the types formally and fix the C11 version (diff) | |
download | knot-5281a5885815900b0c046366688c12b9147300ea.tar.xz knot-5281a5885815900b0c046366688c12b9147300ea.zip |
contrib/spinlock: reduce supported variants to C11 and POSIX as a fallback
The C11 standard is required by Knot anyway.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/configure.ac b/configure.ac index ecfc72d14..83098b6ed 100644 --- a/configure.ac +++ b/configure.ac @@ -752,13 +752,6 @@ AC_LINK_IFELSE( [AC_DEFINE(HAVE_ATOMIC, 1, [Define to 1 if you have '__atomic' functions.])] ) -# Check for '__sync' compiler builtin atomic functions. -AC_LINK_IFELSE( - [AC_LANG_PROGRAM([[#include <stdint.h>]], - [[int val = 0; __sync_add_and_fetch(&val, 1);]])], - [AC_DEFINE(HAVE_SYNC_ATOMIC, 1, [Define to 1 if you have '__sync' functions.])] -) - # Prepare CFLAG_VISIBILITY to be used where needed gl_VISIBILITY() |