Revision 414f0dab configure

b/configure
106 106
build_docs="no"
107 107
uname_release=""
108 108
curses="yes"
109
aio="yes"
109 110
nptl="yes"
110 111
mixemu="no"
111 112

  
......
334 335
  ;;
335 336
  --enable-mixemu) mixemu="yes"
336 337
  ;;
338
  --disable-aio) aio="no"
339
  ;;
337 340
  *) echo "ERROR: unknown option $opt"; show_help="yes"
338 341
  ;;
339 342
  esac
......
436 439
echo "  --enable-uname-release=R Return R for uname -r in usermode emulation"
437 440
echo "  --sparc_cpu=V            Build qemu for Sparc architecture v7, v8, v8plus, v8plusa, v9"
438 441
echo "  --disable-vde            disable support for vde network"
442
echo "  --disable-aio            disable AIO support"
439 443
echo ""
440 444
echo "NOTE: The object files are built at the place where configure is launched"
441 445
exit 1
......
863 867
  fi
864 868
fi # test "$curses"
865 869

  
870
##########################################
871
# AIO probe
872
if test "$aio" = "yes" ; then
873
  aio=no
874
  cat > $TMPC << EOF
875
#include <aio.h>
876
int main(void) { return aio_write(NULL); }
877
EOF
878
  if $cc $ARCH_CFLAGS -o $TMPE $AIOLIBS $TMPC 2> /dev/null ; then
879
    aio=yes
880
  fi
881
fi
882

  
866 883
# Check if tools are available to build documentation.
867 884
if [ -x "`which texi2html 2>/dev/null`" ] && \
868 885
   [ -x "`which pod2man 2>/dev/null`" ]; then
......
934 951
echo "uname -r          $uname_release"
935 952
echo "NPTL support      $nptl"
936 953
echo "vde support       $vde"
954
echo "AIO support       $aio"
937 955

  
938 956
if test $sdl_too_old = "yes"; then
939 957
echo "-> Your SDL version is too old - please upgrade to have SDL support"
......
1179 1197
  echo "#define CONFIG_BRLAPI 1" >> $config_h
1180 1198
  echo "BRLAPI_LIBS=-lbrlapi" >> $config_mak
1181 1199
fi
1200
if test "$aio" = "yes" ; then
1201
  echo "#define CONFIG_AIO 1" >> $config_h
1202
fi
1182 1203

  
1183 1204
# XXX: suppress that
1184 1205
if [ "$bsd" = "yes" ] ; then

Also available in: Unified diff