Yang Tse
cb2a75dece
Checking for function getnameinfo and its arguments is finally
...
done in one single function CURL_CHECK_FUNC_GETNAMEINFO which
will only define HAVE_GETNAMEINFO if the function has been found
AND the type of its arguments has been properly been detected
19 years ago
Yang Tse
1499c81ab3
Make sure we're using 'c-ares' sources and not 'ares' ones.
19 years ago
Yang Tse
e80c02452e
Fix, header checks must be done before using its results.
19 years ago
Daniel Stenberg
a08aed3147
use AC_PROG_LIBTOOL after AC_DISABLE_SHARED
19 years ago
Yang Tse
6419328de9
Adjust more windows header includes
19 years ago
Yang Tse
1d9efefdfa
Fix Msys/Mingw not detecting getnameinfo() with AC_CHECK_FUNCS
19 years ago
Yang Tse
e4c8fa8111
TYPE_SOCKLEN_T completely replaced by CURL_CHECK_TYPE_SOCKLEN_T.
...
CURL_FUNC_GETNAMEINFO_ARGTYPES now also checks first argument.
All related changes taken to cares configuration scripts.
19 years ago
Daniel Stenberg
f06e65fa65
check for and use winsock2.h instead of winsock.h and I fixed a typo in the
...
ifdefs where . was used instead of _!
19 years ago
Daniel Stenberg
264f2a4cf1
include ws2tcpip.h in an attempt to detect some of the ipv6 structs better
...
in mingw builds
19 years ago
Daniel Stenberg
374bc69deb
Detect big/little endian in the configure script and adjust the ares_dns.h
...
macros accordingly.
19 years ago
Daniel Stenberg
af27d8743d
simplified the sin6_scope_id test and removed some left-overs from the previous
...
way of detecting it
19 years ago
Daniel Stenberg
cbe5ec4597
fixed the check for the addrinfo struct
19 years ago
Dominick Meglio
6afd5c16d3
Added constants that will be used by ares_getaddrinfo. Made ares_getnameinfo use the reentrant getservbyport (getservbyport_r) if it isavailable to ensure it works properly in a threaded environment
19 years ago
Daniel Stenberg
f22a6589bf
Use the AC_CHECK_MEMBER() function for check struct members instead of
...
inventing and providing our own. Hopefully this solves a HP-UX 11.00 problem.
19 years ago
Dominick Meglio
ebcf14a69b
Added some checks for the addrinfo structure.
20 years ago
Daniel Stenberg
01118be8ae
FIONBIO is in sys/ioctl.h on AIX
20 years ago
Daniel Stenberg
4e9c5b2dbb
William Ahern:
...
Make UDP sockets non-blocking. I've confirmed that at least on Linux 2.4 a
read event can come back from poll() on a valid SOCK_DGRAM socket but
recv(2) will still block. This patch doesn't ignore EAGAIN in
read_udp_packets(), though maybe it should. (This patch was edited by Daniel
Stenberg and a new configure test was added (imported from curl's configure)
to properly detect what non-blocking socket approach to use.)
20 years ago
Dominick Meglio
aba0b775ea
Added ares_getnameinfo which mimics the getnameinfo API
20 years ago
Daniel Stenberg
cac87c7fc7
replaced the CRLF newlines with plain LF ones
20 years ago
Dominick Meglio
eeb6aa6b01
Added an inet_ntop function from BIND for systems that do not have it
20 years ago
Dominick Meglio
00b7a550b5
Added preliminary IPv6 support to ares_gethostbyname
20 years ago
Daniel Stenberg
2a0239bab1
include sys/types.h too when checking for headers as otherwise this breaks
...
on Solaris and FreeBSD. At least.
20 years ago
Daniel Stenberg
77244a784f
Try harder to see if arpa/nameser_compat.h REALLY is a good header file to
...
include, as it seems at least some AIX versions don't really allow it to be
include at the same time as the original nameser.h.
20 years ago
Daniel Stenberg
81d0042414
check for struct sizes and use those sizes if the NS_* defines are lacking
...
(IRIX 6.5.22 it seems)
20 years ago
Daniel Stenberg
39ea207306
check for another arpa header
20 years ago
Daniel Stenberg
3f15ec783b
check for the arpa/* headers
20 years ago
Dominick Meglio
ffb4cf5554
Provided implementations of inet_net_pton and inet_pton from BIND for systems that do not include these functions. These will be necessary for CIDR support and IPv6 support.
20 years ago
Daniel Stenberg
da97171445
attempt to fix the ares link breakage with --enable-debug in libcurl and here
20 years ago
Daniel Stenberg
e0c8f58697
Check for winsock.h to work with win32. Only include system headers we know
...
exist.
20 years ago
Daniel Stenberg
9586905220
Dominick Meglio added ares_parse_aaaa_reply.c and did various adjustments. The
...
first little steps towards IPv6 support!
20 years ago
Daniel Stenberg
93689c0d94
fix the -I path to the proper include dir when --enable-debug is used
20 years ago
Daniel Stenberg
58f74b0549
--enable-debug now makes the lib built static only since otherwise we
...
get problems
21 years ago
Daniel Stenberg
d5f3636a52
- Fixed a few variable return types for some system calls. Made configure
...
check for ssize_t to make it possible to use that when receiving the send()
error code. This is necessary to prevent compiler warnings on some systems.
- Made configure create config.h, and all source files now include setup.h that
might include the proper config.h (or a handicrafted alternative).
- Switched to 'ares_socket_t' type for sockets in ares, since Windows don't
use 'int' for that.
- automake-ified and libool-ified c-ares. Now it builds libcares as a shared
lib on most platforms if wanted. (This bloated the size of the release
archive with another 200K!)
- Makefile.am now uses Makefile.inc for the c sources, h headers and man
pages, to make it easier for other makefiles to use the exact same set of
files.
- Adjusted 'maketgz' to use the new automake magic when building distribution
archives.
21 years ago
Daniel Stenberg
650fd8cee3
added the better debug option logic from curl by adding acinclude.m4 to the
...
configure stuff
21 years ago
Daniel Stenberg
74d3b56a0f
check for a few basic header files
21 years ago
Daniel Stenberg
3e2959f67c
this code uses no long long, so we can have warnings about them
21 years ago
Daniel Stenberg
bff8eca5ae
check for standard headers when --enable-debug is used
21 years ago
Daniel Stenberg
dd6dd055b3
I removed the socklen_t requirement from memdebug.h, so we don't need to
...
figure it out here anymore to build debug builds.
21 years ago
Daniel Stenberg
9264a4649d
The --enable-debug option really requires this to be built as part of curl.
...
When using it, we now set the include path to better find the devel curl
headers, and we check for the socklen_t type since the curl memdebug stuff
needs it.
21 years ago
Daniel Stenberg
15d2d14259
don't assume we can use gcc 2.96+ options
21 years ago
Daniel Stenberg
2cb9a82bac
we use the more aggressive compiler warnings
21 years ago
Daniel Stenberg
2bf1e41f46
use configure.ac instead of configure.in
...
support --enable-debug to switch on picky compiler options
21 years ago