diff options
author | Ben Gamari <ben@well-typed.com> | 2019-11-21 15:29:51 -0500 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2019-11-24 14:33:54 -0500 |
commit | b694b5662f8c9915b1a9d072cd530cd29124194a (patch) | |
tree | 89ba738ab4327de7ca49c9784a5465ff5be86b8c /configure.ac | |
parent | 6008206a9e050ed0e3db1f09e0b2a641420d4ffd (diff) | |
download | haskell-b694b5662f8c9915b1a9d072cd530cd29124194a.tar.gz |
configure: Fix HAVE_C11_ATOMICS macro
Previously we were using AC_DEFINE instead of
AC_DEFINE_UNQUOTED, resulted in the variable not being
interpolated.
Fixes #17505.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 59541f002f..0cd99fa3e5 100644 --- a/configure.ac +++ b/configure.ac @@ -715,7 +715,9 @@ FP_GCC_SUPPORTS_NO_PIE dnl ** Used to determine how to compile ghc-prim's atomics.c, used by dnl unregisterised, Sparc, and PPC backends. FP_GCC_SUPPORTS__ATOMICS -AC_DEFINE([HAVE_C11_ATOMICS], [$CONF_GCC_SUPPORTS__ATOMICS], [Does GCC support __atomic primitives?]) +if test $CONF_GCC_SUPPORTS__ATOMICS = YES ; then + AC_DEFINE([HAVE_C11_ATOMICS], [1], [Does GCC support __atomic primitives?]) +fi FP_GCC_EXTRA_FLAGS |