Fix bug 8153 found when building on an IPv6-only system by Kai Blin.
commitdc9e1691f6b51658042d60a9f697afd4da9340a7
authorJeremy Allison <jra@samba.org>
Thu, 19 May 2011 19:32:15 +0000 (19 12:32 -0700)
committerKarolin Seeger <kseeger@samba.org>
Tue, 7 Jun 2011 18:00:28 +0000 (7 20:00 +0200)
tree2f29269cf4fa0541611053419b3cdf0aa9de8997
parent9f68cd9634dce9078d19f3addbb1f55bf28ae41f
Fix bug 8153 found when building on an IPv6-only system by Kai Blin.

When building on IPv6-only, doing:

hints.ai_family = AF_INET;
getaddrinfo("0.0.0.0", NULL, &hints, &ppres)

fails as AF_INET is unavailable on an IPv6-only system. This
causes us to fallback to our replacement getaddrinfo code
which is IPv4-only.

As we're only trying to detect a specific AIX bug here,
broaden the tests to find that bug, and also test for
working getaddrinfo in an IPv6-only safe way.
(cherry picked from commit 85468960ebdb3d813bd863e57f6dca6bab61bec2)
lib/replace/libreplace_network.m4