Commit 7a5b5160 authored by Victor Lopez's avatar Victor Lopez

Fix hwloc flags when path is not specified

parent f17ae4a5
......@@ -55,16 +55,15 @@ AS_IF([test "x$with_hwloc" != xyes dnl
-o "x$with_hwloc" != xno dnl
-o "x$with_hwloc" != x dnl
hwlocinc="-I $with_hwloc/include"
AS_IF([test -d $with_hwloc/lib64],
[hwloclib="-L$with_hwloc/lib64 -Wl,-rpath,$with_hwloc/lib64"],
[hwloclib="-L$with_hwloc/lib -Wl,-rpath,$with_hwloc/lib"])dnl
AS_IF([test "x$with_hwloc_include" != x],[
hwlocinc="-isystem $with_hwloc_include"
AS_IF([test -d $with_hwloc/include], [
hwlocinc="-I $with_hwloc/include"
AS_IF([test -d $with_hwloc/lib64], [
hwloclib="-L$with_hwloc/lib64 -Wl,-rpath,$with_hwloc/lib64"
], [test -d $with_hwloc/lib], [
hwloclib="-L$with_hwloc/lib -Wl,-rpath,$with_hwloc/lib"
AS_IF([test "x$with_hwloc_lib" != x],[
......@@ -73,7 +72,7 @@ AS_IF([test "x$with_hwloc_lib" != x],[
# This condition is satisfied even if $with_hwloc="yes"
# This happens when user leaves --with-value alone
AS_IF([test "x$with_hwloc$with_hwloc_include$with_hwloc_lib" != x],[
AS_IF([test "x$with_hwloc$with_hwloc_lib" != x],[
#tests if provided headers and libraries are usable and correct
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment