@@ -242,7 +242,7 @@ AC_DEFUN([OPAL_CHECK_PMIX],[
242242 AC_MSG_WARN ( [ an external copy that you supply.] )
243243 AC_MSG_ERROR ( [ Cannot continue] ) ] )
244244
245- AC_MSG_CHECKING ( [ if user requested PMIx support($with_pmix)] )
245+ AC_MSG_CHECKING ( [ if user requested external PMIx support($with_pmix)] )
246246 AS_IF ( [ test -z "$with_pmix" || test "$with_pmix" = "yes" || test "$with_pmix" = "internal"] ,
247247 [ AC_MSG_RESULT ( [ no] )
248248 opal_external_pmix_happy="no"] ,
@@ -251,7 +251,20 @@ AC_DEFUN([OPAL_CHECK_PMIX],[
251251 AS_IF ( [ test "$with_pmix" = "external"] ,
252252 [ pmix_ext_install_dir=/usr] ,
253253 [ pmix_ext_install_dir=$with_pmix] )
254- OPAL_CHECK_PACKAGE([ opal_pmix_ext] , [ pmix.h] , [ pmix] , [ PMIx_Init] , [ ] , [ $pmix_ext_install_dir] , [ ] , [ opal_external_pmix_happy=yes] , [ ] )
254+ AC_MSG_CHECKING ( [ if external component can be used] )
255+ OPAL_CHECK_PACKAGE([ opal_pmix_ext] ,
256+ [ pmix.h] ,
257+ [ pmix] ,
258+ [ PMIx_Init] ,
259+ [ ] ,
260+ [ $pmix_ext_install_dir] ,
261+ [ ] ,
262+ [ AC_MSG_RESULT ( [ PMIx external support will be built] )
263+ opal_external_pmix_happy=yes] ,
264+ [ AC_MSG_RESULT ( [ no] )
265+ AC_MSG_WARN ( [ External PMIx support was requested but failed] )
266+ AC_MSG_WARN ( [ as explained above.] )
267+ AC_MSG_ERROR ( [ Cannot continue] ) ] )
255268 ] )
256269 AC_SUBST ( opal_pmix_ext_CPPFLAGS )
257270 AC_SUBST ( opal_pmix_ext_LDFLAGS )
0 commit comments