From 50206d9b89b6649d782e988df52438e7984707af Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Mon, 25 Mar 2013 13:20:08 -0600 Subject: [PATCH 1/1] configure: check for v2 of libnuma We use options that require 2.x. Signed-off-by: Jens Axboe --- configure | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) 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 -- 2.25.1