]> The Tcpdump Group git mirrors - tcpdump/commitdiff
autoconf: search for gethostbyaddr() in libnetwork
authorJerome Duval <[email protected]>
Tue, 28 Apr 2015 20:22:20 +0000 (20:22 +0000)
committerGuy Harris <[email protected]>
Sat, 14 Jan 2023 21:22:31 +0000 (13:22 -0800)
This is needed for building on Haiku.

aclocal.m4
configure

index 494bfc19fe76ec838ecd7e76bc483124e88c4729..748ee9b8ec5bedc2df5d2959c0e48474c6ee88f0 100644 (file)
@@ -1166,7 +1166,7 @@ AC_DEFUN(AC_LBL_LIBRARY_NET, [
     # 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"
index 1cc75e4685a2b5e256ac80e328428daaf825860a..68ab3c5777a24150eb7af51055c9bd181e9cfb04 100755 (executable)
--- a/configure
+++ b/configure
@@ -4730,7 +4730,7 @@ return gethostbyaddr ();
   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"