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
92b127d0
Commit
92b127d0
authored
15 years ago
by
Jorrit Fahlke
Browse files
Options
Downloads
Patches
Plain Diff
Move the AC_SUBST of the DUNE_* family of variables from DUNE_CHECK_MODULES to DUNE_CHECK_ALL
[[Imported from SVN: r5838]]
parent
074e835d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
m4/dune.m4
+14
-18
14 additions, 18 deletions
m4/dune.m4
m4/dune_all.m4
+10
-4
10 additions, 4 deletions
m4/dune_all.m4
with
24 additions
and
22 deletions
m4/dune.m4
+
14
−
18
View file @
92b127d0
...
...
@@ -240,31 +240,23 @@ AC_DEFUN([DUNE_PARSE_MODULE_VERSION],[
# --with-{NAME}
#
# configure/shell variables:
# {MODULE}_CPPFLAGS
# {MODULE}_ROOT
# {MODULE}_LDFLAGS
# {MODULE}_LIBS
# HAVE_{MODULE} (1 or 0)
# with_{module} ("yes" or "no")
# DUNE_CPPFLAGS (adds the modules values here
)
#
DUNE_LDFLAGS (adds the modules values here
)
#
DUNE
_LIBS (adds the modules values
here)
#
DUNE_PKG_CPPFLAGS (deprecated, adds the modules values here
)
# DUNE_PKG_
LDFLAG
S (deprecated, adds the
modules values here)
#
DUNE_PKG_LIBS (deprecated, adds the
modules values here)
# DUNE_CPPFLAGS
, DUNE_LDFLAGS, DUNE_LIBS
(adds the modules values here
,
#
substitution done by DUNE_CHECK_ALL
)
#
ALL_PKG_CPPFLAGS, ALL_PKG_LDFLAGS, ALL_PKG
_LIBS (adds the modules values
#
here, substitution done by DUNE_CHECK_ALL
)
# DUNE_PKG_
CPPFLAGS, DUNE_PKG_LDFLAGS, DUNE_PKG_LIB
S (deprecated, adds the
#
modules values here)
# {MODULE}_VERSION
# {MODULE}_VERSION_MAJOR
# {MODULE}_VERSION_MINOR
# {MODULE}_VERSION_REVISION
#
# configure substitutions/makefile variables:
# {MODULE}_CPPFLAGS
# {MODULE}_LDFLAGS
# {MODULE}_LIBS
# {MODULE}_CPPFLAGS, {MODULE}_LDFLAGS, {MODULE}_LIBS
# {MODULE}_ROOT
# DUNE_CPPFLAGS
# DUNE_LDFLAGS
# DUNE_LIBS
#
# preprocessor defines:
# HAVE_{MODULE} (1 or undefined)
...
...
@@ -435,8 +427,11 @@ AC_DEFUN([DUNE_CHECK_MODULES],[
# did we succeed?
AS_IF([test "x$HAVE_[]_DUNE_MODULE" = "x1"],[
# add the module's own flags and libs to the modules and the global
# variables
DUNE_ADD_MODULE_DEPS(m4_defn([_dune_name]), m4_defn([_dune_name]),
[$_dune_cm_CPPFLAGS], [$_dune_cm_LDFLAGS], [$_dune_cm_LIBS])
# set variables for our modules
AC_SUBST(_DUNE_MODULE[]_CPPFLAGS, "$_DUNE_MODULE[]_CPPFLAGS")
AC_SUBST(_DUNE_MODULE[]_LDFLAGS, "$_DUNE_MODULE[]_LDFLAGS")
...
...
@@ -447,9 +442,10 @@ AC_DEFUN([DUNE_CHECK_MODULES],[
DUNE_PARSE_MODULE_VERSION(_dune_name, $_DUNE_MODULE[]_VERSION)
# set DUNE_* variables
AC_SUBST(DUNE_CPPFLAGS, "$DUNE_CPPFLAGS")
AC_SUBST(DUNE_LDFLAGS, "$DUNE_LDFLAGS $_DUNE_MODULE[]_LDFLAGS")
AC_SUBST(DUNE_LIBS, "$DUNE_LIBS $_DUNE_MODULE[]_LIBS")
# This should actually be unneccesary, but I'm keeping it in here for now
# for backward compatibility
DUNE_LDFLAGS="$DUNE_LDFLAGS $_DUNE_MODULE[]_LDFLAGS"
DUNE_LIBS="$_DUNE_MODULE[]_LIBS $DUNE_LIBS"
# add to global list
# only add my flags other flags are added by other packages
...
...
This diff is collapsed.
Click to expand it.
m4/dune_all.m4
+
10
−
4
View file @
92b127d0
## -*- autoconf -*-
# $Id$
# this meta-check calls everything needed for Dune to work and all
...
...
@@ -38,11 +39,16 @@ dnl do not use LT_INIT since we want to be compatible with libtool 1.5
AC_REQUIRE([DUNE_CHECK_MOD_DEPENDENCIES])
# convenience-variables if every found package should be used
AC_SUBST(ALL_PKG_LIBS, "$LIBS $DUNE_PKG_LIBS")
AC_SUBST(ALL_PKG_LDFLAGS, "$LDFLAGS $DUNE_PKG_LDFLAGS")
AC_SUBST(ALL_PKG_CPPFLAGS, "$CPPFLAGS $DUNE_PKG_CPPFLAGS")
AC_SUBST([ALL_PKG_LIBS], "$LIBS $DUNE_PKG_LIBS")
AC_SUBST([ALL_PKG_LDFLAGS], "$LDFLAGS $DUNE_PKG_LDFLAGS")
AC_SUBST([ALL_PKG_CPPFLAGS], "$CPPFLAGS $DUNE_PKG_CPPFLAGS")
# convenience variables for all basic dune packages without extras
AC_SUBST([DUNE_CPPFLAGS])
AC_SUBST([DUNE_LDFLAGS])
AC_SUBST([DUNE_LIBS])
AC_SUBST(ACLOCAL_AMFLAGS, "$ACLOCAL_AMFLAGS")
AC_SUBST(
[
ACLOCAL_AMFLAGS
]
, "$ACLOCAL_AMFLAGS")
AC_SUBST([abs_top_srcdir])
AC_SUBST([abs_top_builddir])
...
...
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