]> xenbits.xensource.com Git - xen.git/commitdiff
configure: make the libaio test conditional on blktap{1, 2}
authorRoger Pau Monne <roger.pau@citrix.com>
Thu, 19 Jun 2014 16:32:45 +0000 (18:32 +0200)
committerIan Campbell <ian.campbell@citrix.com>
Fri, 27 Jun 2014 13:13:23 +0000 (14:13 +0100)
libaio is only required for blktap{1,2}, so make the check conditional
on whether the user has requested blktap{1,2} or not.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Cc: Ian Jackson <Ian.Jackson@eu.citrix.com>
Cc: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
[ ijc -- reran autogen.sh ]

tools/configure
tools/configure.ac

index d84d9504ecba76131f8eff47d88fbb412abb84cf..eebe745d8d0d04fec9909b6b9e56d54bd85e7a57 100755 (executable)
@@ -7535,6 +7535,8 @@ fi
 
 
 
+if test "x$enable_blktap1" = "xyes" || test "x$enable_blktap2" = "xyes"; then :
+
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for io_setup in -laio" >&5
 $as_echo_n "checking for io_setup in -laio... " >&6; }
 if ${ac_cv_lib_aio_io_setup+:} false; then :
@@ -7583,6 +7585,8 @@ else
 fi
 
 
+fi
+
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MD5 in -lcrypto" >&5
 $as_echo_n "checking for MD5 in -lcrypto... " >&6; }
 if ${ac_cv_lib_crypto_MD5+:} false; then :
index 836bbba4a3362b60cd231f32ec5e15052940dbb9..6d70f04fe14b62825a07ceecc8f8b322aac93176 100644 (file)
@@ -262,7 +262,9 @@ AC_CHECK_HEADER([lzo/lzo1x.h], [
 AC_CHECK_LIB([lzo2], [lzo1x_decompress], [zlib="$zlib -DHAVE_LZO1X -llzo2"])
 ])
 AC_SUBST(zlib)
+AS_IF([test "x$enable_blktap1" = "xyes" || test "x$enable_blktap2" = "xyes"], [
 AC_CHECK_LIB([aio], [io_setup], [], [AC_MSG_ERROR([Could not find libaio])])
+])
 AC_SUBST(system_aio)
 AC_CHECK_LIB([crypto], [MD5], [], [AC_MSG_ERROR([Could not find libcrypto])])
 AX_CHECK_EXTFS