Often the hwloc libraries are installed in /usr/lib64. However, several places in the configure script assumes it is installed in $HWLOC_DIR/lib. I suggest applying the attached patch to correct this.
Additionally, the script assumes $HWLOC_DIR/lib/libhwloc.la exists. This causes grep to print a confusing error if it does not exist. The second patch causes grep to only run if this file exists.