From: Trent Nelson Date: Tue, 28 Jun 2011 07:54:44 +0000 (-0400) Subject: Fix example linkage under solaris X-Git-Tag: upstream/1.9.6^2~359^2~1 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=4a75cfa21496112df81d290fca2a8e0ec245c802;p=deb_libnfs.git Fix example linkage under solaris --- diff --git a/configure.ac b/configure.ac index 9689a1f..5b8f1fa 100644 --- a/configure.ac +++ b/configure.ac @@ -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 ;; *) ;;