Check for getaddrinfo rather than gethostbyname in configure.ac

Since the addition of IPv6 support, we now use getaddrinfo rather than
gethostbyname; update configure.ac accordingly.
This commit is contained in:
Josh Triplett 2006-11-22 21:49:52 -08:00
parent 183c2ba4cc
commit 1aade6a15f

View File

@ -55,7 +55,7 @@ AC_MSG_RESULT($XCBPROTO_XCBINCLUDEDIR)
AC_SUBST(XCBPROTO_XCBINCLUDEDIR)
AC_HEADER_STDC
AC_SEARCH_LIBS(gethostbyname, nsl)
AC_SEARCH_LIBS(getaddrinfo, socket)
AC_SEARCH_LIBS(connect, socket)
xcbincludedir='${includedir}/xcb'