hello, I'm trying to add a module into open-mpi MCA framework. I hope the module could be conditionally compiled and linked. It should be disabled by default and enabled by certain flags at configure step.
When I make a dynamic module, everything is working fine. The problem is that when I make a static compilation/link, the compiler would complain the component variable is not defined. In my build log, I found something as following, 1414 --- MCA component btl:mx (m4 configuration macro) 1415 checking for MCA component btl:mx compile mode... static 1416 checking --with-mx value... simple ok (unspecified) 1417 checking --with-mx-libdir value... simple ok (unspecified) 1418 checking myriexpress.h usability... no 1419 checking myriexpress.h presence... no 1420 checking for myriexpress.h... no 1421 checking if MCA component btl:mx can compile... no Correspondingly the ompi/mca/btl/base/static-components.h had no declaration of extern mca_btl_mx_component variable. I think this is the behavior I expect for my module. I checked the Makefile.am files but found nothing special. I'm not familiar with those autotools, can anyone give me some detailed guidance on what I should do? Thanks in advance. -- Bin WANG