Check whether res_init() really lives in libresolv.
On some platforms (Mac OS X for example), the res_init() function requires linking with libresolv. On others (Linux, OpenBSD for example), res_init() lives in libc.
This commit is contained in:
parent
9f20922d62
commit
8ee4004edf
1 changed files with 1 additions and 1 deletions
|
|
@ -204,7 +204,7 @@ AC_CHECK_DECLS([freeaddrinfo, gai_strerror, getaddrinfo, getnameinfo],
|
||||||
[], [], [#include "src/have.h"]
|
[], [], [#include "src/have.h"]
|
||||||
)
|
)
|
||||||
|
|
||||||
AC_CHECK_DECLS([res_init], [LIBS="$LIBS -lresolv"], [], [
|
AC_CHECK_DECLS([res_init], [AC_CHECK_LIB(resolv, res_init)], [], [
|
||||||
#include <netinet/in.h>
|
#include <netinet/in.h>
|
||||||
#include <resolv.h>
|
#include <resolv.h>
|
||||||
])
|
])
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue