@@ -315,7 +315,7 @@ pa="auto"
315
315
xen=${default_feature: +disabled}
316
316
xen_ctrl_version=" $default_feature "
317
317
xen_pci_passthrough=" auto"
318
- linux_aio=" $default_feature "
318
+ linux_aio=" auto "
319
319
linux_io_uring=" auto"
320
320
cap_ng=" auto"
321
321
attr=" auto"
@@ -1196,9 +1196,9 @@ for opt do
1196
1196
;;
1197
1197
--enable-fdt=system) fdt=" system"
1198
1198
;;
1199
- --disable-linux-aio) linux_aio=" no "
1199
+ --disable-linux-aio) linux_aio=" disabled "
1200
1200
;;
1201
- --enable-linux-aio) linux_aio=" yes "
1201
+ --enable-linux-aio) linux_aio=" enabled "
1202
1202
;;
1203
1203
--disable-linux-io-uring) linux_io_uring=" disabled"
1204
1204
;;
@@ -3163,26 +3163,6 @@ if test "$libssh" != "no" ; then
3163
3163
fi
3164
3164
fi
3165
3165
3166
- # #########################################
3167
- # linux-aio probe
3168
-
3169
- if test " $linux_aio " ! = " no" ; then
3170
- cat > $TMPC << EOF
3171
- #include <libaio.h>
3172
- #include <sys/eventfd.h>
3173
- #include <stddef.h>
3174
- int main(void) { io_setup(0, NULL); io_set_eventfd(NULL, 0); eventfd(0, 0); return 0; }
3175
- EOF
3176
- if compile_prog " " " -laio" ; then
3177
- linux_aio=yes
3178
- else
3179
- if test " $linux_aio " = " yes" ; then
3180
- feature_not_found " linux AIO" " Install libaio devel"
3181
- fi
3182
- linux_aio=no
3183
- fi
3184
- fi
3185
-
3186
3166
# #########################################
3187
3167
# TPM emulation is only on POSIX
3188
3168
@@ -4272,9 +4252,6 @@ if test "$xen" = "enabled" ; then
4272
4252
echo " XEN_CFLAGS=$xen_cflags " >> $config_host_mak
4273
4253
echo " XEN_LIBS=$xen_libs " >> $config_host_mak
4274
4254
fi
4275
- if test " $linux_aio " = " yes" ; then
4276
- echo " CONFIG_LINUX_AIO=y" >> $config_host_mak
4277
- fi
4278
4255
if test " $vhost_scsi " = " yes" ; then
4279
4256
echo " CONFIG_VHOST_SCSI=y" >> $config_host_mak
4280
4257
fi
@@ -4774,7 +4751,7 @@ if test "$skip_meson" = no; then
4774
4751
$( if test " $default_feature " = no; then echo " -Dauto_features=disabled" ; fi) \
4775
4752
-Dalsa=$alsa -Dcoreaudio=$coreaudio -Ddsound=$dsound -Djack=$jack -Doss=$oss \
4776
4753
-Dpa=$pa -Daudio_drv_list=$audio_drv_list -Dtcg_interpreter=$tcg_interpreter \
4777
- -Dtrace_backends=$trace_backends -Dtrace_file=$trace_file \
4754
+ -Dtrace_backends=$trace_backends -Dtrace_file=$trace_file -Dlinux_aio= $linux_aio \
4778
4755
$cross_arg \
4779
4756
" $PWD " " $source_path "
4780
4757
0 commit comments