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
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
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
Tobias Leibner
dune-common
Commits
707ff6c4
Commit
707ff6c4
authored
13 years ago
by
Markus Blatt
Browse files
Options
Downloads
Patches
Plain Diff
make lib names adjustable for parmetis (use --with-metis-lib=<name> and --with-parmetis-lib=<name>)
[[Imported from SVN: r6575]]
parent
109c0cb0
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
+14
-7
14 additions, 7 deletions
m4/parmetis.m4
with
14 additions
and
7 deletions
m4/parmetis.m4
+
14
−
7
View file @
707ff6c4
...
...
@@ -60,7 +60,14 @@ AC_DEFUN([DUNE_PATH_PARMETIS],[
fi
fi
])
AC_ARG_WITH([libparmetis_name],
[AC_HELP_STRING([--with-parmetis-lib], [name of the parmetis libraries (default is parmetis)])],
,,
[with_parmetis_lib="parmetis"])
AC_ARG_WITH([libmetis_name],
[AC_HELP_STRING([--with-metis-lib], [name of the metis libraries (default is metis)])],
,,
[with_parmetis_lib="metis"])
# store old values
ac_save_LDFLAGS="$LDFLAGS"
...
...
@@ -72,9 +79,9 @@ AC_DEFUN([DUNE_PATH_PARMETIS],[
# defaultpath
PARMETIS_LIB_PATH="$with_parmetis$lib_path"
PARMETIS_INCLUDE_PATH="$with_parmetis$
lib
_path"
PARMETIS_INCLUDE_PATH="$with_parmetis$
include
_path"
PARMETIS_LIBS="-L$PARMETIS_LIB_PATH -lmetis $DUNEMPILIBS -lm"
PARMETIS_LIBS="-L$PARMETIS_LIB_PATH -l
$with_
metis
_lib
$DUNEMPILIBS -lm"
PARMETIS_LDFLAGS="$DUNEMPILDFLAGS"
# set variables so that tests can use them
...
...
@@ -97,9 +104,9 @@ AC_DEFUN([DUNE_PATH_PARMETIS],[
LIBS="$DUNEMPILIBS -lm $LIBS"
if test x$HAVE_PARMETIS = x1 ; then
DUNE_CHECK_LIB_EXT([$PARMETIS_LIB_PATH], [metis], [metis_partgraphkway],
DUNE_CHECK_LIB_EXT([$PARMETIS_LIB_PATH], [
$with_
metis
_lib
], [metis_partgraphkway],
[
PARMETIS_LIBS="-L$PARMETIS_LIB_PATH -lmetis $DUNEMPILIBS -lm"
PARMETIS_LIBS="-L$PARMETIS_LIB_PATH -l
$with_
metis
_lib
$DUNEMPILIBS -lm"
LIBS="$PARMETIS_LIBS $ac_save_LIBS"
],[
HAVE_PARMETIS="0"
...
...
@@ -108,9 +115,9 @@ AC_DEFUN([DUNE_PATH_PARMETIS],[
fi
if test x$HAVE_PARMETIS = x1 ; then
DUNE_CHECK_LIB_EXT([$PARMETIS_LIB_PATH], [parmetis], [parmetis_v3_partkway],
DUNE_CHECK_LIB_EXT([$PARMETIS_LIB_PATH], [
$with_
parmetis
_lib
], [parmetis_v3_partkway],
[
PARMETIS_LIBS="-L$PARMETIS_LIB_PATH -lparmetis
-lmetis $DUNEMPILIBS -lm
"
PARMETIS_LIBS="-L$PARMETIS_LIB_PATH -l
$with_
parmetis
_lib
"
],[
HAVE_PARMETIS="0"
AC_MSG_WARN(libparmetis not found!)
...
...
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