Commit Graph
100 Commits
Author SHA1 Message Date
Yang Tse ad046ba239 Force AIX xlc to fail and not generate object code if the source code has
compiled with errors. This behaviour is needed for autoconf macros which
rely on the ability to compile with or without errors, and is safer than
xlc's default of failing only upon severe errors.
2008-02-29 17:13:39 +00:00
Yang Tse e04eb55f8e MSVC 9.0 (VS2008) does not support Windows build targets prior to WinXP,
and makes wrong asumptions of build target when it isn't specified. So,
if no build target has been defined we will target WinXP when building
with MSVC 9.0 (VS2008).
2007-12-18 18:08:19 +00:00
Yang Tse 6606c99b86 Fix three issues previous cleanup introduces. 2007-12-03 19:57:18 +00:00
Yang Tse 8627b23715 Needed now that in6_addr is referenced in ares.h 2007-11-15 19:44:01 +00:00
Yang Tse 7cd35ce698 Define WIN32 when build target is Win32 API.
This also defines it for WinCE even though it is a subset of WIN32.
2007-11-08 18:13:54 +00:00
Yang Tse aa74d21c4e The only libraries actually needed for sample programs adig and
ahost are ws2_32.lib and advapi32.lib
2007-11-08 01:33:28 +00:00
Yang Tse 70f98a29cb MSVC versions prior to VS2005 do not complain about portable C functions 2007-11-07 18:18:42 +00:00
Yang Tse 269e082f77 Windows build targets have socklen_t definition in ws2tcpip.h but some
versions of ws2tcpip.h do not have the definition. It seems that when
the socklen_t definition is missing from ws2tcpip.h the definition for
INET_ADDRSTRLEN is also missing, and that when one definition is present
the other one also is available.
2007-10-24 14:39:07 +00:00
Yang Tse 1fe4d44ed9 Fix compiler warning: conversion from "int" to "unsigned short" may lose significant bits 2007-10-20 15:11:51 +00:00
Yang Tse 746b3d7acc Fix message shown when detecting icc version 2007-10-19 12:15:00 +00:00
Yang Tse e2d80922fe Avoid shadowing a global declaration 2007-10-19 10:52:28 +00:00
Yang Tse 0e74c9c8cf Renamed a variable to avoid shadowing a global declaration 2007-10-18 17:31:19 +00:00
Yang Tse 3bac381e3f Renamed internal function to avoid a variable shadowing it 2007-10-18 17:17:18 +00:00
Yang Tse b8a1ea0e83 Fix compiler warning: feupdateenv is not implemented and will always fail.
Specifically for linux x86-64 with Intel's icc.
2007-10-18 16:24:14 +00:00
Yang Tse 788acb901c Sync PLATFORM_AIX_V3 detection and CURL_CC_DEBUG_OPTS()
icc warning level with libcurl's
2007-10-18 15:11:51 +00:00
Yang Tse 57abe9d22d Fix compiler warning: conversion from "int" to "unsigned char"
may lose significant bits
2007-10-18 01:01:20 +00:00
Yang Tse 2c8db1aec8 actually sync with lib/setup_once.h 2007-10-17 18:18:27 +00:00
Yang Tse 0a7eb8e30e sync with lib/setup_once.h 2007-10-17 16:59:24 +00:00
Yang Tse a15a88a4e6 Avoid a segfault when generating a DNS "Transaction ID" in internal
function init_id_key() under low memory conditions.
2007-10-02 18:26:48 +00:00
Yang Tse 962f9c220a Add ares_llist.c and ares_llist.h to MSCV project file. 2007-10-02 11:13:58 +00:00
Yang Tse 343d6f221f Avoid inline C99ism, and move c-ares routines for managing doubly-linked lists. 2007-10-02 02:18:01 +00:00
Yang Tse 10df4bdba2 Fix compiler warning 2007-09-30 19:43:23 +00:00
Yang Tse 68aa62d76b check availability of <netinet/tcp.h> 2007-09-30 02:12:11 +00:00
Yang Tse a0b8ac2bdc improve portability, defining MAXDNAME and MAXCDNAME 2007-09-30 00:37:47 +00:00
Yang Tse a034ee1b7d Steve Little's fixes to allow compilation on VMS 64-bit mode 2007-04-25 03:00:10 +00:00
Yang Tse 35b7d08768 move linkage var declarations to ares_getopt.h 2007-04-16 15:35:34 +00:00
Yang Tse d741a92e20 ares_getopt() command-line parser function does not belong to actual
c-ares library. It is just a convinience source code helper function
for use in example programs adig.c and ahost.c
2007-04-16 09:08:15 +00:00
Yang Tse bba777d6da ares_getopt() command-line parser function does not belong to actual
c-ares library. It is just a convinience source code helper function
for use in example programs adig.c and ahost.c
2007-04-16 09:01:16 +00:00
Yang Tse cd6a0a68b8 update MSVC project files with ares_getopt() 2007-04-12 19:14:00 +00:00
Yang Tse 088a4d923a use ares_getopt for all platforms 2007-04-12 19:01:19 +00:00
Yang Tse ddbe06ca13 add ares_getopt prototype 2007-04-12 18:59:46 +00:00
Yang Tse 8776d1564b Rename function as ares_getopt() 2007-04-12 18:06:41 +00:00
Yang Tse 8438d08ff8 Replace tabs with spaces 2007-04-12 17:45:57 +00:00
Yang Tse 4dc8ca29b7 Add file ares_getopt.c
Original file name getopt.c  Initial import into the c-ares source tree
on 2007-04-11.  Lifted from version 5.2 of the 'Open Mash' project with
the modified BSD license, BSD license without the advertising clause.
2007-04-12 16:53:59 +00:00
Yang Tse f68a45779d convenience SIG_ATOMIC_T macro definition 2007-04-11 11:02:13 +00:00
Yang Tse 140d6b08fb move WinSock definitions of EBADF, EINTR, EINVAL and EAFNOSUPPORT to setup_once.h 2007-04-04 06:06:36 +00:00
Yang Tse c8033a21a1 update copyright year 2007-04-03 18:25:18 +00:00
Yang Tse c54589e39f Cleanup. Warnings related with FD_SET, FD_ISSET, and FD_ZERO macros
are not icc 9.0 specific.
2007-04-03 02:45:04 +00:00
Yang Tse b0c7d4c2b0 attempt to keep message length below 80 chars 2007-03-22 14:41:10 +00:00
Yang Tse 207cde73e2 show better description for AMD64-linux static libraries PIC check 2007-03-15 15:35:51 +00:00
Yang Tse d85eb83c2b remove code superceeded by the new method used to force
libtool to skip C++ and Fortran checks in patchset:
http://cool.haxx.se/cvs.cgi/curl/ares/configure.ac.diff?r1=1.60&r2=1.64
2007-03-08 12:04:30 +00:00
Yang Tse 1aadb5e290 fix test leftover in previous commit 2007-03-07 18:02:35 +00:00
Yang Tse d8bc20eb43 force libtool to build static libraries with PIC on AMD64 2007-03-07 17:59:03 +00:00
Yang Tse 2077aa0859 Autoconf redefines the M4 builtin macro 'm4_undefine' in such a way that
it fails if the macro that is being undefined is not already defined. To
make this work under all cases and be sure that at a certain point some
specific macro isn't defined we must use the following style in configure:

m4_ifdef([macro], [m4_undefine([macro])])
2007-03-07 01:13:03 +00:00
Yang Tse 3081021d88 skip libtool C++ and Fortran linker checks 2007-03-06 16:53:53 +00:00
Yang Tse 8449df4bd8 skip libtool C++ and Fortran checks 2007-03-06 05:05:50 +00:00
Yang Tse 7c76875958 include <sys/types.h> when checking availability of the bool type 2007-02-22 16:44:43 +00:00
Yang Tse 915e774a42 Check for stdbool.h at configuration stage, and include it if available.
Check for lowercase 'bool' type at configuration stage. If not available
provide a suitable replacement with a type definition of 'unsigned char'
in setup_once.h

Move definitions of TRUE and FALSE to setup_once.h
2007-02-22 02:51:54 +00:00
Yang Tse 5f5a8ca905 curlassert macro replaced with DEBUGASSERT macro defined in setup_once.h 2007-02-21 19:03:20 +00:00
Yang Tse 3f00c1cc9a Move header file inclusion logic and definition of timeval
struct for platforms that don't have it to setup_once.h
2007-02-20 12:12:27 +00:00
Yang Tse 7bf2332d7f compiler warning fix 2007-02-19 02:29:35 +00:00
Yang Tse 679a675660 add debug messages for initialization failures 2007-02-19 02:03:58 +00:00
Yang Tse 385e6d0eea fix ENAMETOOLONG and ENOTEMPTY may already be defined in errno.h 2007-02-18 00:34:37 +00:00
Yang Tse ee2df583d3 Move portable error number symbolic name definitions to setup_once.h 2007-02-17 13:51:24 +00:00
Yang Tse 45b2661a5a compiler warning fix 2007-02-17 11:59:08 +00:00
Yang Tse 675bdce3b2 compiler warning fix 2007-02-17 11:34:33 +00:00
Yang Tse 8595ddf7c4 add debug messages for fopen() failures 2007-02-16 19:17:05 +00:00
Yang Tse 69fa447354 use macros ERRNO, SET_ERRNO(), SOCKERRNO and SET_SOCKERRNO() for errno handling 2007-02-16 15:04:44 +00:00
Yang Tse 10a035e128 compiler warning fix 2007-02-16 14:22:08 +00:00
Yang Tse c2f42a9bf4 introduce uppercase macros SOCKERRNO, SET_SOCKERRNO(), ERRNO and SET_ERRNO()
making them available to any source code file which includes "setup.h".

Macro SOCKERRNO / SET_SOCKERRNO() returns / sets the *socket-related* errno
(or equivalent) on this platform to hide platform details to code using it.

Macro ERRNO / SET_ERRNO() returns / sets the NOT *socket-related* errno
(or equivalent) on this platform to hide platform details to code using it.
2007-02-15 16:23:24 +00:00
Yang Tse 3c769f98e8 icc 9.0 when compiling its generated code for its own FD_SET,
FD_ISSET, and FD_ZERO macros emits warnings #1469 and #593.
So for icc 9.0 we also ignore warnings #1469 and #593.
* 593 warns on "variable __d0 was set but never used"
* 1469 warns on "cc clobber ignored"
2007-02-15 14:02:32 +00:00
Yang Tse ab3790b683 compiler warning fix 2007-02-15 12:14:34 +00:00
Yang Tse 5dceb6d883 Oops, missing argument separator comma 2007-02-14 17:38:41 +00:00
Yang Tse 8c76cf38a7 in debug messages also show error description 2007-02-14 14:11:47 +00:00
Yang Tse 0d8bf01d91 avoid using funtion isblank() and just use our ISBLANK
macro to provide this functionality on all platforms
2007-02-14 13:31:37 +00:00
Yang Tse 902d0283b7 check for isblank() at configuration stage. If not available
provide a suitable replacement for use in our ISBLANK macro
2007-02-13 19:01:03 +00:00
Yang Tse 2bd57a6d30 use our own ISUPPER and ISLOWER macros 2007-02-13 18:02:20 +00:00
Yang Tse 05da7b7fda use our own ISBLANK macro 2007-02-13 17:47:27 +00:00
Yang Tse 6751a208d6 Fix c-ares failing to get the search sequence of /etc/hosts and
DNS from /etc/nsswitch.conf, /etc/host.conf or /etc/svc.conf when
/etc/resolv.conf did not exist or was unable to read it.
2007-02-13 16:14:25 +00:00
Yang Tse d145c09ef1 compiler warning fix 2007-02-08 17:01:40 +00:00
Yang Tse 5d5bf03803 use macro AC_AIX to define `_ALL_SOURCE', if on AIX. 2007-02-08 00:28:21 +00:00
Yang Tse 6fa6ac89b4 use same AIX XLC compiler options as curl's 2007-02-07 18:13:40 +00:00
Yang Tse 7a76b6948f *) Remove duplicate declaration of TYPE_SOCKADDR_STORAGE
*) Update CURL_CC_DEBUG_OPTS from curl's script
2007-02-07 15:15:15 +00:00
Yang Tse b9c00a23ce compiler warning fix 2007-02-06 03:31:27 +00:00
Yang Tse 12393dcd5c compiler warning fix 2007-02-05 04:10:32 +00:00
Yang Tse 7fe31e4d00 compiler warning fix 2007-02-02 17:16:06 +00:00
Yang Tse 6f872e206a add debug messages for initialization failures 2007-02-02 16:01:55 +00:00
Yang Tse 94f2d923fc add missing strings for existing error codes 2007-02-02 16:01:15 +00:00
Yang Tse e184411c0b move DEBUGF macro definition to setup_once.h 2007-02-02 15:31:32 +00:00
Yang Tse 145117174e compiler warning fix 2007-02-01 15:36:56 +00:00
Yang Tse fb38ee15e2 compiler warning fix 2007-02-01 01:42:13 +00:00
Yang Tse 3c90d9d6d3 fix compiler warning "discards qualifiers from pointer target type" in debug builds 2007-01-29 20:56:27 +00:00
Yang Tse 3445be6316 sync with lib/setup_once.h 2007-01-27 01:56:57 +00:00
Yang Tse 65fc05826e Make sure RETSIGTYPE is properly defined 2006-11-25 01:02:52 +00:00
Yang Tse 286eafac7b Define HAVE_SIGNAL_H, HAVE_SIG_ATOMIC_T and HAVE_SIG_ATOMIC_T_VOLATILE
as appropriate for platforms that don't have autotools support
2006-11-24 16:38:58 +00:00
Yang Tse 7f7d2ad5c6 Added a check in configure that verifies if <signal.h> is available,
defining HAVE_SIGNAL_H if the header is available.

Added a check in configure that tests if the sig_atomic_t type is
available, defining HAVE_SIG_ATOMIC_T if it is available. Providing
a suitable default in setup_once.h if not available.

Added a check in configure that tests if the sig_atomic_t type is
already defined as volatile, defining HAVE_SIG_ATOMIC_T_VOLATILE
if it is available and already defined as volatile.
2006-11-22 18:41:35 +00:00
Yang Tse 877966659d avoid a couple of potential zero size memory allocations 2006-11-06 13:56:51 +00:00
Yang Tse d9cab5a6df Sync with lib/setup_once.h 2006-10-27 15:37:26 +00:00
Yang Tse dd8b7df5dd Compiler warning fix 2006-10-25 10:25:43 +00:00
Yang Tse 000ac3f39d Sync with lib/setup_once.h 2006-10-18 21:25:12 +00:00
Yang Tse 77ac18117c Check for USE_WINSOCK instead of WIN32 where the check was done
to verify winsock API availability.
2006-10-18 21:05:40 +00:00
Yang Tse 70ed671edf Introduce symbol USE_WINSOCK which will be defined when
using winsock or winsock2 API.
2006-10-18 15:57:49 +00:00
Yang Tse dd3b42e1ac Replace is*() macros with our own IS*() ones.
Get rid of non ANSI/ISO isascii().
2006-10-18 03:42:06 +00:00
Yang Tse 2a7b004e49 Move definition of IS*() macros to setup_once.h 2006-10-18 03:41:19 +00:00
Yang Tse 69dcc701cf Define HAVE_STRUCT_TIMEVAL as appropriate for platforms that lack autotools support 2006-10-14 12:01:44 +00:00
Yang Tse 02d31bef50 Check for struct timeval at configuration time 2006-10-13 01:35:14 +00:00
Yang Tse 298541c56c Remove redundant __CYGWIN__ symbol check 2006-10-11 16:01:16 +00:00
Yang Tse ec9f8c45e8 Check for network libraries the _same_ way it is done in cURL. 2006-08-06 10:58:47 +00:00
Yang Tse cfae7aa9e5 Check for network libraries the same way it is done in cURL. 2006-08-05 22:02:47 +00:00
Yang Tse fc71973aa6 Minor compatibility fix 2006-08-04 17:35:05 +00:00