allow people to control numa support
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
This commit is contained in:
parent
b344c71980
commit
c126cc6c45
|
@ -48,10 +48,18 @@ AC_PROG_CC
|
||||||
AC_PROG_INSTALL
|
AC_PROG_INSTALL
|
||||||
AC_PROG_AWK
|
AC_PROG_AWK
|
||||||
|
|
||||||
|
AC_ARG_ENABLE([numa],
|
||||||
|
AS_HELP_STRING([--disable-numa], [enable numa support (default is auto)]))
|
||||||
|
AS_IF([test "$enable_numa" = "no"],[
|
||||||
|
ac_cv_header_numa_h=no
|
||||||
|
ac_cv_lib_numa_numa_available=no
|
||||||
|
])
|
||||||
|
|
||||||
AC_MSG_NOTICE
|
AC_MSG_NOTICE
|
||||||
AC_MSG_NOTICE([echo Checking for header files])
|
AC_MSG_NOTICE([echo Checking for header files])
|
||||||
|
|
||||||
AC_HEADER_STDC
|
AC_HEADER_STDC
|
||||||
|
AC_CHECK_HEADERS([numa.h])
|
||||||
|
|
||||||
AC_CHECK_FUNCS(getopt_long)
|
AC_CHECK_FUNCS(getopt_long)
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,11 @@
|
||||||
#include <syslog.h>
|
#include <syslog.h>
|
||||||
|
|
||||||
#include "types.h"
|
#include "types.h"
|
||||||
|
#ifdef HAVE_NUMA_H
|
||||||
#include <numa.h>
|
#include <numa.h>
|
||||||
|
#else
|
||||||
|
#define numa_available() -1
|
||||||
|
#endif
|
||||||
|
|
||||||
extern int package_count;
|
extern int package_count;
|
||||||
extern int cache_domain_count;
|
extern int cache_domain_count;
|
||||||
|
|
Loading…
Reference in a new issue