configure: Centralize check for posix_fallocate
authorVolker Lendecke <vl@samba.org>
Tue, 22 Aug 2017 15:09:01 +0000 (17:09 +0200)
committerJeremy Allison <jra@samba.org>
Wed, 23 Aug 2017 23:46:08 +0000 (01:46 +0200)
commitab132ba7e503f489c04945c1b079c3b3523f8888
tree02503bd412e416276147f59b0bd1001a400918f2
parentc66b21453726060a7d9ae4b34c94e84a692a3941
configure: Centralize check for posix_fallocate

This checks for posix_fallocate unless we are sitting on an ancient glibc.
With this we don't need HAVE_BROKEN_POSIX_FALLOCATE anymore,
HAVE_POSIX_FALLOCATE will only be defined if we have a valid [g]libc.

./configure tested on Debian, FreeBSD (which does have posix_fallocate) and
OpenBSD (which does not have posix_fallocate). Also tested with changing the
not have an old-enough glibc around. All did the right thing.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
lib/replace/wscript
source3/lib/system.c
source3/wscript