[commit: ghc] master: configure: Fix libnuma detection logic (942e6c9)

git at git.haskell.org git at git.haskell.org
Wed Jun 20 15:51:59 UTC 2018


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/942e6c9ecaf12d2834ca5352c6f51e8419efc57c/ghc

>---------------------------------------------------------------

commit 942e6c9ecaf12d2834ca5352c6f51e8419efc57c
Author: Ben Gamari <bgamari.foss at gmail.com>
Date:   Tue Jun 19 23:16:26 2018 -0400

    configure: Fix libnuma detection logic
    
    Test Plan: Validate with numa support
    
    Subscribers: rwbarton, thomie, erikd, carter
    
    Differential Revision: https://phabricator.haskell.org/D4869


>---------------------------------------------------------------

942e6c9ecaf12d2834ca5352c6f51e8419efc57c
 configure.ac | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index 622ec96..1f98407 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1263,7 +1263,7 @@ if test "$ac_cv_header_numa_h$ac_cv_header_numaif_h" = "yesyes" ; then
     AC_CHECK_LIB(numa, numa_available,HaveLibNuma=1)
 fi
 AC_DEFINE_UNQUOTED([HAVE_LIBNUMA], [$HaveLibNuma], [Define to 1 if you have libnuma])
-if test $HaveLibNuma = "YES" ; then
+if test $HaveLibNuma = "1" ; then
   AC_SUBST([CabalHaveLibNuma],[True])
 else
   AC_SUBST([CabalHaveLibNuma],[False])



More information about the ghc-commits mailing list