[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: SKIP_FTRUNCATE_CHECK
From: |
Bruno Haible |
Subject: |
Re: SKIP_FTRUNCATE_CHECK |
Date: |
Tue, 20 Feb 2007 00:28:21 +0100 |
User-agent: |
KMail/1.5.4 |
Hello Jim,
> * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
> Prompted by a report from Bruno Haible that mingw lacks ftruncate.
I also meant to make life easier to people using mingw. mingw will not have
gone away in three years - that's more a matter of 10-15 years. How about this?
2007-02-19 Bruno Haible <address@hidden>
* m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
from mingw users.
*** m4/ftruncate.m4 19 Feb 2007 18:19:34 -0000 1.13
--- m4/ftruncate.m4 19 Feb 2007 23:14:50 -0000
***************
*** 1,4 ****
! #serial 12
# See if we need to emulate a missing ftruncate function using fcntl or
chsize.
--- 1,4 ----
! #serial 13
# See if we need to emulate a missing ftruncate function using fcntl or
chsize.
***************
*** 15,34 ****
AC_DEFUN([gl_FUNC_FTRUNCATE],
[
AC_REQUIRE([gl_UNISTD_H_DEFAULTS])
AC_CHECK_FUNCS_ONCE([ftruncate])
if test $ac_cv_func_ftruncate = no; then
HAVE_FTRUNCATE=0
AC_LIBOBJ([ftruncate])
gl_PREREQ_FTRUNCATE
! # If someone lacks ftruncate, make configure fail, and request
! # a bug report to inform us about it.
! if test x"$SKIP_FTRUNCATE_CHECK" != xyes; then
! AC_MSG_FAILURE([Your system lacks the ftruncate function.
! Please report this, along with the output of "uname -a", to the
! address@hidden mailing list. To continue past this point,
! rerun configure with SKIP_FTRUNCATE_CHECK=yes.
! E.g., ./configure SKIP_FTRUNCATE_CHECK=yes])
! fi
fi
])
--- 15,41 ----
AC_DEFUN([gl_FUNC_FTRUNCATE],
[
AC_REQUIRE([gl_UNISTD_H_DEFAULTS])
+ AC_REQUIRE([AC_CANONICAL_HOST])
AC_CHECK_FUNCS_ONCE([ftruncate])
if test $ac_cv_func_ftruncate = no; then
HAVE_FTRUNCATE=0
AC_LIBOBJ([ftruncate])
gl_PREREQ_FTRUNCATE
! case "$host_os" in
! mingw*)
! # Yes, we know mingw lacks ftruncate.
! ;;
! *)
! # If someone lacks ftruncate, make configure fail, and request
! # a bug report to inform us about it.
! if test x"$SKIP_FTRUNCATE_CHECK" != xyes; then
! AC_MSG_FAILURE([Your system lacks the ftruncate function.
! Please report this, along with the output of "uname -a", to the
! address@hidden mailing list. To continue past this point,
! rerun configure with SKIP_FTRUNCATE_CHECK=yes.
! E.g., ./configure SKIP_FTRUNCATE_CHECK=yes])
! fi
! esac
fi
])