[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH RFC 02/23] configure: make the libaio test non-fatal on OSes different than Linux
On Wed, 2014-04-16 at 16:13 +0200, Roger Pau Monne wrote: > libaio is only present on Linux systems, so make the configure test > that checks for libaio non-fatal is the host OS is different than > Linux. > > Signed-off-by: Roger Pau Monnà <roger.pau@xxxxxxxxxx> > Cc: Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx> > Cc: Ian Campbell <ian.campbell@xxxxxxxxxx> > --- > Please re-run autoconf after applying this patch. > --- > tools/configure.ac | 8 +++++++- > 1 files changed, 7 insertions(+), 1 deletions(-) > > diff --git a/tools/configure.ac b/tools/configure.ac > index a62faf8..eb54098 100644 > --- a/tools/configure.ac > +++ b/tools/configure.ac > @@ -220,7 +220,13 @@ AC_CHECK_HEADER([lzo/lzo1x.h], [ > AC_CHECK_LIB([lzo2], [lzo1x_decompress], [zlib="$zlib -DHAVE_LZO1X -llzo2"]) > ]) > AC_SUBST(zlib) > -AC_CHECK_LIB([aio], [io_setup], [], [AC_MSG_ERROR([Could not find libaio])]) > +AC_CHECK_LIB([aio], [io_setup], [], [ > + case "$host_os" in > + linux*) > + AC_MSG_ERROR([Could not find libaio]) > + ;; > + esac > +]) AFAICT aio is used only by blktap (1 and 2), so you could make this entire test conditional on either of those being enabled and by extension it would then be dependent on Linux. Ian. > AC_SUBST(system_aio) > AC_CHECK_LIB([crypto], [MD5], [], [AC_MSG_ERROR([Could not find libcrypto])]) > AX_CHECK_EXTFS _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |