Commit Graph
100 Commits
Author SHA1 Message Date
Yang Tse 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
Yang Tse 6b84d9ff24 Initial DEC/Compaq C compiler detection and flags 2008-07-16 14:17:56 +00:00
Yang Tse b95f5e5bed Improved configure detection of number of arguments for getservbyport_r 2008-07-16 12:26:09 +00:00
Yang Tse e5e2cd5659 Allow --enable-largefile and --disable-largefile configurations.
Configure process no longer needs nor checks size of curl_off_t.
Library will now be built with _REENTRANT symbol defined.
2008-07-15 16:43:39 +00:00
Yang Tse 2265b9281c fix compiler warning 2008-07-10 08:21:48 +00:00
Yang Tse 8ee63e432d since Jun 30 2008 MAXHOSTNAMELEN define is no longer used 2008-07-09 16:38:55 +00:00
Yang Tse 371f63f73a fix c-ares version reported in generated libcares.pc file when building
from CVS tree.
2008-07-07 02:11:21 +00:00
Yang Tse 13f4c3ea54 egrep and ar are also mandatory 2008-07-04 04:03:56 +00:00
Yang Tse daa25aa705 The configure process will now halt when sed or grep are unavailable 2008-07-02 17:42:08 +00:00
Yang Tse cd1f1d080c fallback to gettimeofday when monotonic clock is unavailable at run-time 2008-07-02 03:04:56 +00:00
Yang Tse 3e04944084 IBM C/C++ compiler predefined macro check 2008-07-01 10:29:25 +00:00
Yang Tse 83b7feb146 set earlier in configure process IBM compilers optimization flags 2008-07-01 00:30:46 +00:00
Yang Tse 84e9cedf45 make check message wording more precise 2008-06-30 14:10:27 +00:00
Yang Tse e4ac0f9347 fix C style comment 2008-06-29 11:08:52 +00:00
Yang Tse 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
Yang Tse 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
Yang Tse 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
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