Blame SOURCES/0033-configure-check-for-stdatomic.h.patch

b833e0
From 075519bceca7a8f4fa28a0b7c538f2f50d552d13 Mon Sep 17 00:00:00 2001
b833e0
From: =?UTF-8?q?Pavel=20B=C5=99ezina?= <pbrezina@redhat.com>
b833e0
Date: Thu, 26 Nov 2020 14:56:08 +0100
b833e0
Subject: [PATCH 18/18] configure: check for stdatomic.h
b833e0
b833e0
Recent autofs patches adds dependency on automic_uint/_Atomic type from C11
b833e0
standard. This is supported in both gcc and clang for a long time now.
b833e0
b833e0
Reviewed-by: Alexey Tikhonov <atikhono@redhat.com>
b833e0
---
b833e0
 configure.ac | 1 +
b833e0
 1 file changed, 1 insertion(+)
b833e0
b833e0
diff --git a/configure.ac b/configure.ac
b833e0
index 1af1d1785..0d24c4b35 100644
b833e0
--- a/configure.ac
b833e0
+++ b/configure.ac
b833e0
@@ -42,6 +42,7 @@ m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES])
b833e0
 AM_CONDITIONAL([HAVE_GCC], [test "$ac_cv_prog_gcc" = yes])
b833e0
 
b833e0
 AC_CHECK_HEADERS(stdint.h dlfcn.h)
b833e0
+AC_CHECK_HEADERS([stdatomic.h],,AC_MSG_ERROR([C11 atomic types are not supported]))
b833e0
 AC_CONFIG_HEADER(config.h)
b833e0
 
b833e0
 AC_CHECK_TYPES([errno_t], [], [], [[#include <errno.h>]])
b833e0
-- 
b833e0
2.21.3
b833e0