[Nut-upsdev] Re: [nut-commits] svn commit r849 - trunk

Charles Lepple
Thu, 08 Mar 2007 19:47:09 -0000

On 3/8/07, Arjen de Korte <adkorte-guest@alioth.debian.org>
wrote:
> --- trunk/configure.in  (original)
> +++ trunk/configure.in  Thu Mar  8 18:56:52 2007
> @@ -128,13 +128,8 @@
>  AC_CHECK_FUNCS(connect)
>
>  if ( test "${ac_cv_func_connect}" = "no" ); then
> -       AC_CHECK_LIB(nsl, printf, [
> -               NETLIBS="-lnsl"
> -       ], [], [])
> -
> -       AC_CHECK_LIB(socket, printf, [
> -               NETLIBS="${NETLIBS} -lsocket"
> -       ], [], [])
> +       AC_CHECK_LIB(nsl, gethostbyname)
> +       AC_CHECK_LIB(socket, connect)
>  fi

Arjen,

have you had a chance to test this on Solaris? My gut reaction is that
this will either add all the networking libraries to drivers, or it
will not do anything other than check for the library and print a
message.

--
- Charles Lepple