Re: Configure issues

---------

From: Daniel Stenberg (Daniel.Stenberg@frontec.se)
Date: Thu Oct 07 1999 - 07:10:11 CDT


On Thu, 7 Oct 1999, Tony Earnshaw wrote:

> Quite frankly, I can't see configure doing any better without input from
> people who know what the OS wants of and does with headers and libs.
> E.g., OS 5.0 uses /usr/lib/libsocket.a/.so for gethostbyname() etc,
> UnixWare uses /usr/lib/libresolv.so. This stumps the Apache (and other)
> configures.

I'd be happy to write a configure rule that automatically detects which of
those libs to use. In fact, I guess it would look something like this:

dnl socket lib?
AC_CHECK_FUNC(gethostbyname, , AC_CHECK_LIB(socket, gethostbyname))

dnl resolv lib?
AC_CHECK_FUNC(gethostbyname, , AC_CHECK_LIB(resolv, gethostbyname))

-- 
 Daniel Stenberg -- http://www.fts.frontec.se/~dast/
 You'll find my hypermail pages at http://www.fts.frontec.se/~dast/hypermail

---------

This archive was generated by hypermail 2.1.5.