Commit Graph
86 Commits
Author SHA1 Message Date
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 d57416b7f5 skip libtool C++ preprocessor compiler and linker checks 2008-05-12 15:02:51 +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 0848b4fdaa Use monotonic time source if available. 2008-05-09 16:30:24 +00:00
Daniel Stenberg fd5fdecf30 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 7829b79768 check for strings.h in configure and use it for the strcasecmp() proto 2008-05-08 22:11:38 +00:00
Daniel Stenberg 3994a0be7f - 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 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
Daniel Stenberg 03431e22b2 when building 2007-12-10 22:19:06 +00:00
Daniel Stenberg dc0e93d89e 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 e13018f437 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 746b3d7acc Fix message shown when detecting icc version 2007-10-19 12:15:00 +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 68aa62d76b check availability of <netinet/tcp.h> 2007-09-30 02:12:11 +00:00
Daniel Stenberg bebef9e940 added initial pkg-config file (attempt) 2007-07-26 21:56:47 +00:00
Gunter Knauf ccf47928b8 add test for gettimeofday() so that HAVE_GETTIMEOFDAY gets defined. 2007-07-04 17:20:19 +00:00
Gunter Knauf c58612ba12 added check for sys/param.h. 2007-07-04 09:01:40 +00:00
Daniel Stenberg 49fdeb1de4 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 207cde73e2 show better description for AMD64-linux static libraries PIC check 2007-03-15 15:35:51 +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
Dan Fandrich fd68050fae 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:25 +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 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 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 65fc05826e Make sure RETSIGTYPE is properly defined 2006-11-25 01:02:52 +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 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 43995b7d1b MinGW/MSYS needs lib ws2_32 for proper operation of configure script. 2006-08-03 21:19:40 +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 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 016db852f8 Find out return types and argument types for functions recv() and send() at configuration stage. 2006-07-04 13:03:33 +00:00
Daniel Stenberg 2fc66d7b01 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 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 f4f25e3282 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 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 1499c81ab3 Make sure we're using 'c-ares' sources and not 'ares' ones. 2005-12-21 16:08:35 +00:00
Yang Tse e80c02452e Fix, header checks must be done before using its results. 2005-12-20 18:50:37 +00:00
Daniel Stenberg a08aed3147 use AC_PROG_LIBTOOL after AC_DISABLE_SHARED 2005-12-20 08:51:34 +00:00
Yang Tse 6419328de9 Adjust more windows header includes 2005-12-19 21:38:10 +00:00
Yang Tse 1d9efefdfa Fix Msys/Mingw not detecting getnameinfo() with AC_CHECK_FUNCS 2005-12-18 04:47:29 +00:00