Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 1 | From 867ad5d5d64b9b27ee32148027532db0a00f6433 Mon Sep 17 00:00:00 2001 |
| 2 | From: "Roy.Li" <rongqing.li@windriver.com> |
| 3 | Date: Thu, 7 Jan 2016 17:33:26 +0000 |
| 4 | Subject: [PATCH 02/32] Add knob to control whether numa support should be |
| 5 | checked |
| 6 | |
| 7 | otherwise undeterministic dependency will be generated |
| 8 | during build depending upong numa being staged or not |
| 9 | |
| 10 | signed-off-by: Roy.Li <rongqing.li@windriver.com> |
| 11 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 12 | --- |
| 13 | m4/ltp-numa.m4 | 10 +++++++++- |
| 14 | 1 file changed, 9 insertions(+), 1 deletion(-) |
| 15 | |
| 16 | diff --git a/m4/ltp-numa.m4 b/m4/ltp-numa.m4 |
| 17 | index 60ae07b..ed7078d 100644 |
| 18 | --- a/m4/ltp-numa.m4 |
| 19 | +++ b/m4/ltp-numa.m4 |
| 20 | @@ -24,7 +24,13 @@ dnl ---------------------------- |
| 21 | dnl |
| 22 | AC_DEFUN([LTP_CHECK_SYSCALL_NUMA], |
| 23 | [dnl |
| 24 | -AC_CHECK_HEADERS([linux/mempolicy.h numa.h numaif.h],[ |
| 25 | +AC_MSG_CHECKING([for numa]) |
| 26 | +AC_ARG_WITH( |
| 27 | + [numa], |
| 28 | + AC_HELP_STRING([--without-numa], |
| 29 | + [without numa support]), |
| 30 | + [], |
| 31 | + [AC_CHECK_HEADERS([linux/mempolicy.h numa.h numaif.h],[ |
| 32 | LTP_SYSCALL_NUMA_HEADERS=yes |
| 33 | AC_CHECK_LIB(numa,numa_alloc_onnode,[have_numa_alloc_onnode="yes"]) |
| 34 | if test "x$have_numa_alloc_onnode" = "xyes"; then |
| 35 | @@ -48,3 +54,5 @@ if test "x$have_mpol_constants" = "xyes"; then |
| 36 | AC_DEFINE(HAVE_MPOL_CONSTANTS,1,[define to 1 if you have all constants required to use mbind tests]) |
| 37 | fi |
| 38 | )]) |
| 39 | +AC_MSG_RESULT([$with_numa]) |
| 40 | +]) |
| 41 | -- |
| 42 | 2.7.0 |
| 43 | |