Skip to content

Commit

Permalink
prov/lpp: add check for atomics
Browse files Browse the repository at this point in the history
lpp includes stdatomic.h but does not include a check for it
in the configure so can cause a build to fail on a system without it

Signed-off-by: Alexia Ingerson <[email protected]>
  • Loading branch information
aingerson committed Dec 20, 2024
1 parent 482e474 commit fde8569
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions prov/lpp/configure.m4
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,11 @@ AC_DEFUN([FI_LPP_CONFIGURE],[
lpp_happy=0
have_lpp_thread_safe=1
AC_CHECK_DECL([HAVE_ATOMICS], [atomics_happy=1], [atomics_happy=0])
AS_IF([test "x$macos" = "x1"],[lpp_happy=0],
[test x$host_cpu != xx86_64],[lpp_happy=0],
[test x$atomics_happy == "x0"],[lpp_happy=0],
[test x"$enable_lpp" != x"no"],[
lpp_happy=1
AC_SUBST(lpp_INCLUDES)
Expand Down

0 comments on commit fde8569

Please sign in to comment.