diff -urN ../nagios.orig/base/Makefile.in ./base/Makefile.in
--- ../nagios.orig/base/Makefile.in	2004-12-10 15:38:08.000000000 +0100
+++ ./base/Makefile.in	2005-05-23 15:12:40.000000000 +0200
@@ -42,7 +42,6 @@
 MATHLIBS=-lm
 PERLLIBS=@PERLLIBS@
 PERLXSI_O=@PERLXSI_O@
-SOCKETLIBS=@SOCKETLIBS@
 THREADLIBS=@THREADLIBS@
 BROKERLIBS=@BROKERLIBS@
 
@@ -163,7 +162,7 @@
 ########## CGIS ##########
 
 nagios: nagios.c $(OBJS) $(OBJDEPS) $(SRC_INCLUDE)/nagios.h $(SRC_INCLUDE)/locations.h
-	$(CC) $(CFLAGS) -o $@ nagios.c $(OBJS) $(BROKER_LDFLAGS) $(LDFLAGS) $(PERLLIBS) $(MATHLIBS) $(SOCKETLIBS) $(THREADLIBS) $(BROKERLIBS) $(LIBS)
+	$(CC) $(CFLAGS) -o $@ nagios.c $(OBJS) $(BROKER_LDFLAGS) $(LDFLAGS) $(PERLLIBS) $(MATHLIBS) $(THREADLIBS) $(BROKERLIBS) $(LIBS)
 
 nagiostats: nagiostats.c $(SRC_INCLUDE)/locations.h
 	$(CC) $(CFLAGS) -o $@ nagiostats.c $(LDFLAGS) $(MATHLIBS) $(LIBS)
diff -urN ../nagios.orig/configure.in ./configure.in
--- ../nagios.orig/configure.in	2005-04-04 20:23:25.000000000 +0200
+++ ./configure.in	2005-05-23 15:12:20.000000000 +0200
@@ -42,9 +42,6 @@
 AC_TYPE_GETGROUPS
 
 dnl Checks for library functions.
-AC_CHECK_LIB(nsl,main,SOCKETLIBS="$SOCKETLIBS -lnsl")
-AC_CHECK_LIB(socket,socket,SOCKETLIBS="$SOCKETLIBS -lsocket")
-AC_SUBST(SOCKETLIBS)
 AC_CHECK_FUNCS(initgroups setenv strdup strstr strtoul unsetenv)
 
 AC_MSG_CHECKING(for type of socket size)
