This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[PATCH] Search for gethostbyname in libnsl.
- From: Mark Kettenis <kettenis at chello dot nl>
- To: gdb-patches at sources dot redhat dot com
- Date: Sat, 30 Aug 2003 02:06:26 +0200 (CEST)
- Subject: [PATCH] Search for gethostbyname in libnsl.
Solaris has gethostbyname in libnsl. Right now this is taken care of
by some XM_CLIBS hackery in the host-dependent makefile fragment, but
we want to get rid of that. This should help.
Checked in as obvious.
Index: ChangeLog
from Mark Kettenis <kettenis@gnu.org>
* configure.in: Search for gethostbyname in libnsl.
* configure: Regenerated.
Index: configure.in
===================================================================
RCS file: /cvs/src/src/gdb/configure.in,v
retrieving revision 1.130
diff -u -p -r1.130 configure.in
--- configure.in 29 Aug 2003 19:18:07 -0000 1.130
+++ configure.in 30 Aug 2003 00:02:36 -0000
@@ -264,6 +264,9 @@ AC_CHECK_LIB(m, main)
AC_CHECK_FUNC(wctype, [],
[AC_CHECK_LIB(w, wctype)])
+# Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
+AC_SEARCH_LIBS(gethostbyname, nsl)
+
# Some systems (e.g. Solaris) have `socketpair' in libsocket.
AC_SEARCH_LIBS(socketpair, socket)