summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorDonald Sharp <donaldsharp72@gmail.com>2024-05-06 16:27:33 +0200
committerGitHub <noreply@github.com>2024-05-06 16:27:33 +0200
commit9de2f138f0b3e76324dfb9a11d85fbf6c13b8b89 (patch)
treeed1c7202a3183371c5cea4188de925591cb86db8 /configure.ac
parentMerge pull request #15915 from opensourcerouting/build-format-suseconds (diff)
parentbuild: link libatomic if available (diff)
downloadfrr-9de2f138f0b3e76324dfb9a11d85fbf6c13b8b89.tar.xz
frr-9de2f138f0b3e76324dfb9a11d85fbf6c13b8b89.zip
Merge pull request #15889 from opensourcerouting/build-libatomic
build: link libatomic if available
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac2
1 files changed, 2 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 9f964a2f3..71c3d5afa 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1096,6 +1096,8 @@ dnl -------------------------
AC_CHECK_HEADERS([stropts.h sys/ksym.h \
linux/version.h asm/types.h endian.h sys/endian.h])
+AC_CHECK_LIB([atomic], [main], [LIBS="$LIBS -latomic"], [], [])
+
ac_stdatomic_ok=false
AC_DEFINE([FRR_AUTOCONF_ATOMIC], [1], [did autoconf checks for atomic funcs])
AC_CHECK_HEADER([stdatomic.h],[