Re: libresolv and freebsd

2009-11-16 Thread Kinkie
Yes.
I'd also like to give a nice reworking to the pthread-detection logic
which seems a bit overcomplicated
(also, on Opensolaris pthread_* are now libc, with stubs in libpthread
and libthread).

  K.

On Mon, Nov 16, 2009 at 3:50 PM, Henrik Nordstrom
 wrote:
> Quite likely we don't even need libresolv in the majority of cases, on
> pretty much all platforms.
>
> mån 2009-11-16 klockan 12:07 +0100 skrev Kinkie:
>> In configure.in there is something like this:
>>
>>  if test $ac_cv_lib_bind_gethostbyname = "no" ; then
>>      case "$host" in
>>         i386-*-freebsd*)
>>                 AC_MSG_NOTICE([skipping libresolv checks for $host])
>>                 ;;
>>         *)
>>                AC_CHECK_LIB(resolv, main)
>>                 ;;
>>      esac
>>  fi
>>
>> I fail to see what's the point in skipping this test.
>> I'd expect to get the same result with a simple(r)
>>
>> AC_SEARCH_LIBS([gethostbyname],[bind resolv])
>>
>> See my other request on moving form AC_CHECK_LIB to AC_SEARCH_LIBS.
>>
>> Thanks for any input.
>>
>
>



-- 
/kinkie


Re: libresolv and freebsd

2009-11-16 Thread Henrik Nordstrom
Quite likely we don't even need libresolv in the majority of cases, on
pretty much all platforms.

mån 2009-11-16 klockan 12:07 +0100 skrev Kinkie:
> In configure.in there is something like this:
> 
>  if test $ac_cv_lib_bind_gethostbyname = "no" ; then
>  case "$host" in
> i386-*-freebsd*)
> AC_MSG_NOTICE([skipping libresolv checks for $host])
> ;;
> *)
>AC_CHECK_LIB(resolv, main)
> ;;
>  esac
>  fi
> 
> I fail to see what's the point in skipping this test.
> I'd expect to get the same result with a simple(r)
> 
> AC_SEARCH_LIBS([gethostbyname],[bind resolv])
> 
> See my other request on moving form AC_CHECK_LIB to AC_SEARCH_LIBS.
> 
> Thanks for any input.
> 



Re: libresolv and freebsd

2009-11-16 Thread Amos Jeffries

Kinkie wrote:

In configure.in there is something like this:

 if test $ac_cv_lib_bind_gethostbyname = "no" ; then
 case "$host" in
i386-*-freebsd*)
AC_MSG_NOTICE([skipping libresolv checks for $host])
;;
*)
   AC_CHECK_LIB(resolv, main)
;;
 esac
 fi

I fail to see what's the point in skipping this test.
I'd expect to get the same result with a simple(r)

AC_SEARCH_LIBS([gethostbyname],[bind resolv])

See my other request on moving form AC_CHECK_LIB to AC_SEARCH_LIBS.

Thanks for any input.



Agreed. It's probably worth melding into the test patch for AC_SEARCH

Amos
--
Please be using
  Current Stable Squid 2.7.STABLE7 or 3.0.STABLE20
  Current Beta Squid 3.1.0.14


libresolv and freebsd

2009-11-16 Thread Kinkie
In configure.in there is something like this:

 if test $ac_cv_lib_bind_gethostbyname = "no" ; then
 case "$host" in
i386-*-freebsd*)
AC_MSG_NOTICE([skipping libresolv checks for $host])
;;
*)
   AC_CHECK_LIB(resolv, main)
;;
 esac
 fi

I fail to see what's the point in skipping this test.
I'd expect to get the same result with a simple(r)

AC_SEARCH_LIBS([gethostbyname],[bind resolv])

See my other request on moving form AC_CHECK_LIB to AC_SEARCH_LIBS.

Thanks for any input.

-- 
/kinkie