Hi, Sorry for the piece-meal replies.
On Mon, Dec 7, 2015 at 10:47 AM, Gert Doering <g...@greenie.muc.de> wrote: > > AC_CHECK_DECL would detect inet_pton etc., because it only looks for the > > declaration in a header. The macro I submitted works almost exactly like > > AC_CHECK_DECL but defines HAVE_symbol instead of HAVE_DECL_symbol. > > Not good enough. I want to be sure that the symbol is there, and that > we actually have the right libraries (so maybe a double check "the symbol > is there, but we cannot link, so fail" might be even better). When pushed to a corner anything is possible... It turns out that libws2_32 exports all the required function names without any mangling (as if cdecl). Not sure this is mingw32 speciifc or not. Also unlike I wrote inet_ntop is not redefined, its InetNtopA that is redfined. Though Microsoft docs appears to indicate as if InetNtopA is the actual name. What it means is that a simple check without my much hated macro should be possible. I'll post a version 2 tonight. Thanks for the patience. Selva