configure: Improve resolv lib test for glibc 2.34.

res_init and res_query don't need lresolv on glibc 2.34.
Added another test for ns_initparse and friends.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=51635
Signed-off-by: Fabian Maurer <dark.shadow4@web.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Fabian Maurer 2021-08-19 00:53:56 +02:00 committed by Alexandre Julliard
parent 68b840953d
commit a3bbf51377
2 changed files with 2 additions and 2 deletions

2
configure vendored
View File

@ -14156,7 +14156,7 @@ else
int
main ()
{
if (!(_res.options & RES_INIT)) res_init(); res_query("foo",ns_c_in,0,0,0)
if (!(_res.options & RES_INIT)) res_init(); res_query("foo",ns_c_in,0,0,0); ns_initparse(0,0,0)
;
return 0;
}

View File

@ -1498,7 +1498,7 @@ then
AC_LINK_IFELSE([AC_LANG_PROGRAM([[#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#include <resolv.h>]],[[if (!(_res.options & RES_INIT)) res_init(); res_query("foo",ns_c_in,0,0,0)]])],
#include <resolv.h>]],[[if (!(_res.options & RES_INIT)) res_init(); res_query("foo",ns_c_in,0,0,0); ns_initparse(0,0,0)]])],
[ac_cv_have_resolv=${lib:-"none required"}],[ac_cv_have_resolv="not found"])
test "x$ac_cv_have_resolv" = "xnot found" || break
done