Skip to content
Snippets Groups Projects
Commit db805a5b authored by Utz-Uwe Haus's avatar Utz-Uwe Haus
Browse files

Add pkg-config check for libfabric (needed on Cray Shasta)

parent 82834e80
No related branches found
No related tags found
No related merge requests found
...@@ -450,6 +450,17 @@ AS_IF([test "x$enable_ofi_pool_manager" = "xyes"], [ ...@@ -450,6 +450,17 @@ AS_IF([test "x$enable_ofi_pool_manager" = "xyes"], [
SAVED_LDFLAGS="$LDFLAGS" SAVED_LDFLAGS="$LDFLAGS"
SAVED_LIBS="$LIBS" SAVED_LIBS="$LIBS"
dnl If libfabric is installed in a nonstandard place but can be found by pkg-config, add whatever that tells us before trying to find it
dnl (notable example: Cray Shasta systems)
if pkg-config libfabric; then
AC_MSG_NOTICE([found libfabric via pkg-config])
CPPFLAGS="`pkg-config --cflags libfabric` $CFLAGS"
LDFLAGS=" `pkg-config --libs-only-L libfabric` $LDFLAGS"
LIBS=" `pkg-config --libs-only-l libfabric` $LIBS"
else
AC_MSG_NOTICE([pkg-config does not know about a libfabric installation, fine])
fi
AX_USE_LIBRARY([fabric]) AX_USE_LIBRARY([fabric])
dnl Sanity check for libfabric library dnl Sanity check for libfabric library
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment