diff options
author | Castor Fu <castor@alumni.caltech.edu> | 2013-10-31 11:00:54 -0600 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2013-10-31 11:00:54 -0600 |
commit | 44462517234f07e03c4dc71e5b5460cd70feeb07 (patch) | |
tree | 424ba0ee143c0ee116797c23028a5f98a52c9e8e | |
parent | 952b05e00103bf45576e1860cde0626bd42ed52a (diff) | |
download | fio-44462517234f07e03c4dc71e5b5460cd70feeb07.tar.gz fio-44462517234f07e03c4dc71e5b5460cd70feeb07.tar.bz2 |
configure: add option to disable libnuma usage
Signed-off-by: Castor Fu <castor@alumni.caltech.edu>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
-rwxr-xr-x | configure | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -153,6 +153,8 @@ for opt do --enable-gfio) gfio="yes" ;; + --disable-numa) disable_numa="yes" + ;; --help) show_help="yes" ;; @@ -169,6 +171,7 @@ if test "$show_help" = "yes" ; then echo "--extra-cflags= Specify extra CFLAGS to pass to compiler" echo "--build-32bit-win Enable 32-bit build on Windows" echo "--enable-gfio Enable building of gtk gfio" + echo "--disable-numa Disable libnuma even if found" exit $exit_val fi @@ -835,7 +838,7 @@ int main(int argc, char **argv) return numa_available(); } EOF -if compile_prog "" "-lnuma" "libnuma"; then +if test "$disable_numa" != "yes" && compile_prog "" "-lnuma" "libnuma"; then libnuma="yes" LIBS="-lnuma $LIBS" fi |