Skip to content

Commit

Permalink
prov/shm: add more error output
Browse files Browse the repository at this point in the history
When the shm provider fails to configure, there is no helpful output to let the user
know what check failed. This adds some helpful messages.

Signed-off-by: Alexia Ingerson <[email protected]>
  • Loading branch information
aingerson committed Sep 16, 2023
1 parent e8644d1 commit 9cd207a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions prov/shm/configure.m4
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,13 @@ AC_DEFUN([FI_SHM_CONFIGURE],[
[AC_CHECK_DECL([HAVE_BUILTIN_MM_ATOMICS],
[atomics_happy=1])])
AS_IF([test $shm_happy -eq 0],
[AC_MSG_NOTICE([No shm_open support found, required for shm provider])])
AS_IF([test $cma_happy -eq 0],
[AC_MSG_NOTICE([No CMA support found, required for shm provider])])
AS_IF([test $atomics_happy -eq 0],
[AC_MSG_NOTICE([No atomics support found, required for shm provider])])
AC_SUBST(shm_CPPFLAGS)
AC_SUBST(shm_LDFLAGS)
AC_SUBST(shm_LIBS)
Expand Down

0 comments on commit 9cd207a

Please sign in to comment.