Skip to content
Snippets Groups Projects
Commit ee1c3c12 authored by Christian Engwer's avatar Christian Engwer
Browse files

[m4] change metis check such that it also support libscotchmetis

we now check for METIS_PartGraphKway, which a symbol we are actually using and which
is in the implementation of scotch (see FS#1370)
parent 1392172e
Branches
Tags
No related merge requests found
......@@ -48,7 +48,7 @@ AC_DEFUN([IMMDX_LIB_METIS], [
else
with_metis=/usr
if test ! -f "$with_metis/include/metis.h" ; then
if test ! -f "$with_metis/include/metis/metis.h" ; then
if test ! -f "$with_metis/include/metis/metis.h" ; then
with_metis=/usr/local
if test ! -f "$with_metis/include/metis.h" ; then
with_metis=""
......@@ -56,7 +56,7 @@ AC_DEFUN([IMMDX_LIB_METIS], [
else
AC_MSG_RESULT(yes)
fi
fi
fi
AC_MSG_RESULT(yes)
else
AC_MSG_RESULT(yes)
......@@ -91,9 +91,9 @@ AC_DEFUN([IMMDX_LIB_METIS], [
AC_LANG_SAVE
AC_LANG_C
AC_CHECK_LIB(metis, METIS_PartMeshDual,
AC_CHECK_LIB(metis, METIS_PartGraphKway,
[metis_lib=yes], [metis_lib=no], [-lm])
AC_CHECK_HEADER(metis.h, [metis_h=yes],
[metis_h=no], [/* check */])
......@@ -117,7 +117,7 @@ AC_DEFUN([IMMDX_LIB_METIS], [
#
#
#
# tell automake
AM_CONDITIONAL(METIS, test x$METIS_LIB = x1)
if test x = x"$METIS_LIB" ; then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment