Commit 27b42f4f authored by Peter W. Draper's avatar Peter W. Draper
Browse files

ParMETIS libraries can include a local METIS copy, or reference an external METIS, handle this

parent ffc6461e
......@@ -440,17 +440,32 @@ if test "x$with_metis" != "xno"; then
# Check if we have ParMETIS.
if test "x$with_metis" != "xyes" -a "x$with_metis" != "x"; then
METIS_LIBS="-L$with_metis/lib -lparmetis -lmetis"
METIS_LIBS="-L$with_metis/lib -lparmetis"
METIS_INCS="-I$with_metis/include"
else
METIS_LIBS="-lparmetis -lmetis"
METIS_LIBS="-lparmetis"
METIS_INCS=""
fi
AC_CHECK_LIB([metis],[ParMETIS_V3_RefineKway], [have_parmetis="yes"],
[have_parmetis="no"], $METIS_LIBS)
if test "$have_parmetis" == "no"; then
# Check for serial METIS.
# A build may use an external METIS library, check for that.
if test "x$with_metis" != "xyes" -a "x$with_metis" != "x"; then
METIS_LIBS="-L$with_metis/lib -lparmetis -lmetis"
METIS_INCS="-I$with_metis/include"
else
METIS_LIBS="-lparmetis -lmetis"
METIS_INCS=""
fi
AC_CHECK_LIB([metis],[ParMETIS_V3_RefineKway], [have_parmetis="yes"],
[have_parmetis="no"], $METIS_LIBS)
fi
if test "$have_parmetis" == "no"; then
# Finally check for serial METIS.
if test "x$with_metis" != "xyes" -a "x$with_metis" != "x"; then
METIS_LIBS="-L$with_metis/lib -lmetis"
METIS_INCS="-I$with_metis/include"
......
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