X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;ds=sidebyside;f=configure;h=ecc9b15a4d19a4b8ed72734ab5631e54335a741c;hb=ec02d5a782d93f1aba854d22b3d879c2680400e2;hp=d752009d949ebc10409be58083a0281c6be3c0d2;hpb=b348113d2161a339780e2d9e0479b1f9a53c6cbc;p=qemu diff --git a/configure b/configure index d752009..ecc9b15 100755 --- a/configure +++ b/configure @@ -1528,6 +1528,36 @@ if compile_prog "" "" ; then eventfd=yes fi +# check for fallocate +fallocate=no +cat > $TMPC << EOF +#include + +int main(void) +{ + fallocate(0, 0, 0, 0); + return 0; +} +EOF +if $cc $ARCH_CFLAGS -o $TMPE $TMPC 2> /dev/null ; then + fallocate=yes +fi + +# check for dup3 +dup3=no +cat > $TMPC << EOF +#include + +int main(void) +{ + dup3(0, 0, 0); + return 0; +} +EOF +if $cc $ARCH_CFLAGS -o $TMPE $TMPC 2> /dev/null ; then + dup3=yes +fi + # Check if tools are available to build documentation. if test "$docs" != "no" ; then if test -x "`which texi2html 2>/dev/null`" -a \ @@ -1884,6 +1914,12 @@ fi if test "$eventfd" = "yes" ; then echo "CONFIG_EVENTFD=y" >> $config_host_mak fi +if test "$fallocate" = "yes" ; then + echo "CONFIG_FALLOCATE=y" >> $config_host_mak +fi +if test "$dup3" = "yes" ; then + echo "CONFIG_DUP3=y" >> $config_host_mak +fi if test "$inotify" = "yes" ; then echo "CONFIG_INOTIFY=y" >> $config_host_mak fi