summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorM Joonas Pihlaja <jpihlaja@cc.helsinki.fi>2009-05-24 23:50:03 +0300
committerM Joonas Pihlaja <jpihlaja@cc.helsinki.fi>2009-06-18 15:48:59 +0100
commitaafff0b9528952fbbe9d04a70bf8c76ee701743f (patch)
treebab46084f43d381f24a575f719ea7f8ca6d33c75 /build
parentc4c06931690226e12622a957bbb6d652134f78b0 (diff)
[boilerplate] Check for connect() in libsocket.
Solaris requires -lsocket to be able to talk to the any2ppm daemon over unix domain sockets.
Diffstat (limited to 'build')
-rw-r--r--build/configure.ac.system4
1 files changed, 4 insertions, 0 deletions
diff --git a/build/configure.ac.system b/build/configure.ac.system
index 01a6a0a8..46909ad0 100644
--- a/build/configure.ac.system
+++ b/build/configure.ac.system
@@ -56,6 +56,10 @@ AC_CHECK_LIB(rt, shm_open, [
AM_CONDITIONAL(HAVE_SHM, test "x$has_shm_open" = "xyes")
AC_SUBST(SHM_LIBS)
+AC_CHECK_LIB(socket, connect, [SOCKET_LIBS=-lsocket], [SOCKET_LIBS=])
+CAIROBOILERPLATE_LIBS=$SOCKET_LIBS
+AC_SUBST(CAIROBOILERPLATE_LIBS)
+
dnl ====================================================================
dnl Header/function checks
dnl ====================================================================