summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Greg Hudson <ghudson@mit.edu>1999-10-30 14:52:42 +0000
committerGravatar Greg Hudson <ghudson@mit.edu>1999-10-30 14:52:42 +0000
commit36005f9ade0b4d66078a858714e4255807babffe (patch)
treec3d1695436cb42a31151c33ed8b7a6361c97fd3e
parent60a41d1368a9cee51f3c2c2c0469aa0f4fc77147 (diff)
Use new AC_SEARCH_LIBS macro.
-rw-r--r--configure.in9
1 files changed, 2 insertions, 7 deletions
diff --git a/configure.in b/configure.in
index fe1dac4..1f392ea 100644
--- a/configure.in
+++ b/configure.in
@@ -68,13 +68,8 @@ AC_MSG_RESULT(${int32})
AC_CHECK_LIB(w, wslen)
AC_CHECK_LIB(dl, dlopen)
-# If we can't find connect, try looking in -lsocket and -lnsl. The
-# Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
-# libsocket.so which has a bad implementation of gethostbyname (it
-# only looks in /etc/hosts), so we only look for -lsocket if we need
-# it.
-AC_CHECK_FUNC(connect, :, [AC_CHECK_LIB(socket, socket)
- AC_CHECK_LIB(nsl, gethostbyname)])
+AC_SEARCH_LIBS(gethostbyname, nsl)
+AC_SEARCH_LIBS(socket, socket)
# Hesiod needs -lresolv on Sun systems for res_send.
if test "$hesiod" != "no"; then