Merge branch 'master' of ssh://git.kernel.dk/data/git/fio
authorJens Axboe <axboe@kernel.dk>
Fri, 12 Apr 2013 08:17:09 +0000 (10:17 +0200)
committerJens Axboe <axboe@kernel.dk>
Fri, 12 Apr 2013 08:17:09 +0000 (10:17 +0200)
configure

index 4b71afd6571fe39fe407f07feeeb74d7bc9564b7..87d659cf6c70cfecbf94e0bbc33e909e448fbaaa 100755 (executable)
--- a/configure
+++ b/configure
@@ -94,9 +94,13 @@ compile_prog() {
 
 feature_not_found() {
   feature=$1
+  packages=$2
 
   echo "ERROR"
   echo "ERROR: User requested feature $feature"
+  if test ! -z "$packages" ; then
+    echo "ERROR: That feature needs $packages installed"
+  fi
   echo "ERROR: configure was not able to find it"
   fatal "ERROR"
 }
@@ -412,7 +416,7 @@ if compile_prog "" "-lz" "zlib" ; then
   zlib=yes
   LIBS="-lz $LIBS"
 else
-  feature_not_found "zlib"
+  feature_not_found "zlib" "zlib development files"
   zlib=no
 fi
 echo "zlib                          $zlib"
@@ -434,7 +438,7 @@ if compile_prog "" "-laio" "libaio" ; then
   LIBS="-laio $LIBS"
 else
   if test "$libaio" = "yes" ; then
-    feature_not_found "linux AIO"
+    feature_not_found "linux AIO" "libaio-dev or libaio-devel"
   fi
   libaio=no
 fi