1
0
mirror of https://frontier.innolan.net/rainlance/c-ares.git synced 2025-11-23 05:39:36 +00:00
Commit Graph

122 Commits

Author SHA1 Message Date
cb71b6bd5a configure: NATIVE_WINDOWS no longer defined in config file 2012-04-17 13:30:00 +02:00
f394cd55c8 configure - m4: make CURL_CHECK_DEF ignore leading whitespace on symbol def
When using Sun C compiler the preprocessor somehow inserts an extra space
in front of replaced symbol, breaking CURL_CHECK_DEF macro. To workaround
this, macro CURL_CHECK_DEF now ignores all leading whitespace in front of
symbol substitution result.
2011-09-27 21:59:27 +02:00
ce03c818f4 Revert "Do not use sized constants in public headers"
This reverts commit 22c01e96f7.

This is a Red Hat specific patch that does not belong into upstream
2011-06-15 10:55:29 +02:00
22c01e96f7 Do not use sized constants in public headers 2011-06-14 16:41:29 +02:00
e67edcd18d configure: fix recvfrom 5th arg type qualifier detection (followup) 2011-06-08 15:55:48 +02:00
700b928544 configure: fix recvfrom 5th arg type qualifier detection
Additionally remove whitespace from EOL
2011-06-08 13:38:10 +02:00
747981be8e Revert following commits:
07bc7ea795
  3392a50ea3
  9912637d32

The purpose of the whole patch was to silence a compiler warning triggered
with GCC 4 on file ares_process.c  The specific compiler warning was
'dereferencing type-punned pointer might break strict-aliasing rules'.

A simpler patch will follow to equally silence the warning.
2010-11-12 18:53:58 +01:00
9912637d32 sock-addr-storage: Detect and deal with lack of .ss_family member.
AIX, at least, does not have sockaddr_storage.ss_family member.
Detect this in the configure logic and use proper #ifdefs in the
ares_process logic.

Signed-off-by: Ben Greear <greearb@candelatech.com>
Tested-by: Tor Arntsen <tor@spacetec.no>
2010-08-04 07:42:01 -07:00
f474f738a5 Refactor how libraries are checked for connect() function, follow-up. 2009-06-21 02:42:35 +00:00
cdcc3aca8c Refactor how libraries are checked for connect() function,
and check for connect() as it is done for other functions.
2009-06-20 17:24:43 +00:00
1d7308ee78 John E. Malmberg noticed that the configure script was failing to detect the
timeval struct on VMS when building with _XOPEN_SOURCE_EXTENDED undefined due
to definition taking place in socket.h instead of time.h
2009-06-01 09:19:16 +00:00
566b59a236 Fix preprocessor conditional expression 2009-05-15 01:08:18 +00:00
411a7e17a1 Moved *_CHECK_COMPILER_HALT_ON_ERROR and *_CHECK_COMPILER_ARRAY_SIZE_NEGATIVE to *-compilers.m4 along with other *_CHECK_COMPILER_* 2009-05-07 11:06:48 +00:00
64fef21f5d HP-UX's X/Open network library requirement check follow-up 2009-05-03 19:41:12 +00:00
0eeb553827 HP-UX's X/Open network library requirement check follow-up 2009-05-03 17:35:44 +00:00
3a55bbebf1 Use build-time configured ares_socklen_t instead of socklen_t 2009-05-02 02:36:47 +00:00
dcdabb9ebe Check definition of _XOPEN_SOURCE_EXTENDED with the compiler 2009-05-01 02:03:43 +00:00
d5c58fbe7e Remove temporary debug tracing for ares_socklen_t Windows targets 2009-04-29 18:08:23 +00:00
494e1eb1a6 Add temporary debug tracing for ares_socklen_t Windows targets 2009-04-29 11:11:59 +00:00
5fc305a0ba Initial step towards a configure time ares_socklen_t definition 2009-04-28 16:47:33 +00:00
1509409fe1 Moved potential inclusion of system's malloc.h and memory.h header files to
setup_once.h.  Inclusion of each header file is based on the definition of
NEED_MALLOC_H and NEED_MEMORY_H respectively.
2009-04-21 10:26:58 +00:00
65cafbe109 Refactor configure script detection of functions used to set sockets into
non-blocking mode, and decouple function detection from function capability.
2008-11-13 18:56:56 +00:00
49268447c8 #include <stdlib.h> for exit() prototype 2008-10-23 00:38:23 +00:00
79f844f672 Initial attempt to support configure's --(dis|en)able-warnings
option to specify dis(activation) of picky compiler warnings.

If option is specified, it will be honored independant of the
--(dis|en)able-debug option.

If option is not specified, it will follow --(dis|en)able-debug
setting, whose default is disabled if not specified.
2008-10-02 03:56:56 +00:00
2823a5380f now compiler warnings are activated for all gcc builds, not only debug ones. 2008-09-30 12:39:54 +00:00
5e9d41fb29 icc adjustments 2008-09-18 13:56:56 +00:00
898e10bd60 improve detection of getservbyport_r() 2008-09-17 11:31:37 +00:00
34cc272d98 icc adjustments 2008-09-09 12:19:16 +00:00
b487ac8f70 Don't abort configuration if recvfrom() is not available. 2008-08-27 00:25:03 +00:00
bad5e6f6ae Improve CURL_CHECK_DEF 2008-08-09 17:26:24 +00:00
5c5e64b2f5 Autoconf 2.62 has changed the behaviour of the AC_AIX macro which we use.
Prior versions of autoconf defined _ALL_SOURCE if _AIX was defined. But,
autoconf 2.62 version of AC_AIX defines _ALL_SOURCE along with other four
preprocessor symbols no matter if the system is AIX or not. To keep the
traditional behaviour, as well as an uniform one, across autoconf versions
AC_AIX is replaced with our own internal macro.
2008-08-04 06:48:11 +00:00
f82c7080a8 Reinstate the 'aclocal -I m4' in buildconf and 'ACLOCAL_AMFLAGS = -I m4' way of
including our local m4/reentrant.m4 file. This even takes care of including the
file in the distribution tarball.
2008-07-30 03:10:03 +00:00
d20656e947 Tests done using 'aclocal -I m4' in buildconf and 'ACLOCAL_AMFLAGS = -I m4
in top Makefile.am triggered a problem that prevented aclocal from running
successfully on SunOS 5.10 with GNU m4 1.4.5 and GNU Autoconf 2.61

A tarball which reproduces mentioned problem is the one dated July-28-2008
http://cool.haxx.se/curl-daily/curl-7.19.0-20080728.tar.gz

We actually don't need all the bells and whistles that the above mechanism
provides. We only need to include our m4/reentrant.m4 file in acinclude.m4
so here we go with this simpler mechanism.
2008-07-29 02:26:21 +00:00
4cbfa7f36d Assert that SED and GREP are set 2008-07-27 21:47:22 +00:00
df6373a9e6 Another step towards detecting if _REENTRANT is already defined or actually
needed, and being able to define it if appropriate for further configure tests
as well as for the generated config file.

Introduced reentrant.m4 intended for our reentrant related autotools/m4 macros.
2008-07-24 15:20:35 +00:00
e4113d5786 reorder argument number detection for getservbyport_r to
actually verify if the test is properly working
2008-07-23 04:20:39 +00:00
d105ed6d59 Make sure that configure process tests are done with the same _REENTRANT
setting as the one actually used when finally building the library.
2008-07-22 19:04:16 +00:00
14cb127954 use prototypes to improve getservbyport_r detection 2008-07-21 14:01:46 +00:00
44ae9e4697 when recvfrom prototype uses a void pointer for arguments 2, 5 or 6 this will
now cause the definition of RECVFROM_TYPE_ARG2_IS_VOID, RECVFROM_TYPE_ARG5_IS_VOID
or RECVFROM_TYPE_ARG6_IS_VOID, as appropriate.
2008-07-21 00:36:55 +00:00
abbde56a86 Added "pointer to void" as another data type to check for the sixth argument of
function recvfrom as a result of the info additionally logged when running on a
Solaris system.

The compiler error showed that the prototype being used on Solaris was the one
declared in line 427 of "/usr/include/sys/socket.h" as:

function(int,
         pointer to void,
         unsigned int,
         int,
         pointer to struct sockaddr,
         pointer to void) returning int
2008-07-20 09:46:52 +00:00
2aeb0314f5 RECVFROM_TYPE_ARG2, RECVFROM_TYPE_ARG5 and RECVFROM_TYPE_ARG6 are now defined
to the data type pointed by its respective argument and not the pointer type.
2008-07-17 03:07:54 +00:00
7dd6d7cbe1 Configure process now checks availability of recvfrom() socket function and
finds out its return type and the types of its arguments. Added definitions
for non-configure systems config files, and introduced macro sreadfrom which
will be used on udp sockets as a recvfrom() wrapper.
2008-07-16 19:16:41 +00:00
b95f5e5bed Improved configure detection of number of arguments for getservbyport_r 2008-07-16 12:26:09 +00:00
cd1f1d080c fallback to gettimeofday when monotonic clock is unavailable at run-time 2008-07-02 03:04:56 +00:00
84e9cedf45 make check message wording more precise 2008-06-30 14:10:27 +00:00
e4ac0f9347 fix C style comment 2008-06-29 11:08:52 +00:00
08d3bc37aa John Lightsey filed bug report #1999181: "CLOCK_MONOTONIC always fails on
some systems" (http://curl.haxx.se/bug/view.cgi?id=1999181). The problem was
that the configure script did not use the _POSIX_MONOTONIC_CLOCK feature test
macro when checking monotonic clock availability. This is now fixed and the
monotonic clock will not be used unless the feature test macro is defined
with a value greater than zero indicating always supported.
2008-06-29 03:19:21 +00:00
8dc7f22b9a Modified configuration script to actually verify if the compiler is good
enough at detecting compilation errors or at least it has been properly
configured to do so. Configuration heavily depends on this capability, so
if this compiler sanity check fails the configuration process will now fail.
2008-06-20 18:09:48 +00:00
c6148bcad5 No longer break out of a shell "for" statement from inside
AC_FOO_IFELSE macros, otherwise temp files are not removed.

Identation adjustment.
2008-06-18 04:39:29 +00:00
f953ff981c MSVC does build Windows native targets 2008-06-06 18:44:40 +00:00