#226 Detect and propagate atomic libraries like bind9
Merged by abbra. Opened by pemensik.
pemensik/bind-dyndb-ldap bind-9.18-support  into  master

BIND9 headers expect atomic definitions are configured before they are
included. It needs adding atomic libraries detection in configure AND
including config.h before any ISC headers are included.

Move dyndb-config.h before isc headers anywhere where needed.

This change is needed to build with bind-9.18.19, bug https://bugzilla.redhat.com/show_bug.cgi?id=2232346.

Pull-Request has been merged by abbra

wait, this seems incomplete. At least failed my copr build: https://copr.fedorainfracloud.org/coprs/pemensik/bind/build/6440731/

checking libdns version... 1819
./configure: line 14379: syntax error near unexpected token `atomic'
./configure: line 14379: `   AX_SAVE_FLAGS(atomic)'

It looks like this change depends on Autoconf archive which we didn't use before. So BuildRequires: autoconf-archive is missing

Correct. bind9 bundles those definitions, but I guess if autoconf-archive fixes it, it should be preferred anyway.

At least, both Fedora and RHEL 8+ do have autoconf-archive package so we can rely on it.