Fix example linkage under solaris
authorTrent Nelson <trent.a.b.nelson@gmail.com>
Tue, 28 Jun 2011 07:54:44 +0000 (03:54 -0400)
committerTrent Nelson <trent.a.b.nelson@gmail.com>
Wed, 29 Jun 2011 18:15:23 +0000 (14:15 -0400)
configure.ac

index 9689a1f57a721d7a001fb5bfd872be57cc180329..5b8f1fa994f3aae70125e80b5da93c128c7831be 100644 (file)
@@ -52,6 +52,10 @@ case $host in
     ;;
   *solaris*)
     AC_CHECK_HEADERS([sys/filio.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
     ;;
   *)
     ;;