configure: link to libatomic when it's present
authorAnton Khirnov <anton@khirnov.net>
Wed, 19 Jan 2022 11:50:41 +0000 (12:50 +0100)
committerAnton Khirnov <anton@khirnov.net>
Fri, 21 Jan 2022 08:40:55 +0000 (09:40 +0100)
commit2bc8c87b2ec589ea7e9e97a9047733fc0fd7d643
tree3bfad64f10768022d6aafcd23716bd697c0b4de7
parenta66b58d61caaae452785a2d69f5de9259ab27138
configure: link to libatomic when it's present

C11 atomics in some configurations (e.g. 64bit operations on ppc64 with
GCC) require linking to libatomic.

Fixes #9275

(cherry picked from commit 2f0a214a6202516b4dda2bb22b6b3ac20e465d6d)
Signed-off-by: Anton Khirnov <anton@khirnov.net>
configure