configure: fix check for libnsl
authorRémi Denis-Courmont <remi@remlab.net>
Fri, 3 Jan 2014 21:48:08 +0000 (23:48 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Fri, 3 Jan 2014 21:48:47 +0000 (23:48 +0200)
Pointed-out-by: Jon Tibble <meths@btinternet.com>
configure.ac

index 9e2714a..7d0a8ab 100644 (file)
@@ -592,7 +592,7 @@ AC_SEARCH_LIBS(connect, [socket], [
   ])
 ])
 
-AC_SEARCH_LIBS([getaddrinfo], [nsl], [
+AC_SEARCH_LIBS([inet_pton], [nsl], [
  AS_IF([test "$ac_cv_search_getaddrinfo" != "none required"], [
     SOCKET_LIBS="$ac_cv_search_getaddrinfo $SOCKET_LIBS"
   ])