diff --git a/configure.in b/configure.in
index 159bf87..1ad2fac 100644
--- a/configure.in
+++ b/configure.in
@@ -64,6 +64,7 @@ dnl Checks for libraries.
 AC_CHECK_LIB(z, gzopen,
   , AC_MSG_ERROR([*** Cannot compile without zlib.]))
 AC_CHECK_LIB(pthread, pthread_yield)
+AC_CHECK_LIB(network, socket)
 
 PKG_CHECK_MODULES(LIBPNG, libpng)
 CPPFLAGS="$CPPFLAGS $LIBPNG_CFLAGS"
