From: Fabian Groffen Date: Wed, 7 Jun 2017 12:36:54 +0000 (+0200) Subject: configure: pull in -lnsl -lsocket for socket functions X-Git-Tag: 0.23.8~16 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ca9648c7c1cd38e306d7b3194900e4120eb179a0;p=p11-kit configure: pull in -lnsl -lsocket for socket functions Solaris has socket() etc. in these two libs. --- 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 ])