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

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