Fixed some papi location finding issues.
This commit is contained in:
parent
6992abf9a2
commit
a08f7250c1
1 changed files with 3 additions and 2 deletions
|
@ -45,10 +45,11 @@ case $PLATFORM in
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|
||||||
# use PAPI
|
|
||||||
if [ $enable_papi != 0 ] ; then
|
if [ $enable_papi != 0 ] ; then
|
||||||
PAPI_DIR=$(dirname $(dirname $(which papi_avail)))
|
PAPI_DIR=${PAPI_DIR:=$(dirname $(dirname $(which papi_avail)))}
|
||||||
CONFIGURE_OPTS="$CONFIGURE_OPTS --with-papi=$PAPI_DIR"
|
CONFIGURE_OPTS="$CONFIGURE_OPTS --with-papi=$PAPI_DIR"
|
||||||
|
CONFIGURE_OPTS="$CONFIGURE_OPTS --with-papi-headers=${PAPI_INC_DIR:=$PAPI_DIR/include}"
|
||||||
|
CONFIGURE_OPTS="$CONFIGURE_OPTS --with-papi-libs=${PAPI_LIB_DIR:=$PAPI_DIR/lib}"
|
||||||
else
|
else
|
||||||
CONFIGURE_OPTS="$CONFIGURE_OPTS --without-papi"
|
CONFIGURE_OPTS="$CONFIGURE_OPTS --without-papi"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue