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.
This commit is contained in:
Yang Tse 2008-07-15 16:43:39 +00:00
Родитель a00febe1a0
Коммит 21ee1c2d01
4 изменённых файлов: 24 добавлений и 9 удалений

Просмотреть файл

@ -1,5 +1,13 @@
Changelog for the c-ares project Changelog for the c-ares project
* Jul 15 2008 (Yang Tse)
- Introduce definition of _REENTRANT symbol in setup.h to improve library
usability. Previously the configure process only used the AC_SYS_LARGEFILE
macro for debug builds, now it is also used for non-debug ones enabling the
use of configure options --enable-largefile and --disable-largefile which
might be needed for library compatibility. Remove checking the size of
curl_off_t, it is no longer needed.
* Jul 3 2008 (Daniel Stenberg) * Jul 3 2008 (Daniel Stenberg)
- Phil Blundell: If you ask ares_gethostbyname() to do an AF_INET6 lookup and - Phil Blundell: If you ask ares_gethostbyname() to do an AF_INET6 lookup and
the target host has only A records, it automatically falls back to an the target host has only A records, it automatically falls back to an

Просмотреть файл

@ -4,6 +4,9 @@ This is what's new and changed in the c-ares 1.5.3 release:
o fix pkg-config reporting of private libraries needed for static linking o fix pkg-config reporting of private libraries needed for static linking
o fallback to gettimeofday when monotonic clock is unavailable at run-time o fallback to gettimeofday when monotonic clock is unavailable at run-time
o ares_gethostbyname() fallback from AAA to A records with CNAME present o ares_gethostbyname() fallback from AAA to A records with CNAME present
o allow --enable-largefile and --disable-largefile configurations
o configure process no longer needs nor checks size of curl_off_t
o library will now be built with _REENTRANT symbol defined
Thanks go to these friendly people for their efforts and contributions: Thanks go to these friendly people for their efforts and contributions:

Просмотреть файл

@ -75,6 +75,9 @@ AC_PROG_CC
AM_PROG_CC_C_O AM_PROG_CC_C_O
AC_PROG_INSTALL AC_PROG_INSTALL
dnl check for how to do large files
AC_SYS_LARGEFILE
case $host_os in case $host_os in
solaris*) solaris*)
AC_DEFINE(ETC_INET, 1, [if a /etc/inet dir is being used]) AC_DEFINE(ETC_INET, 1, [if a /etc/inet dir is being used])
@ -111,15 +114,6 @@ AC_HELP_STRING([--disable-debug],[Disable debug options]),
CPPFLAGS="$CPPFLAGS -DCURLDEBUG -I$srcdir/../include" CPPFLAGS="$CPPFLAGS -DCURLDEBUG -I$srcdir/../include"
CFLAGS="$CFLAGS -g" CFLAGS="$CFLAGS -g"
dnl check for how to do large files, needed to get the curl_off_t check
dnl done right
AC_SYS_LARGEFILE
AC_CHECK_SIZEOF(curl_off_t, ,[
#include <stdio.h>
#include "$srcdir/../include/curl/curl.h"
])
dnl set compiler "debug" options to become more picky, and remove dnl set compiler "debug" options to become more picky, and remove
dnl optimize options from CFLAGS dnl optimize options from CFLAGS
CURL_CC_DEBUG_OPTS CURL_CC_DEBUG_OPTS

Просмотреть файл

@ -39,6 +39,16 @@
#endif /* HAVE_CONFIG_H */ #endif /* HAVE_CONFIG_H */
/*
* Solaris needs _REENTRANT set for a few function prototypes and
* things to appear in the system header files. Unixware needs it
* to build proper reentrant code. Others may also need it.
*/
#ifndef _REENTRANT
# define _REENTRANT
#endif
/* /*
* Include header files for windows builds before redefining anything. * Include header files for windows builds before redefining anything.
* Use this preproessor block only to include or exclude windows.h, * Use this preproessor block only to include or exclude windows.h,