From ca9648c7c1cd38e306d7b3194900e4120eb179a0 Mon Sep 17 00:00:00 2001 From: Fabian Groffen Date: Wed, 7 Jun 2017 14:36:54 +0200 Subject: configure: pull in -lnsl -lsocket for socket functions Solaris has socket() etc. in these two libs. --- configure.ac | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/configure.ac b/configure.ac index 5753664..e812efe 100644 --- a/configure.ac +++ b/configure.ac @@ -88,6 +88,13 @@ if test "$os_unix" = "yes"; then AC_MSG_ERROR([could not find dlopen]) ]) + # for Solaris we need -lsocket -lnsl for socket stuff, gethostbyname + # is just a dummy to find -lnsl + AC_SEARCH_LIBS([gethostbyname], [nsl]) + AC_SEARCH_LIBS([connect], [socket], [], [ + AC_MSG_ERROR([could not find socket]) + ]) + # These are thngs we can work around AC_CHECK_HEADERS([locale.h sys/resource.h]) AC_CHECK_MEMBERS([struct dirent.d_type],,,[#include ]) -- cgit v1.1