Commit Graph
100 Commits
Author SHA1 Message Date
Yang Tse 4ccd0a85b1 fix pkg-config reporting of private libraries needed for static linking 2008-06-09 01:06:48 +00:00
Yang Tse f953ff981c MSVC does build Windows native targets 2008-06-06 18:44:40 +00:00
Yang Tse 9191dc5c33 Brad House fixed a missing header file inclusion in adig sample program 2008-05-30 15:26:42 +00:00
Yang Tse 940b551d2a fix compiler warning: unreferenced formal parameter 2008-05-26 13:52:25 +00:00
Yang Tse 9db5e3476a MSVC6+ clean-up targets must also remove acountry.exe 2008-05-22 16:10:57 +00:00
Yang Tse b7701a257c sync with reality 2008-05-22 15:31:06 +00:00
Yang Tse 9220e0984a fix: [action-if-found] part of AC_CHECK_TYPE macro cannot be quoted when empty 2008-05-21 18:24:09 +00:00
Yang Tse 41b0e80a3f fix: remove need and definition of HAVE_SOCKLEN_T symbol 2008-05-21 14:04:14 +00:00
Yang Tse e842c9ca3b fix: socklen_t definition comment 2008-05-21 13:57:51 +00:00
Yang Tse d3bad80edd update several macros using AC_TRY_LINK with AC_LINK_IFELSE 2008-05-20 15:55:31 +00:00
Yang Tse 6783b29432 fix underquoting of AC_LANG_PROGRAM arguments 2008-05-20 04:23:31 +00:00
Yang Tse 0129767bf9 if'def out private function ares__tvdiff(), it is not in use yet. 2008-05-20 01:24:19 +00:00
Yang Tse c31375137d update several macros using AC_TRY_LINK with AC_LINK_IFELSE 2008-05-20 01:04:13 +00:00
Yang Tse 822c0e1498 fix socklen_t equivalent detection when cross compiling Windows target 2008-05-19 12:31:12 +00:00
Yang Tse f209547d0f if WINSOCK2 API is used link with 'ws2_32', else
if WINSOCK API is used under WinCE link with 'winsock', else

if WINSOCK API is used link with 'wsock32'.
2008-05-19 02:50:29 +00:00
Yang Tse 0458805686 on winsock systems linking is done using library 'ws2_32' when
winsock2.h is available, and library 'winsock' is used when only
winsock.h is available.
2008-05-18 20:13:13 +00:00
Yang Tse 9fe8db39d1 minor change for wince-cegcc and wince-mingw32ce support 2008-05-17 01:20:57 +00:00
Yang Tse 7cb1c3a215 millisecond resolution support followup 2008-05-15 22:57:33 +00:00
Yang Tse e6b86905dc sync with reality 2008-05-15 10:04:15 +00:00
Yang Tse 599918bf51 remove compilation time generated files 2008-05-15 09:18:05 +00:00
Yang Tse a43aec1b56 use same time source for timeout initialization and processing 2008-05-15 00:00:19 +00:00
Yang Tse 6882b4020e Improve toolchain detection for WinCE cross compilation:
When cross compiling WinCE with the arm-wince-cegcc-gcc C compiler
symbol __CEGCC__ is defined and the unix-like compatibility layer
is used. For our purposes this is not a native Windows build.

When cross compiling WinCE with the arm-wince-mingw32ce-gcc C compiler
symbol __MINGW32CE__ is defined and the unix-like compatibility layer
is not used. For our purposes this _is_ a native Windows build.
2008-05-14 19:42:17 +00:00
Yang Tse 7b24a70d51 skip checks for Windows specific header files
when build target is not a native Windows one
2008-05-14 16:14:35 +00:00
Yang Tse e7f09172f7 WinCE cross compilation adjustments:
HAVE_WINSOCK2_H shall not be defined.
HAVE_WS2TCPIP_H shall not be defined.
2008-05-14 13:54:41 +00:00
Yang Tse 76d91c21ad also ignore this 2008-05-13 18:27:18 +00:00
Yang Tse 222203147d also ignore this 2008-05-13 17:23:01 +00:00
Yang Tse 6756f1e34e ignore this compilation time generated files 2008-05-13 17:11:16 +00:00
Yang Tse db0975d279 don't keep in CVS this compilation time generated file 2008-05-13 17:03:28 +00:00
Yang Tse b152f263c1 add MSVC6 project for acountry sample program 2008-05-13 15:37:49 +00:00
Yang Tse 22a99388ee update MSVC6 projects to use the multithreaded DLL runtime library 2008-05-13 15:34:22 +00:00
Yang Tse df17ab0d66 add MSVC6 project for acountry sample program 2008-05-13 15:31:19 +00:00
Yang Tse d57416b7f5 skip libtool C++ preprocessor compiler and linker checks 2008-05-12 15:02:51 +00:00
Yang Tse e2ba9a3a57 ignore libcares.pc 2008-05-12 12:22:23 +00:00
Yang Tse e8603c5bee configure script will now define HAVE_CLOCK_GETTIME_MONOTONIC symbol only
when function clock_gettime() is available and the monotonic timer is
also available. Otherwise, in some cases, librt or libposix4 could be used
for linking even when finally not using the clock_gettime() function due
to lack of the monotonic clock.
2008-05-12 02:04:22 +00:00
Yang Tse 8e4de09b99 fix syntax error: missing semicolon 2008-05-10 23:50:55 +00:00
Yang Tse 22e6a8199f Add library checking for clock_gettime() support 2008-05-10 15:46:38 +00:00
Yang Tse 0848b4fdaa Use monotonic time source if available. 2008-05-09 16:30:24 +00:00
Yang Tse fc4704b4d8 Improved parsing of resolver configuration files 2008-05-05 17:48:25 +00:00
Yang Tse f1b829e418 make previous compiler warning fix more portable 2008-04-07 19:12:35 +00:00
Yang Tse 4ba9cb3a46 fix compiler warning: indirection to slightly different base types 2008-04-07 14:37:17 +00:00
Yang Tse c73ff0391f fix compiler warning: local variable may be used without having been initialized 2008-04-07 14:20:05 +00:00
Yang Tse 51d5712977 fix compiler warning: unreferenced formal parameter 2008-04-07 12:44:47 +00:00
Yang Tse 43a712743a fix compiler warning: assignment within conditional expression 2008-04-07 12:40:05 +00:00
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