aboutsummaryrefslogtreecommitdiffhomepage
path: root/configure.ac
diff options
context:
space:
mode:
authorGravatar Timo Sirainen <tss@iki.fi>2012-08-11 23:10:43 +0300
committerGravatar Keith Winstein <keithw@mit.edu>2012-08-11 17:14:44 -0400
commitcc0542dfe17831f7eab6d344202d573e3c6b9a57 (patch)
tree010d57dbbf6da439ff3876725fedb98e8fe72c9b /configure.ac
parent894a190f06c523b09830c56eed1289482180ac24 (diff)
Test if -lsocket and -lnsl are needed (for Solaris)
Signed-off-by: Timo Sirainen <tss@iki.fi>
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac3
1 files changed, 3 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 40f41d8..3728eee 100644
--- a/configure.ac
+++ b/configure.ac
@@ -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.])])