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
e1e29a81
Commit
e1e29a81
authored
13 years ago
by
Markus Blatt
Browse files
Options
Downloads
Patches
Plain Diff
Use enable trick for boost.
[[Imported from SVN: r6450]]
parent
8d75131f
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/ax_boost_base.m4
+10
-7
10 additions, 7 deletions
m4/ax_boost_base.m4
with
10 additions
and
7 deletions
m4/ax_boost_base.m4
+
10
−
7
View file @
e1e29a81
...
...
@@ -22,7 +22,10 @@
# And sets:
#
# HAVE_BOOST
#
# ENABLE_BOOST or undefined. Whether boost was found. The correct way to
# to check this is "#if HAVE_BOOST": This way boost featers will be disabled
# unless ${BOOST_CPPFLAGS} was given when compiling
#
# LICENSE
#
# Copyright (c) 2008 Thomas Porschberg <thomas@randspringer.de>
...
...
@@ -99,7 +102,7 @@ AC_ARG_WITH([boost-libdir],
dnl or if you install boost with RPM
if test "$ac_boost_path" != ""; then
BOOST_LDFLAGS="-L$ac_boost_path/$libsubdir"
BOOST_CPPFLAGS="-I$ac_boost_path/include"
BOOST_CPPFLAGS="-I$ac_boost_path/include
-DENABLE_BOOST
"
elif test "$cross_compiling" != yes; then
for ac_boost_path_tmp in /usr /usr/local /opt /opt/local ; do
if test -d "$ac_boost_path_tmp/include/boost" && test -r "$ac_boost_path_tmp/include/boost"; then
...
...
@@ -107,7 +110,7 @@ AC_ARG_WITH([boost-libdir],
if ls "$ac_boost_path_tmp/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
done
BOOST_LDFLAGS="-L$ac_boost_path_tmp/$libsubdir"
BOOST_CPPFLAGS="-I$ac_boost_path_tmp/include"
BOOST_CPPFLAGS="-I$ac_boost_path_tmp/include
-DENABLE_BOOST
"
break;
fi
done
...
...
@@ -157,7 +160,7 @@ AC_ARG_WITH([boost-libdir],
_version=$_version_tmp
fi
VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
BOOST_CPPFLAGS="-I$ac_boost_path/include/boost-$VERSION_UNDERSCORE"
BOOST_CPPFLAGS="-I$ac_boost_path/include/boost-$VERSION_UNDERSCORE
-DENABLE_BOOST
"
done
fi
else
...
...
@@ -176,7 +179,7 @@ AC_ARG_WITH([boost-libdir],
done
VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
BOOST_CPPFLAGS="-I$best_path/include/boost-$VERSION_UNDERSCORE"
BOOST_CPPFLAGS="-I$best_path/include/boost-$VERSION_UNDERSCORE
-DENABLE_BOOST
"
if test "$ac_boost_lib_path" = ""; then
for libsubdir in $libsubdirs ; do
if ls "$best_path/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
...
...
@@ -196,7 +199,7 @@ AC_ARG_WITH([boost-libdir],
V_CHECK=`expr $stage_version_shorten \>\= $_version`
if test "$V_CHECK" = "1" -a "$ac_boost_lib_path" = "" ; then
AC_MSG_NOTICE(We will use a staged boost library from $BOOST_ROOT)
BOOST_CPPFLAGS="-I$BOOST_ROOT"
BOOST_CPPFLAGS="-I$BOOST_ROOT
-DENABLE_BOOST
"
BOOST_LDFLAGS="-L$BOOST_ROOT/stage/$libsubdir"
fi
fi
...
...
@@ -236,7 +239,7 @@ AC_ARG_WITH([boost-libdir],
else
AC_SUBST(BOOST_CPPFLAGS)
AC_SUBST(BOOST_LDFLAGS)
AC_DEFINE(HAVE_BOOST,,[
d
efine if the Boost library is available])
AC_DEFINE(HAVE_BOOST,
[ENABLE_BOOST]
,[
D
efine
to ENABLE_BOOST
if the Boost library is available])
# execute ACTION-IF-FOUND (if present):
ifelse([$2], , :, [$2])
fi
...
...
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