|
1 | 1 | # -*- shell-script -*-
|
2 | 2 | #
|
3 | 3 | # Copyright (c) 2009-2016 Cisco Systems, Inc. All rights reserved.
|
4 |
| -# Copyright (c) 2014 Research Organization for Information Science |
| 4 | +# Copyright (c) 2014-2016 Research Organization for Information Science |
5 | 5 | # and Technology (RIST). All rights reserved.
|
6 | 6 | #
|
7 | 7 | # $COPYRIGHT$
|
@@ -61,12 +61,17 @@ AC_DEFUN([MCA_opal_hwloc_external_POST_CONFIG],[
|
61 | 61 | # OPAL_HWLOC_WANT_VERBS_HELPER is set, that file will
|
62 | 62 | # include the external hwloc/openfabrics-verbs.h file (via
|
63 | 63 | # the MCA_hwloc_external_openfabrics_helper define).
|
| 64 | + AS_IF([test "$opal_hwloc_dir" != ""], |
| 65 | + [opal_hwloc_include="$opal_hwloc_dir/include/hwloc.h" |
| 66 | + opal_hwloc_openfabrics_include="$opal_hwloc_dir/include/hwloc/hwloc/openfabrics-verbs.h"], |
| 67 | + [opal_hwloc_include="hwloc.h" |
| 68 | + opal_hwloc_openfabrics_include="hwloc/openfabrics-verbs.h"]) |
64 | 69 | AC_DEFINE_UNQUOTED(MCA_hwloc_external_header,
|
65 |
| - ["$opal_hwloc_dir/include/hwloc.h"], |
| 70 | + ["$opal_hwloc_include"], |
66 | 71 | [Location of external hwloc header])
|
67 | 72 | AC_DEFINE_UNQUOTED(MCA_hwloc_external_openfabrics_header,
|
68 |
| - ["$opal_hwloc_dir/include/hwloc/openfabrics-verbs.h"], |
69 |
| - [Location of external hwloc header]) |
| 73 | + ["$opal_hwloc_openfabrics_include"], |
| 74 | + [Location of external hwloc openfabrics header]) |
70 | 75 | ])
|
71 | 76 | OPAL_VAR_SCOPE_POP
|
72 | 77 | ])dnl
|
|
0 commit comments