[PATCH:xscope 3/3] When not using xtrans, check if -lsocket & -lnsl are needed for Solaris/SVR4
Alan Coopersmith
alan.coopersmith at oracle.com
Thu Oct 18 22:37:50 PDT 2012
Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
---
configure.ac | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/configure.ac b/configure.ac
index 276ea3e..67b33f1 100644
--- a/configure.ac
+++ b/configure.ac
@@ -64,6 +64,10 @@ if test "x$XTRANS" = xyes ; then
XTRANS_PKG='xtrans'
AC_DEFINE([USE_XTRANS], [1], [Use xtrans for socket connection code])
+else
+ # SVR4 hides these in libraries other than libc
+ AC_SEARCH_LIBS(socket, [socket])
+ AC_SEARCH_LIBS(gethostbyname, [nsl])
fi
# Checks for pkg-config packages
--
1.7.9.2
More information about the xorg-devel
mailing list