apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joe Orton <jor...@redhat.com>
Subject Re: [patch 07/17] Win32 LFS
Date Tue, 18 Apr 2006 09:02:00 GMT
On Sat, Apr 15, 2006 at 11:41:25AM +1000, John Mark Vandenberg wrote:
> Windows 98+ provides a LFS API that is not POSIX compatible.

Test results which have to be "forced" like this should be set via 
apr_hints.m4 - add a *-mingw* case in there, and do them all in one go 
like:

  APR_SETIFNULL(apr_cv_foo, [yes])
  ...

joe

> Index: configure.in
> ===================================================================
> --- configure.in.orig
> +++ configure.in
> @@ -450,7 +450,16 @@ AC_SUBST(OBJECTS_PLATFORM)
>  AC_ARG_ENABLE(lfs,[  --disable-lfs           Disable large file support on 32-bit platforms],
>  [apr_lfs_choice=$enableval], [apr_lfs_choice=yes])
>  
> +# Windows 98+ provides a LFS API that is not POSIX compatible.
> +# The following test for LFS is not suitable, and changing it isnt warrented.
>  if test "$apr_lfs_choice" = "yes"; then
> +  case $host in
> +    *mingw*) apr_cv_use_lfs64=yes
> +             ;;
> +  esac
> +fi
> +
> +if test "$apr_lfs_choice" = "yes" -a "x$apr_cv_use_lfs64" != "xyes"; then
>     # Check whether the transitional LFS API is sufficient
>     AC_CACHE_CHECK([whether to enable -D_LARGEFILE64_SOURCE], [apr_cv_use_lfs64], [
>     apr_save_CPPFLAGS=$CPPFLAGS
> 
> --

Mime
View raw message