Add support to link against libresolv Mac OS X
authorAlexis Hildebrandt <afh@surryhill.net>
Sun, 22 Jun 2014 14:43:15 +0000 (16:43 +0200)
committerGuus Sliepen <guus@tinc-vpn.org>
Sun, 22 Jun 2014 15:21:23 +0000 (17:21 +0200)
configure.ac

index 6ed4dd9958cb15c7881089fb02f178a4090c94c5..5efb412ec691d1d41786b7d6d39bd441e2b3030f 100644 (file)
@@ -204,7 +204,7 @@ AC_CHECK_DECLS([freeaddrinfo, gai_strerror, getaddrinfo, getnameinfo],
   [], [], [#include "src/have.h"]
 )
 
-AC_CHECK_DECLS([res_init], [], [], [
+AC_CHECK_DECLS([res_init], [LIBS="$LIBS -lresolv"], [], [
   #include <netinet/in.h>
   #include <resolv.h>
 ])