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
0ab6d927
Commit
0ab6d927
authored
12 years ago
by
Jorrit Fahlke
Browse files
Options
Downloads
Patches
Plain Diff
[DUNE_ADD_ALL_PKG] Document usage better, and correctly use it in hdf5.m4.
[[Imported from SVN: r6953]]
parent
0d3dbf93
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
m4/dune.m4
+3
-1
3 additions, 1 deletion
m4/dune.m4
m4/dune_mpi.m4
+2
-0
2 additions, 0 deletions
m4/dune_mpi.m4
m4/hdf5.m4
+12
-3
12 additions, 3 deletions
m4/hdf5.m4
with
17 additions
and
4 deletions
m4/dune.m4
+
3
−
1
View file @
0ab6d927
...
...
@@ -58,7 +58,9 @@ AS_VAR_SET([$1], ["$_dune_va_tmp"$2])])
# LIBS The libraries to add.
#
# All arguments allow shell substitutions. Each argument should be suitable
# for use inside shell double quotes.
# for use inside shell double quotes. The flags given as argument here should
# not include the flags of dependend libraries that already call
# DUNE_ADD_ALL_PKG themselves; e.g. HDF5 should not add the DUNEMPI* flags.
#
# configure/shell variables:
# ALL_PKG_CPPFLAGS
...
...
This diff is collapsed.
Click to expand it.
m4/dune_mpi.m4
+
2
−
0
View file @
0ab6d927
...
...
@@ -204,6 +204,8 @@ AC_DEFUN([DUNE_MPI],[
AC_SUBST(DUNEMPILIBS)
AC_SUBST(MPI_VERSION, $dune_MPI_VERSION)
# NOTE: If you intent to copy-n-paste this line, try to avoid including any
# flags of dependent libraries that call DUNE_ADD_ALL_PKG themselves.
DUNE_ADD_ALL_PKG([MPI], [\${DUNEMPICPPFLAGS}], [\${DUNEMPILDFLAGS}], [\${DUNEMPILIBS}])
AM_CONDITIONAL(MPI, [test "x$with_mpi" != "xno"])
...
...
This diff is collapsed.
Click to expand it.
m4/hdf5.m4
+
12
−
3
View file @
0ab6d927
...
...
@@ -65,8 +65,11 @@ AC_DEFUN([DUNE_PATH_HDF5],[
CPPFLAGS="$CPPFLAGS $_dune_hdf5_incpath"
nodep_HDF5_CPPFLAGS="$_dune_hdf5_incpath"
HDF5_CPPFLAGS="$_dune_hdf5_incpath"
nodep_HDF5_LDFLAGS=""
HDF5_LDFLAGS=""
nodep_HDF5_LIBS=""
HDF5_LIBS=""
HDF5_PARALLEL=0
# test if we are parallel
...
...
@@ -89,7 +92,10 @@ AC_DEFUN([DUNE_PATH_HDF5],[
# test for lib
if test x$HAVE_HDF5 = x1 ; then
AC_CHECK_LIB([hdf5], [H5open],
[HDF5_LIBS="$_dune_hdf5_libpath -lhdf5 $with_hdf5_libs $HDF5_LIBS"],
[
nodep_HDF5_LIBS="$_dune_hdf5_libpath -lhdf5 $with_hdf5_libs $nodep_HDF5_LIBS"
HDF5_LIBS="$_dune_hdf5_libpath -lhdf5 $with_hdf5_libs $HDF5_LIBS"
],
[HAVE_HDF5=0], ["$with_hdf5_libs"])
fi
...
...
@@ -107,8 +113,11 @@ AC_DEFUN([DUNE_PATH_HDF5],[
fi
else
# clear variables
nodep_HDF5_CPPFLAGS=
HDF5_CPPFLAGS=
nodep_HDF5_LDFLAGS=
HDF5_LDFLAGS=
nodep_HDF5_LIBS=
HDF5_LIBS=
HDF5_PARALLEL=0
fi
...
...
@@ -121,8 +130,8 @@ AC_DEFUN([DUNE_PATH_HDF5],[
AM_CONDITIONAL(HDF5, test x$HAVE_HDF5 = x1)
# add to global list
DUNE_ADD_ALL_PKG([HDF5], [
\${
HDF5_CPPFLAGS
}
],
[
\${
HDF5_LDFLAGS
}
], [
\${
HDF5_LIBS
}
])
DUNE_ADD_ALL_PKG([HDF5], [
$nodep_
HDF5_CPPFLAGS],
[
$nodep_
HDF5_LDFLAGS], [
$nodep_
HDF5_LIBS])
# reset values
LIBS="$ac_save_LIBS"
...
...
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