configure: improve libzbc version check
authorDmitry Fomichev <dmitry.fomichev@wdc.com>
Tue, 4 Aug 2020 01:38:25 +0000 (10:38 +0900)
committerJens Axboe <axboe@kernel.dk>
Tue, 11 Aug 2020 16:42:39 +0000 (10:42 -0600)
commit38551c04b740949c8a0f5a7235b9842d155e5dfb
treee5a18a1e738b328c8832567515fd8ca9db4adaac
parentcb7d7abbab67e03c901bfaf9517e0cae40a548bf
configure: improve libzbc version check

Avoid parsing pkg-config output and just use --atleast-version to
check if libzbc is present and has an up to date version.

Currently, support for libzbc ioengine is always included if libzbc is
found at the build system. Add the option to disable libzbc ioengine
support even if libzbc is found. This can be useful for
cross-compilation.

Reviewed-by: Damien Le Moal <damien.lemoal@wdc.com>
Signed-off-by: Dmitry Fomichev <dmitry.fomichev@wdc.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
configure