summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2012-10-18 22:36:30 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2012-10-19 22:11:57 -0700
commit13c3f1338ef1ed233cd3e400a6b6bd5f499be592 (patch)
tree13ee9324204aae5c94ac2f3bf226b0538da78097
parent5d77ae6a2646140a28a9c90c5f39bca506277ad2 (diff)
downloadxscope-13c3f1338ef1ed233cd3e400a6b6bd5f499be592.tar.gz
When not using xtrans, check if -lsocket & -lnsl are needed for Solaris/SVR4
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r--configure.ac4
1 files changed, 4 insertions, 0 deletions
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