Mercurial > hg > octave-shane > gnulib-hg
annotate m4/ftruncate.m4 @ 3339:81d88e517811
Quote the first argument in each use of AC_DEFUN.
author | Jim Meyering <jim@meyering.net> |
---|---|
date | Sun, 12 Aug 2001 13:26:00 +0000 |
parents | 8623eb4e2c2a |
children | c1d472db5c30 |
rev | line source |
---|---|
3339
81d88e517811
Quote the first argument in each use of AC_DEFUN.
Jim Meyering <jim@meyering.net>
parents:
3230
diff
changeset
|
1 #serial 4 |
2201 | 2 |
3230 | 3 # See if we need to emulate a missing ftruncate function using fcntl or chsize. |
2201 | 4 |
3339
81d88e517811
Quote the first argument in each use of AC_DEFUN.
Jim Meyering <jim@meyering.net>
parents:
3230
diff
changeset
|
5 AC_DEFUN([jm_FUNC_FTRUNCATE], |
2201 | 6 [ |
7 AC_CHECK_FUNCS(ftruncate, , [ftruncate_missing=yes]) | |
8 | |
9 if test "$ftruncate_missing" = yes; then | |
3230 | 10 AC_CHECK_HEADERS([unistd.h]) |
11 AC_CHECK_FUNCS([chsize]) | |
12 AC_LIBOBJ(ftruncate) | |
2201 | 13 fi |
14 ]) |