From: Jens Axboe Date: Mon, 25 Mar 2013 19:20:08 +0000 (-0600) Subject: configure: check for v2 of libnuma X-Git-Tag: fio-2.0.15~14 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=50206d9b89b6649d782e988df52438e7984707af configure: check for v2 of libnuma We use options that require 2.x. Signed-off-by: Jens Axboe --- diff --git a/configure b/configure index b8afe39a..76da4ba5 100755 --- a/configure +++ b/configure @@ -809,6 +809,24 @@ if compile_prog "" "-lnuma" "libnuma"; then fi echo "libnuma $libnuma" +########################################## +# libnuma 2.x version API +if test "$libnuma" = "yes" ; then +libnuma_v2="no" +cat > $TMPC << EOF +#include +int main(int argc, char **argv) +{ + struct bitmask *mask = numa_parse_nodestring(NULL); + return 0; +} +EOF +if compile_prog "" "" "libnuma api"; then + libnuma_v2="yes" +fi +echo "libnuma v2 $libnuma_v2" +fi + ########################################## # strsep() probe strsep="no" @@ -1046,7 +1064,7 @@ fi if test "$fusion_aw" = "yes" ; then output_sym "CONFIG_FUSION_AW" fi -if test "$libnuma" = "yes" ; then +if test "$libnuma_v2" = "yes" ; then output_sym "CONFIG_LIBNUMA" fi if test "$solaris_aio" = "yes" ; then