This is needed for building on Haiku.
# libraries (i.e. libc):
# Some OSes (eg. Solaris) place it in libnsl
# Some strange OSes (SINIX) have it in libsocket:
- AC_SEARCH_LIBS(gethostbyaddr, nsl socket resolv)
+ AC_SEARCH_LIBS(gethostbyaddr, network nsl socket resolv)
# Unfortunately libsocket sometimes depends on libnsl and
# AC_SEARCH_LIBS isn't up to the task of handling dependencies like this.
if test "$ac_cv_search_gethostbyaddr" = "no"
return 0;
}
_ACEOF
-for ac_lib in '' nsl socket resolv
+for ac_lib in '' network nsl socket resolv
do
if test -z "$ac_lib"; then
ac_res="none required"