Skip to content
Snippets Groups Projects
Commit 3f877775 authored by Oliver Sander's avatar Oliver Sander
Browse files

bugfix: gm.h needs -D_2 to work

[[Imported from SVN: r4776]]
parent 6b042b7d
No related branches found
No related tags found
No related merge requests found
......@@ -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++])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment