projects
/
tinc
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9f20922
)
Check whether res_init() really lives in libresolv.
author
Guus Sliepen
<guus@tinc-vpn.org>
Fri, 26 Dec 2014 14:40:09 +0000
(15:40 +0100)
committer
Guus Sliepen
<guus@tinc-vpn.org>
Fri, 26 Dec 2014 14:40:09 +0000
(15:40 +0100)
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.
configure.ac
patch
|
blob
|
history
diff --git
a/configure.ac
b/configure.ac
index
1b89280
..
9ed54a6
100644
(file)
--- a/
configure.ac
+++ b/
configure.ac
@@
-204,7
+204,7
@@
AC_CHECK_DECLS([freeaddrinfo, gai_strerror, getaddrinfo, getnameinfo],
[], [], [#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 <resolv.h>
])