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
f953ff981c
MSVC does build Windows native targets
2008-06-06 18:44:40 +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
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
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
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
22e6a8199f
Add library checking for clock_gettime() support
2008-05-10 15:46:38 +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
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
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
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
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
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
02d31bef50
Check for struct timeval at configuration time
2006-10-13 01:35:14 +00:00
Yang Tse
fb5decf740
Being unable to link or find out recv() or send() args types is a fatal error.
2006-08-04 00:39:34 +00:00
Yang Tse
6ca041f8f1
Avoid the risk of a false positive detection of MSG_NOSIGNAL when cross compiling a Windows target.
2006-07-31 18:41:29 +00:00
Yang Tse
b05a63758c
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:03 +00:00
Yang Tse
4e8835e782
Simplify check for NEED_MALLOC_H, and make more explicit that NEED_MALLOC_H shall be defined if <malloc.h> header file must be included even when including <stdlib.h>.
2006-07-25 13:49:50 +00:00
Yang Tse
31dfa4924d
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
04369e1134
Finally get rid of CURL_CHECK_HEADERS_ONCE since it adds very little value and has portability issues.
...
Change some shell if...then...fi tests into case...esac tests which demand less resources.
2006-07-07 17:34:40 +00:00
Yang Tse
f3643c497b
Substitution of the literal '-' is only done if it's the first or last character.
2006-07-07 14:03:17 +00:00
Yang Tse
e7be013388
Using backslashes and slashes in the strings of the sed 'y' command shall be avoided since its interpretation is not the same across platforms.
...
Now we use the sed 's' command with a bracket expression.
2006-07-07 12:59:45 +00:00
Yang Tse
d4b831bd3e
Fix excessive escaping.
2006-07-07 05:39:14 +00:00
Yang Tse
33be40af18
Fix CURL_CHECK_HEADERS_ONCE
2006-07-07 04:42:15 +00:00
Yang Tse
69a7d102b7
Fix MinGW/MSYS support in CURL_CHECK_FUNC_RECV and CURL_CHECK_FUNC_SEND.
2006-07-06 15:51:03 +00:00
Yang Tse
413a37e409
Prevent definition of HAVE_WINxxx_H symbols and avoid inclusion of Windows headers when compiled with Cygwin in POSIX emulation mode.
2006-07-05 23:10:38 +00:00
Yang Tse
3e2f91b95f
Use a more descriptive var name.
2006-07-04 17:19:15 +00:00
Yang Tse
e26ef987d7
Get qualifier of arg 2 for send() apart into SEND_QUAL_ARG2.
2006-07-04 16:54:11 +00:00
Yang Tse
016db852f8
Find out return types and argument types for functions recv() and send() at configuration stage.
2006-07-04 13:03:33 +00:00
Yang Tse
64102e9a5c
Use CURL_CHECK_FUNC_GETNAMEINFO results in CURL_CHECK_NI_WITHSCOPEID
2006-07-03 15:32:12 +00:00
Yang Tse
054c5cf04b
Make CURL_CHECK_NI_WITHSCOPEID actually try to compile NI_WITHSCOPEID when cross-compiling.
2006-07-02 23:09:46 +00:00
Yang Tse
bdf1485cf9
Fix shell globbing in CURL_CHECK_FUNC_GETNAMEINFO
2006-07-02 01:21:54 +00:00
Yang Tse
a838f1a431
Fix shell globbing in CURL_CHECK_FUNC_GETNAMEINFO
2006-07-02 01:17:37 +00:00
Yang Tse
be2ee2baac
Get qualifier of arg 1 for getnameinfo apart. Take 2.
2006-07-01 02:53:18 +00:00
Yang Tse
24c638e165
Get qualifier of arg 1 for getnameinfo apart.
2006-06-30 19:20:16 +00:00
Yang Tse
5151cb841e
Remove experimental notice from CURL_CHECK_FUNC_GETNAMEINFO
2006-06-30 00:22:39 +00:00
Daniel Stenberg
e75c876ac5
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
de713cb37d
Alexander Lazic improved the getservbyport_r() configure check.
2006-01-09 08:31:48 +00:00
Yang Tse
cb2a75dece
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
2e342c682c
Undefine HAVE_GETNAMEINFO if unable to find
...
proper types to use for getnameinfo args
2005-12-21 17:51:08 +00:00
Yang Tse
7a9f1ef2b8
Undefine HAVE_GETNAMEINFO if unable to find
...
proper types to use for getnameinfo args
2005-12-21 17:20:23 +00:00