configure: test for getaddrinfo_a and libanl
commit01fd9fe4c7f6c5558f7345f38abf0152e17853ab
authorNatanael Copa <ncopa@alpinelinux.org>
Wed, 20 Dec 2017 12:21:02 +0000 (20 12:21 +0000)
committerJean-Baptiste Kempf <jb@videolan.org>
Fri, 22 Dec 2017 19:07:45 +0000 (22 20:07 +0100)
tree3242b4cc21d6734204b11241a13b383a16c3defd
parent250e44ff9d0f90eb4f7b975818c07cdea19b8ce8
configure: test for getaddrinfo_a and libanl

Test for the existence of the GNU extension getaddrinf_a and libanl
instead of assuming that every Linux has it. Fall back to posix variant
if they are missing.

This fixes build with musl libc which does not implement this GNU
extension.

Fixes #19320

Signed-off-by: Natanael Copa <ncopa@alpinelinux.org>
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
configure.ac
src/Makefile.am