From 5fe97d108860c35e28f1d01e1766e6a2cef6d548 Mon Sep 17 00:00:00 2001 From: Ronnie Sahlberg Date: Sat, 16 Aug 2014 16:17:06 -0700 Subject: [PATCH] solaris: we need -lsocket and -lnsl for all builds not just examples Signed-off-by: Ronnie Sahlberg --- configure.ac | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/configure.ac b/configure.ac index c4fe184..b790b06 100644 --- a/configure.ac +++ b/configure.ac @@ -72,10 +72,8 @@ case $host in *solaris*) AC_CHECK_HEADERS([sys/filio.h]) AC_CHECK_HEADERS([sys/sockio.h]) - if test x$ENABLE_EXAMPLES = xyes; then - AC_CHECK_LIB([socket], [main], , [AC_MSG_ERROR([Can not find required library])]) - AC_CHECK_LIB([nsl], [main], , [AC_MSG_ERROR([Can not find required library])]) - fi + AC_CHECK_LIB([socket], [main], , [AC_MSG_ERROR([Can not find required library])]) + AC_CHECK_LIB([nsl], [main], , [AC_MSG_ERROR([Can not find required library])]) ;; *) ;; -- 2.34.1