Browse files

Test if -lsocket and -lnsl are needed (for Solaris)

Signed-off-by: Timo Sirainen <>
  • Loading branch information...
1 parent 894a190 commit cc0542dfe17831f7eab6d344202d573e3c6b9a57 @sirainen sirainen committed with keithw Aug 11, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0
@@ -172,6 +172,9 @@ AS_IF([test x"$with_utempter" != xno],
AC_SEARCH_LIBS([compress], [z], , [AC_MSG_ERROR([Unable to find zlib.])])
+AC_SEARCH_LIBS([socket], [socket])
+AC_SEARCH_LIBS([inet_addr], [nsl])
# Checks for header files.
AC_CHECK_HEADERS([arpa/inet.h fcntl.h langinfo.h limits.h locale.h netinet/in.h stddef.h stdint.h inttypes.h stdlib.h string.h sys/ioctl.h sys/resource.h sys/socket.h sys/stat.h sys/time.h termios.h unistd.h wchar.h wctype.h], [], [AC_MSG_ERROR([Missing required header file.])])

0 comments on commit cc0542d

Please sign in to comment.