From f1bd62ffb7e5465287fef67550641a6bd302e983 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Sun, 13 Aug 1995 04:33:39 +0000 Subject: [PATCH] only add -lsun is irix < 5 don't look for -lnsl or -lsocket if irix --- configure.in | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/configure.in b/configure.in index 9e465780e..cc9acc202 100644 --- a/configure.in +++ b/configure.in @@ -335,16 +335,14 @@ AC_CHECK_FUNC(crypt, ,AC_CHECK_LIB(crypt, crypt, , AC_CHECK_LIB(crypt_d, crypt, dnl dnl library checks dnl -dnl Irix 5.2 (at least) has bugs in -lnsl and -lsocket -if test "$OS" != "irix" -o $OSREV -ne 5 ; then +dnl Irix doesn't want -lnsl or -lsocket (and Irix 4 needs -lsun) +if test "$OS" != "irix" ; then AC_CHECK_LIB(nsl, main) AC_CHECK_LIB(socket, main) +elif test "$OSREV" -lt 5 ; then + AC_CHECK_LIB(sun, getpwnam) fi dnl -dnl OS-dependent libraries -dnl -AC_CHECK_LIB(sun, getpwnam) -dnl dnl Find kerberos includes and libs or complain dnl if test -n "$KERB4" -o -n "$KERB5" ; then -- 2.40.0