NUMACTL is the path of binary program 'numactl'. --- configure.ac | 14 ++++++++++---- 1 files changed, 10 insertions(+), 4 deletions(-) diff --git a/configure.ac b/configure.ac index 7c68bca..3b8e0be 100644 --- a/configure.ac +++ b/configure.ac @@ -1233,19 +1233,22 @@ AM_CONDITIONAL([WITH_DTRACE], [test "$with_dtrace" != "no"]) dnl NUMA lib AC_ARG_WITH([numactl], - AC_HELP_STRING([--with-numactl], [use numactl for host topology info @<:@default=check@:>@]), - [], - [with_numactl=check]) + AC_HELP_STRING([--with-numactl], + [use numactl for host topology info and setting NUMA policy for domain process @<:@default=check@:>@]), + [], + [with_numactl=check]) NUMACTL_CFLAGS= NUMACTL_LIBS= if test "$with_qemu" = "yes" && test "$with_numactl" != "no"; then old_cflags="$CFLAGS" old_libs="$LIBS" + AC_PATH_PROG([NUMACTL], [numactl], [], [$PATH:/sbin:/usr/sbin]) + if test "$with_numactl" = "check"; then AC_CHECK_HEADER([numa.h],[],[with_numactl=no]) AC_CHECK_LIB([numa], [numa_available],[],[with_numactl=no]) - if test "$with_numactl" != "no"; then + if test "$with_numactl" != "no" && test -n "$NUMACTL"; then with_numactl="yes" fi else @@ -1254,6 +1257,8 @@ if test "$with_qemu" = "yes" && test "$with_numactl" != "no"; then AC_CHECK_LIB([numa], [numa_available],[],[fail=1]) test $fail = 1 && AC_MSG_ERROR([You must install the numactl development package in order to compile and run libvirt]) + test -z "$NUMACTL" && + AC_MSG_ERROR([You must install numactl package to compile and run libvirt]) fi CFLAGS="$old_cflags" LIBS="$old_libs" @@ -1261,6 +1266,7 @@ fi if test "$with_numactl" = "yes"; then NUMACTL_LIBS="-lnuma" AC_DEFINE_UNQUOTED([HAVE_NUMACTL], 1, [whether numactl is available for topology info]) + AC_DEFINE_UNQUOTED([NUMACTL],["$NUMACTL"], [Location or name of the numactl program]) fi AM_CONDITIONAL([HAVE_NUMACTL], [test "$with_numactl" != "no"]) AC_SUBST([NUMACTL_CFLAGS]) -- 1.7.4 -- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list