Permalink
Browse files

Check for inet_aton in libresolv

  • Loading branch information...
1 parent 9322aee commit 7b7a3af302a6feaa8f0d19952d4d012e3692043c @rubenk rubenk committed with pieterlexis Jan 2, 2015
Showing with 4 additions and 0 deletions.
  1. +4 −0 configure.ac
View
@@ -49,6 +49,10 @@ AC_CHECK_FUNC([gethostent], [], [
AC_CHECK_LIB([nsl], [gethostent], [LIBS="-lnsl $LIBS"])
])
+AC_CHECK_FUNC([inet_aton], [], [
+ AC_CHECK_LIB([resolv], [inet_aton], [LIBS="-lresolv $LIBS"])
+])
+
m4_ifndef([LT_INIT],[
AC_PROG_LIBTOOL([disable-static])
],[

0 comments on commit 7b7a3af

Please sign in to comment.