This patch is for the configure script. It fixes a bug which causes configure to give wrong results when configuring with --with-libwrap on system which don't have libsocket and libnsl.