@@ -150,22 +150,22 @@ AC_DEFUN([MCA_opal_hwloc_external_CONFIG],[
150
150
151
151
# If external hwloc is not explicitly requested, check external version
152
152
# is not lower than the internal one
153
- AS_IF([test " $opal_hwloc_external_support " = " yes" &&
154
- test -z " $with_hwloc " ],
155
- [AC_MSG_CHECKING([if external hwloc version is 2.0 or greater])
156
- AC_COMPILE_IFELSE(
157
- [AC_LANG_PROGRAM([[# include <hwloc.h>]],
158
- [[
153
+ AS_IF([test " $opal_hwloc_external_support " = " yes" ],
154
+ [AS_IF([ test -z " $with_hwloc " || test " $with_hwloc " = " yes " ],
155
+ [AC_MSG_CHECKING([if external hwloc version is 2.0 or greater])
156
+ AC_COMPILE_IFELSE(
157
+ [AC_LANG_PROGRAM([[# include <hwloc.h>]],
158
+ [[
159
159
# if HWLOC_API_VERSION < 0x00020000
160
160
# error "hwloc API version is less than 0x00020000"
161
161
# endif
162
- ]])],
163
- [AC_MSG_RESULT([yes])],
164
- [AC_MSG_RESULT([no])
165
- opal_hwloc_summary_msg= " internal (external hlwoc version is less than internal version 2.0)"
166
- AC_MSG_WARN([external hwloc version is less than internal version 2.0])
167
- AC_MSG_WARN([using internal hwloc])
168
- opal_hwloc_external_support= no])])
162
+ ]])],
163
+ [AC_MSG_RESULT([yes])],
164
+ [AC_MSG_RESULT([no])
165
+ opal_hwloc_summary_msg= " internal (external hlwoc version is less than internal version 2.0)"
166
+ AC_MSG_WARN([external hwloc version is less than internal version 2.0])
167
+ AC_MSG_WARN([using internal hwloc])
168
+ opal_hwloc_external_support= no]) ])])
169
169
170
170
AS_IF([test " $opal_hwloc_external_support " = " yes" ],
171
171
[AC_DEFINE_UNQUOTED([HWLOC_EXTERNAL_HWLOC_VERSION],
0 commit comments