File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 2121# support, otherwise executes action-if-not-found
2222AC_DEFUN([OMPI_CHECK_UCX],[
2323 if test -z " $ompi_check_ucx_happy " ; then
24- _x_ac_ucx_dirs=" /usr /usr/local /opt/ucx"
2524 AC_ARG_WITH([ucx],
2625 [AC_HELP_STRING([--with-ucx(=DIR)],
2726 [Build with Unified Communication X library support])])
@@ -33,7 +32,12 @@ AC_DEFUN([OMPI_CHECK_UCX],[
3332
3433 AS_IF([test " $with_ucx " != " no" ],
3534 [AS_IF([test ! -z " $with_ucx " && test " $with_ucx " != " yes" ],
36- [_x_ac_ucx_dirs= " $with_ucx " ])
35+ [_x_ac_ucx_dirs= " $with_ucx " ],
36+ [
37+ PKG_CHECK_MODULES_STATIC([ucx],[ucx],
38+ [_x_ac_ucx_dirs= ` $PKG_CONFIG --variable=prefix ucx` ],
39+ [_x_ac_ucx_dirs= " /usr /usr/local /opt/ucx" ])
40+ ])
3741 for ompi_check_ucx_dir in $_x_ac_ucx_dirs ; do
3842 AS_IF([test ! -z " $with_ucx_libdir " && test " $with_ucx_libdir " != " yes" ],
3943 [
You can’t perform that action at this time.
0 commit comments