Yang Tse
ceb49d3742
Get rid of ENABLE_64BIT symbol definition and usage.
...
Improve HAVE_LONGLONG symbol description.
2008-08-21 00:06:15 +00:00
Yang Tse
63818f8488
Fix IBM C and DEC/Compaq C compiler detection
2008-08-09 17:01:17 +00:00
Yang Tse
14240e9e10
Initial support of curlbuild.h and curlrules.h which allows
...
to have a curl_off_t data type no longer gated to off_t.
2008-08-07 00:29:08 +00:00
Yang Tse
b4fdccf87a
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
Yang Tse
74d77cb140
Adjust DEC/Compaq C compiler settings.
2008-08-03 03:14:05 +00:00
Yang Tse
47724ef238
Another AC_TRY_LINK conversion to AC_LINK_IFELSE.
...
Proper definition of HAVE_function if function is found deeper.
2008-08-01 19:29:05 +00:00
Yang Tse
817efbc29c
These lines were unintentionally removed in previous commit
2008-07-27 23:43:53 +00:00
Yang Tse
d2661cb4b2
Partially undo change that prevented SED, GREP, EGREP and AR from being changed by libtool or autoconf.
2008-07-27 22:25:07 +00:00
Yang Tse
3d4fb5136d
Remove explicit inclusion of our m4 files first. It was interesting as a test,
...
but it breaks aclocal execution on some systems, with the following error:
Can't locate object method "rel2abs" via package "File::Spec" at /usr/local/bin/aclocal line 256.
2008-07-27 02:41:13 +00:00
Yang Tse
052f9ddedb
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.
2008-07-27 01:36:33 +00:00
Yang Tse
fa1009b6fc
Explicitly include our m4 files first. This might minimize the impact
...
that other package's underquoted m4 function definitions have on ours.
2008-07-26 14:45:16 +00:00
Yang Tse
8a323f8354
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
Yang Tse
1bc490077a
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
Yang Tse
71525352f0
Adjust DEC/Compaq C compiler settings
2008-07-20 17:18:29 +00:00
Yang Tse
3f84e373ac
Adjust DEC/Compaq C compiler settings
2008-07-19 11:27:45 +00:00
Yang Tse
a9dc900515
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
3a705696af
Initial DEC/Compaq C compiler detection and flags
2008-07-16 14:17:56 +00:00
Yang Tse
21ee1c2d01
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
d816a11bca
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
0b57c47547
egrep and ar are also mandatory
2008-07-04 04:03:55 +00:00
Yang Tse
bfaab6ed6b
The configure process will now halt when sed or grep are unavailable
2008-07-02 17:42:08 +00:00
Yang Tse
513c22df3b
IBM C/C++ compiler predefined macro check
2008-07-01 10:29:25 +00:00
Yang Tse
b5afd53138
set earlier in configure process IBM compilers optimization flags
2008-07-01 00:30:44 +00:00
Yang Tse
2c61e9c76a
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
6cd007838d
fix pkg-config reporting of private libraries needed for static linking
2008-06-09 01:06:48 +00:00
Yang Tse
8ad1928d93
update several macros using AC_TRY_LINK with AC_LINK_IFELSE
2008-05-20 15:55:31 +00:00
Yang Tse
512b9ac194
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
560a82aeaf
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
7358db5c27
minor change for wince-cegcc and wince-mingw32ce support
2008-05-17 01:20:56 +00:00
Yang Tse
5e06ec8409
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
d72efff878
skip libtool C++ preprocessor compiler and linker checks
2008-05-12 15:02:51 +00:00
Yang Tse
ed80eb5b0f
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:21 +00:00
Yang Tse
b380dd030f
Add library checking for clock_gettime() support
2008-05-10 15:46:08 +00:00
Yang Tse
d708ef6731
Use monotonic time source if available.
2008-05-09 16:30:24 +00:00
Daniel Stenberg
d1238baecb
Removed AC_PROG_CC_STDC again. It enforces C99/gnu99 stdandard which is too
...
liberal for me. Also, autoconf 2.61 and earlier doesn't work with icc 10.1
for this macro. (2.62 confirmed to work though). See discusson on the mailing
list starting here:
http://daniel.haxx.se/projects/c-ares/mail/c-ares-archive-2008-05/0001.shtml
2008-05-09 13:10:34 +00:00
Daniel Stenberg
6df5dddd90
check for strings.h in configure and use it for the strcasecmp() proto
2008-05-08 22:11:38 +00:00
Daniel Stenberg
9026dc2da4
- Doug Goldstein provided a configure patch: updates autoconf 2.13 usage to
...
autoconf 2.57 usage (which is the version you have specified as the minimum
version). It's a minor change but it does clean up some warnings with newer
autoconf (specifically 2.62).
2008-05-07 21:16:06 +00:00
Yang Tse
115446be37
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
Daniel Stenberg
3c1db5f250
when building
2007-12-10 22:19:06 +00:00
Daniel Stenberg
30eda92a53
Brad Spencer fixed the configure script to assume that there's no
...
/dev/urandom when built cross-compiled as then the script cannot check for
it.
2007-12-03 10:22:29 +00:00
Daniel Stenberg
b28dc011e0
Remove the check for libdl since that isn't actually used and it causes
...
warnings. Pointed out by Robin Cornelius.
2007-11-27 22:41:53 +00:00
Yang Tse
d0fe681a28
Fix message shown when detecting icc version
2007-10-19 12:15:00 +00:00
Yang Tse
33ddeb6dcc
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
62c264bcdb
check availability of <netinet/tcp.h>
2007-09-30 02:12:11 +00:00
Daniel Stenberg
d460b601f9
added initial pkg-config file (attempt)
2007-07-26 21:56:47 +00:00
Gunter Knauf
6606ae6fe0
add test for gettimeofday() so that HAVE_GETTIMEOFDAY gets defined.
2007-07-04 17:20:19 +00:00
Gunter Knauf
056af4c9ac
added check for sys/param.h.
2007-07-04 09:01:40 +00:00
Daniel Stenberg
6a674ded0e
first take at detecting a random device and seeding the random key using data
...
from it in randomize_key()
2007-05-30 21:37:17 +00:00
Yang Tse
5c7c79bd08
show better description for AMD64-linux static libraries PIC check
2007-03-15 15:35:51 +00:00
Yang Tse
389a15a867
fix test leftover in previous commit
2007-03-07 18:02:35 +00:00
Yang Tse
74befdfbe0
force libtool to build static libraries with PIC on AMD64
2007-03-07 17:59:03 +00:00
Yang Tse
d31feb8ff9
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
Dan Fandrich
b4ef5e22e0
Autoconf 2.57 didn't like these m4_undefine for some reason (probably a bug).
...
Luckily, they weren't needed.
2007-03-06 18:08:20 +00:00
Yang Tse
23786eae32
skip libtool C++ and Fortran linker checks
2007-03-06 16:53:53 +00:00
Yang Tse
c84f84c70d
skip libtool C++ and Fortran checks
2007-03-06 05:05:50 +00:00
Yang Tse
2a6a22a3b0
include <sys/types.h> when checking availability of the bool type
2007-02-22 16:44:43 +00:00
Yang Tse
69565afab0
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
fbcf86b83e
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
be71ccbce3
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
4e3f3e751e
use macro AC_AIX to define `_ALL_SOURCE', if on AIX.
2007-02-08 00:28:21 +00:00
Yang Tse
7a39b98471
use same AIX XLC compiler options as curl's
2007-02-07 18:13:40 +00:00
Yang Tse
a46f55b9de
Make sure RETSIGTYPE is properly defined
2006-11-25 01:02:52 +00:00
Yang Tse
73226415fc
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:34 +00:00
Yang Tse
32ac4edeed
Check for struct timeval at configuration time
2006-10-13 01:35:14 +00:00
Yang Tse
2cba6b246d
Check for network libraries the _same_ way it is done in cURL.
2006-08-06 10:58:47 +00:00
Yang Tse
52cc2a7a0c
Check for network libraries the same way it is done in cURL.
2006-08-05 22:02:47 +00:00
Yang Tse
4c75f1c7b7
MinGW/MSYS needs lib ws2_32 for proper operation of configure script.
2006-08-03 21:19:40 +00:00
Yang Tse
77b3bc239d
First step trying to avoid the multiple header inclusion and recursion nightmare.
...
Reintroduce checking for HAVE_MSG_NOSIGNAL in configure script, so that we don't depend on header inclusion order for a valid check.
2006-07-28 14:19:02 +00:00
Yang Tse
4d95d23d99
Define NEED_MALLOC_H if including <stdlib.h> is not enough for proper compilation and <malloc.h> must also be included.
2006-07-11 20:40:38 +00:00
Yang Tse
01fa02d0b5
Find out return types and argument types for functions recv() and send() at configuration stage.
2006-07-04 13:03:32 +00:00
Daniel Stenberg
c60621c367
Copied the NO_UNDEFINED magic from libcurl to make this build fine again with
...
libtool cross-compiled on linux with mingw32
2006-05-24 23:02:51 +00:00
Daniel Stenberg
4223130bb0
Bram Matthys brought my attention to a libtool peculiarity where detecting
...
things such as C++ compiler actually is a bad thing and since we don't need
that detection I added a work-around, much inspired by a previous patch by
Paolo Bonzini. This also shortens the configure script quite a lot.
2006-05-10 08:03:54 +00:00
Daniel Stenberg
80ee5d3bd8
moved the curl_off_t check to within the --enable-debug block where it belongs since it is a somewhat ugly hack
2006-05-03 22:39:49 +00:00
Yang Tse
e4388643f1
Checking for function getnameinfo and its arguments is finally
...
done in one single function CURL_CHECK_FUNC_GETNAMEINFO which
will only define HAVE_GETNAMEINFO if the function has been found
AND the type of its arguments has been properly been detected
2005-12-21 20:44:54 +00:00
Yang Tse
c23a1be139
Make sure we're using 'c-ares' sources and not 'ares' ones.
2005-12-21 16:08:35 +00:00
Yang Tse
02c7cf6fa5
Fix, header checks must be done before using its results.
2005-12-20 18:50:37 +00:00
Daniel Stenberg
8ec31398e0
use AC_PROG_LIBTOOL after AC_DISABLE_SHARED
2005-12-20 08:51:34 +00:00
Yang Tse
74ed5b5ebd
Adjust more windows header includes
2005-12-19 21:38:10 +00:00
Yang Tse
450a0a647a
Fix Msys/Mingw not detecting getnameinfo() with AC_CHECK_FUNCS
2005-12-18 04:47:29 +00:00
Yang Tse
d6ffb4c177
TYPE_SOCKLEN_T completely replaced by CURL_CHECK_TYPE_SOCKLEN_T.
...
CURL_FUNC_GETNAMEINFO_ARGTYPES now also checks first argument.
All related changes taken to cares configuration scripts.
2005-12-16 18:18:00 +00:00
Daniel Stenberg
80bfa76ac9
check for and use winsock2.h instead of winsock.h and I fixed a typo in the
...
ifdefs where . was used instead of _!
2005-11-16 07:12:37 +00:00
Daniel Stenberg
b2e553a82e
include ws2tcpip.h in an attempt to detect some of the ipv6 structs better
...
in mingw builds
2005-11-15 14:39:52 +00:00
Daniel Stenberg
772b64d9d3
Detect big/little endian in the configure script and adjust the ares_dns.h
...
macros accordingly.
2005-11-14 23:14:54 +00:00
Daniel Stenberg
0f73af4470
simplified the sin6_scope_id test and removed some left-overs from the previous
...
way of detecting it
2005-09-21 09:10:17 +00:00
Daniel Stenberg
45e26b5c02
fixed the check for the addrinfo struct
2005-09-21 09:01:44 +00:00
Dominick Meglio
6a48639c68
Added constants that will be used by ares_getaddrinfo. Made ares_getnameinfo use the reentrant getservbyport (getservbyport_r) if it isavailable to ensure it works properly in a threaded environment
2005-09-18 16:44:49 +00:00
Daniel Stenberg
8a38805e82
Use the AC_CHECK_MEMBER() function for check struct members instead of
...
inventing and providing our own. Hopefully this solves a HP-UX 11.00 problem.
2005-09-10 21:09:44 +00:00
Dominick Meglio
336154e729
Added some checks for the addrinfo structure.
2005-06-19 16:58:40 +00:00
Daniel Stenberg
40eb7d0d48
FIONBIO is in sys/ioctl.h on AIX
2005-06-03 07:39:18 +00:00
Daniel Stenberg
5470b9aa73
William Ahern:
...
Make UDP sockets non-blocking. I've confirmed that at least on Linux 2.4 a
read event can come back from poll() on a valid SOCK_DGRAM socket but
recv(2) will still block. This patch doesn't ignore EAGAIN in
read_udp_packets(), though maybe it should. (This patch was edited by Daniel
Stenberg and a new configure test was added (imported from curl's configure)
to properly detect what non-blocking socket approach to use.)
2005-06-02 11:58:04 +00:00
Dominick Meglio
645729e943
Added ares_getnameinfo which mimics the getnameinfo API
2005-05-16 18:06:54 +00:00
Daniel Stenberg
2789b2b0ad
replaced the CRLF newlines with plain LF ones
2005-05-14 20:45:49 +00:00
Dominick Meglio
7dded571de
Added an inet_ntop function from BIND for systems that do not have it
2005-05-14 18:35:20 +00:00
Dominick Meglio
634982840e
Added preliminary IPv6 support to ares_gethostbyname
2005-04-08 19:46:46 +00:00
Daniel Stenberg
7ae3f0e70c
include sys/types.h too when checking for headers as otherwise this breaks
...
on Solaris and FreeBSD. At least.
2005-04-08 08:48:17 +00:00
Daniel Stenberg
175b00c0a2
Try harder to see if arpa/nameser_compat.h REALLY is a good header file to
...
include, as it seems at least some AIX versions don't really allow it to be
include at the same time as the original nameser.h.
2005-04-07 07:38:53 +00:00
Daniel Stenberg
ba26c3fb22
check for struct sizes and use those sizes if the NS_* defines are lacking
...
(IRIX 6.5.22 it seems)
2005-04-06 14:11:50 +00:00
Daniel Stenberg
983be0ec60
check for another arpa header
2005-04-05 20:19:55 +00:00
Daniel Stenberg
243a45d840
check for the arpa/* headers
2005-04-05 20:08:15 +00:00
Dominick Meglio
60ec804047
Provided implementations of inet_net_pton and inet_pton from BIND for systems that do not include these functions. These will be necessary for CIDR support and IPv6 support.
2005-04-05 18:26:55 +00:00