solaris: we need -lsocket and -lnsl for all builds not just examples
authorRonnie Sahlberg <ronniesahlberg@gmail.com>
Sat, 16 Aug 2014 23:17:06 +0000 (16:17 -0700)
committerRonnie Sahlberg <ronniesahlberg@gmail.com>
Sat, 16 Aug 2014 23:17:06 +0000 (16:17 -0700)
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
configure.ac

index c4fe184a3c00a43de75b7bceeab29ea88efafc18..b790b0677a805f53cf3b2bce1d16f193d4d93863 100644 (file)
@@ -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])])
     ;;
   *)
     ;;