Disable libaio for ESXi build - bug#80
[fio.git] / configure
index 517668233fc79cbddd6e41157c23957ee8ab95ee..cbd4d306abb1ed148c046e729548c87558720b65 100755 (executable)
--- a/configure
+++ b/configure
@@ -489,7 +489,8 @@ echo "zlib                          $zlib"
 ##########################################
 # linux-aio probe
 libaio="no"
 ##########################################
 # linux-aio probe
 libaio="no"
-cat > $TMPC <<EOF
+if test "$esx" != "yes" ; then
+  cat > $TMPC <<EOF
 #include <libaio.h>
 #include <stddef.h>
 int main(void)
 #include <libaio.h>
 #include <stddef.h>
 int main(void)
@@ -498,14 +499,15 @@ int main(void)
   return 0;
 }
 EOF
   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
   fi
-  libaio=no
 fi
 echo "Linux AIO support             $libaio"
 
 fi
 echo "Linux AIO support             $libaio"