check existence of ga-config

This commit is contained in:
edoapra 2025-05-15 12:32:06 -07:00
parent 41496ee83b
commit fd2f4ce952
No known key found for this signature in database
GPG key ID: 9E6A0B70826967BA

View file

@ -3760,13 +3760,14 @@ endif
# lower level libs used by communication libraries
#case guard against case when tools have not been compiled yet
# ifeq ("$(wildcard ${GA_PATH}/bin/ga-config)","")
# else
ifeq ("$(wildcard ${GA_PATH}/bin/ga-config)","")
else
COMM_LIBS := $(shell ${GA_PATH}/bin/ga-config --network_ldflags)
COMM_LIBS := $(COMM_LIBS) $(shell ${GA_PATH}/bin/ga-config --network_libs)
#comex bit
#COMM_LIBS += $(shell [ -e ${NWCHEM_TOP}/src/tools/build/comex/config.h ] && grep LIBS\ = ${NWCHEM_TOP}/src/tools/build/comex/Makefile|grep -v _LIBS| cut -b 8-) -lpthread
COMM_LIBS := $(COMM_LIBS) $(shell [ -e ${GA_PATH}/bin/comex-config ] && ${GA_PATH}/bin/comex-config --libs) -lpthread
endif
ifdef COMM_LIBS
CORE_LIBS += $(COMM_LIBS)
endif