X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=configure;h=cbd4d306abb1ed148c046e729548c87558720b65;hp=517668233fc79cbddd6e41157c23957ee8ab95ee;hb=7c77ebeff3125d6f70ce9c5d3be8006a5daa8ac8;hpb=c0d3245a097f41441def6f912b79558cfb6dcf34 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"