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
Core Modules
dune-common
Commits
4c3cd5a6
Commit
4c3cd5a6
authored
17 years ago
by
Christian Engwer
Browse files
Options
Downloads
Patches
Plain Diff
add DUNE_<PACKAGE>_VERSION to config.h
[[Imported from SVN: r5085]]
parent
9e026baa
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/dune.m4
+4
-0
4 additions, 0 deletions
m4/dune.m4
with
4 additions
and
0 deletions
m4/dune.m4
+
4
−
0
View file @
4c3cd5a6
...
...
@@ -80,6 +80,7 @@ AC_DEFUN([DUNE_CHECK_MODULES],[
if
AC_RUN_LOG
([
$PKG_CONFIG
--exists
--print-errors
"
$1
"
])
;
then
_DUNE_MODULE[]_CPPFLAGS
=
"
`
$PKG_CONFIG
--cflags
_dune_name
`
"
2>/dev/null
_DUNE_MODULE[]_ROOT
=
"
`
$PKG_CONFIG
--variable
=
prefix _dune_name
`
"
2>/dev/null
_DUNE_MODULE[]_VERSION
=
"
`
$PKG_CONFIG
--modversion
_dune_name
`
"
2>/dev/null
ifelse
(
_dune_symbol,,,[
_DUNE_MODULE[]_LDFLAGS
=
"-L
`
$PKG_CONFIG
--variable
=
libdir _dune_name
`
"
2>/dev/null
_DUNE_MODULE[]_LIBS
=
"-l[]_dune_lib"
...
...
@@ -103,8 +104,10 @@ AC_DEFUN([DUNE_CHECK_MODULES],[
# Dune was installed into directory given by with-dunecommon
dune_is_installed
=
1
_DUNE_MODULE[]_CPPFLAGS
=
"-I
$_DUNE_MODULE
[]_ROOT/include"
_DUNE_MODULE[]_VERSION
=
"
`
PKG_CONFIG_PATH
=
$PKG_CONFIG_PATH
:
$_DUNE_MODULE
[]
_ROOT/lib/pkgconfig
$PKG_CONFIG
--modversion
_dune_name
`
"
2>/dev/null
else
_DUNE_MODULE[]_CPPFLAGS
=
"-I
$_DUNE_MODULE
[]_ROOT"
_DUNE_MODULE[]_VERSION
=
"
`
PKG_CONFIG_PATH
=
$PKG_CONFIG_PATH
:
$_DUNE_MODULE
[]
_ROOT
$PKG_CONFIG
--modversion
_dune_name
`
"
2>/dev/null
fi
ifelse
(
_dune_symbol,,,[
_DUNE_MODULE[]_LDFLAGS
=
"-L
$_DUNE_MODULE
[]_ROOT/lib"
...
...
@@ -185,6 +188,7 @@ AC_DEFUN([DUNE_CHECK_MODULES],[
AC_SUBST
(
_DUNE_MODULE[]_LIBS,
"
$_DUNE_MODULE
[]_LIBS"
)
AC_SUBST
(
_DUNE_MODULE[]_ROOT,
"
$_DUNE_MODULE
[]_ROOT"
)
AC_DEFINE
(
HAVE_[]_DUNE_MODULE, 1,
[
Define to 1
if
_dune_module was found]
)
AC_DEFINE_UNQUOTED
(
_DUNE_MODULE[]_VERSION,
"
$_DUNE_MODULE
[]_VERSION"
,
[
Define to the version of _dune_module.]
)
# set DUNE_* variables
AC_SUBST
(
DUNE_CPPFLAGS,
"
$DUNE_CPPFLAGS
"
)
...
...
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