Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-common
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Timo Koch
dune-common
Commits
2a338641
Commit
2a338641
authored
12 years ago
by
Martin Nolte
Browse files
Options
Downloads
Plain Diff
merge trunk
[[Imported from SVN: r6876]]
parents
8ac8ce41
2ff6263b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
m4/parmetis.m4
+11
-4
11 additions, 4 deletions
m4/parmetis.m4
with
11 additions
and
4 deletions
m4/parmetis.m4
+
11
−
4
View file @
2a338641
...
...
@@ -36,6 +36,7 @@ AC_DEFUN([DUNE_PATH_PARMETIS],[
fi
],
[
echo with_parmetis1=$withparmetis PARMETIS=$PARMETIS
if test -n "$PARMETIS" ; then
if test -d "$PARMETIS" ; then
# get absolute path
...
...
@@ -71,14 +72,20 @@ AC_DEFUN([DUNE_PATH_PARMETIS],[
[AC_HELP_STRING([--with-metis-lib], [name of the metis libraries (default is metis)])],
,[with_metis_lib=metis])
echo with_parmetis=$with_parmetis
# store old values
ac_save_LDFLAGS="$LDFLAGS"
ac_save_CPPFLAGS="$CPPFLAGS"
ac_save_LIBS="$LIBS"
# call IMDX_LIB_METIS directly and not via AC_REQUIRE
# because AC_REQUIRE support not allow parameters
# without any parameters a missing METIS would halt configure
IMMDX_LIB_METIS(,[true])
## do nothing if --without-parmetis is used
if test x"$with_mpi" != x"no" && test x"$with_parmetis" != x"no" ; then
# defaultpath
PARMETIS_LIB_PATH="$with_parmetis/$lib_path"
PARMETIS_INCLUDE_PATH="$with_parmetis/$include_path"
...
...
@@ -87,11 +94,11 @@ AC_DEFUN([DUNE_PATH_PARMETIS],[
PARMETIS_LDFLAGS="$DUNEMPILDFLAGS"
# set variables so that tests can use them
CPPFLAGS="$CPPFLAGS -I$PARMETIS_INCLUDE_PATH $DUNEMPICPPFLAGS"
CPPFLAGS="$CPPFLAGS -I$PARMETIS_INCLUDE_PATH
$METIS_INCLUDE
$DUNEMPICPPFLAGS"
# check for central header
AC_CHECK_HEADER([parmetis.h],[
PARMETIS_CPPFLAGS="-I$PARMETIS_INCLUDE_PATH"
PARMETIS_CPPFLAGS="-I$PARMETIS_INCLUDE_PATH
$METIS_INCLUDE
"
HAVE_PARMETIS="1"],[
HAVE_PARMETIS="0"
AC_MSG_WARN([parmetis.h not found in $PARMETIS_INCLUDE_PATH with $CPPFLAGS])]
...
...
@@ -108,7 +115,7 @@ AC_DEFUN([DUNE_PATH_PARMETIS],[
if test x$HAVE_PARMETIS = x1 ; then
DUNE_CHECK_LIB_EXT([$PARMETIS_LIB_PATH], [$with_metis_lib], [metis_partgraphkway],
[
PARMETIS_LIBS="-L$PARMETIS_LIB_PATH -l$with_metis_lib $DUNEMPILIBS -lm"
PARMETIS_LIBS="-L$PARMETIS_LIB_PATH -l$with_metis_lib
$METIS_LDFLAGS
$DUNEMPILIBS -lm"
LIBS="$PARMETIS_LIBS $ac_save_LIBS"
],[
HAVE_PARMETIS="0"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment