From 9cd207ae59b5d5371d56b586ae422dc301bdb9e9 Mon Sep 17 00:00:00 2001 From: Alexia Ingerson Date: Fri, 15 Sep 2023 17:10:10 -0700 Subject: [PATCH] prov/shm: add more error output 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 --- prov/shm/configure.m4 | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/prov/shm/configure.m4 b/prov/shm/configure.m4 index 5c66ebfdf0c..37116df8227 100644 --- a/prov/shm/configure.m4 +++ b/prov/shm/configure.m4 @@ -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)