summaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorRobert Nagy <robert.nagy@gmail.com>2011-12-21 16:16:22 +0100
committerFrançois Tigeot <ftigeot@wolfpond.org>2012-01-11 13:55:04 +0100
commit2938ec5539b54e98e801ae14ccb2c163cd94a92a (patch)
tree6350d59d3769e4ddeaa0fe423fbabd34e1f82f1a /configure.in
parent0b63bb1d5f37ad673b0aadefe4bfe1e61ae667b9 (diff)
only use posix_fallocate() if it's actually available
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in2
1 files changed, 2 insertions, 0 deletions
diff --git a/configure.in b/configure.in
index 290b294cf733..40b20eb21bd6 100644
--- a/configure.in
+++ b/configure.in
@@ -3843,6 +3843,8 @@ fi
if test "$with_alloc" = "internal" -o -z "$with_alloc"; then
AC_MSG_RESULT([internal])
fi
+AC_CHECK_FUNCS(posix_fallocate, HAVE_POSIX_FALLOCATE=YES, [HAVE_POSIX_FALLOCATE=NO])
+AC_SUBST(HAVE_POSIX_FALLOCATE)
AC_SUBST(ALLOC)
dnl ===================================================================