From a76e1995b08ffe645b2d9f81d258afc38688884b Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Fri, 24 Aug 2018 11:31:21 -0700 Subject: [PATCH] configure: Add test Add a test for because that header file will be used by the zoned block device code. Signed-off-by: Bart Van Assche Signed-off-by: Jens Axboe --- configure | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/configure b/configure index fb8b2433..ab89df7d 100755 --- a/configure +++ b/configure @@ -2195,6 +2195,24 @@ if compile_prog "" "" "valgrind_dev"; then fi print_config "Valgrind headers" "$valgrind_dev" +########################################## +# probe +if test "$linux_blkzoned" != "yes" ; then + linux_blkzoned="no" +fi +cat > $TMPC << EOF +#include +int main(int argc, char **argv) +{ + return 0; +} +EOF +if compile_prog "" "" "linux_blkzoned"; then + linux_blkzoned="yes" +fi +print_config "Zoned block device support" "$linux_blkzoned" + +########################################## # check march=armv8-a+crc+crypto if test "$march_armv8_a_crc_crypto" != "yes" ; then march_armv8_a_crc_crypto="no" @@ -2519,6 +2537,9 @@ fi if test "$valgrind_dev" = "yes"; then output_sym "CONFIG_VALGRIND_DEV" fi +if test "$linux_blkzoned" = "yes" ; then + output_sym "CONFIG_LINUX_BLKZONED" +fi if test "$zlib" = "no" ; then echo "Consider installing zlib-dev (zlib-devel, some fio features depend on it." if test "$build_static" = "yes"; then -- 2.25.1