autoconf tenderfoot
James K. Lowden
jklowden at speakeasy.org
Sun Jun 2 18:33:40 EDT 2002
On Sun, 2 Jun 2002 13:27:53 -0400 (EDT) "Brian Bruns" <camber at ais.org>
wrote:
> config.h.in is created by "autoheader" and config.h by the configure
> script. What should happen is that configure checks whether INADDR_NONE
>
> exists already and optionally includes it in config.h. So most likely
> there is something wrong with the check for INADDR_NONE not detecting
> its existence. The check for it is in acinclude.m4 as
> AC_HAVE_INADDR_NONE.
>
> So, now the trick is to figure out why the macro isn't working...
>
> Yours seems to define this in netinet/in.h but there is no check for
> that in the configure.in So, my recommendation would be to add
>
> AC_CHECK_HEADERS(netinet/in.h)
>
> just above AC_HAVE_INADDR_NONE (the test for INADDR_NONE has a
> conditional include of in.h) and run ./autogen.sh to regenerate
> everything and give it a go. We might have to conditionally include it
> where INADDR_NONE is used too.
OK, thanks, Brian. That did the trick. (You didn't mention "make
distclean", but I noticed configure's output indicated "checking whether
INADDR_NONE is defined... no (cached)" on the first retry. After "make
distclean" there were no cached results for configure to use. Thought I'd
mention that for anyone else trying to follow along.)
More information about the FreeTDS
mailing list