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
Lasse Hinrichsen-Bischoff
dune-common
Commits
3f877775
Commit
3f877775
authored
18 years ago
by
Oliver Sander
Browse files
Options
Downloads
Patches
Plain Diff
bugfix: gm.h needs -D_2 to work
[[Imported from SVN: r4776]]
parent
6b042b7d
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/ug.m4
+7
-0
7 additions, 0 deletions
m4/ug.m4
with
7 additions
and
0 deletions
m4/ug.m4
+
7
−
0
View file @
3f877775
...
...
@@ -42,6 +42,10 @@ AC_DEFUN([DUNE_PATH_UG],[
LDFLAGS
=
"
$LDFLAGS
-L
$UG_LIB_PATH
"
CPPFLAGS
=
"
$CPPFLAGS
-I
$UG_INCLUDE_PATH
"
# backup CPPFLAGS so I can add an additional flag just for AC_CHECk_HEADER
CPPFLAGS_BACKUP
=
"
$CPPFLAGS
"
CPPFLAGS
=
"
$CPPFLAGS
-D_2"
# check for central header
AC_CHECK_HEADER
([
$UG_INCLUDE_PATH
/gm.h],
[
UG_CPPFLAGS
=
"-I
$UG_INCLUDE_PATH
"
...
...
@@ -50,6 +54,9 @@ AC_DEFUN([DUNE_PATH_UG],[
AC_MSG_WARN
([
gm.h not found
in
$UG_INCLUDE_PATH
])]
)
# Restore CPPFLAGS
CPPFLAGS
=
"
$CPPFLAGS_BACKUP
"
# Currently we only check for libug2
# todo: Check for all the libraries that make up UG
AC_LANG_PUSH
([
C++]
)
...
...
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