projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
update from prep
[gnulib.git]
/
m4
/
ftruncate.m4
diff --git
a/m4/ftruncate.m4
b/m4/ftruncate.m4
index
d158e25
..
ec593a9
100644
(file)
--- a/
m4/ftruncate.m4
+++ b/
m4/ftruncate.m4
@@
-1,14
+1,18
@@
-#serial
3
+#serial
5
# See if we need to emulate a missing ftruncate function using fcntl or chsize.
# See if we need to emulate a missing ftruncate function using fcntl or chsize.
-AC_DEFUN(
jm_FUNC_FTRUNCATE
,
+AC_DEFUN(
[jm_FUNC_FTRUNCATE]
,
[
[
- AC_CHECK_FUNCS(ftruncate, , [ftruncate_missing=yes])
-
- if test "$ftruncate_missing" = yes; then
- AC_CHECK_HEADERS([unistd.h])
- AC_CHECK_FUNCS([chsize])
- AC_LIBOBJ(ftruncate)
+ AC_REPLACE_FUNCS(ftruncate)
+ if test $ac_cv_func_ftruncate = no; then
+ gl_PREREQ_FTRUNCATE
fi
])
fi
])
+
+# Prerequisites of lib/ftruncate.c.
+AC_DEFUN([gl_PREREQ_FTRUNCATE],
+[
+ AC_CHECK_HEADERS_ONCE(unistd.h)
+ AC_CHECK_FUNCS(chsize)
+])