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
fc305278
Commit
fc305278
authored
19 years ago
by
Christian Engwer
Browse files
Options
Downloads
Patches
Plain Diff
added new test to check whether linking of c++-objcets work
[[Imported from SVN: r3721]]
parent
ee6cdebc
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
configure.ac
+5
-4
5 additions, 4 deletions
configure.ac
m4/dune_all.m4
+1
-0
1 addition, 0 deletions
m4/dune_all.m4
m4/dune_linkcxx.m4
+31
-0
31 additions, 0 deletions
m4/dune_linkcxx.m4
with
37 additions
and
4 deletions
configure.ac
+
5
−
4
View file @
fc305278
...
...
@@ -13,15 +13,16 @@ AM_CONFIG_HEADER([config.h])
AC_PROG_CXX
AC_LANG_PUSH
([
C++]
)
# don't build shared libs per default, this is way better for debugging...
AC_DISABLE_SHARED
AC_PROG_LIBTOOL
DUNE_CHECK_COMPILER
DUNE_LINKCXX
# how to create a deprecated warning
DUNE_CHECKDEPRECATED
# don't build shared libs per default, this is way better for debugging...
AC_DISABLE_SHARED
AC_PROG_LIBTOOL
# check for auxiliary tools so that it's not fatal if they're missing
AC_CHECK_PROGS
([
DOXYGEN],
[
doxygen],
[
true
])
AC_CHECK_PROGS
([
TEX],
[
latex],
[
true
])
...
...
This diff is collapsed.
Click to expand it.
m4/dune_all.m4
+
1
−
0
View file @
fc305278
...
...
@@ -13,6 +13,7 @@ dnl check for programs
AC_REQUIRE([AC_PROG_CXX])
AC_REQUIRE([AC_PROG_CPP])
AC_REQUIRE([DUNE_CHECK_COMPILER])
AC_REQUIRE([DUNE_LINKCXX])
AC_REQUIRE([DUNE_CHECKDEPRECATED])
AC_REQUIRE([AC_PROG_INSTALL])
AC_REQUIRE([AC_PROG_LN_S])
...
...
This diff is collapsed.
Click to expand it.
m4/dune_linkcxx.m4
0 → 100644
+
31
−
0
View file @
fc305278
# $Id$
# tries to link c++ objects
AC_DEFUN([DUNE_LINKCXX],[
AC_MSG_CHECKING([whether compiling C++ code works])
AC_COMPILE_IFELSE(
AC_LANG_SOURCE(
[ #include <iostream>
int main (int argc, char** argv) {
std::cout << std::endl;
}]),
[ AC_MSG_RESULT([yes]);
AC_MSG_CHECKING([whether linking C++ objects works]);
# link from object file
ac_old_link=$ac_link
ac_link=`echo "$ac_old_link" | sed "s/conftest\.$ac_ext/conftest\.$ac_objext/"`
# disable deletion of object file
ac_old_objext=$ac_objext;
ac_objext="";
AC_LINK_IFELSE([],
[ AC_MSG_RESULT([yes])],
[ AC_MSG_RESULT([no])
AC_MSG_ERROR([Could not link C++ code])])
ac_objext=$ac_old_objext;
ac_link=$ac_old_link;],
[ AC_MSG_RESULT([no])
AC_MSG_ERROR([Could not compile C++ code])]
)
])
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