X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=configure;h=cbd4d306abb1ed148c046e729548c87558720b65;hb=e6727cbdd34a6ec30b437311724a6aa60e6b06fd;hp=517668233fc79cbddd6e41157c23957ee8ab95ee;hpb=daf705b52f6473dff99e631b6b3d3ce574b00a11;p=fio.git diff --git a/configure b/configure index 51766823..cbd4d306 100755 --- a/configure +++ b/configure @@ -489,7 +489,8 @@ echo "zlib $zlib" ########################################## # linux-aio probe libaio="no" -cat > $TMPC < $TMPC < #include int main(void) @@ -498,14 +499,15 @@ int main(void) return 0; } EOF -if compile_prog "" "-laio" "libaio" ; then - libaio=yes - LIBS="-laio $LIBS" -else - if test "$libaio" = "yes" ; then - feature_not_found "linux AIO" "libaio-dev or libaio-devel" + if compile_prog "" "-laio" "libaio" ; then + libaio=yes + LIBS="-laio $LIBS" + else + if test "$libaio" = "yes" ; then + feature_not_found "linux AIO" "libaio-dev or libaio-devel" + fi + libaio=no fi - libaio=no fi echo "Linux AIO support $libaio"