platform/upstream/c-ares.git
15 years agoInitial attempt to detect Watcom C compiler
Yang Tse [Tue, 14 Oct 2008 04:09:07 +0000 (04:09 +0000)]
Initial attempt to detect Watcom C compiler

15 years agomake naming scheme more consistent across whole file
Yang Tse [Mon, 13 Oct 2008 19:32:11 +0000 (19:32 +0000)]
make naming scheme more consistent across whole file

15 years agoAdjust GCC warnings:
Yang Tse [Mon, 13 Oct 2008 17:06:06 +0000 (17:06 +0000)]
Adjust GCC warnings:

  Disable following warnings when cross-compiling with a gcc older
  than 3.0, to avoid warnings from third party system headers:

    -Wmissing-prototypes
    -Wunused
    -Wshadow

15 years agoAdjust GCC --enable-warnings:
Yang Tse [Mon, 13 Oct 2008 00:43:30 +0000 (00:43 +0000)]
Adjust GCC --enable-warnings:

  Do not enable -pedantic when cross-compiling with a gcc older
  than 3.0, to avoid warnings from third party system headers.

15 years agoadjust SGI MIPSpro C detection
Yang Tse [Sun, 12 Oct 2008 22:52:25 +0000 (22:52 +0000)]
adjust SGI MIPSpro C detection

15 years agoLCC compiler adjustments:
Yang Tse [Sun, 12 Oct 2008 16:57:40 +0000 (16:57 +0000)]
LCC compiler adjustments:

  Highest warning level is double -A, next is single -A.
  Due to the big number of warnings these trigger on third
  party header files it is impratical for us to use any of
  them here. If you want them simply define it in CPPFLAGS.

15 years agoremove extra space
Yang Tse [Sat, 11 Oct 2008 18:04:39 +0000 (18:04 +0000)]
remove extra space

15 years agosplit SGI compiler check. One for MIPS C and another for MIPSpro C
Yang Tse [Sat, 11 Oct 2008 16:59:44 +0000 (16:59 +0000)]
split SGI compiler check. One for MIPS C and another for MIPSpro C

15 years agoLCC compiler adjustments:
Yang Tse [Sat, 11 Oct 2008 16:19:35 +0000 (16:19 +0000)]
LCC compiler adjustments:

  Warning level reduced from double -A to single -A

15 years agoInitial attempt to detect Tiny C compiler
Yang Tse [Fri, 10 Oct 2008 10:31:16 +0000 (10:31 +0000)]
Initial attempt to detect Tiny C compiler

15 years agoInitial attempt to detect LCC compiler
Yang Tse [Fri, 10 Oct 2008 10:06:25 +0000 (10:06 +0000)]
Initial attempt to detect LCC compiler

15 years ago1) fix bug in CONVERT_INCLUDE_TO_ISYSTEM
Yang Tse [Fri, 10 Oct 2008 09:14:18 +0000 (09:14 +0000)]
1) fix bug in CONVERT_INCLUDE_TO_ISYSTEM

2) Disable SGI remark: controlling expression is constant

15 years agosimplify SGI C compiler check
Yang Tse [Fri, 10 Oct 2008 05:09:28 +0000 (05:09 +0000)]
simplify SGI C compiler check

15 years agoHP C adjustments:
Yang Tse [Fri, 10 Oct 2008 02:32:46 +0000 (02:32 +0000)]
HP C adjustments:

  Due to the HP-UX socklen_t issue it is insane to use the +w1 warning level.
  It generates more than 1100 warnings on socklen_t related statements.

  Until the issue is somehow fixed we will just use the +w2 warning level.

15 years agoAdd debug tracing for COMPILER_WORKS_IFELSE
Yang Tse [Fri, 10 Oct 2008 00:07:41 +0000 (00:07 +0000)]
Add debug tracing for COMPILER_WORKS_IFELSE

15 years agoconfigure will also warn on 'strict compiler warning' rejected options
Yang Tse [Thu, 9 Oct 2008 19:55:18 +0000 (19:55 +0000)]
configure will also warn on 'strict compiler warning' rejected options

15 years agoconvert rejected compiler options messages into a warnings
Yang Tse [Thu, 9 Oct 2008 15:06:20 +0000 (15:06 +0000)]
convert rejected compiler options messages into a warnings

15 years agoremove extra whitespace from string in SGI C check
Yang Tse [Thu, 9 Oct 2008 13:11:10 +0000 (13:11 +0000)]
remove extra whitespace from string in SGI C check

15 years agooops
Yang Tse [Thu, 9 Oct 2008 03:05:48 +0000 (03:05 +0000)]
oops

15 years agoInitial attempt to detect SGI C compiler
Yang Tse [Thu, 9 Oct 2008 03:02:25 +0000 (03:02 +0000)]
Initial attempt to detect SGI C compiler

15 years agoHP C adjustments:
Yang Tse [Thu, 9 Oct 2008 00:50:50 +0000 (00:50 +0000)]
HP C adjustments:

  Disallow run-time dereferencing of null pointers.

  Disable some remarks:

    #4227: padding struct with n bytes to align member.

    #4255: padding size of struct with n bytes to alignment boundary.

15 years agoimprove presentation of accepted/rejected debug/optimizer options
Yang Tse [Wed, 8 Oct 2008 19:38:01 +0000 (19:38 +0000)]
improve presentation of accepted/rejected debug/optimizer options

15 years agorefactoring of COMPILER_BASIC_OPTS
Yang Tse [Wed, 8 Oct 2008 16:12:10 +0000 (16:12 +0000)]
refactoring of COMPILER_BASIC_OPTS

15 years agoInitial attempt to detect SUN C compiler
Yang Tse [Wed, 8 Oct 2008 03:50:45 +0000 (03:50 +0000)]
Initial attempt to detect SUN C compiler

15 years agoInitial attempt to detect HP C compiler
Yang Tse [Wed, 8 Oct 2008 02:29:13 +0000 (02:29 +0000)]
Initial attempt to detect HP C compiler

15 years agofix compiler warning: 'dot_4' may be used uninitialized in this function
Yang Tse [Tue, 7 Oct 2008 18:44:32 +0000 (18:44 +0000)]
fix compiler warning: 'dot_4' may be used uninitialized in this function

15 years agoadjust ICC_windows settings
Yang Tse [Tue, 7 Oct 2008 17:37:25 +0000 (17:37 +0000)]
adjust ICC_windows settings

15 years agofix VAR_STRIP
Yang Tse [Tue, 7 Oct 2008 16:53:46 +0000 (16:53 +0000)]
fix VAR_STRIP

15 years agoSync up with reality
Yang Tse [Tue, 7 Oct 2008 13:34:59 +0000 (13:34 +0000)]
Sync up with reality

15 years agoInitial attempt to support configure's --(dis|en)able-optimize
Yang Tse [Tue, 7 Oct 2008 13:13:34 +0000 (13:13 +0000)]
Initial attempt to support configure's --(dis|en)able-optimize
option to specify dis(activation) of compiler optimizations.

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

15 years agofix comment
Yang Tse [Thu, 2 Oct 2008 04:27:42 +0000 (04:27 +0000)]
fix comment

15 years agoInitial attempt to support configure's --(dis|en)able-warnings
Yang Tse [Thu, 2 Oct 2008 03:56:56 +0000 (03:56 +0000)]
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.

15 years agofix compiler warning: dereferencing type-punned pointer will break strict-aliasing...
Yang Tse [Tue, 30 Sep 2008 17:04:05 +0000 (17:04 +0000)]
fix compiler warning: dereferencing type-punned pointer will break strict-aliasing rules

15 years agonow compiler warnings are activated for all gcc builds, not only debug ones.
Yang Tse [Tue, 30 Sep 2008 12:39:54 +0000 (12:39 +0000)]
now compiler warnings are activated for all gcc builds, not only debug ones.

15 years agoUse CFLAGS for icc linker options instead of LDFLAGS,
Yang Tse [Tue, 30 Sep 2008 02:59:35 +0000 (02:59 +0000)]
Use CFLAGS for icc linker options instead of LDFLAGS,
otherwise gethostbyname() is not detected.

15 years agouse ac_cv_compiler and ac_cv_compiler_num to keep compiler ID and version number
Yang Tse [Mon, 29 Sep 2008 19:14:52 +0000 (19:14 +0000)]
use ac_cv_compiler and ac_cv_compiler_num to keep compiler ID and version number

15 years agoTemporary icc adjustment:
Yang Tse [Mon, 29 Sep 2008 16:09:31 +0000 (16:09 +0000)]
Temporary icc adjustment:

  Disable floating point optimizations

15 years agoHAVE_INET_PTON will only be defined when an IPv6 capable working
Yang Tse [Wed, 24 Sep 2008 19:13:01 +0000 (19:13 +0000)]
HAVE_INET_PTON will only be defined when an IPv6 capable working
inet_pton function is available.

15 years agoHAVE_INET_NTOP will only be defined when an IPv6 capable working
Yang Tse [Wed, 24 Sep 2008 16:43:12 +0000 (16:43 +0000)]
HAVE_INET_NTOP will only be defined when an IPv6 capable working
inet_ntop function is available.

15 years agontoa() and inet_ntoa_r() no longer used
Yang Tse [Wed, 24 Sep 2008 12:22:16 +0000 (12:22 +0000)]
ntoa() and inet_ntoa_r() no longer used

15 years agoicc adjustments for icc 9.0 and prior versions:
Yang Tse [Mon, 22 Sep 2008 18:42:48 +0000 (18:42 +0000)]
icc adjustments for icc 9.0 and prior versions:

  Disable remark #279: controlling expression is constant

      Remark triggered mostly on va_arg() and FD_ZERO() macros.

15 years agoattempt to make work the gethostname function
Yang Tse [Mon, 22 Sep 2008 00:44:10 +0000 (00:44 +0000)]
attempt to make work the gethostname function
check for winsock build target configurations

15 years agoAdded HAVE_NETDB_H, HAVE_ARPA_INET_H, HAVE_STRCASECMP
Gisle Vanem [Sun, 21 Sep 2008 13:03:07 +0000 (13:03 +0000)]
Added HAVE_NETDB_H, HAVE_ARPA_INET_H, HAVE_STRCASECMP
and HAVE_STRNCASECMP.

15 years agoicc adjustments:
Yang Tse [Fri, 19 Sep 2008 15:59:28 +0000 (15:59 +0000)]
icc adjustments:

  Disable remark #981: operands are evaluated in unspecified order

      Function calls which are triggering this remark, today, do not depend
      on the order of evaluation of its arguments.

  Disable remark #1469: "cc" clobber ignored

      Remark triggered on htons() and ntohs() due to glibc header files.

15 years agoicc adjustments
Yang Tse [Thu, 18 Sep 2008 13:56:56 +0000 (13:56 +0000)]
icc adjustments

15 years agofix netdb.h prerequisite inclusion
Yang Tse [Thu, 18 Sep 2008 02:23:33 +0000 (02:23 +0000)]
fix netdb.h prerequisite inclusion

15 years agoimprove detection of getservbyport_r()
Yang Tse [Wed, 17 Sep 2008 11:31:37 +0000 (11:31 +0000)]
improve detection of getservbyport_r()

15 years agoOn Linux Intel's icc uses gcc's header files, so
Yang Tse [Wed, 17 Sep 2008 09:37:41 +0000 (09:37 +0000)]
On Linux Intel's icc uses gcc's header files, so
we select ANSI C89 dialect plus GNU extensions.

15 years agoimprove detection of gethostname()
Yang Tse [Wed, 17 Sep 2008 08:14:00 +0000 (08:14 +0000)]
improve detection of gethostname()

15 years agoNetWare builds include "nameser.h" from the c-ares subdir
Yang Tse [Wed, 17 Sep 2008 06:59:31 +0000 (06:59 +0000)]
NetWare builds include "nameser.h" from the c-ares subdir

15 years agoinclude <strings.h>
Yang Tse [Wed, 17 Sep 2008 03:25:52 +0000 (03:25 +0000)]
include <strings.h>

15 years agoSync up with reality
Yang Tse [Wed, 17 Sep 2008 01:33:43 +0000 (01:33 +0000)]
Sync up with reality

15 years agoadjust inclusion of "nameser.h"
Yang Tse [Wed, 17 Sep 2008 01:02:57 +0000 (01:02 +0000)]
adjust inclusion of "nameser.h"

15 years agoreorder some lines in file
Yang Tse [Wed, 17 Sep 2008 00:07:49 +0000 (00:07 +0000)]
reorder some lines in file

15 years agocode cleanup
Yang Tse [Tue, 16 Sep 2008 18:43:25 +0000 (18:43 +0000)]
code cleanup

15 years agoNetWare seems to have writev()
Yang Tse [Tue, 16 Sep 2008 18:18:14 +0000 (18:18 +0000)]
NetWare seems to have writev()

15 years agorearrange to allow internal/private use of ares_writev to any system
Yang Tse [Tue, 16 Sep 2008 16:42:48 +0000 (16:42 +0000)]
rearrange to allow internal/private use of ares_writev to any system
that lacks the writev function.

15 years agoNetWare CLIB target has stricmp() and strnicmp()
Yang Tse [Mon, 15 Sep 2008 17:31:34 +0000 (17:31 +0000)]
NetWare CLIB target has stricmp() and strnicmp()

15 years agoinclude header file only when available
Yang Tse [Mon, 15 Sep 2008 17:14:29 +0000 (17:14 +0000)]
include header file only when available

15 years agorearrange to allow internal/private use of ares_strcasecmp to any system that
Yang Tse [Mon, 15 Sep 2008 15:28:26 +0000 (15:28 +0000)]
rearrange to allow internal/private use of ares_strcasecmp to any system that
lacks the strcasecmp function.

15 years agoimprove detection of:
Yang Tse [Mon, 15 Sep 2008 00:31:42 +0000 (00:31 +0000)]
improve detection of:
  strcasecmp()
  strcmpi()
  stricmp()
  strncasecmp()
  strncmpi()
  strnicmp()

15 years ago*** empty log message ***
Yang Tse [Sat, 13 Sep 2008 01:35:15 +0000 (01:35 +0000)]
*** empty log message ***

15 years agodjgpp does have strdup().
Gisle Vanem [Fri, 12 Sep 2008 14:13:36 +0000 (14:13 +0000)]
djgpp does have strdup().

15 years agochange CRLF into LF line endings
Yang Tse [Fri, 12 Sep 2008 05:08:18 +0000 (05:08 +0000)]
change CRLF into LF line endings

15 years agostrdup() clone for systems/configurations which lack it
Yang Tse [Thu, 11 Sep 2008 04:02:49 +0000 (04:02 +0000)]
strdup() clone for systems/configurations which lack it

15 years agomove inclusion of ares_private.h last
Yang Tse [Thu, 11 Sep 2008 03:46:47 +0000 (03:46 +0000)]
move inclusion of ares_private.h last

15 years agoicc adjustments
Yang Tse [Wed, 10 Sep 2008 17:35:22 +0000 (17:35 +0000)]
icc adjustments

15 years agoicc adjustments
Yang Tse [Tue, 9 Sep 2008 12:19:16 +0000 (12:19 +0000)]
icc adjustments

15 years agoSelect strict ANSI C89 conformance for icc
Yang Tse [Mon, 8 Sep 2008 16:48:58 +0000 (16:48 +0000)]
Select strict ANSI C89 conformance for icc

15 years agoremove unnecessary typecasting of malloc()
Yang Tse [Sat, 6 Sep 2008 05:29:05 +0000 (05:29 +0000)]
remove unnecessary typecasting of malloc()

15 years agoremove unnecessary typecasting of realloc()
Yang Tse [Sat, 6 Sep 2008 04:28:43 +0000 (04:28 +0000)]
remove unnecessary typecasting of realloc()

15 years agowe start over working towards 1.5.4
Daniel Stenberg [Fri, 29 Aug 2008 08:55:02 +0000 (08:55 +0000)]
we start over working towards 1.5.4

15 years agoVersion 1.5.3
Daniel Stenberg [Fri, 29 Aug 2008 08:33:02 +0000 (08:33 +0000)]
Version 1.5.3

15 years agoadded the three people from RELEASE-NOTES and sorted the list alphabetically
Daniel Stenberg [Fri, 29 Aug 2008 08:29:47 +0000 (08:29 +0000)]
added the three people from RELEASE-NOTES and sorted the list alphabetically

15 years agoDon't abort configuration if recvfrom() is not available.
Yang Tse [Wed, 27 Aug 2008 00:25:03 +0000 (00:25 +0000)]
Don't abort configuration if recvfrom() is not available.

15 years agoFunctionality only possible if recvfrom() is available.
Yang Tse [Tue, 26 Aug 2008 03:08:27 +0000 (03:08 +0000)]
Functionality only possible if recvfrom() is available.

15 years agoGeorge Neill's fix acountry sample application compilation failure.
Yang Tse [Mon, 25 Aug 2008 03:44:43 +0000 (03:44 +0000)]
George Neill's fix acountry sample application compilation failure.

15 years agoBrad House's validation that DNS response address matches the request address
Yang Tse [Mon, 25 Aug 2008 03:34:50 +0000 (03:34 +0000)]
Brad House's validation that DNS response address matches the request address

16 years agofix the output name
Yang Tse [Thu, 21 Aug 2008 00:13:48 +0000 (00:13 +0000)]
fix the output name

16 years agoGet rid of ENABLE_64BIT symbol definition and usage.
Yang Tse [Thu, 21 Aug 2008 00:06:16 +0000 (00:06 +0000)]
Get rid of ENABLE_64BIT symbol definition and usage.

Improve HAVE_LONGLONG symbol description.

16 years agoExport 'ares_process_fd' too.
Yang Tse [Wed, 20 Aug 2008 23:38:36 +0000 (23:38 +0000)]
Export 'ares_process_fd' too.

16 years agoOps, remove 'use_vc'.
Gisle Vanem [Sat, 16 Aug 2008 17:05:42 +0000 (17:05 +0000)]
Ops, remove 'use_vc'.

16 years agoSupport Watt-32 under Win32.
Gisle Vanem [Sat, 16 Aug 2008 16:42:44 +0000 (16:42 +0000)]
Support Watt-32 under Win32.

16 years agoFix: Remove now this SIZEOF_CURL_OFF_T symbol definition.
Yang Tse [Sun, 10 Aug 2008 00:39:45 +0000 (00:39 +0000)]
Fix: Remove now this SIZEOF_CURL_OFF_T symbol definition.

This should have been done with the initial 64-bit curl_off_t patch.

16 years agoImprove CURL_CHECK_DEF
Yang Tse [Sat, 9 Aug 2008 17:26:24 +0000 (17:26 +0000)]
Improve CURL_CHECK_DEF

16 years agoFix IBM C and DEC/Compaq C compiler detection
Yang Tse [Sat, 9 Aug 2008 17:01:17 +0000 (17:01 +0000)]
Fix IBM C and DEC/Compaq C compiler detection

16 years agoInitial support of curlbuild.h and curlrules.h which allows
Yang Tse [Thu, 7 Aug 2008 00:29:08 +0000 (00:29 +0000)]
Initial support of curlbuild.h and curlrules.h which allows
to have a curl_off_t data type no longer gated to off_t.

16 years agoThe minimum autoconf version required for this file is 2.50
Yang Tse [Tue, 5 Aug 2008 09:08:43 +0000 (09:08 +0000)]
The minimum autoconf version required for this file is 2.50

Avoid dot notation in aclocal serial file number, use a single number now.

16 years ago- Fix by Tofu Linden:
Daniel Stenberg [Mon, 4 Aug 2008 20:23:12 +0000 (20:23 +0000)]
- Fix by Tofu Linden:

  The symptom:
  * Users (usually, but not always) on 2-Wire routers and the Comcast service
  and a wired connection to their router would find that the second and
  subsequent DNS lookups from fresh processes using c-ares to resolve the same
  address would cause the process to never see a reply (it keeps polling for
  around 1m15s before giving up).

  The repro:
  * On such a machine (and yeah, it took us a lot of QA to find the systems
  that reproduce such a specific problem!), do 'ahost www.secondlife.com',
  then do it again.  The first process's lookup will work, subsequent lookups
  will time-out and fail.

  The cause:
  * init_id_key() was calling randomize_key() *before* it initialized
  key->state, meaning that the randomness generated by randomize_key() is
  immediately overwritten with deterministic values. (/dev/urandom was also
  being read incorrectly in the c-ares version we were using, but this was
  fixed in a later version.)
  * This makes the stream of generated query-IDs from any new c-ares process
  be an identical and predictable sequence of IDs.
  * This makes the 2-Wire's default built-in DNS server detect these queries
  as probable-duplicates and (erroneously) not respond at all.

16 years agoAutoconf 2.62 has changed the behaviour of the AC_AIX macro which we use.
Yang Tse [Mon, 4 Aug 2008 06:48:11 +0000 (06:48 +0000)]
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.

16 years agoAdjust DEC/Compaq C compiler settings.
Yang Tse [Sun, 3 Aug 2008 03:14:05 +0000 (03:14 +0000)]
Adjust DEC/Compaq C compiler settings.

16 years agoAnother AC_TRY_LINK conversion to AC_LINK_IFELSE.
Yang Tse [Fri, 1 Aug 2008 19:29:05 +0000 (19:29 +0000)]
Another AC_TRY_LINK conversion to AC_LINK_IFELSE.
Proper definition of HAVE_function if function is found deeper.

16 years agoSync up with reality
Yang Tse [Fri, 1 Aug 2008 03:10:54 +0000 (03:10 +0000)]
Sync up with reality

16 years agoRename reentrant.m4 to avoid filename clash.
Yang Tse [Fri, 1 Aug 2008 02:48:00 +0000 (02:48 +0000)]
Rename reentrant.m4 to avoid filename clash.

16 years agoAdd file version serial number that might be used by 'aclocal' and others.
Yang Tse [Wed, 30 Jul 2008 12:09:35 +0000 (12:09 +0000)]
Add file version serial number that might be used by 'aclocal' and others.

Keep the '#' character as the first one on the line.

16 years agoUpdate copyright year.
Yang Tse [Wed, 30 Jul 2008 08:27:02 +0000 (08:27 +0000)]
Update copyright year.

16 years agoSync comment with reality.
Yang Tse [Wed, 30 Jul 2008 08:21:25 +0000 (08:21 +0000)]
Sync comment with reality.

16 years agoReinstate the 'aclocal -I m4' in buildconf and 'ACLOCAL_AMFLAGS = -I m4' way of
Yang Tse [Wed, 30 Jul 2008 03:10:03 +0000 (03:10 +0000)]
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.

16 years agoAdd quoting for the AC_DEFINE arguments.
Yang Tse [Tue, 29 Jul 2008 18:23:11 +0000 (18:23 +0000)]
Add quoting for the AC_DEFINE arguments.

16 years agoAlso remove the whitespace.
Yang Tse [Tue, 29 Jul 2008 18:01:29 +0000 (18:01 +0000)]
Also remove the whitespace.