documentation update
[gnutls.git] / gl / m4 / ftruncate.m4
blob1007f341205c1f7baa478128d55d425def7aa8ec
1 # serial 18
3 # See if we need to emulate a missing ftruncate function using chsize.
5 # Copyright (C) 2000-2001, 2003-2007, 2009-2012 Free Software Foundation, Inc.
6 # This file is free software; the Free Software Foundation
7 # gives unlimited permission to copy and/or distribute it,
8 # with or without modifications, as long as this notice is preserved.
10 AC_DEFUN([gl_FUNC_FTRUNCATE],
12   AC_REQUIRE([gl_UNISTD_H_DEFAULTS])
13   AC_CHECK_FUNCS_ONCE([ftruncate])
14   if test $ac_cv_func_ftruncate = no; then
15     HAVE_FTRUNCATE=0
16   fi
19 # Prerequisites of lib/ftruncate.c.
20 AC_DEFUN([gl_PREREQ_FTRUNCATE],
22   AC_REQUIRE([AC_C_INLINE])
23   AC_CHECK_FUNCS([chsize])