diff options
author | Blue Swirl <blauwirbel@gmail.com> | 2009-09-20 06:56:26 +0000 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2009-09-20 06:56:26 +0000 |
commit | 5f6b9e8fd5b9516170e582d9b6c27c98519a8031 (patch) | |
tree | 2b9b054a84cf329bf1fa28167d5ecfffa44e8ad2 /configure | |
parent | cdd0935cbd345364fc6265feaa5814790947b7f9 (diff) | |
download | qemu-5f6b9e8fd5b9516170e582d9b6c27c98519a8031.tar.gz qemu-5f6b9e8fd5b9516170e582d9b6c27c98519a8031.tar.bz2 qemu-5f6b9e8fd5b9516170e582d9b6c27c98519a8031.zip |
Probe for fdatasync()
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -1625,6 +1625,18 @@ if compile_prog "" "" ; then need_offsetof=no fi +########################################## +# check if we have fdatasync + +fdatasync=no +cat > $TMPC << EOF +#include <unistd.h> +int main(void) { return fdatasync(0); } +EOF +if compile_prog "" "" ; then + fdatasync=yes +fi + # End of CC checks # After here, no more $cc or $ld runs @@ -1738,6 +1750,7 @@ echo "Install blobs $blobs" echo "KVM support $kvm" echo "fdt support $fdt" echo "preadv support $preadv" +echo "fdatasync $fdatasync" if test $sdl_too_old = "yes"; then echo "-> Your SDL version is too old - please upgrade to have SDL support" @@ -1928,6 +1941,9 @@ fi if test "$need_offsetof" = "yes" ; then echo "CONFIG_NEED_OFFSETOF=y" >> $config_host_mak fi +if test "$fdatasync" = "yes" ; then + echo "CONFIG_FDATASYNC=y" >> $config_host_mak +fi # XXX: suppress that if [ "$bsd" = "yes" ] ; then |